:root {
    --primary: #8b5cf6;
    --primary-dark: #6d28d9;
    --accent-hot: #f472b6;
    --accent-cyan: #22d3ee;
    --secondary: #cbd5e1;
    --on-surface: #e2e8f0;
    --muted: #94a3b8;
    --border: rgba(196, 181, 253, 0.32);
    --shadow: 0 4px 24px rgba(59, 130, 246, 0.18);
    --shadow-lg: 0 20px 50px rgba(236, 72, 153, 0.18);
    --gradient-primary: linear-gradient(135deg, #8b5cf6 0%, #ec4899 45%, #22d3ee 100%);
    --gradient-page: radial-gradient(circle at 20% 10%, #150d33 0%, #0d0823 42%, #050311 100%);
}

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

html {
    scroll-behavior: smooth;
    font-size: 62.5%;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 1.6rem;
    color: var(--on-surface);
    min-height: 100vh;
    background: var(--gradient-page);
    background-attachment: fixed;
    overflow-x: hidden;
}

.page-particles {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 1;
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: 0.62;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(8, 4, 22, 0.86);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(139, 92, 246, 0.35);
}

.navbar {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    font-weight: 700;
    text-decoration: none;
    position: relative;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: translateY(5px);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.4rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 0.8rem 0;
    transition: color 0.3s ease;
}

.nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-hot), var(--accent-cyan));
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-hot);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 1rem;
}

.mobile-menu span {
    width: 25px;
    height: 3px;
    margin: 3px 0;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--accent-hot), var(--accent-cyan));
}

.section {
    position: relative;
    z-index: 2;
    padding: 14rem 0 8rem;
    min-height: 100vh;
    background: radial-gradient(ellipse 90% 70% at 22% 24%, rgba(139, 92, 246, 0.14) 0%, transparent 58%),
        radial-gradient(ellipse 70% 55% at 82% 70%, rgba(236, 72, 153, 0.1) 0%, transparent 52%),
        radial-gradient(ellipse 60% 50% at 50% 100%, rgba(34, 211, 238, 0.08) 0%, transparent 46%);
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #c084fc, #f472b6, #22d3ee, #a78bfa, #c084fc);
    background-size: 220% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleShimmer 7s linear infinite;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 8rem;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

@keyframes titleShimmer {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

.section-subtitle {
    text-align: center;
    color: var(--muted);
    margin-bottom: 4rem;
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
}

.cards {
    max-width: 90rem;
    margin: 0 auto;
    display: grid;
    gap: 2.4rem;
}

.card {
    background: rgba(20, 13, 46, 0.72);
    backdrop-filter: blur(16px);
    border-radius: 1.4rem;
    padding: 2.8rem;
    border: 1px solid rgba(139, 92, 246, 0.28);
    box-shadow: var(--shadow);
    transition:
        transform 0.5s cubic-bezier(0.34, 1.35, 0.64, 1),
        box-shadow 0.45s ease,
        border-color 0.35s ease;
}

.card:hover {
    transform: translateY(-10px) scale(1.015);
    box-shadow:
        0 24px 48px -12px rgba(139, 92, 246, 0.28),
        0 0 0 1px rgba(236, 72, 153, 0.2);
    border-color: rgba(196, 181, 253, 0.8);
}

.role,
.title {
    color: var(--primary);
    font-weight: 700;
    font-size: 2rem;
}

.company,
.school,
.tech {
    margin-top: 0.5rem;
    font-weight: 600;
    color: var(--secondary);
}

.date {
    margin-top: 0.3rem;
    color: var(--muted);
    font-size: 1.4rem;
}

.card p {
    margin-top: 1rem;
    line-height: 1.65;
    color: #dbeafe;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
}

.card .project-visual {
    margin: 2rem 0 0;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.15);
    border: 1px solid var(--border);
}

.card .project-visual img {
    width: 100%;
    height: min(46rem, 66vw);
    object-fit: contain;
    object-position: center;
    background: rgba(6, 3, 18, 0.7);
    display: block;
    transition: transform 0.6s ease;
}

.exp-points {
    margin: 1.2rem 0 0 1.8rem;
    color: #dbeafe;
    line-height: 1.65;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
}

.exp-points li {
    margin-bottom: 0.6rem;
}

.card:hover .project-visual img {
    transform: scale(1.03);
}

.fade-in {
    opacity: 0;
    transform: translateY(36px);
    transition:
        opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.cards .card.fade-in:nth-child(1) {
    transition-delay: 0.05s;
}
.cards .card.fade-in:nth-child(2) {
    transition-delay: 0.12s;
}
.cards .card.fade-in:nth-child(3) {
    transition-delay: 0.19s;
}
.cards .card.fade-in:nth-child(4) {
    transition-delay: 0.26s;
}

.footer {
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, #080414 0%, #100824 100%);
    color: white;
    text-align: center;
    padding: 3.5rem 0;
    border-top: 1px solid rgba(139, 92, 246, 0.3);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.social-links a {
    width: 5rem;
    height: 5rem;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition:
        transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.35s ease;
    box-shadow: 0 8px 24px rgba(236, 72, 153, 0.25);
}

.social-links a:hover {
    transform: translateY(-6px) scale(1.08);
    box-shadow: 0 14px 36px rgba(34, 211, 238, 0.35);
}

.social-links a i {
    font-size: 2rem;
}

@media (max-width: 768px) {
    html {
        font-size: 55%;
    }

    .mobile-menu {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(10, 6, 24, 0.95);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        display: none;
        z-index: 1000;
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu .nav-link {
        color: rgba(255, 255, 255, 0.9);
    }

    .nav-menu .nav-link:hover,
    .nav-menu .nav-link.active {
        color: var(--primary);
    }
}
