* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", sans-serif;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a2e 100%);
    color: #fff;
    min-height: 100vh;
    padding: 20px;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
            radial-gradient(
                    circle at 20% 50%,
                    rgba(231, 76, 60, 0.08) 0%,
                    transparent 50%
            ),
            radial-gradient(
                    circle at 80% 80%,
                    rgba(52, 152, 219, 0.08) 0%,
                    transparent 50%
            );
    pointer-events: none;
    z-index: 0;
}

.container {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    padding: 60px 0;
}

.header {
    text-align: center;
    margin: 0 auto 50px;
    max-width: 700px;
}

.name {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #fff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.role {
    font-size: 20px;
    color: #888;
    font-weight: 400;
    margin-bottom: 20px;
}

.intro-text {
    font-size: 15px;
    color: #777;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

/* Cards */

.cards-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin: 0 auto 40px;
    max-width: 900px;
}

.card {
    background: rgba(26, 26, 46, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 35px 30px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.card > * {
    position: relative;
    z-index: 2;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
            135deg,
            transparent 0%,
            rgba(255, 255, 255, 0.03) 100%
    );
    opacity: 0;
    transition: opacity 0.4s;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.15);
}

.card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
    transition: all 0.4s;
}

.card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

.cv-card .card-icon {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
}

.cv-card:hover .card-icon {
    background: rgba(231, 76, 60, 0.25);
}

.portfolio-card .card-icon {
    background: rgba(52, 152, 219, 0.15);
    color: #3498db;
}

.portfolio-card:hover .card-icon {
    background: rgba(52, 152, 219, 0.25);
}

.card-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.card-description {
    font-size: 14px;
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 20px;
}

.card-features {
    list-style: none;
    margin-bottom: 20px;
}

.card-features li {
    padding: 8px 0;
    color: #999;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-features li::before {
    content: "✓";
    color: #4caf50;
    font-weight: bold;
    font-size: 13px;
    flex-shrink: 0;
}

.card-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-btn:hover {
    transform: translateX(5px);
}

.cv-card .card-btn:hover {
    background: rgba(231, 76, 60, 0.15);
    border-color: #e74c3c;
    color: #e74c3c;
}

.portfolio-card .card-btn:hover {
    background: rgba(52, 152, 219, 0.15);
    border-color: #3498db;
    color: #3498db;
}

/* Portfolio section */

.portfolio-section {
    padding: 80px 40px;
    background: rgba(15, 15, 25, 0.5);
    backdrop-filter: blur(10px);
}

.portfolio-header {
    text-align: center;
    margin-bottom: 60px;
}

.portfolio-section-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #fff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.portfolio-section-subtitle {
    font-size: 16px;
    color: #888;
}

.projects-grid {
    display: grid;
    grid-template-columns: minmax(280px, 720px);
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: rgba(26, 26, 46, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.15);
}

.project-content {
    padding: 30px 25px;
}

.project-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.project-description {
    font-size: 14px;
    color: #aaa;
    line-height: 1.7;
    margin-bottom: 20px;
}

.project-details {
    margin: 18px 0 22px;
}

.project-details summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #e74c3c;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    transition: color 0.3s;
}

.project-details summary::-webkit-details-marker {
    display: none;
}

.project-details summary::after {
    content: "↓";
    font-size: 13px;
    transition: transform 0.3s;
}

.project-details[open] summary::after {
    transform: rotate(180deg);
}

.project-details summary:hover {
    color: #c0392b;
}

.project-details h4 {
    font-size: 15px;
    color: #fff;
    margin: 18px 0 10px;
}

.project-details ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.project-details li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 9px;
    color: #aaa;
    font-size: 14px;
    line-height: 1.6;
}

.project-details li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #e74c3c;
    font-weight: 700;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.project-tag {
    padding: 5px 12px;
    background: rgba(52, 152, 219, 0.15);
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 20px;
    font-size: 11px;
    color: #3498db;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.project-video {
    position: relative;
    display: block;
    width: 100%;
    padding-bottom: 56.25%;
    margin: 25px 0 20px;
    background: #000;
    border-radius: 14px;
    cursor: pointer;
    overflow: hidden;
}

.project-thumbnail {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.project-card:hover .project-thumbnail {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(231, 76, 60, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    transition: all 0.3s;
    z-index: 2;
}

.project-card:hover .play-button {
    background: rgba(231, 76, 60, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

.project-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #e74c3c;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.project-link:hover {
    gap: 12px;
    color: #c0392b;
}

/* Footer */

.footer {
    text-align: center;
}

.social-links {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 20px;
}

.social-link {
    width: 42px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 16px;
}

.social-link:hover {
    border-color: #e74c3c;
    color: #e74c3c;
    transform: translateY(-3px);
}

.copyright {
    color: #555;
    font-size: 13px;
}

.copyright a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s;
}

.copyright a:hover {
    color: #e74c3c;
}

/* Responsive */

@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    .container {
        padding: 40px 0;
    }

    .name {
        font-size: 36px;
    }

    .role {
        font-size: 16px;
    }

    .cards-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .card {
        padding: 40px 30px;
    }

    .card-title {
        font-size: 24px;
    }

    .header {
        margin-bottom: 40px;
    }

    .portfolio-section {
        padding: 60px 20px;
    }

    .portfolio-section-title {
        font-size: 32px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .project-actions {
        gap: 14px;
    }
}

@media (max-width: 480px) {
    .name {
        font-size: 28px;
    }

    .card {
        padding: 30px 25px;
    }

    .portfolio-section-title {
        font-size: 28px;
    }

    .project-content {
        padding: 25px 20px;
    }

    .play-button {
        width: 58px;
        height: 58px;
        font-size: 24px;
    }
}