/* ===== CSS Variables ===== */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #0ea5e9;
    --accent: #f59e0b;
    --dark: #0f172a;
    --dark-lighter: #1e293b;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --light: #f8fafc;
    --white: #ffffff;
    --gradient-1: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
    --gradient-2: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ===== Typography ===== */
h1, h2, h3, h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    background: linear-gradient(to bottom, var(--dark) 0%, var(--dark) 50%, transparent 100%);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: linear-gradient(to bottom, var(--dark) 0%, var(--dark) 60%, transparent 100%);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--gray-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--white);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s ease;
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 2rem 2rem;
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 80%, rgba(14, 165, 233, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Gradient Blobs */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    pointer-events: none;
    animation: blob-float 15s ease-in-out infinite;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.4) 0%, rgba(139, 92, 246, 0.3) 100%);
    top: 20%;
    left: 25%;
    animation-delay: 0s;
}

.blob-2 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.3) 0%, rgba(99, 102, 241, 0.3) 100%);
    top: 40%;
    right: 25%;
    animation-delay: -5s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(217, 70, 239, 0.25) 0%, rgba(139, 92, 246, 0.2) 100%);
    top: 55%;
    left: 35%;
    animation-delay: -10s;
}

@keyframes blob-float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(20px, -30px) scale(1.05);
    }
    50% {
        transform: translate(-10px, 20px) scale(0.95);
    }
    75% {
        transform: translate(15px, 10px) scale(1.02);
    }
}

/* Floating Tech Icons */
.floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.float-icon {
    position: absolute;
    color: var(--primary-light);
    opacity: 0.15;
    animation: icon-float 20s ease-in-out infinite;
}

.float-icon svg {
    filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.3));
}

.icon-1 {
    top: 25%;
    left: 35%;
    animation-delay: 0s;
    animation-duration: 18s;
}

.icon-2 {
    top: 45%;
    left: 25%;
    animation-delay: -3s;
    animation-duration: 22s;
}

.icon-3 {
    top: 65%;
    left: 40%;
    animation-delay: -6s;
    animation-duration: 20s;
}

.icon-4 {
    top: 30%;
    right: 35%;
    animation-delay: -2s;
    animation-duration: 19s;
}

.icon-5 {
    top: 55%;
    right: 30%;
    animation-delay: -8s;
    animation-duration: 21s;
}

.icon-6 {
    top: 75%;
    right: 40%;
    animation-delay: -4s;
    animation-duration: 17s;
}

@keyframes icon-float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.15;
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
        opacity: 0.25;
    }
    50% {
        transform: translateY(10px) rotate(-5deg);
        opacity: 0.15;
    }
    75% {
        transform: translateY(-15px) rotate(3deg);
        opacity: 0.2;
    }
}

/* Particles */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: float-particle linear infinite;
}

.particle:nth-child(odd) {
    background: var(--secondary);
    width: 3px;
    height: 3px;
}

.particle:nth-child(3n) {
    background: var(--accent);
    width: 5px;
    height: 5px;
    opacity: 0.2;
}

@keyframes float-particle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Scroll Animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.expertise-card.scroll-animate:nth-child(1) { transition-delay: 0s; }
.expertise-card.scroll-animate:nth-child(2) { transition-delay: 0.1s; }
.expertise-card.scroll-animate:nth-child(3) { transition-delay: 0.2s; }
.expertise-card.scroll-animate:nth-child(4) { transition-delay: 0.3s; }

.stat-item.scroll-animate:nth-child(1) { transition-delay: 0s; }
.stat-item.scroll-animate:nth-child(2) { transition-delay: 0.1s; }
.stat-item.scroll-animate:nth-child(3) { transition-delay: 0.2s; }
.stat-item.scroll-animate:nth-child(4) { transition-delay: 0.3s; }

.hero-content {
    max-width: 100%;
    margin: 0;
    padding: 0 4rem;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    max-width: 700px;
}

/* Animation Classes */
.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.animate-slide-up {
    opacity: 0;
    animation: slideUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }

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

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

/* Name Intro */
.name-intro {
    margin-bottom: 2rem;
}

.intro-line {
    display: block;
    font-size: 1.1rem;
    color: var(--gray);
    font-weight: 400;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.name {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0;
    position: relative;
    display: inline-block;
}

.name-accent {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Bio Block */
.bio-block {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    border-left: 3px solid var(--primary);
}

.bio-line {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    font-size: 1.35rem;
}

.bio-label {
    color: var(--gray);
    font-weight: 400;
    flex-shrink: 0;
}

.bio-value {
    color: var(--white);
    font-weight: 600;
    transition: all 0.3s ease;
}

.hover-glow:hover {
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
    color: var(--primary-light);
}

/* Rotating Text Animation */
.rotating-text {
    position: relative;
    height: 1.5em;
    display: inline-block;
    vertical-align: baseline;
    margin-top: 0.3em;
}

.rotating-text span {
    position: absolute;
    left: 0;
    top: 0;
    white-space: nowrap;
    animation: rotate-words 6s infinite;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rotating-text span:nth-child(2) {
    animation-delay: -3s;
    background: linear-gradient(135deg, #6366f1 0%, #a78bfa 40%, #e879f9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes rotate-words {
    0%, 45% { transform: translateY(0); opacity: 1; }
    50%, 95% { transform: translateY(-100%); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* Skills Ticker */
.skills-ticker {
    overflow: hidden;
    padding: 1rem 0;
    margin-bottom: 1.5rem;
    mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.ticker-track {
    display: flex;
    gap: 2rem;
    animation: ticker 20s linear infinite;
    width: max-content;
}

.ticker-item {
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--primary-light);
    white-space: nowrap;
    transition: all 0.3s ease;
}

.ticker-item:hover {
    background: var(--gradient-1);
    color: var(--white);
    transform: scale(1.05);
    border-color: transparent;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Bio Description */
.bio-description {
    font-size: 1.1rem;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 100%;
}

.bio-description strong {
    color: var(--gray-light);
    font-weight: 600;
    position: relative;
}

.bio-description strong::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.bio-description:hover strong::after {
    transform: scaleX(1);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-1);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--gray);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary-light);
    background: rgba(99, 102, 241, 0.1);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    justify-self: end;
}

.animated-bg {
    position: absolute;
    width: 100%;
    height: 100%;
}

.circle {
    position: absolute;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.circle-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3) 0%, rgba(139, 92, 246, 0.1) 100%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 0s;
}

.circle-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.2) 0%, rgba(99, 102, 241, 0.1) 100%);
    top: 30%;
    left: 60%;
    animation-delay: -2s;
}

.circle-3 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, rgba(217, 70, 239, 0.2) 0%, rgba(99, 102, 241, 0.1) 100%);
    top: 60%;
    left: 30%;
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

.profile-frame {
    width: 380px;
    height: auto;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.profile-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center top;
    position: relative;
    mask-image:
        linear-gradient(to right, transparent, black 3%, black 97%, transparent),
        linear-gradient(to bottom, transparent, black 3%, black 97%, transparent);
    -webkit-mask-image:
        linear-gradient(to right, transparent, black 3%, black 97%, transparent),
        linear-gradient(to bottom, transparent, black 3%, black 97%, transparent);
    mask-composite: intersect;
    -webkit-mask-composite: source-in;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.scroll-indicator span {
    font-size: 0.75rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--gray);
    border-radius: 12px;
    position: relative;
}

.mouse::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0%, 100% { opacity: 1; top: 8px; }
    50% { opacity: 0.5; top: 16px; }
}

/* ===== Expertise Section ===== */
.expertise-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--dark) 0%, var(--dark-lighter) 100%);
    position: relative;
}

.expertise-section::before {
    content: '';
    position: absolute;
    top: -80px;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent 0%, var(--dark) 100%);
    pointer-events: none;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 1rem;
    color: var(--white);
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    font-size: 1.1rem;
    margin-bottom: 4rem;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.expertise-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(100, 116, 139, 0.2);
    border-radius: 16px;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.expertise-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.expertise-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(99, 102, 241, 0.15) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.expertise-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(99, 102, 241, 0.1);
}

.expertise-card:hover::before {
    transform: scaleX(1);
}

.expertise-card:hover::after {
    opacity: 1;
}

.card-icon {
    width: 64px;
    height: 64px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary-light);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.expertise-card:hover .card-icon {
    background: var(--gradient-1);
    color: var(--white);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.expertise-card h3 {
    font-size: 1.25rem;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.expertise-card p {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.card-link {
    color: var(--primary-light);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.expertise-card:hover .card-link {
    color: var(--white);
}

/* ===== Stats Section ===== */
.stats-section {
    padding: 4rem 0;
    background: var(--dark-lighter);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--gray);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== Footer ===== */
.footer {
    padding: 1rem 0;
    background: var(--dark);
    border-top: none;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, var(--dark) 0%, transparent 100%);
    pointer-events: none;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-contact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1.2rem;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(100, 116, 139, 0.15);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.footer-contact:hover {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.footer-contact-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.footer-contact a {
    color: var(--gray-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--white);
}

.footer-divider {
    width: 1px;
    height: 20px;
    background: rgba(100, 116, 139, 0.3);
}

.footer-copyright {
    color: var(--gray);
    font-size: 0.75rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-brand .logo {
    font-size: 1.25rem;
}

.footer-brand p {
    color: var(--gray);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--gray);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-light);
}

/* ===== Page Header (for sub-pages) ===== */
.page-header {
    padding: 10rem 2rem 4rem;
    background: linear-gradient(180deg, var(--dark) 0%, var(--dark-lighter) 100%);
    position: relative;
    overflow: hidden;
}

.page-header .particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(99, 102, 241, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.page-header h1.animate-slide-up {
    opacity: 0;
    animation: slideUp 0.8s ease forwards;
}

.page-header .lead {
    font-size: 1.25rem;
    color: var(--gray-light);
    max-width: 600px;
}

.page-header .lead.animate-slide-up {
    opacity: 0;
    animation: slideUp 0.8s ease forwards;
}

/* ===== Content Sections ===== */
.content-section {
    padding: 5rem 0;
}

.content-section:nth-child(even) {
    background: var(--dark-lighter);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.content-grid.reverse {
    direction: rtl;
}

.content-grid.reverse > * {
    direction: ltr;
}

.content-text h2 {
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.content-text p {
    color: var(--gray);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.content-visual {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(100, 116, 139, 0.2);
    border-radius: 16px;
    padding: 2rem;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-visual .placeholder-text {
    color: var(--gray);
    font-style: italic;
}

/* Project Cards */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(100, 116, 139, 0.2);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(99, 102, 241, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.project-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(99, 102, 241, 0.1);
}

.project-card:hover::after {
    opacity: 1;
}

.project-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 3rem;
    transition: transform 0.4s ease;
    overflow: hidden;
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

.project-image svg {
    transition: transform 0.4s ease;
}

.project-card:hover .project-image svg {
    transform: scale(1.1) rotate(5deg);
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-size: 1.25rem;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.project-content p {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    padding: 0.25rem 0.75rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-light);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ===== Skills List ===== */
.skills-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid transparent;
}

.skill-item:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateX(8px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.skill-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.skill-item:hover .skill-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.skill-item span {
    color: var(--white);
    font-weight: 500;
    transition: color 0.3s ease;
}

.skill-item:hover span {
    color: var(--primary-light);
}

/* ===== Responsive Design ===== */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        max-width: 100%;
    }

    .bio-block {
        border-left: none;
        padding-left: 0;
        border-top: 3px solid var(--primary);
        padding-top: 1.5rem;
    }

    .bio-line {
        justify-content: center;
        flex-wrap: wrap;
    }

    .cta-buttons {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
        margin-bottom: 2rem;
    }

    .profile-frame {
        width: 200px;
        height: 200px;
    }

    .bio-description {
        margin-left: auto;
        margin-right: auto;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .content-grid.reverse {
        direction: ltr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--dark-lighter);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-brand {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .expertise-grid {
        grid-template-columns: 1fr;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}
