:root {
    --dark: #020617;
    --dark-secondary: #0f172a;
    --light: #f8fafc;
    --accent: #10b981;
    --accent-hover: #059669;
    --blue-accent: #3b82f6;
    --blue-hover: #2563eb;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --nav-height: 5rem;
}

/* Reset and basic setup */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--dark);
    background-image: linear-gradient(rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.9)), url('../assets/images/background.webp');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    color: var(--light);
    font-family: Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Segoe UI", Inter, "Helvetica Neue", Arial, sans-serif;
    letter-spacing: -0.02em;
}

html {
    scroll-behavior: smooth;
}

@media (min-width: 1024px) {
    body {
        background-attachment: fixed;
    }
}

::selection {
    background-color: var(--accent);
    color: var(--dark);
}

/* Utilities extracted from the HTML */
.bg-dark { background-color: rgba(2, 6, 23, 0.85); }
.bg-dark-secondary { background-color: rgba(15, 23, 42, 0.85); }
.glass-panel { 
    background-color: rgba(2, 6, 23, 0.4); 
    backdrop-filter: blur(16px); 
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.03); 
}
.glass-nav {
    background-color: rgba(2, 6, 23, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.cyber-shape-pos {
    left: 70%; top: -2%;
}
@media (min-width: 768px) {
    .cyber-shape-pos { left: 90%; }
}

.text-light { color: var(--light); }
.text-accent { color: var(--accent); }
.text-blue-accent { color: var(--blue-accent); }
.text-gray-300 { color: #cbd5e1; }
.text-gray-400 { color: var(--gray-400); }
.text-gray-500 { color: var(--gray-500); }
.text-gray-700 { color: var(--gray-700); }
.border-gray-700 { border-color: rgba(51, 65, 85, 0.6); }
.border-gray-800 { border-color: rgba(30, 41, 59, 0.6); }
.opacity-10 { opacity: 0.1; }
.opacity-25 { opacity: 0.25; }
.opacity-50 { opacity: 0.5; }
.opacity-0 { opacity: 0; }
.opacity-75 { opacity: 0.75; }
.opacity-100 { opacity: 1; }

.font-inter { font-family: Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
.font-poppins { font-family: "Segoe UI", Inter, "Helvetica Neue", Arial, sans-serif; }
.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

.tracking-tight { letter-spacing: -0.015em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.leading-relaxed { line-height: 1.625; }
.leading-snug { line-height: 1.25; }

/* Flexbox and Grid utility translations for structural layout */
.container { width: 100%; margin: 0 auto; max-width: 1200px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.py-32 { padding-top: 8rem; padding-bottom: 8rem; }
.pt-4 { padding-top: 1rem; }
.pt-6 { padding-top: 1.5rem; }
.pt-20 { padding-top: 5rem; }
.pt-32 { padding-top: 8rem; }
.pb-4 { padding-bottom: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }

.w-full { width: 100%; }
.w-auto { width: auto; }
.w-0 { width: 0; }
.max-w-full { max-width: 100%; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.h-full { height: 100%; }
.h-1 { height: 0.25rem; }
.w-4 { width: 1rem; } .h-4 { height: 1rem; }
.w-5 { width: 1.25rem; } .h-5 { height: 1.25rem; }
.w-6 { width: 1.5rem; } .h-6 { height: 1.5rem; }
.w-7 { width: 2.75rem; } .h-7 { height: 2.75rem; }
.w-8 { width: 2rem; } .h-8 { height: 2rem; }
.w-10 { width: 2.5rem; } .h-10 { height: 2.5rem; }
.w-12 { width: 3rem; } .h-12 { height: 3rem; }
.w-16 { width: 4rem; } .h-16 { height: 4rem; }
.w-20 { width: 5rem; } .h-20 { height: 5rem; }
.w-24 { width: 6rem; } .h-24 { height: 6rem; }
.h-56 { height: 14rem; }
.h-64 { height: 16rem; }
.min-h-screen { min-height: 100vh; }

.hidden { display: none !important; }
.inline-block { display: inline-block; }
.block { display: block; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }
.shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.-inset-2 { top: -0.5rem; right: -0.5rem; bottom: -0.5rem; left: -0.5rem; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.top-full { top: 100%; }
.-top-12 { top: -3rem; }
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.z-100 { z-index: 100; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.uppercase { text-transform: uppercase; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }

.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }
.overflow-hidden { overflow: hidden; }
.object-cover { object-fit: cover; }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
.resize-none { resize: none; }
.pointer-events-none { pointer-events: none; }
.cursor-pointer { cursor: pointer; }
.whitespace-nowrap { white-space: nowrap; }
.text-ellipsis { text-overflow: ellipsis; }
.break-all { word-break: break-all; }

.border { border-width: 1px; border-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }

.transition-colors { transition-property: color, background-color, border-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 300ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 300ms; }
.transition-opacity { transition-property: opacity; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 300ms; }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 300ms; }
.transition { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-300 { transition-duration: 300ms; }
.duration-1000 { transition-duration: 1000ms; }
.delay-100 { transition-delay: 100ms; animation-delay: 100ms; }
.delay-200 { transition-delay: 200ms; animation-delay: 200ms; }
.delay-300 { transition-delay: 300ms; animation-delay: 300ms; }
.delay-400 { transition-delay: 400ms; animation-delay: 400ms; }
.delay-500 { transition-delay: 500ms; animation-delay: 500ms; }


a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; outline: none; background: transparent; }

/* Responsive basics */
@media (min-width: 768px) {
    .md\:flex { display: flex !important; }
    .md\:hidden { display: none !important; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:flex-row { flex-direction: row; }
    .md\:text-left { text-align: left; }
    .md\:items-start { align-items: flex-start; }
    .md\:justify-start { justify-content: flex-start; }
    .md\:mx-0 { margin-left: 0; margin-right: 0; }
    .md\:text-3xl { font-size: 1.875rem; }
    .md\:text-7xl { font-size: 4.5rem; }
    .md\:p-16 { padding: 4rem; }
    .md\:gap-6 { gap: 1.5rem; }
}

/* Mobile specific hero adjustments */
@media (max-width: 767px) {
    .text-5xl.md\:text-8xl {
        font-size: 2.75rem !important; /* Scaled down further */
    }
    
    .ready-to-scale {
        font-size: 0.8rem !important; /* Smaller accent text */
        letter-spacing: 0.2rem !important;
    }

    .btn-primary, .btn-secondary {
        padding: 0.65rem 1rem !important;
        font-size: 0.85rem !important;
        white-space: nowrap;
    }

    /* Shrink padding and margins */
    .glass-panel.p-8 {
        padding: 1.5rem !important;
    }

    .hero-content-wrapper .mb-4, 
    .hero-content-wrapper .mb-6, 
    .hero-content-wrapper .mb-10 {
        margin-bottom: 0.75rem !important;
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:-top-16 { top: -4rem; }
}

/* Custom Component Styles */

/* Navigation */
.glass-nav {
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
}

.nav-link {
    position: relative;
    padding: 0.5rem 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

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

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

.nav-link.active {
    color: var(--accent);
    font-weight: 700;
}

/* Modern Focus System */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
    border-radius: 4px;
}

.glass-panel:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0.85rem 2.5rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: #fff;
    font-weight: 700;
    border-radius: 9999px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    box-shadow: 0 10px 20px -5px rgba(16, 185, 129, 0.5);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent) 100%);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px -8px rgba(16, 185, 129, 0.6);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-secondary {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0.85rem 2.5rem;
    background-color: transparent;
    color: var(--light);
    font-weight: 600;
    border-radius: 9999px;
    border: 2px solid var(--gray-700);
    transition: all 0.3s ease;
    opacity: 0.8;
}

.btn-secondary:hover {
    border-color: var(--light);
    background-color: rgba(255,255,255,0.05);
    transform: translateY(-2px);
    opacity: 1;
}

/* Hover effects */
.group:hover .group-hover-text-light { color: var(--light); }
.group:hover .group-hover-text-dark { color: var(--dark); }
.group:hover .group-hover-text-accent { color: var(--accent); }
.group:hover .group-hover-border-accent { border-color: var(--accent); }
.hover-border-accent:hover { border-color: var(--accent); }
.group:hover .group-hover-opacity-40 { opacity: 0.4; }
.group:hover .group-hover-opacity-50 { opacity: 0.5; }
.group:hover .group-hover-translate-x-1 { transform: translateX(0.25rem); }
.group:hover .group-hover-translate-y-1 { transform: translateY(-0.25rem); }
.group:hover .group-hover-bg-accent { background-color: var(--accent); }


/* Text gradients & glow */
.text-glow {
    text-shadow: 0 0 30px rgba(16, 185, 129, 0.2);
    background: linear-gradient(to bottom, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hover-glow:hover {
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
    color: var(--accent);
    transition: all 0.3s ease;
}

.social-icon { 
    width: 3rem; 
    height: 3rem; 
    border-radius: 9999px; 
    background: rgba(255,255,255,0.05); 
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.05);
    display: flex; 
    align-items: center; 
    justify-content: center; 
    transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, opacity 0.3s ease; 
    color: var(--gray-400);
    will-change: transform;
}
.social-icon:hover { 
    background: var(--accent); 
    border-color: var(--accent);
    transform: translate3d(0, -3px, 0);
}

.social-icon img {
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}

.social-icon:hover img {
    filter: brightness(0);
}

/* Background patterns */
.bg-gradient-to-b { background-image: linear-gradient(to bottom, var(--tw-gradient-stops)); }
.from-transparent { --tw-gradient-from: transparent; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(0, 0, 0, 0)); }
.to-dark { --tw-gradient-to: rgba(2, 6, 23, 0.95); }
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.from-accent { --tw-gradient-from: var(--accent); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(16, 185, 129, 0)); }
.to-blue-accent { --tw-gradient-to: var(--blue-accent); }

.blur { filter: blur(20px); }

/* Animations - On Load */
.animate-fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
}

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

@keyframes slideInUp {
    0% { opacity: 0; transform: translateY(100px); }
    20% { opacity: 1; }
    100% { opacity: 1; transform: translateY(0); }
}

.animate-slide-up {
    animation: slideInUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Scroll Reveal Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), transform 0.8s cubic-bezier(0.5, 0, 0, 1);
    will-change: opacity, transform;
}

.scroll-reveal.reveal-left {
    transform: translateX(-50px);
}

.scroll-reveal.reveal-right {
    transform: translateX(50px);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translate(0, 0);
}

/* Form Styles */
input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-700);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Video Modal specific styles & Animations */
.bg-black { background-color: #000; }
.bg-opacity-95 { background-color: rgba(0, 0, 0, 0.95); }
.backdrop-blur-sm { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal-video-container { padding-top: 56.25%; }
.shadow-glow { box-shadow: 0 0 50px rgba(33, 150, 243, 0.3); }

.animate-ping {
    animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Skeleton Loading Animation */
.skeleton {
    background: linear-gradient(90deg, var(--dark-secondary) 25%, var(--gray-800) 50%, var(--dark-secondary) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}
@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Skeleton Image Wrapper */
.skeleton-img-wrapper {
    position: relative;
    overflow: hidden;
}
.skeleton-img-wrapper .skeleton {
    position: absolute;
    inset: 0;
    z-index: 10;
    transition: opacity 0.5s ease;
    pointer-events: none;
}
.skeleton-img-wrapper img {
    opacity: 0;
    transition: opacity 0.5s ease;
}
.skeleton-img-wrapper img.loaded {
    opacity: 1;
}

/* Light mode skeleton */
[data-theme="light"] .skeleton {
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
}

/* Feedback-Driven Skill Grid (Landing Page) */
.skills-icon-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    justify-items: center;
    margin-top: 3rem;
}

@media (min-width: 640px) {
    .skills-icon-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}

@media (min-width: 768px) {
    .skills-icon-grid { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
}

@media (min-width: 1024px) {
    .skills-icon-grid { grid-template-columns: repeat(5, 1fr); }
}

.icon-skill-card {
    position: relative;
    width: 100%;
    max-width: 200px;
    height: 140px;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.3s ease;
}

@media (min-width: 640px) {
    .icon-skill-card { height: 160px; }
}

.icon-skill-card:hover {
    transform: translateY(-6px) scale(1.05);
    border-color: var(--accent);
    box-shadow: 0 10px 30px -10px rgba(16, 185, 129, 0.3);
}

.icon-skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    height: 100%;
    width: 60%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: skewX(-25deg);
    transition: all 0.7s ease;
}

.icon-skill-card:hover::before {
    left: 140%;
}

.icon-skill-card svg {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: var(--accent);
    position: relative;
    z-index: 10;
}

@media (min-width: 640px) {
    .icon-skill-card svg { font-size: 2.5rem; }
}

.icon-skill-card h3 {
    font-size: 0.875rem;
    font-weight: 600;
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 0.5rem;
}

@media (min-width: 640px) {
    .icon-skill-card h3 { font-size: 1rem; }
}

/* Background Canvas */
#wave-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
}

/* Re-adding original skill bar styles */
.skill-bar {
    height: 100%;
    border-radius: 9999px;
    width: 0;
    transition: width 1s ease-out;
}

/* Light Theme Overrides */
[data-theme="light"] {
    --dark: #f8fafc;
    --dark-secondary: #f1f5f9;
    --light: #0f172a;
    --gray-400: #64748b;
    --gray-500: #475569;
    --gray-700: #cbd5e1;
    --gray-800: #e2e8f0;
    --gray-900: #f8fafc;
}
[data-theme="light"] body {
    background-image: linear-gradient(rgb(248 250 252 / 12%), rgb(248 250 252 / 57%)), url('../assets/images/background.webp');
    background-color: #f8fafc;
    color: var(--light);
}
[data-theme="light"] .glass-panel {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}
[data-theme="light"] .glass-nav {
    background: rgba(2, 6, 23, 0.7) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(10px) !important;
}
[data-theme="light"] .glass-nav a,
[data-theme="light"] .glass-nav .mobile-menu-btn svg {
    color: white !important;
    stroke: white !important;
}
[data-theme="light"] .glass-nav a:hover,
[data-theme="light"] .glass-nav .mobile-menu-btn:hover svg {
    color: var(--accent) !important;
    stroke: var(--accent) !important;
}
/* Mobile menu dropdown in light mode - needs dark text since bg is light */
[data-theme="light"] .nav-links.flex.flex-col {
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(10px) !important;
}
[data-theme="light"] .nav-links.flex.flex-col a {
    color: white !important;
}

[data-theme="light"] .text-gray-300 { color: #334155; }
[data-theme="light"] .text-gray-400 { color: #475569; }
[data-theme="light"] .bg-dark-secondary { background-color: var(--dark-secondary); }
[data-theme="light"] #about.bg-dark-secondary,
[data-theme="light"] #contact.bg-dark-secondary,
[data-theme="light"] #projects { background-color: #f1f5f966; }
[data-theme="light"] .border-gray-800 { border-color: var(--gray-800); }
[data-theme="light"] .hover-border-accent:hover { border-color: var(--accent) !important; }
[data-theme="light"] .social-icon { background: rgba(255, 255, 255, 0.4); color: #0f172a; border-color: rgba(0, 0, 0, 0.1); }
[data-theme="light"] .social-icon:hover { background: var(--accent); color: white; border-color: var(--accent); }
[data-theme="light"] .social-icon img { filter: brightness(0); }
[data-theme="light"] .social-icon:hover img { filter: brightness(0) invert(1); }
[data-theme="light"] .btn-secondary { background: rgba(255, 255, 255, 0.4); color: #0f172a; border-color: rgba(0, 0, 0, 0.1); }
[data-theme="light"] .btn-secondary:hover { background: rgba(0, 0, 0, 0.05); color: var(--accent); border-color: var(--accent); box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.05); }
[data-theme="light"] footer { background: transparent !important; color: #0f172a; border: none !important; backdrop-filter: none !important; box-shadow: none !important; }
[data-theme="light"] body:has(#about) footer,
[data-theme="light"] body:has(#contact) footer,
[data-theme="light"] body:has(#projects) footer {
    background-color: #f1f5f966 !important;
}
[data-theme="light"] #contact .reveal-left {
    background: rgba(255, 255, 255, 0.6);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}
[data-theme="light"] footer p { color: #1e293b; }
[data-theme="light"] .text-glow {
    background: none;
    -webkit-text-fill-color: var(--light);
    text-shadow: none;
}

[data-theme="light"] .to-dark { --tw-gradient-to: transparent !important; }

/* About Image Fix in Light Mode */
[data-theme="light"] .about-image .relative.rounded-lg {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Loading Bar */
#top-loading-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--accent), var(--blue-accent));
    box-shadow: 0 0 10px var(--accent), 0 0 20px rgba(16, 185, 129, 0.3);
    z-index: 99999;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.3s ease-out, opacity 0.5s ease;
    pointer-events: none;
}

/* Theme Toggle Button Styling */
.theme-toggle {
    background: var(--accent);
    color: white !important;
    border-radius: 50% !important;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
    border: none;
    cursor: pointer;
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.6);
}

[data-theme="light"] .theme-toggle {
    background: var(--blue-accent);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

[data-theme="light"] .theme-toggle:hover {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
}

.sun-icon, .moon-icon {
    width: 20px;
    height: 20px;
    stroke: white;
}


/* CV Social Icon - shows Z logo */
.title-flowcv {
    background: transparent !important;
    padding: 0 !important;
    overflow: hidden;
}
.title-flowcv img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 9999px;
}

/* Visited links — show favicon as a small badge */
a:visited:not(.social-icon):not(.btn-primary):not(.btn-secondary):not(.logo):not([href^="#"]):not([href$=".html"]) {
    position: relative;
}
a:visited:not(.social-icon):not(.btn-primary):not(.btn-secondary):not(.logo):not([href^="#"]):not([href$=".html"])::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    background-image: url('../assets/images/favicon.webp');
    background-size: contain;
    background-repeat: no-repeat;
    margin-left: 4px;
    vertical-align: middle;
    opacity: 0.7;
}

/* ===== Hero Flowing Lines (static, no animation for perf) ===== */
.hero-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.85;
}

/* Hide lines on very small screens */
@media (max-width: 767px) {
    .hero-lines { opacity: 0.4; }
}

/* ===== Full Page Background Waves ===== */
.sections-bg-waves {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

@media (max-width: 767px) {
    .sections-bg-waves { opacity: 0.3; }
}

#featured-projects {
    margin-bottom: 45px;
}

/* ===== Cyber Grid Background ===== */
.cyber-grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image: 
        linear-gradient(rgba(16, 185, 129, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 185, 129, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at center, black, transparent 80%);
    opacity: 0.5;
}

/* ===== Custom Cursor ===== */
.cursor-dot,
.cursor-outline {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cursor-dot.cursor-hide,
.cursor-outline.cursor-hide {
    opacity: 0 !important;
}

html.video-modal-open .cursor-dot,
html.video-modal-open .cursor-outline {
    opacity: 0 !important;
}

/* ===== Decorations ===== */
.bg-text-decoration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(10rem, 36vw, 30rem);  
      font-weight: 900;
    color: var(--light-color);
    opacity: 1; /* Handle opacity per character in HTML */
    pointer-events: none;
    user-select: none;
    z-index: 0;
    letter-spacing: -0.05em;
    white-space: nowrap;
}

.text-glow {
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.3), 0 0 40px rgba(16, 185, 129, 0.1);
}

.text-gradient-premium {
    background: linear-gradient(135deg, var(--light) 30%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-glow-blob {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.05) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.hero-container {
    padding-top: clamp(8rem, 15vh, 12rem);
    padding-bottom: clamp(6rem, 10vh, 8rem);
}

.decor-dot {
    position: absolute;
    border-radius: 9999px;
    filter: blur(1px);
    z-index: 1;
}

@keyframes float-dot {
    0%, 100% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-20px) translateX(10px); }
    50% { transform: translateY(-10px) translateX(20px); }
    75% { transform: translateY(10px) translateX(10px); }
}

.animate-float-dot {
    animation: float-dot 10s ease-in-out infinite;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent);
}

.cursor-outline {
    width: 30px;
    height: 30px;
    border: 2px solid var(--accent);
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes spin-reverse-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

.animate-spin-slow {
    animation: spin-slow 30s linear infinite;
    transform-origin: center;
}

.animate-spin-reverse-slow {
    animation: spin-reverse-slow 40s linear infinite;
    transform-origin: center;
}

.cursor-hover .cursor-outline {
    transform: translate(-50%, -50%) scale(1.6);
    background-color: rgba(16, 185, 129, 0.1);
}

/* ===== Click Ripple ===== */
.click-ripple {
    position: fixed;
    pointer-events: none;
    border: 2px solid var(--accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 9998;
    animation: ripple-anim 0.6s ease-out forwards;
}

@keyframes ripple-anim {
    0%   { width: 0;    height: 0;    opacity: 0.5; }
    100% { width: 80px; height: 80px; opacity: 0;   }
}

/* Hide native cursor on desktop */
@media (min-width: 1024px) {
    html.has-custom-cursor,
    html.has-custom-cursor *  {
        cursor: none !important;
    }

    html.has-custom-cursor.video-modal-open #videoModal,
    html.has-custom-cursor.video-modal-open #videoModal * {
        cursor: auto !important;
    }
}

/* ===== Hero Redesign ===== */
.hero-section {
    display: flex;
    align-items: center;
    padding: calc(var(--nav-height) + clamp(2rem, 4vw, 3.5rem)) 0 clamp(4rem, 8vw, 6.5rem);
    position: relative;
    isolation: isolate;
}

.hero-shell {
    width: min(100%, 1520px);
    max-width: 1520px;
    padding-inline: clamp(1.25rem, 3vw, 2.5rem);
}

.hero-content-wrapper {
    position: relative;
    overflow: hidden;
    min-height: clamp(540px, 68vh, 660px);
    padding: clamp(1.75rem, 3vw, 2.35rem) clamp(2rem, 3.5vw, 3rem);
    border-radius: clamp(1.75rem, 3vw, 2.5rem);
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: linear-gradient(140deg, rgba(2, 6, 23, 0.94) 0%, rgba(10, 18, 34, 0.92) 40%, rgba(15, 23, 42, 0.88) 100%);
    box-shadow: 0 32px 100px rgba(2, 6, 23, 0.45);
}

.hero-content-wrapper::before {
    content: '';
    position: absolute;
    inset: 1rem;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.04);
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.04), transparent 28%, transparent 72%, rgba(59, 130, 246, 0.06));
    opacity: 0.9;
    pointer-events: none;
}

.hero-content-wrapper::after {
    content: '';
    position: absolute;
    inset: auto 5% -35% 25%;
    height: 380px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.16), transparent 68%);
    filter: blur(16px);
    pointer-events: none;
}

.hero-layout {
    position: relative;
    z-index: 2;
    min-height: inherit;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.72fr);
    align-items: center;
    gap: clamp(1.5rem, 3vw, 3.5rem);
}

.hero-intro {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: clamp(1rem, 1.8vw, 1.5rem);
    max-width: none;
    padding: clamp(0.5rem, 1vw, 1rem) 0;
    text-align: left;
}

.hero-kicker {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1.4rem;
    border-radius: 999px;
    font-size: 0.78rem;
    letter-spacing: 0.35em;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.24);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.12);
}

.hero-kicker::before {
    content: '';
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #10b981, #3b82f6);
    box-shadow: 0 0 0 0.35rem rgba(16, 185, 129, 0.12);
}

.hero-name {
    margin: 0;
    font-size: clamp(4.5rem, 8vw, 8.4rem);
    line-height: 0.92;
    letter-spacing: -0.07em;
    white-space: nowrap;
}

.hero-name .text-gradient-premium {
    background: linear-gradient(135deg, #ffffff 8%, #d7f8ee 42%, #93c5fd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-name .text-glow {
    text-shadow: 0 0 38px rgba(16, 185, 129, 0.18), 0 0 70px rgba(59, 130, 246, 0.12);
}

.hero-role {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem;
    font-size: clamp(1.2rem, 2.4vw, 2rem);
    font-weight: 700;
    color: rgba(248, 250, 252, 0.88);
    letter-spacing: -0.03em;
}

.hero-role-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.24);
    color: #bfdbfe;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: clamp(0.5rem, 1vw, 1rem);
}

.hero-actions .btn-primary,
.hero-actions .btn-secondary {
    min-width: 12.5rem;
    min-height: 3.75rem;
    padding: 1rem 2rem !important;
    border-radius: 1rem;
    font-size: 1rem !important;
    letter-spacing: -0.01em;
}

.hero-actions .btn-primary {
    box-shadow: 0 18px 40px -18px rgba(16, 185, 129, 0.85);
}

.hero-actions .btn-primary:hover {
    transform: translateY(-4px) scale(1.01);
}

.hero-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.22);
    color: var(--light);
    opacity: 1;
}

.hero-actions .btn-secondary:hover {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.3);
    color: #fff;
}

.hero-side {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: clamp(0.5rem, 1vw, 1rem) 0;
}

.hero-side::before {
    content: '';
    position: absolute;
    top: 8%;
    right: -6%;
    width: min(32vw, 420px);
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1px solid rgba(59, 130, 246, 0.16);
    background: radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.16), rgba(59, 130, 246, 0) 65%);
    filter: blur(2px);
}

.hero-side::after {
    content: '';
    position: absolute;
    left: 8%;
    bottom: 0;
    width: min(26vw, 320px);
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1px solid rgba(16, 185, 129, 0.14);
    background: radial-gradient(circle at center, rgba(16, 185, 129, 0.14), transparent 72%);
}

.hero-detail-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 410px;
    padding: clamp(1.75rem, 3vw, 2.5rem);
    border-radius: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: clamp(1.25rem, 2vw, 1.75rem);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.82) 0%, rgba(2, 6, 23, 0.92) 100%);
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 28px 70px rgba(2, 6, 23, 0.45);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    contain: layout paint;
}

.hero-detail-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), transparent 42%, transparent 70%, rgba(16, 185, 129, 0.06));
    pointer-events: none;
}

.hero-detail-card > * {
    position: relative;
    z-index: 1;
}

.hero-title {
    margin: 0;
    font-size: clamp(2rem, 3.9vw, 3.5rem);
    line-height: 1.02;
}

.hero-title-break {
    display: none;
}

.hero-title-accent {
    position: relative;
    display: inline-block;
    padding-bottom: 0.55rem;
}

.hero-title-wave {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 0.9rem;
    color: rgba(16, 185, 129, 0.28);
}

.hero-description {
    margin: 0;
    font-size: clamp(1rem, 1.35vw, 1.18rem);
    line-height: 1.9;
    color: #cbd5e1;
}

.hero-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.75), rgba(59, 130, 246, 0.32), rgba(148, 163, 184, 0.04));
}

.hero-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.95rem;
    margin-top: auto;
    padding-top: 0.25rem;
}

.hero-socials .social-icon {
    width: 3.35rem;
    height: 3.35rem;
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(148, 163, 184, 0.16);
}

.hero-socials .social-icon:hover {
    transform: translate3d(0, -4px, 0);
}

.hero-socials .social-icon img {
    width: 1.72rem;
    height: 1.72rem;
}

.hero-lines {
    position: absolute;
    inset: -10% -8%;
    width: 116%;
    height: 120%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.62;
    transform: rotate(-4deg);
}

.hero-glow-blob {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    filter: blur(80px);
}

.hero-glow-blob-primary {
    top: 12%;
    left: 10%;
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.18) 0%, rgba(16, 185, 129, 0.02) 55%, transparent 72%);
}

.hero-glow-blob-secondary {
    right: 8%;
    bottom: 12%;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.16) 0%, rgba(59, 130, 246, 0.02) 58%, transparent 75%);
}

.hero-section .animate-fade-in-up,
.hero-section .animate-slide-up {
    animation-name: fadeInOnly;
}

@keyframes fadeInOnly {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@media (min-width: 900px) {
    .hero-title-break {
        display: block;
    }
}

@media (max-width: 1080px) {
    .hero-content-wrapper {
        min-height: auto;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-intro,
    .hero-side {
        max-width: none;
    }

    .hero-name {
        white-space: normal;
    }

    .hero-side {
        justify-content: flex-start;
        padding-top: 0;
    }

    .hero-detail-card {
        max-width: none;
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding: calc(var(--nav-height) + 1.5rem) 0 3rem;
    }

    .hero-shell {
        padding-inline: 1rem;
    }

    .hero-content-wrapper {
        padding: 1.35rem;
        border-radius: 1.5rem;
    }

    .hero-content-wrapper::before {
        inset: 0.7rem;
    }

    .hero-layout {
        gap: 1.75rem;
    }

    .hero-intro {
        align-items: center;
        text-align: center;
    }

    .hero-kicker {
        align-self: center;
        padding: 0.75rem 1rem;
        font-size: 0.72rem;
        letter-spacing: 0.24em;
    }

    .hero-name {
        font-size: clamp(3.8rem, 20vw, 5.8rem);
        white-space: normal;
    }

    .hero-role {
        justify-content: center;
        font-size: 1.1rem;
    }

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

    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        width: 100%;
        min-width: 0;
    }

    .hero-detail-card {
        padding: 1.5rem;
        text-align: center;
    }

    .hero-title {
        font-size: clamp(2rem, 9vw, 2.8rem);
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-socials {
        justify-content: center;
    }

    .hero-side::before {
        top: -2%;
        right: 50%;
        width: 280px;
        transform: translateX(50%);
    }

    .hero-side::after {
        left: 50%;
        bottom: -4%;
        width: 220px;
        transform: translateX(-50%);
    }

    .hero-lines {
        inset: -14%;
        width: 128%;
        height: 128%;
        opacity: 0.35;
        transform: rotate(0deg) scale(1.05);
    }

    .hero-glow-blob-primary {
        top: 8%;
        left: 50%;
        width: 260px;
        height: 260px;
        transform: translateX(-50%);
    }

    .hero-glow-blob-secondary {
        right: 50%;
        bottom: 0;
        width: 280px;
        height: 280px;
        transform: translateX(50%);
    }
}

@media (max-width: 767px) {
    .mobile-performance-mode .glass-panel,
    .mobile-performance-mode .glass-nav,
    .mobile-performance-mode .project-card,
    .mobile-performance-mode .project-page-card,
    .mobile-performance-mode .icon-skill-card,
    .mobile-performance-mode .about-skill-panel,
    .mobile-performance-mode .about-story-panel,
    .mobile-performance-mode .about-details-panel,
    .mobile-performance-mode .contact-info-panel,
    .mobile-performance-mode .contact-form-panel {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        box-shadow: none !important;
    }

    .mobile-performance-mode .cyber-grid,
    .mobile-performance-mode #featured-projects > .container::before,
    .mobile-performance-mode #quick-about .glass-panel::after,
    .mobile-performance-mode #cta .text-center.max-w-2xl.mx-auto.scroll-reveal::after {
        display: none !important;
    }

    .mobile-performance-mode section:not(.hero-section) {
        content-visibility: auto;
        contain-intrinsic-size: 1px 900px;
    }

    .mobile-performance-mode .skill-bar {
        transition: none !important;
    }

    .mobile-performance-mode .animate-fade-in-up,
    .mobile-performance-mode .animate-slide-up,
    .mobile-performance-mode .animate-float-dot,
    .mobile-performance-mode .animate-spin-slow,
    .mobile-performance-mode .animate-spin-reverse-slow,
    .mobile-performance-mode .animate-ping {
        animation: mobileFadeIn 0.45s ease-out both !important;
    }

    .mobile-performance-mode .scroll-reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .mobile-performance-mode #skills-overview .scroll-reveal,
    .mobile-performance-mode #skills-overview.scroll-reveal {
        opacity: 0 !important;
        transform: none !important;
        transition: opacity 0.35s ease-out !important;
    }

    .mobile-performance-mode #skills-overview .scroll-reveal.active,
    .mobile-performance-mode #skills-overview.scroll-reveal.active {
        opacity: 1 !important;
        transform: none !important;
    }

    .mobile-performance-mode #wave-canvas,
    .mobile-performance-mode .sections-bg-waves,
    .mobile-performance-mode .decor-dot,
    .mobile-performance-mode .hero-lines,
    .mobile-performance-mode .hero-glow-blob {
        display: none !important;
    }

    .mobile-performance-mode .hero-section {
        min-height: auto;
        padding: calc(var(--nav-height) + 1rem) 0 2.5rem;
    }

    .mobile-performance-mode .hero-shell {
        padding-inline: 0.85rem;
    }

    .mobile-performance-mode .hero-content-wrapper {
        min-height: auto;
        padding: 1.1rem;
        border-radius: 1.35rem;
        box-shadow: 0 16px 34px rgba(2, 6, 23, 0.24);
    }

    .mobile-performance-mode .hero-content-wrapper::before,
    .mobile-performance-mode .hero-content-wrapper::after,
    .mobile-performance-mode .hero-side::before,
    .mobile-performance-mode .hero-side::after {
        display: none !important;
    }

    .mobile-performance-mode .hero-layout {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 1.1rem;
    }

    .mobile-performance-mode .hero-intro,
    .mobile-performance-mode .hero-side {
        width: 100%;
        max-width: none;
        padding: 0;
    }

    .mobile-performance-mode .hero-intro {
        order: 1;
        align-items: flex-start;
        text-align: left;
        gap: 0.9rem;
    }

    .mobile-performance-mode .hero-side {
        order: 2;
        justify-content: flex-start;
    }

    .mobile-performance-mode .hero-kicker {
        align-self: flex-start;
        max-width: 100%;
        padding: 0.65rem 0.85rem;
        font-size: 0.64rem;
        letter-spacing: 0.18em;
        line-height: 1.45;
        box-shadow: none;
    }

    .mobile-performance-mode .hero-name {
        max-width: 100%;
        font-size: clamp(3.1rem, 16vw, 4.8rem);
        line-height: 0.9;
        letter-spacing: -0.06em;
        white-space: normal;
        text-wrap: balance;
    }

    .mobile-performance-mode .hero-name .text-glow {
        text-shadow: none;
    }

    .mobile-performance-mode .hero-role {
        justify-content: flex-start;
        gap: 0.65rem;
        font-size: 1rem;
        line-height: 1.45;
    }

    .mobile-performance-mode .hero-role-pill {
        padding: 0.48rem 0.82rem;
        font-size: 0.95rem;
    }

    .mobile-performance-mode .hero-actions {
        width: 100%;
        gap: 0.75rem;
        margin-top: 0.2rem;
        justify-content: flex-start;
        flex-wrap: nowrap;
    }

    .mobile-performance-mode .hero-actions .btn-primary,
    .mobile-performance-mode .hero-actions .btn-secondary {
        min-height: 3.35rem;
        padding: 0.9rem 1rem !important;
        font-size: 0.96rem !important;
        width: calc(50% - 0.375rem);
        min-width: 0;
    }

    .mobile-performance-mode .hero-detail-card {
        max-width: none;
        padding: 1.2rem 1rem;
        gap: 1rem;
        text-align: left;
        box-shadow: 0 14px 28px rgba(2, 6, 23, 0.18);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .mobile-performance-mode .hero-title {
        font-size: clamp(1.8rem, 8vw, 2.45rem);
        line-height: 1.06;
        text-wrap: balance;
    }

    .mobile-performance-mode .hero-title-break {
        display: none;
    }

    .mobile-performance-mode .hero-title-accent {
        padding-bottom: 0.4rem;
    }

    .mobile-performance-mode .hero-title-wave {
        height: 0.75rem;
    }

    .mobile-performance-mode .hero-description {
        font-size: 0.98rem;
        line-height: 1.72;
        color: #d7dfeb;
    }

    .mobile-performance-mode .hero-divider {
        opacity: 0.75;
    }

    .mobile-performance-mode .hero-socials {
        justify-content: flex-start;
        gap: 0.7rem;
    }

    .mobile-performance-mode .hero-socials .social-icon {
        width: 3rem;
        height: 3rem;
        box-shadow: none;
    }
}

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

/* ===== Hero + Featured Projects Polish ===== */
.hero-section {
    padding-bottom: clamp(2.75rem, 5vw, 4rem);
}

.hero-shell {
    width: min(100%, 1600px);
    max-width: 1600px;
}

.hero-content-wrapper {
    min-height: clamp(500px, 62vh, 620px);
    padding: clamp(1.5rem, 2.6vw, 2.1rem) clamp(2rem, 3.8vw, 3.25rem);
}

.hero-layout {
    grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.68fr);
    gap: clamp(1.25rem, 2.4vw, 3rem);
}

.hero-name {
    font-size: clamp(4.4rem, 7.2vw, 8.2rem);
}

.hero-detail-card {
    max-width: 390px;
}

.hero-title {
    font-size: clamp(1.9rem, 3.3vw, 3.15rem);
}

#featured-projects {
    padding: clamp(5rem, 8vw, 7rem) 0;
    position: relative;
}

#featured-projects > .container {
    width: min(100%, 1600px);
    max-width: 1600px;
    padding-inline: clamp(1.25rem, 3vw, 2.5rem);
}

.featured-tech-wave-shell {
    position: relative;
    z-index: 1;
    width: min(100%, 1180px);
    height: 170px;
    margin: 0 auto clamp(1rem, 3vw, 2rem);
}

.featured-tech-wave {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
    filter: drop-shadow(0 10px 20px rgba(16, 185, 129, 0.14));
}

.featured-tech-chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 11.5rem;
    padding: 0.85rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.86) 0%, rgba(2, 6, 23, 0.94) 100%);
    box-shadow: 0 18px 36px rgba(2, 6, 23, 0.28);
    color: #e2e8f0;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: featuredTechFloat 6.5s ease-in-out infinite;
}

.featured-tech-chip svg {
    width: 1.5rem;
    height: 1.5rem;
    flex: 0 0 auto;
}

.featured-tech-chip span {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.tech-chip-react {
    top: 5%;
    left: 10%;
    color: #61dafb;
}

.tech-chip-tailwind {
    top: 42%;
    left: 31%;
    color: #67e8f9;
    animation-delay: -1.5s;
}

.tech-chip-node {
    top: 9%;
    right: 25%;
    color: #86efac;
    animation-delay: -3s;
}

.tech-chip-next {
    top: 48%;
    right: 5%;
    color: #f8fafc;
    animation-delay: -4.5s;
}

.tech-chip-php {
    top: 68%;
    right: 36%;
    color: #777bb4;
    animation-delay: -5.5s;
}

/* ===== Demo Credentials Panel ===== */
.demo-credentials {
    margin-top: 1rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(59, 130, 246, 0.18);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.06) 0%, rgba(15, 23, 42, 0.6) 100%);
    padding: 0.85rem 1rem;
    position: relative;
    overflow: hidden;
}

.demo-credentials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.35), transparent);
}

.demo-credentials .demo-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}

.demo-credentials .demo-header svg {
    width: 15px;
    height: 15px;
    color: #60a5fa;
    flex-shrink: 0;
}

.demo-credentials .demo-header span {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #60a5fa;
}

.demo-credentials .demo-fields {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.demo-credentials .demo-field {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.demo-credentials .demo-field .demo-label {
    font-size: 0.7rem;
    color: #64748b;
    width: 2.8rem;
    flex-shrink: 0;
    font-weight: 500;
}

.demo-credentials .demo-field code {
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.68rem;
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.12);
    padding: 0.2rem 0.55rem;
    border-radius: 0.35rem;
    letter-spacing: 0.02em;
}

.demo-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.55rem 1rem;
    border-radius: 0.55rem;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.demo-btn:hover {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(59, 130, 246, 0.35);
}

.demo-btn svg {
    width: 15px;
    height: 15px;
}

[data-theme="light"] .demo-credentials {
    border-color: rgba(59, 130, 246, 0.22);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.06) 0%, rgba(248, 250, 252, 0.9) 100%);
}

[data-theme="light"] .demo-credentials .demo-field code {
    color: #1d4ed8;
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.15);
}

[data-theme="light"] .demo-credentials .demo-header span {
    color: #2563eb;
}

[data-theme="light"] .demo-credentials .demo-header svg {
    color: #2563eb;
}

@keyframes featuredTechFloat {
    0%, 100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(0, -10px, 0);
    }
}

#featured-projects > .container::before {
    content: '';
    position: absolute;
    inset: 8% 5% auto;
    height: 420px;
    background:
        radial-gradient(circle at 12% 24%, rgba(16, 185, 129, 0.16), transparent 35%),
        radial-gradient(circle at 88% 18%, rgba(59, 130, 246, 0.14), transparent 32%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.28), transparent 65%);
    filter: blur(18px);
    pointer-events: none;
    z-index: 0;
}

#featured-projects > .container > .text-center:first-child {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    align-items: end;
    gap: clamp(1.5rem, 4vw, 5rem);
    text-align: left;
    margin-bottom: clamp(2rem, 4vw, 3rem) !important;
}

#featured-projects > .container > .text-center:first-child p {
    margin-bottom: 0.85rem !important;
    font-size: 0.78rem;
    letter-spacing: 0.32em;
}

#featured-projects > .container > .text-center:first-child h2 {
    margin-bottom: 0 !important;
    font-size: clamp(2.5rem, 4.6vw, 4.5rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

#featured-projects > .container > .text-center:first-child .w-16 {
    width: 100% !important;
    max-width: 8rem;
    margin: 1.25rem 0 0 !important;
    height: 0.25rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), rgba(59, 130, 246, 0.55)) !important;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.22);
}

#featured-projects .grid.md\:grid-cols-2.lg\:grid-cols-3 {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.25rem, 2vw, 1.75rem);
}

#featured-projects .project-card {
    position: relative;
    min-height: 100%;
    border-radius: 1.6rem;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.88) 0%, rgba(2, 6, 23, 0.96) 100%);
    box-shadow: 0 28px 60px rgba(2, 6, 23, 0.28);
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

#featured-projects .project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.06), transparent 30%, transparent 74%, rgba(16, 185, 129, 0.08));
    pointer-events: none;
    opacity: 0.9;
}

#featured-projects .project-card:hover {
    transform: translateY(-10px);
    border-color: rgba(16, 185, 129, 0.38);
    box-shadow: 0 34px 70px rgba(2, 6, 23, 0.4);
}

#featured-projects .project-card:nth-child(2):hover {
    border-color: rgba(59, 130, 246, 0.42);
}

#featured-projects .project-card > div:last-child {
    position: relative;
    z-index: 1;
    padding: 1.35rem 1.35rem 1.5rem !important;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

#featured-projects .project-card .h-56 {
    height: clamp(220px, 22vw, 290px);
    position: relative;
}

#featured-projects .project-card .h-56::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 45%;
    background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.72));
    pointer-events: none;
}

#featured-projects .project-card img {
    width: 100%;
    height: 100%;
}

#featured-projects .project-card .absolute.inset-0.flex.items-center.justify-center {
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.05), rgba(2, 6, 23, 0.52));
}

#featured-projects .project-card .w-14.h-14 {
    width: 4rem;
    height: 4rem;
    box-shadow: 0 24px 40px rgba(2, 6, 23, 0.34);
}

#featured-projects .project-card span[class*="text-\\[10px\\]"] {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 0 !important;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    border: 1px solid rgba(16, 185, 129, 0.2);
    background: rgba(16, 185, 129, 0.1);
    color: #bbf7d0;
}

#featured-projects .project-card:nth-child(2) span[class*="text-\\[10px\\]"] {
    border-color: rgba(59, 130, 246, 0.22);
    background: rgba(59, 130, 246, 0.1);
    color: #bfdbfe;
}

#featured-projects .project-card h3 {
    margin: 0 !important;
    font-size: 1.45rem;
    line-height: 1.15;
    color: #f8fafc;
}

#featured-projects .project-card p {
    margin: 0;
    font-size: 0.98rem !important;
    line-height: 1.8;
    color: #cbd5e1 !important;
}

#featured-projects .text-center.my-24 {
    margin: clamp(2rem, 4vw, 3rem) 0 0 !important;
    text-align: center;
}

#featured-projects .text-center.my-24 .btn-secondary {
    min-height: 3.5rem;
    padding-inline: 1.4rem;
    border-radius: 999px;
}

[data-theme="light"] .hero-content-wrapper {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.92) 0%, rgba(241, 245, 249, 0.94) 48%, rgba(226, 232, 240, 0.9) 100%);
    border-color: rgba(148, 163, 184, 0.24);
    box-shadow: 0 28px 80px rgba(148, 163, 184, 0.22);
}

[data-theme="light"] .hero-content-wrapper::before {
    border-color: rgba(255, 255, 255, 0.55);
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.6), transparent 34%, transparent 72%, rgba(59, 130, 246, 0.08));
}

[data-theme="light"] .hero-content-wrapper::after {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1), transparent 68%);
}

[data-theme="light"] .hero-kicker {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.18);
    box-shadow: 0 16px 30px rgba(16, 185, 129, 0.08);
}

[data-theme="light"] .hero-name .text-gradient-premium {
    background: linear-gradient(135deg, #0f172a 8%, #047857 46%, #2563eb 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="light"] .hero-name .text-glow {
    text-shadow: 0 10px 30px rgba(37, 99, 235, 0.12);
}

[data-theme="light"] .hero-role {
    color: rgba(15, 23, 42, 0.88);
}

[data-theme="light"] .hero-role-pill {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.16);
    color: #1d4ed8;
}

[data-theme="light"] .hero-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(148, 163, 184, 0.32);
    color: #0f172a;
}

[data-theme="light"] .hero-side::before {
    border-color: rgba(59, 130, 246, 0.14);
    background: radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.08), rgba(59, 130, 246, 0) 65%);
}

[data-theme="light"] .hero-side::after {
    border-color: rgba(16, 185, 129, 0.14);
    background: radial-gradient(circle at center, rgba(16, 185, 129, 0.08), transparent 72%);
}

[data-theme="light"] .hero-detail-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(241, 245, 249, 0.96) 100%);
    border-color: rgba(148, 163, 184, 0.2);
    box-shadow: 0 22px 50px rgba(148, 163, 184, 0.18);
}

[data-theme="light"] .hero-detail-card::before {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.7), transparent 46%, transparent 70%, rgba(16, 185, 129, 0.04));
}

[data-theme="light"] .hero-title {
    color: #0f172a;
}

[data-theme="light"] .hero-description {
    color: #475569;
}

[data-theme="light"] .hero-divider {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.5), rgba(59, 130, 246, 0.22), rgba(148, 163, 184, 0.08));
}

[data-theme="light"] .hero-socials .social-icon {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(148, 163, 184, 0.24);
    color: #0f172a;
    box-shadow: 0 12px 24px rgba(148, 163, 184, 0.16);
}

[data-theme="light"] .hero-socials .social-icon img {
    filter: brightness(0);
}

[data-theme="light"] .hero-lines {
    opacity: 0.22;
}

[data-theme="light"] #featured-projects > .container::before {
    background:
        radial-gradient(circle at 12% 24%, rgba(16, 185, 129, 0.08), transparent 34%),
        radial-gradient(circle at 88% 18%, rgba(59, 130, 246, 0.08), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.32), transparent 72%);
}

[data-theme="light"] #featured-projects .project-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.98) 100%);
    border-color: rgba(148, 163, 184, 0.22);
    box-shadow: 0 24px 44px rgba(148, 163, 184, 0.18);
}

[data-theme="light"] #featured-projects .project-card::before {
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.8), transparent 34%, transparent 74%, rgba(16, 185, 129, 0.04));
}

[data-theme="light"] #featured-projects .project-card .h-56::after {
    background: linear-gradient(180deg, transparent, rgba(248, 250, 252, 0.3));
}

[data-theme="light"] #featured-projects .project-card h3 {
    color: #0f172a;
}

[data-theme="light"] #featured-projects .project-card p,
[data-theme="light"] #featured-projects .featured-projects-copy {
    color: #475569 !important;
}

[data-theme="light"] #featured-projects .project-card span[class*="text-\\[10px\\]"] {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.16);
    color: #047857;
}

[data-theme="light"] #featured-projects .project-card:nth-child(2) span[class*="text-\\[10px\\]"] {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.16);
    color: #1d4ed8;
}

[data-theme="light"] .featured-tech-chip {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(241, 245, 249, 0.98) 100%);
    border-color: rgba(148, 163, 184, 0.22);
    box-shadow: 0 18px 36px rgba(148, 163, 184, 0.16);
}

@media (max-width: 1180px) {
    .hero-layout {
        grid-template-columns: minmax(0, 1.32fr) minmax(280px, 0.74fr);
    }

    .featured-tech-wave-shell {
        width: min(100%, 920px);
        height: 150px;
    }

    .featured-tech-chip {
        min-width: 10.5rem;
        padding: 0.75rem 0.9rem;
    }

    #featured-projects .grid.md\:grid-cols-2.lg\:grid-cols-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .featured-tech-wave-shell {
        width: min(100%, 760px);
        height: 135px;
    }

    .featured-tech-chip {
        min-width: 9.4rem;
        gap: 0.55rem;
        padding: 0.7rem 0.82rem;
    }

    .featured-tech-chip span {
        font-size: 0.86rem;
    }

    #featured-projects > .container > .text-center:first-child {
        grid-template-columns: 1fr;
        text-align: center;
    }

    #featured-projects > .container > .text-center:first-child .w-16 {
        margin-inline: auto !important;
    }
}

@media (max-width: 767px) {
    .hero-shell,
    #featured-projects > .container {
        padding-inline: 1rem;
    }

    .featured-tech-wave-shell {
        display: none;
    }

    .hero-content-wrapper {
        min-height: auto;
        padding: 1.35rem;
    }

    #featured-projects {
        padding: 4rem 0;
    }

    #featured-projects .grid.md\:grid-cols-2.lg\:grid-cols-3 {
        grid-template-columns: 1fr;
    }

    #featured-projects .project-card .h-56 {
        height: 220px;
    }

    #featured-projects .project-card > div:last-child {
        padding: 1.15rem 1.15rem 1.3rem !important;
    }
}

/* ===== Quick About + Skills Redesign ===== */
#quick-about {
    padding: clamp(4.5rem, 8vw, 7rem) 0;
    position: relative;
}

#quick-about .container,
#skills-overview .container {
    width: min(100%, 1600px);
    max-width: 1600px;
    padding-inline: clamp(1.25rem, 3vw, 2.5rem);
}

#quick-about .glass-panel {
    position: relative;
    max-width: 1320px !important;
    margin: 0 auto;
    padding: clamp(1.5rem, 3vw, 2.5rem) !important;
    border-radius: 2rem;
    background: linear-gradient(145deg, rgba(2, 6, 23, 0.94), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 28px 80px rgba(2, 6, 23, 0.36);
    overflow: hidden;
}

#quick-about .glass-panel::before {
    content: '';
    position: absolute;
    inset: 1rem;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(130deg, rgba(255, 255, 255, 0.04), transparent 30%, transparent 72%, rgba(59, 130, 246, 0.06));
    pointer-events: none;
}

#quick-about .glass-panel::after {
    content: '';
    position: absolute;
    inset: auto 8% -20% auto;
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.16), transparent 68%);
    filter: blur(30px);
    pointer-events: none;
}

#quick-about .flex.flex-col.md\:flex-row.items-center.gap-8 {
    position: relative;
    z-index: 1;
    display: grid !important;
    grid-template-columns: minmax(240px, 0.78fr) minmax(0, 1.22fr);
    gap: clamp(1.5rem, 4vw, 4rem) !important;
    align-items: center;
}

#quick-about .text-center.md\:text-left {
    text-align: left !important;
    max-width: 760px;
}

#quick-about h2 {
    margin-bottom: 1rem !important;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

#quick-about p.text-gray-400 {
    margin-bottom: 1.4rem !important;
    font-size: clamp(1rem, 1.3vw, 1.14rem);
    line-height: 1.9;
    color: #cbd5e1 !important;
}

#quick-about a.text-accent {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.9rem 1.2rem;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.18);
    text-decoration: none;
}

#quick-about a.text-accent:hover {
    background: rgba(16, 185, 129, 0.14);
}

#quick-about .w-24.h-24.md\:w-32.md\:h-32.rounded-full {
    position: relative;
    width: clamp(220px, 28vw, 320px) !important;
    height: clamp(220px, 28vw, 320px) !important;
    margin-left: 0;
    justify-self: start;
    border: 3px solid rgba(16, 185, 129, 0.55) !important;
    box-shadow: 0 24px 60px rgba(16, 185, 129, 0.12);
}

#quick-about .w-24.h-24.md\:w-32.md\:h-32.rounded-full::after {
    content: '';
    position: absolute;
    inset: -14px;
    border-radius: 50%;
    border: 1px solid rgba(59, 130, 246, 0.18);
}

#quick-about .cyber-shape-pos {
    top: 6%;
    left: auto;
    right: 4%;
    width: 120px;
    height: 120px;
    opacity: 0.7 !important;
}

#skills-overview {
    padding: clamp(4.5rem, 8vw, 7rem) 0;
    position: relative;
}

#skills-overview .section-title {
    max-width: 1320px;
    margin: 0 auto clamp(2rem, 4vw, 3rem) !important;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
    gap: clamp(1.5rem, 4vw, 5rem);
    align-items: end;
    text-align: left;
}

#skills-overview .section-title h2 {
    margin-bottom: 0 !important;
    font-size: clamp(2.4rem, 4.6vw, 4.3rem);
    line-height: 1;
    letter-spacing: -0.05em;
}

#skills-overview .section-title .w-16 {
    width: 100% !important;
    max-width: 8rem;
    margin: 1.25rem 0 0 !important;
    height: 0.25rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), rgba(59, 130, 246, 0.56)) !important;
    box-shadow: 0 12px 26px rgba(16, 185, 129, 0.18);
}

#skills-overview .skills-icon-grid {
    max-width: 1320px !important;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: clamp(0.9rem, 1.5vw, 1.25rem);
    margin-top: 0;
}

#skills-overview .icon-skill-card {
    position: relative;
    max-width: none;
    height: 150px;
    border-radius: 1.5rem;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.88), rgba(2, 6, 23, 0.94));
    box-shadow: 0 20px 40px rgba(2, 6, 23, 0.22);
    overflow: hidden;
}

#skills-overview .icon-skill-card::after {
    content: '';
    position: absolute;
    inset: auto 12% 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.55), transparent);
}

#skills-overview .icon-skill-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 28px 54px rgba(2, 6, 23, 0.34);
}

#skills-overview .icon-skill-card svg {
    font-size: 2.3rem;
    margin-bottom: 0.9rem;
}

#skills-overview .icon-skill-card h3 {
    font-size: 0.96rem;
    letter-spacing: -0.02em;
}

[data-theme="light"] #quick-about .glass-panel {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(241, 245, 249, 0.96));
    border-color: rgba(148, 163, 184, 0.22);
    box-shadow: 0 24px 60px rgba(148, 163, 184, 0.18);
}

[data-theme="light"] #quick-about .glass-panel::before {
    border-color: rgba(255, 255, 255, 0.6);
    background: linear-gradient(130deg, rgba(255, 255, 255, 0.7), transparent 34%, transparent 72%, rgba(59, 130, 246, 0.06));
}

[data-theme="light"] #quick-about .glass-panel::after {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08), transparent 68%);
}

[data-theme="light"] #quick-about p.text-gray-400 {
    color: #475569 !important;
}

[data-theme="light"] #quick-about a.text-accent {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.14);
}

[data-theme="light"] #quick-about .w-24.h-24.md\:w-32.md\:h-32.rounded-full {
    box-shadow: 0 18px 42px rgba(59, 130, 246, 0.12);
}

[data-theme="light"] #skills-overview .icon-skill-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.98));
    border-color: rgba(148, 163, 184, 0.2);
    box-shadow: 0 18px 36px rgba(148, 163, 184, 0.16);
}

[data-theme="light"] #skills-overview .icon-skill-card h3 {
    color: #0f172a;
}

[data-theme="light"] #skills-overview .icon-skill-card::before {
    background: linear-gradient(to right, transparent, rgba(15, 23, 42, 0.05), transparent);
}

[data-theme="light"] #skills-overview .icon-skill-card::after {
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.35), transparent);
}

@media (max-width: 1180px) {
    #skills-overview .skills-icon-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    #quick-about .flex.flex-col.md\:flex-row.items-center.gap-8 {
        grid-template-columns: 1fr;
        text-align: center;
    }

    #quick-about .text-center.md\:text-left {
        text-align: center !important;
        max-width: none;
    }

    #quick-about .w-24.h-24.md\:w-32.md\:h-32.rounded-full {
        margin-inline: auto;
    }

    #skills-overview .section-title {
        grid-template-columns: 1fr;
        text-align: center;
    }

    #skills-overview .section-title .w-16 {
        margin-inline: auto !important;
    }
}

@media (max-width: 767px) {
    #quick-about,
    #skills-overview {
        padding: 4rem 0;
    }

    #quick-about .container,
    #skills-overview .container {
        padding-inline: 1rem;
    }

    #quick-about .glass-panel {
        padding: 1.35rem !important;
        border-radius: 1.5rem;
    }

    #quick-about h2 {
        font-size: clamp(2rem, 9vw, 3rem);
    }

    #quick-about .cyber-shape-pos {
        width: 90px;
        height: 90px;
        right: 1rem;
    }

    #skills-overview .skills-icon-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.85rem;
    }

    #skills-overview .icon-skill-card {
        height: 132px;
        border-radius: 1.15rem;
    }

    #skills-overview .icon-skill-card svg {
        font-size: 2rem;
    }
}

/* ===== CTA Redesign ===== */
#cta {
    padding: clamp(4.5rem, 8vw, 7rem) 0;
    position: relative;
}

#cta .container {
    width: min(100%, 1600px);
    max-width: 1600px;
    padding-inline: clamp(1.25rem, 3vw, 2.5rem);
}

#cta .text-center.max-w-2xl.mx-auto.scroll-reveal {
    position: relative;
    max-width: 1320px !important;
    margin: 0 auto;
    padding: clamp(1.75rem, 3vw, 2.75rem);
    border-radius: 2rem;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
    gap: clamp(1.5rem, 4vw, 4.5rem);
    align-items: center;
    text-align: left !important;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(2, 6, 23, 0.94), rgba(15, 23, 42, 0.92));
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 28px 80px rgba(2, 6, 23, 0.34);
}

#cta .text-center.max-w-2xl.mx-auto.scroll-reveal::before {
    content: '';
    position: absolute;
    inset: 1rem;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(125deg, rgba(255, 255, 255, 0.04), transparent 34%, transparent 72%, rgba(59, 130, 246, 0.08));
    pointer-events: none;
}

#cta .text-center.max-w-2xl.mx-auto.scroll-reveal::after {
    content: '';
    position: absolute;
    right: 6%;
    bottom: -18%;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.18), transparent 68%);
    filter: blur(32px);
    pointer-events: none;
}

#cta .text-center.max-w-2xl.mx-auto.scroll-reveal > * {
    position: relative;
    z-index: 1;
}

#cta h2 {
    margin-bottom: 1rem !important;
    font-size: clamp(2.4rem, 4.8vw, 4.6rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
    max-width: 12ch;
}

#cta p.text-gray-400 {
    margin-bottom: 0 !important;
    max-width: 36rem;
    font-size: clamp(1rem, 1.35vw, 1.18rem);
    line-height: 1.9;
    color: #cbd5e1 !important;
}

#cta .flex.justify-center.gap-5.flex-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start !important;
    gap: 1rem !important;
    align-items: center;
    padding: 1.5rem;
    border-radius: 1.5rem;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.7), rgba(2, 6, 23, 0.88));
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

#cta .flex.justify-center.gap-5.flex-wrap::before {
    content: 'Ready when you are';
    width: 100%;
    margin-bottom: 0.35rem;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.9);
}

#cta .btn-primary,
#cta .btn-secondary {
    min-width: 11.75rem;
    min-height: 3.65rem;
    border-radius: 1rem;
    padding-inline: 1.35rem;
}

#cta .btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(148, 163, 184, 0.18);
    color: #f8fafc;
    opacity: 1;
}

#cta .btn-secondary:hover {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.28);
    color: #fff;
}

[data-theme="light"] #cta .text-center.max-w-2xl.mx-auto.scroll-reveal {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(241, 245, 249, 0.97));
    border-color: rgba(148, 163, 184, 0.22);
    box-shadow: 0 24px 56px rgba(148, 163, 184, 0.18);
}

[data-theme="light"] #cta .text-center.max-w-2xl.mx-auto.scroll-reveal::before {
    border-color: rgba(255, 255, 255, 0.62);
    background: linear-gradient(125deg, rgba(255, 255, 255, 0.78), transparent 34%, transparent 72%, rgba(59, 130, 246, 0.06));
}

[data-theme="light"] #cta .text-center.max-w-2xl.mx-auto.scroll-reveal::after {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08), transparent 68%);
}

[data-theme="light"] #cta p.text-gray-400 {
    color: #475569 !important;
}

[data-theme="light"] #cta .flex.justify-center.gap-5.flex-wrap {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.98));
    border-color: rgba(148, 163, 184, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-theme="light"] #cta .flex.justify-center.gap-5.flex-wrap::before {
    color: #64748b;
}

[data-theme="light"] #cta .btn-secondary {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(148, 163, 184, 0.24);
    color: #0f172a;
}

@media (max-width: 980px) {
    #cta .text-center.max-w-2xl.mx-auto.scroll-reveal {
        grid-template-columns: 1fr;
        text-align: center !important;
    }

    #cta h2,
    #cta p.text-gray-400 {
        max-width: none;
    }

    #cta .flex.justify-center.gap-5.flex-wrap {
        justify-content: center !important;
    }
}

@media (max-width: 767px) {
    #cta {
        padding: 4rem 0;
    }

    #cta .container {
        padding-inline: 1rem;
    }

    #cta .text-center.max-w-2xl.mx-auto.scroll-reveal {
        padding: 1.35rem;
        border-radius: 1.5rem;
    }

    #cta .flex.justify-center.gap-5.flex-wrap {
        padding: 1rem;
    }

    #cta .btn-primary,
    #cta .btn-secondary {
        width: 100%;
        min-width: 0;
    }
}

/* ===== About Page Redesign ===== */
.about-page-main {
    padding: calc(var(--nav-height) + clamp(2rem, 4vw, 3rem)) 0 clamp(4rem, 7vw, 6rem);
    background: transparent;
    position: relative;
}

.about-page-shell {
    width: min(100%, 1600px);
    max-width: 1600px;
    padding-inline: clamp(1.25rem, 3vw, 2.5rem);
}

.about-page-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: clamp(2rem, 4vw, 3rem);
    padding: clamp(1.5rem, 3vw, 2.4rem);
    border-radius: 2rem;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    gap: clamp(1.5rem, 4vw, 4rem);
    align-items: center;
    background: linear-gradient(145deg, rgba(2, 6, 23, 0.94), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 32px 90px rgba(2, 6, 23, 0.34);
}

.about-page-hero::before {
    content: '';
    position: absolute;
    inset: 1rem;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(125deg, rgba(255, 255, 255, 0.04), transparent 32%, transparent 72%, rgba(59, 130, 246, 0.08));
    pointer-events: none;
}

.about-page-hero::after {
    content: '';
    position: absolute;
    inset: auto -5% -20% auto;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.16), transparent 68%);
    filter: blur(30px);
    pointer-events: none;
}

.about-page-hero-copy::after {
    content: '';
    position: absolute;
    left: -6%;
    top: -16%;
    width: 76%;
    height: 170%;
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(16, 185, 129, 0.22), rgba(16, 185, 129, 0.02)),
        linear-gradient(180deg, rgba(59, 130, 246, 0.16), rgba(59, 130, 246, 0.02));
    opacity: 0.42;
    pointer-events: none;
    z-index: -1;
    transform: rotate(24deg);
}

.about-page-hero-copy,
.about-page-hero-card,
.about-story-panel,
.about-details-panel {
    position: relative;
    z-index: 1;
}

.about-page-kicker,
.about-story-label {
    margin-bottom: 1rem;
    font-size: 0.78rem;
    letter-spacing: 0.32em;
}

.about-page-title {
    margin: 0 0 1rem;
    font-size: clamp(2.7rem, 5vw, 5.2rem);
    line-height: 0.96;
    letter-spacing: -0.06em;
    color: #f8fafc;
}

.about-page-lead {
    margin: 0;
    max-width: 44rem;
    font-size: clamp(1rem, 1.35vw, 1.15rem);
    line-height: 1.9;
    color: #cbd5e1;
}

.about-page-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.about-page-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.18);
    color: #d1fae5;
    font-weight: 600;
}

.about-page-badge-blue {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.18);
    color: #bfdbfe;
}

.about-page-hero-card {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.about-page-portrait {
    position: relative;
    min-height: 500px;
    border-radius: 1.75rem;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 24px 70px rgba(2, 6, 23, 0.34);
}

.about-page-portrait::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 35%;
    background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.45));
    pointer-events: none;
}

.about-page-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-page-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.about-page-stat {
    padding: 1rem;
    border-radius: 1.15rem;
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.08), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(16, 185, 129, 0.14);
    text-align: center;
}

.about-page-stat strong {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 1.15rem;
    color: #f8fafc;
}

.about-page-stat span {
    color: #94a3b8;
    font-size: 0.92rem;
}

.about-story-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
    gap: clamp(1.25rem, 3vw, 2rem);
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.about-story-panel,
.about-details-panel,
.about-skill-panel {
    padding: clamp(1.35rem, 2.5vw, 2rem);
    border-radius: 1.75rem;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.86), rgba(2, 6, 23, 0.92));
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 20px 60px rgba(2, 6, 23, 0.24);
}

.about-story-panel {
    background:
        radial-gradient(circle at top left, rgba(16, 185, 129, 0.16), transparent 34%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.94));
    border-color: rgba(16, 185, 129, 0.18);
}

.about-details-panel {
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.18), transparent 36%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.94));
    border-color: rgba(59, 130, 246, 0.18);
}

.about-skill-panel {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 0%, rgba(139, 92, 246, 0.18), transparent 34%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.95));
}

.about-skill-panel::after {
    content: '';
    position: absolute;
    inset: auto -8% -22% 42%;
    height: 170px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.16), rgba(59, 130, 246, 0.14), rgba(139, 92, 246, 0.12));
    filter: blur(16px);
    opacity: 0.8;
    pointer-events: none;
}

.about-story-title {
    margin: 0 0 1rem;
    font-size: clamp(2rem, 3.2vw, 3rem);
    line-height: 1.04;
}

.about-story-text {
    margin: 0 0 1rem;
    font-size: 1.03rem;
    line-height: 1.9;
}

.about-story-text:last-child {
    margin-bottom: 0;
}

.about-details-list {
    display: grid;
    gap: 0.85rem;
}

.about-detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.08), rgba(15, 23, 42, 0.18));
    border: 1px solid rgba(59, 130, 246, 0.14);
}

.about-detail-label {
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #94a3b8;
}

.about-detail-item strong {
    color: #f8fafc;
    font-size: 1rem;
    word-break: break-word;
}

.about-skills-section {
    margin-top: clamp(2rem, 4vw, 3rem);
}

.about-skills-header {
    max-width: 1320px;
    margin: 0 auto clamp(2rem, 4vw, 3rem) !important;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
    gap: clamp(1.5rem, 4vw, 5rem);
    align-items: end;
    text-align: left;
}

.about-skills-title {
    margin: 0;
    font-size: clamp(2.4rem, 4.3vw, 4rem);
    line-height: 1;
    letter-spacing: -0.05em;
    color: #f8fafc;
}

.about-skills-copy {
    margin: 0;
    font-size: 1rem;
    line-height: 1.9;
}

.about-skills-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.25rem, 3vw, 2rem);
    max-width: 1320px;
    margin: 0 auto;
}

.about-skill-panel-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 1.5rem;
    font-size: 1.55rem;
    color: #93c5fd;
}

.about-skill-panel .skill-item + .skill-item {
    margin-top: 1.2rem;
}

.about-skill-panel .w-full.bg-dark.rounded-full {
    background: rgba(2, 6, 23, 0.85) !important;
    border-color: rgba(148, 163, 184, 0.16) !important;
}

[data-theme="light"] .about-page-hero,
[data-theme="light"] .about-story-panel,
[data-theme="light"] .about-details-panel,
[data-theme="light"] .about-skill-panel {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(241, 245, 249, 0.97));
    border-color: rgba(148, 163, 184, 0.2);
    box-shadow: 0 24px 56px rgba(148, 163, 184, 0.16);
}

[data-theme="light"] .about-page-hero::before {
    border-color: rgba(255, 255, 255, 0.62);
    background: linear-gradient(125deg, rgba(255, 255, 255, 0.8), transparent 34%, transparent 72%, rgba(59, 130, 246, 0.06));
}

[data-theme="light"] .about-page-hero::after {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08), transparent 68%);
}

[data-theme="light"] .about-page-title,
[data-theme="light"] .about-story-title,
[data-theme="light"] .about-skills-title,
[data-theme="light"] .about-detail-item strong,
[data-theme="light"] .about-page-stat strong {
    color: #0f172a;
}

[data-theme="light"] .about-page-lead,
[data-theme="light"] .about-story-text,
[data-theme="light"] .about-skills-copy {
    color: #475569;
}

[data-theme="light"] .about-page-badge {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.14);
    color: #047857;
}

[data-theme="light"] .about-page-badge-blue {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.14);
    color: #1d4ed8;
}

[data-theme="light"] .about-page-stat {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(148, 163, 184, 0.16);
}

[data-theme="light"] .about-page-stat span,
[data-theme="light"] .about-detail-label {
    color: #64748b;
}

[data-theme="light"] .about-detail-item {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(148, 163, 184, 0.16);
}

[data-theme="light"] .about-skill-panel-title {
    color: #2563eb;
}

[data-theme="light"] .about-skill-panel .w-full.bg-dark.rounded-full {
    background: rgba(226, 232, 240, 0.8) !important;
    border-color: rgba(148, 163, 184, 0.18) !important;
}

@media (max-width: 1100px) {
    .about-page-hero,
    .about-story-grid,
    .about-skills-grid,
    .about-skills-header {
        grid-template-columns: 1fr;
    }

    .about-page-portrait {
        min-height: 420px;
    }
}

@media (max-width: 767px) {
    .about-page-main {
        padding: calc(var(--nav-height) + 1.5rem) 0 4rem;
    }

    .about-page-shell {
        padding-inline: 1rem;
    }

    .about-page-hero,
    .about-story-panel,
    .about-details-panel,
    .about-skill-panel {
        padding: 1.25rem;
        border-radius: 1.4rem;
    }

    .about-page-title {
        font-size: clamp(1.9rem, 8.2vw, 2.75rem);
        line-height: 1.02;
    }

    .about-story-title {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
        line-height: 1.08;
    }

    .about-skills-title {
        font-size: clamp(1.75rem, 7.4vw, 2.45rem);
        line-height: 1.05;
    }

    .about-page-portrait {
        min-height: 340px;
    }

    .about-page-stats {
        grid-template-columns: 1fr;
    }
}

/* ===== Projects Page Redesign ===== */
.projects-page-main {
    padding: calc(var(--nav-height) + clamp(2rem, 4vw, 3rem)) 0 clamp(4rem, 7vw, 6rem);
    position: relative;
}

.projects-page-shell {
    width: min(100%, 1600px);
    max-width: 1600px;
    padding-inline: clamp(1.25rem, 3vw, 2.5rem);
}

.projects-page-kicker {
    margin-bottom: 1rem;
    font-size: 0.78rem;
    letter-spacing: 0.32em;
}

.projects-gallery-section {
    position: relative;
}

.projects-gallery-section::before {
    content: '';
    position: absolute;
    inset: 1% 0 auto;
    height: 240px;
    background:
        radial-gradient(circle at 12% 32%, rgba(16, 185, 129, 0.18), transparent 32%),
        radial-gradient(circle at 84% 18%, rgba(59, 130, 246, 0.16), transparent 28%),
        linear-gradient(90deg, transparent 8%, rgba(139, 92, 246, 0.16) 28%, rgba(16, 185, 129, 0.14) 52%, rgba(59, 130, 246, 0.16) 76%, transparent 94%);
    filter: blur(24px);
    opacity: 0.78;
    pointer-events: none;
}

.projects-gallery-header {
    max-width: 1320px;
    margin: 0 auto clamp(2rem, 4vw, 3rem) !important;
    text-align: left;
    position: relative;
    padding: 0 clamp(0.15rem, 1vw, 0.5rem);
}

.projects-gallery-header::before {
    content: '';
    position: absolute;
    left: -3%;
    top: -3.5rem;
    width: min(68vw, 720px);
    height: 180px;
    border-radius: 999px;
    background: linear-gradient(100deg, rgba(16, 185, 129, 0.16), rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.14));
    opacity: 0.72;
    filter: blur(16px);
    transform: rotate(-14deg);
    pointer-events: none;
}

.projects-gallery-title {
    margin: 0;
    max-width: 20ch;
    font-size: clamp(2.45rem, 4vw, 4.2rem);
    line-height: 1.04;
    letter-spacing: -0.05em;
    color: #f8fafc;
}

.projects-gallery-grid {
    position: relative;
    max-width: 1320px;
    margin: 0 auto;
    gap: clamp(1.15rem, 2vw, 1.7rem) !important;
}

.projects-gallery-grid::before {
    content: '';
    position: absolute;
    inset: -6% 3% auto;
    height: 420px;
    background:
        radial-gradient(circle at 12% 24%, rgba(16, 185, 129, 0.16), transparent 34%),
        radial-gradient(circle at 88% 18%, rgba(59, 130, 246, 0.14), transparent 30%);
    filter: blur(20px);
    pointer-events: none;
}

.project-page-card {
    position: relative;
    min-height: 100%;
    border-radius: 1.6rem !important;
    border: 1px solid rgba(148, 163, 184, 0.14) !important;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.88), rgba(2, 6, 23, 0.95)) !important;
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.26);
    overflow: hidden;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.project-page-card:nth-child(3n + 1) {
    border-color: rgba(16, 185, 129, 0.18) !important;
    background:
        radial-gradient(circle at top left, rgba(16, 185, 129, 0.16), transparent 32%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.95)) !important;
}

.project-page-card:nth-child(3n + 2) {
    border-color: rgba(59, 130, 246, 0.18) !important;
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.16), transparent 32%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.95)) !important;
}

.project-page-card:nth-child(3n) {
    border-color: rgba(139, 92, 246, 0.18) !important;
    background:
        radial-gradient(circle at 20% 0%, rgba(139, 92, 246, 0.16), transparent 34%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.95)) !important;
}

.project-page-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.06), transparent 32%, transparent 74%, rgba(16, 185, 129, 0.08));
    pointer-events: none;
}

.project-page-card:hover {
    transform: translateY(-10px);
    border-color: rgba(16, 185, 129, 0.34) !important;
    box-shadow: 0 34px 80px rgba(2, 6, 23, 0.4);
}

.project-page-card:nth-child(even):hover {
    border-color: rgba(59, 130, 246, 0.34) !important;
}

.project-page-card .h-64 {
    height: clamp(220px, 22vw, 290px);
    position: relative;
}

.project-page-card .h-64::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 40%;
    background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.68));
    pointer-events: none;
}

.project-page-card .p-6 {
    position: relative;
    z-index: 1;
    padding: 1.35rem 1.35rem 1.5rem !important;
    gap: 0.75rem;
}

.project-page-card h3 {
    margin-bottom: 0 !important;
    font-size: 1.32rem !important;
    line-height: 1.18;
}

.project-page-card p {
    font-size: 0.98rem !important;
    line-height: 1.8;
    color: #cbd5e1 !important;
}

.project-page-card .w-16.h-16 {
    width: 4rem;
    height: 4rem;
    box-shadow: 0 24px 40px rgba(2, 6, 23, 0.34);
}

[data-theme="light"] .project-page-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(241, 245, 249, 0.97)) !important;
    border-color: rgba(148, 163, 184, 0.2) !important;
    box-shadow: 0 24px 56px rgba(148, 163, 184, 0.16);
}

[data-theme="light"] .projects-gallery-title {
    color: #0f172a;
}

[data-theme="light"] .project-page-card p {
    color: #475569 !important;
}

[data-theme="light"] .project-page-card::before {
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.82), transparent 34%, transparent 74%, rgba(16, 185, 129, 0.04));
}

[data-theme="light"] .project-page-card .h-64::after {
    background: linear-gradient(180deg, transparent, rgba(248, 250, 252, 0.26));
}

@media (max-width: 767px) {
    .projects-page-main {
        padding: calc(var(--nav-height) + 1.5rem) 0 4rem;
    }

    .projects-page-shell {
        padding-inline: 1rem;
    }

    .projects-gallery-title {
        max-width: none;
        font-size: clamp(1.9rem, 8vw, 2.7rem);
        line-height: 1.05;
    }

    .project-page-card {
        border-radius: 1.3rem !important;
    }

    .project-page-card .p-6 {
        padding: 1.1rem 1.1rem 1.25rem !important;
    }

    .projects-gallery-section::before,
    .projects-gallery-header::before,
    .about-page-hero-copy::after,
    .about-skill-panel::after,
    .contact-page-hero-copy::after {
        display: none;
    }
}

/* ===== Contact Page Redesign ===== */
.contact-page-main {
    padding: calc(var(--nav-height) + clamp(2rem, 4vw, 3rem)) 0 clamp(4rem, 7vw, 6rem);
    position: relative;
}

.contact-page-shell {
    width: min(100%, 1600px);
    max-width: 1600px;
    padding-inline: clamp(1.25rem, 3vw, 2.5rem);
}

.contact-page-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: clamp(2rem, 4vw, 3rem);
    padding: clamp(1.5rem, 3vw, 2.4rem);
    border-radius: 2rem;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
    gap: clamp(1.5rem, 4vw, 4rem);
    align-items: center;
    background: linear-gradient(145deg, rgba(2, 6, 23, 0.94), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 30px 90px rgba(2, 6, 23, 0.34);
}

.contact-page-hero::before {
    content: '';
    position: absolute;
    inset: 1rem;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(125deg, rgba(255, 255, 255, 0.04), transparent 34%, transparent 72%, rgba(59, 130, 246, 0.08));
    pointer-events: none;
}

.contact-page-hero::after {
    content: '';
    position: absolute;
    inset: auto 4% -20% auto;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.16), transparent 68%);
    filter: blur(32px);
    pointer-events: none;
}

.contact-page-hero-copy::after {
    content: '';
    position: absolute;
    left: -4%;
    top: -2.5rem;
    width: min(66vw, 680px);
    height: 170px;
    border-radius: 999px;
    background: linear-gradient(100deg, rgba(16, 185, 129, 0.15), rgba(59, 130, 246, 0.14), rgba(236, 72, 153, 0.14));
    opacity: 0.78;
    filter: blur(18px);
    transform: rotate(-12deg);
    pointer-events: none;
    z-index: -1;
}

.contact-page-hero-copy,
.contact-page-hero-badges,
.contact-info-panel,
.contact-form-panel {
    position: relative;
    z-index: 1;
}

.contact-page-kicker {
    margin-bottom: 1rem;
    font-size: 0.78rem;
    letter-spacing: 0.32em;
}

.contact-page-title {
    margin: 0 0 1rem;
    max-width: 15ch;
    font-size: clamp(2.7rem, 5vw, 4.8rem);
    line-height: 0.97;
    letter-spacing: -0.06em;
    color: #f8fafc;
}

.contact-page-lead,
.contact-panel-copy {
    margin: 0;
    font-size: clamp(1rem, 1.35vw, 1.14rem);
    line-height: 1.9;
    color: #cbd5e1;
}

.contact-page-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: flex-start;
}

.contact-page-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.18);
    color: #d1fae5;
    font-weight: 600;
}

.contact-page-badge-blue {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.18);
    color: #bfdbfe;
}

.contact-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
    gap: clamp(1.25rem, 3vw, 2rem);
    max-width: 1320px;
    margin: 0 auto;
}

.contact-info-panel,
.contact-form-panel {
    padding: clamp(1.35rem, 2.5vw, 2rem);
    border-radius: 1.75rem;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.86), rgba(2, 6, 23, 0.92));
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 20px 60px rgba(2, 6, 23, 0.24);
}

.contact-info-panel {
    background:
        radial-gradient(circle at top left, rgba(16, 185, 129, 0.16), transparent 34%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.94));
    border-color: rgba(16, 185, 129, 0.18);
}

.contact-form-panel {
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.18), transparent 34%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.95));
    border-color: rgba(59, 130, 246, 0.18);
}

.contact-panel-title {
    margin: 0 0 1rem;
    font-size: clamp(2rem, 3.2vw, 3rem);
    line-height: 1.04;
    color: #f8fafc;
}

.contact-methods {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.05rem;
    border-radius: 1.1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(148, 163, 184, 0.1);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.3s ease, transform 0.3s ease, background 0.3s ease;
}

.contact-method:nth-child(odd) {
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.06), rgba(255, 255, 255, 0.02));
    border-color: rgba(16, 185, 129, 0.12);
}

.contact-method:nth-child(even) {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.07), rgba(255, 255, 255, 0.02));
    border-color: rgba(59, 130, 246, 0.12);
}

.contact-method:hover {
    transform: translateY(-3px);
    border-color: rgba(16, 185, 129, 0.24);
    background: rgba(16, 185, 129, 0.05);
}

.contact-method-icon {
    width: 3.1rem;
    height: 3.1rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.16);
    color: var(--accent);
    flex-shrink: 0;
}

.contact-method-text {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.contact-method-label {
    font-size: 0.76rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #94a3b8;
}

.contact-method-text strong {
    color: #f8fafc;
    font-size: 1rem;
    word-break: break-word;
}

.contact-form {
    display: grid;
    gap: 1rem;
}

.contact-input {
    width: 100%;
    background: rgba(2, 6, 23, 0.76);
    border: 1px solid rgba(51, 65, 85, 0.8);
    border-radius: 1rem;
    padding: 0.95rem 1rem;
    color: #f8fafc;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.contact-input:focus {
    outline: none;
    border-color: rgba(16, 185, 129, 0.7);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.08);
    background: rgba(2, 6, 23, 0.92);
}

.contact-textarea {
    resize: vertical;
    min-height: 150px;
}

[data-theme="light"] .contact-page-hero,
[data-theme="light"] .contact-info-panel,
[data-theme="light"] .contact-form-panel {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(241, 245, 249, 0.97));
    border-color: rgba(148, 163, 184, 0.2);
    box-shadow: 0 24px 56px rgba(148, 163, 184, 0.16);
}

[data-theme="light"] .contact-page-hero::before {
    border-color: rgba(255, 255, 255, 0.62);
    background: linear-gradient(125deg, rgba(255, 255, 255, 0.8), transparent 34%, transparent 72%, rgba(59, 130, 246, 0.06));
}

[data-theme="light"] .contact-page-hero::after {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08), transparent 68%);
}

[data-theme="light"] .contact-page-title,
[data-theme="light"] .contact-panel-title,
[data-theme="light"] .contact-method-text strong {
    color: #0f172a;
}

[data-theme="light"] .contact-page-lead,
[data-theme="light"] .contact-panel-copy {
    color: #475569;
}

[data-theme="light"] .contact-page-badge {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.14);
    color: #047857;
}

[data-theme="light"] .contact-page-badge-blue {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.14);
    color: #1d4ed8;
}

[data-theme="light"] .contact-method {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(148, 163, 184, 0.16);
}

[data-theme="light"] .contact-method-label {
    color: #64748b;
}

[data-theme="light"] .contact-input {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(148, 163, 184, 0.22);
    color: #0f172a;
}

[data-theme="light"] .contact-input:focus {
    background: #ffffff;
}

[data-theme="light"] .about-page-hero-copy::after,
[data-theme="light"] .projects-gallery-header::before,
[data-theme="light"] .contact-page-hero-copy::after {
    opacity: 0.46;
}

[data-theme="light"] .about-detail-item {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.08), rgba(255, 255, 255, 0.72));
    border-color: rgba(59, 130, 246, 0.14);
}

[data-theme="light"] .project-page-card:nth-child(3n + 1) {
    background:
        radial-gradient(circle at top left, rgba(16, 185, 129, 0.12), transparent 34%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(241, 245, 249, 0.97)) !important;
}

[data-theme="light"] .project-page-card:nth-child(3n + 2) {
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 34%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(241, 245, 249, 0.97)) !important;
}

[data-theme="light"] .project-page-card:nth-child(3n) {
    background:
        radial-gradient(circle at 20% 0%, rgba(139, 92, 246, 0.12), transparent 34%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(241, 245, 249, 0.97)) !important;
}

[data-theme="light"] .contact-method:nth-child(odd) {
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.08), rgba(255, 255, 255, 0.72));
    border-color: rgba(16, 185, 129, 0.14);
}

[data-theme="light"] .contact-method:nth-child(even) {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.08), rgba(255, 255, 255, 0.72));
    border-color: rgba(59, 130, 246, 0.14);
}

@media (max-width: 1100px) {
    .contact-page-hero,
    .contact-content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .contact-page-main {
        padding: calc(var(--nav-height) + 1.5rem) 0 4rem;
    }

    .contact-page-shell {
        padding-inline: 1rem;
    }

    .contact-page-hero,
    .contact-info-panel,
    .contact-form-panel {
        padding: 1.25rem;
        border-radius: 1.4rem;
    }

    .contact-page-title {
        max-width: none;
        font-size: clamp(1.95rem, 8.4vw, 2.8rem);
        line-height: 1.04;
    }
}
