:root {
    /* Color Palette using OKLCH & HEX */
    --bg-dark: #07070a;
    --bg-darker: #040406;
    --bg-surface: rgba(13, 14, 23, 0.65);
    --bg-surface-elevated: rgba(20, 22, 36, 0.85);
    --bg-surface-hover: rgba(28, 31, 51, 0.9);
    
    --neon-blue: #00f3ff;
    --neon-blue-dim: rgba(0, 243, 255, 0.12);
    --neon-blue-glow: rgba(0, 243, 255, 0.35);
    
    --accent-purple: #bd00ff;
    --accent-purple-dim: rgba(189, 0, 255, 0.15);
    --accent-purple-glow: rgba(189, 0, 255, 0.35);
    
    --accent-green: #10b981;
    --accent-amber: #f59e0b;
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dark: #64748b;
    
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'Fira Code', monospace;
    
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    
    --container-width: 1240px;
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
}

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

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.7;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

#root, .app-root {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #07070a;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--neon-blue);
}

/* Background Interactive Grid & Spotlight */
#interactive-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 48px 48px;
    background-position: center center;
    mask-image: radial-gradient(circle at center, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 90%);
    -webkit-mask-image: radial-gradient(circle at center, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 90%);
}

#spotlight {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 243, 255, 0.06) 0%, rgba(189, 0, 255, 0.03) 45%, transparent 75%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
    transition: left 0.12s ease-out, top 0.12s ease-out;
}

/* Subtle Noise Texture */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Container & Global Spacing */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

.section {
    padding: 6.5rem 0;
    position: relative;
    z-index: 1;
    width: 100%;
}

.section-header {
    margin-bottom: 3rem;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--neon-blue);
    margin-bottom: 0.75rem;
    background: rgba(0, 243, 255, 0.08);
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
    border: 1px solid rgba(0, 243, 255, 0.2);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 1rem;
    word-break: break-word;
}

.section-description {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 650px;
    line-height: 1.65;
}

.dot {
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--neon-blue-glow);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    background-color: rgba(7, 7, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.1rem 0;
    transition: var(--transition-slow);
}

.navbar.scrolled {
    top: 16px;
    width: min(90%, var(--container-width));
    border-radius: 100px;
    background-color: rgba(13, 14, 23, 0.9);
    border: var(--glass-border);
    box-shadow: 
        0 20px 40px -15px rgba(0, 0, 0, 0.8),
        0 0 30px rgba(0, 243, 255, 0.06);
    padding: 0.75rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

.logo-badge {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 0.15rem 0.4rem;
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.2), rgba(189, 0, 255, 0.2));
    border: 1px solid rgba(0, 243, 255, 0.3);
    color: var(--neon-blue);
}

.nav-links {
    display: flex;
    gap: 1.75rem;
    align-items: center;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
    padding: 0.3rem 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-main);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-blue), var(--accent-purple));
    box-shadow: 0 0 8px var(--neon-blue-glow);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.nav-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.15), rgba(189, 0, 255, 0.15));
    border: 1px solid rgba(0, 243, 255, 0.4);
    color: #fff;
    padding: 0.55rem 1.15rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: var(--transition);
    flex-shrink: 0;
}

.nav-cta-btn:hover {
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.3), rgba(189, 0, 255, 0.3));
    box-shadow: 0 0 20px var(--neon-blue-glow);
    transform: translateY(-1px);
}

/* Mobile Menu Button & Drawer */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    z-index: 1001;
    padding: 8px;
    border-radius: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition);
    border-radius: 2px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(4, 4, 6, 0.8);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 2000;
}

.mobile-nav-drawer {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: min(300px, 82vw);
    height: 100vh;
    height: 100dvh;
    background: #0d0e17;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem 1.5rem;
    flex-direction: column;
    gap: 1rem;
    z-index: 2005;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -20px 0 40px rgba(0,0,0,0.85);
    overflow-y: auto;
}

.mobile-nav-drawer.open {
    transform: translateX(0);
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 7.5rem;
    padding-bottom: 4rem;
    overflow: hidden;
    width: 100%;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: auto;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
    width: 100%;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #34d399;
    margin-bottom: 1.25rem;
}

.status-dot {
    width: 7px;
    height: 7px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
    animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.6; }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5.5vw, 4.4rem);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
    color: #fff;
    word-break: break-word;
}

.hero-highlight {
    background: linear-gradient(135deg, var(--neon-blue) 0%, #38bdf8 50%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    filter: drop-shadow(0 0 25px rgba(0, 243, 255, 0.35));
}

.hero-description {
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 2rem;
    max-width: 680px;
}

.hero-description span {
    background-color: #ea00ffab;
    color: #ffffff;
    border-radius: 5px;
    padding: 0 3px
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 2.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.8rem;
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--neon-blue), #00b4d8);
    color: #07070a;
    font-weight: 700;
    box-shadow: 0 0 25px var(--neon-blue-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 35px rgba(0, 243, 255, 0.6);
    filter: brightness(1.1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 243, 255, 0.4);
    transform: translateY(-2px);
}

/* Hero Quick Badges */
.hero-badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-badge-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hero-badge-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon-blue);
    flex-shrink: 0;
}

.hero-badge-text {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.hero-badge-text strong {
    color: var(--text-main);
    display: block;
    font-size: 0.9rem;
}

/* Dynamic Phrase in Contact Section - Pure Upward Transition */
.dynamic-phrase {
    position: relative;
    display: inline-block;
    vertical-align: baseline;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--neon-blue);
    text-shadow: 0 0 20px var(--neon-blue-glow);
    overflow: visible;
}

.phrase-wrapper {
    display: inline-block;
    white-space: nowrap;
    vertical-align: baseline;
}

.phrase-wrapper.incoming {
    position: absolute;
    left: 0;
    top: 0;
    pointer-events: none;
}

.letter {
    display: inline-block;
    opacity: 1;
    transform: translateY(0);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.6s ease;
    transition-delay: calc(var(--char-index) * 0.03s);
}

.phrase-wrapper.exiting .letter {
    transform: translateY(-26px);
    opacity: 0;
}

.phrase-wrapper.entering .letter {
    transform: translateY(26px);
    opacity: 0;
}

.phrase-wrapper.entering.active .letter {
    transform: translateY(0);
    opacity: 1;
}

/* About & Stats Grid */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
    width: 100%;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    font-size: 1rem;
    color: var(--text-muted);
}

.about-highlight-box {
    padding: 1.25rem;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.05), rgba(189, 0, 255, 0.05));
    border: 1px solid rgba(0, 243, 255, 0.15);
    margin-top: 0.25rem;
}

.about-highlight-box p {
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.9rem;
}

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

.stat-card {
    background: var(--bg-surface);
    border: var(--glass-border);
    backdrop-filter: blur(16px);
    border-radius: 18px;
    padding: 1.5rem 1.25rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-blue), var(--accent-purple));
    opacity: 0;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 243, 255, 0.3);
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 243, 255, 0.1);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.2vw, 2.5rem);
    font-weight: 800;
    color: #fff;
    display: block;
    margin-bottom: 0.2rem;
    line-height: 1.1;
    background: linear-gradient(135deg, #fff 40%, var(--neon-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    word-break: break-word;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
}

/* Services Grid & Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.service-card {
    background: var(--bg-surface);
    border: var(--glass-border);
    backdrop-filter: blur(16px);
    border-radius: 22px;
    padding: 2.25rem 1.75rem;
    position: relative;
    transition: var(--transition);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 22px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.5), transparent 60%, rgba(189, 0, 255, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-5px);
    background: var(--bg-surface-hover);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 243, 255, 0.12);
}

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

.service-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: rgba(0, 243, 255, 0.08);
    border: 1px solid rgba(0, 243, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon-blue);
    margin-bottom: 1.25rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.service-card:hover .service-icon-wrapper {
    background: rgba(0, 243, 255, 0.18);
    box-shadow: 0 0 20px var(--neon-blue-glow);
    transform: rotate(8deg) scale(1.05);
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 1.25rem;
}

.service-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.service-features li svg {
    color: var(--neon-blue);
    flex-shrink: 0;
}

/* Tech Stack Grid */
.tech-tabs {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tech-tab-btn {
    background: rgba(255, 255, 255, 0.04);
    border: var(--glass-border);
    color: var(--text-muted);
    padding: 0.45rem 1.15rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.tech-tab-btn.active, .tech-tab-btn:hover {
    background: rgba(0, 243, 255, 0.12);
    border-color: rgba(0, 243, 255, 0.4);
    color: #fff;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.1rem;
    width: 100%;
}

.tech-card {
    background: var(--bg-surface);
    border: var(--glass-border);
    backdrop-filter: blur(16px);
    border-radius: 16px;
    padding: 1.35rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    transition: var(--transition);
    position: relative;
    cursor: pointer;
}

.tech-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 243, 255, 0.35);
    background: var(--bg-surface-hover);
    box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 243, 255, 0.12);
}

.tech-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon-blue);
    flex-shrink: 0;
}

.tech-card span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

.tech-card small {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* Why Me Grid */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.why-card {
    background: var(--bg-surface);
    border: var(--glass-border);
    backdrop-filter: blur(16px);
    border-radius: 18px;
    padding: 2rem 1.75rem;
    transition: var(--transition);
}

.why-card:hover {
    transform: translateY(-4px);
    border-color: rgba(189, 0, 255, 0.3);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6), 0 0 30px rgba(189, 0, 255, 0.1);
}

.why-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(189, 0, 255, 0.1);
    border: 1px solid rgba(189, 0, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e879f9;
    margin-bottom: 1.1rem;
    flex-shrink: 0;
}

.why-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.6rem;
}

.why-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Projects Showcase */
.project-filters {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.04);
    border: var(--glass-border);
    color: var(--text-muted);
    padding: 0.45rem 1.15rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-btn.active, .filter-btn:hover {
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.2), rgba(189, 0, 255, 0.2));
    border-color: rgba(0, 243, 255, 0.5);
    color: #fff;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.75rem;
    width: 100%;
}

.project-card {
    background: var(--bg-surface);
    border: var(--glass-border);
    backdrop-filter: blur(16px);
    border-radius: 22px;
    padding: 2rem 1.75rem;
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Ensure card text and controls remain crisp above background preview */
.project-card > *:not(.project-card-preview) {
    position: relative;
    z-index: 2;
}

/* Interactive Background iframe Preview Container */
.project-card-preview {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    transform: scale(1.04);
}

.project-card:hover .project-card-preview {
    opacity: 1;
    transform: scale(1);
}

.project-preview-iframe {
    width: 1200px;
    height: 850px;
    border: none;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    transform-origin: top left;
    transform: scale(0.32);
    background: #07070a;
}

.project-card-preview-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg, 
        rgba(7, 7, 10, 0.74) 0%, 
        rgba(11, 19, 33, 0.86) 55%, 
        rgba(7, 7, 10, 0.95) 100%
    );
    pointer-events: none;
    z-index: 2;
}

.project-card:hover {
    transform: translateY(-5px);
    background: var(--bg-surface-hover);
    border-color: rgba(0, 243, 255, 0.35);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 243, 255, 0.12);
}

.project-category-tag {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--neon-blue);
    background: rgba(0, 243, 255, 0.08);
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 0.85rem;
    width: fit-content;
}

.project-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
}

.project-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
}

.project-tag {
    font-size: 0.72rem;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    color: #cbd5e1;
}

.project-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--neon-blue);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-fast);
}

.project-link:hover {
    gap: 0.6rem;
    color: #fff;
    text-shadow: 0 0 10px var(--neon-blue-glow);
}

.project-details-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.82rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: var(--transition-fast);
    padding: 4px 0;
}

.project-details-btn:hover {
    color: #fff;
}

/* Contact Section & Form */
.contact .section-title {
    font-size: clamp(1.9rem, 4vw, 3rem);
    display: block;
    line-height: 1.25;
}

.contact .section-title .title-static {
    display: inline;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 3.5rem;
    width: 100%;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info-card {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    background: var(--bg-surface);
    border: var(--glass-border);
    padding: 1.1rem 1.35rem;
    border-radius: 16px;
}

.contact-info-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(0, 243, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon-blue);
    flex-shrink: 0;
}

.contact-form {
    background: var(--bg-surface);
    border: var(--glass-border);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2.25rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 1.25rem;
    width: 100%;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
}

.form-input, .form-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.85rem 1.15rem;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-fast);
}

.form-input:focus, .form-textarea:focus {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--neon-blue);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
}

select.form-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #0d0e17;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2300f3ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.15rem center;
    background-size: 14px;
    padding-right: 2.75rem;
    cursor: pointer;
    color: #f8fafc;
}

select.form-input option {
    background-color: #0d0e17;
    color: #f8fafc;
    padding: 10px;
    font-size: 0.9rem;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-feedback {
    margin-top: 1rem;
    padding: 0.85rem;
    border-radius: 10px;
    font-size: 0.9rem;
    display: none;
}
.form-feedback.success {
    display: block;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #34d399;
}
.form-feedback.error {
    display: block;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #f87171;
}

/* Footer */
.footer {
    padding: 3.5rem 0 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background-color: var(--bg-darker);
    position: relative;
    z-index: 1;
    width: 100%;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    width: 100%;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.4rem;
}

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

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.footer-link:hover {
    color: var(--neon-blue);
}

/* Modal Dialogs */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 4, 6, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.25s ease-out;
}

.modal-overlay.open {
    display: flex;
}

.modal-card {
    background: #0d0e17;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    width: min(650px, 100%);
    max-height: 85vh;
    max-height: 85dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 40px rgba(0, 243, 255, 0.1);
    animation: scaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.modal-header h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

.modal-close-btn {
    background: rgba(255, 255, 255, 0.06);
    border: none;
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.65;
}

.modal-body h4 {
    color: #fff;
    margin: 1.1rem 0 0.4rem 0;
    font-size: 1rem;
}

.modal-body ul {
    margin-left: 1.1rem;
    margin-bottom: 0.85rem;
}

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

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.96) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Comprehensive Mobile & Tablet Responsive Media Queries */
@media (max-width: 992px) {
    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        left: 0;
        transform: none;
        width: 100%;
        border-radius: 0 !important;
        top: 0 !important;
        padding: 0.85rem 1rem !important;
        background-color: rgba(7, 7, 10, 0.95) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    
    .nav-links, .nav-cta-btn {
        display: none !important;
    }
    
    .mobile-menu-btn {
        display: flex;
        margin-left: auto;
    }

    .mobile-backdrop.active {
        display: block;
    }

    .mobile-nav-drawer {
        display: flex;
    }

    .mobile-nav-drawer.open {
        transform: translateX(0);
    }

    .mobile-nav-drawer .nav-link {
        font-size: 1.15rem;
        font-weight: 600;
        padding: 0.5rem 0;
    }

    .container {
        padding: 0 1.25rem;
    }

    .section {
        padding: 4.5rem 0;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .hero {
        padding-top: 6rem;
        padding-bottom: 3rem;
        min-height: auto;
    }

    .hero-title {
        font-size: clamp(2rem, 7vw, 3.2rem);
        margin-bottom: 1rem;
    }

    .hero-badges {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.85rem;
    }

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

    .stat-card {
        padding: 1.15rem 0.9rem;
        border-radius: 16px;
    }

    .stat-number {
        font-size: clamp(1.4rem, 5vw, 1.85rem);
        line-height: 1.1;
    }

    .stat-label {
        font-size: 0.78rem;
    }

    .stat-card p {
        font-size: 0.72rem;
        line-height: 1.35;
    }

    .services-grid, .projects-grid, .why-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .service-card, .project-card, .why-card {
        padding: 1.75rem 1.25rem;
        border-radius: 18px;
    }

    .tech-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 0.75rem;
    }

    .tech-card {
        padding: 1.1rem 0.75rem;
        border-radius: 14px;
    }

    .contact-form {
        padding: 1.75rem 1.25rem;
        border-radius: 20px;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-badges {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .stat-card {
        padding: 1.25rem 1.1rem;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.65rem;
    }

    .tech-tabs, .project-filters {
        gap: 0.35rem;
    }

    .tech-tab-btn, .filter-btn {
        font-size: 0.78rem;
        padding: 0.35rem 0.75rem;
    }

    .project-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .project-actions .project-link, .project-actions .project-details-btn {
        width: 100%;
        justify-content: center;
    }
}
