* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #0d0d0d;
    color: #ffffff;
    min-height: 100vh;
    padding: 40px 20px;
}

/* Back Button */
.back-button {
    position: fixed;
    top: 30px;
    left: 30px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(-5px);
}

.back-button svg {
    width: 20px;
    height: 20px;
}

/* Main Container */
.cv-container {
    max-width: 1400px;
    margin: 80px auto 0;
    padding: 0 20px;
}

.cv-header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease;
}

.cv-header h1 {
    font-size: 56px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 15px;
}

.cv-header .emoji {
    font-size: 56px;
    margin-left: 10px;
}

.subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

/* CV Grid */
.cv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 30px;
    animation: fadeIn 1s ease;
}

/* CV Card */
.cv-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    opacity: 0;
    transform: translateY(30px);
    animation: cardFadeIn 0.6s ease forwards;
}

.cv-card:nth-child(1) { animation-delay: 0.1s; }
.cv-card:nth-child(2) { animation-delay: 0.2s; }
.cv-card:nth-child(3) { animation-delay: 0.3s; }
.cv-card:nth-child(4) { animation-delay: 0.4s; }
.cv-card:nth-child(5) { animation-delay: 0.5s; }
.cv-card:nth-child(6) { animation-delay: 0.6s; }

.cv-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Card Image */
.card-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.cv-card:hover .card-image img {
    transform: scale(1.1);
}

/* Card Overlay */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.cv-card:hover .card-overlay {
    opacity: 1;
}

.view-btn {
    padding: 12px 30px;
    background: #ffffff;
    color: #000000;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    transform: translateY(10px);
}

.cv-card:hover .view-btn {
    transform: translateY(0);
}

.view-btn:hover {
    background: #f0f0f0;
    transform: scale(1.05);
}

/* Card Content */
.card-content {
    padding: 25px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.card-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.date-badge {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-weight: 500;
}

.card-content p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Card Tags */
.card-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    font-size: 12px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    transition: all 0.3s ease;
}

.cv-card:hover .tag {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .cv-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .cv-header h1 {
        font-size: 40px;
    }

    .cv-header .emoji {
        font-size: 40px;
    }

    .subtitle {
        font-size: 16px;
    }

    .cv-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .back-button {
        top: 20px;
        left: 20px;
        padding: 10px 20px;
        font-size: 13px;
    }

    .cv-container {
        margin-top: 60px;
    }

    .card-image {
        height: 220px;
    }
}