﻿/* Fonts are loaded via /assets/css/fonts.css (self-hosted) */

/* ==========================================================================
   CSS Variables — Deep Indigo / Violet Portfolio Theme
   ========================================================================== */

:root {
    /* Background (Deep Midnight theme) */
    --bg-base:            #0b0c1e;
    --bg-dark:            #0e0f27;
    --bg-surface:         #131530;
    --bg-surface-2:       #1a1d3d;
    --bg-card:            rgba(13, 15, 50, 0.7);

    /* Accent (Blue & Purple) */
    --neon:               #8B5CF6; /* Electric Purple */
    --neon-blue:          #A78BFA; /* Electric Blue */
    --neon-mid:           #7C3AED;
    --neon-dark:          #6D28D9;
    --accent-pink:        #FF00D4;
    --accent-gradient:    linear-gradient(135deg, #A78BFA 0%, #6D28D9 100%);
    --accent-glow:        0 0 30px rgba(139, 92, 246, 0.35), 0 0 80px rgba(167, 139, 250, 0.15);
    --accent-glow-blue:   0 0 30px rgba(167, 139, 250, 0.3), 0 0 80px rgba(139, 92, 246, 0.1);
    --accent-orange:      #FF6B00;
    --accent-orange-glow: 0 0 30px rgba(255, 107, 0, 0.4), 0 0 80px rgba(255, 107, 0, 0.15);

    /* Text */
    --text-primary:       #FFFFFF;
    --text-secondary:     #94A3B8;
    --text-muted:         #64748B;

    /* UI */
    --border:             rgba(255, 255, 255, 0.08);
    --border-hover:       rgba(139, 92, 246, 0.3);
    --border-solid:       rgba(255, 255, 255, 0.05);

    /* Typography */
    --font-heading:       'Clash Display', sans-serif;
    --font-body:          'Inter', sans-serif;

    /* Spacing */
    --container-max:      1240px;
    --sp-xs:              0.5rem;
    --sp-sm:              1rem;
    --sp-md:              2rem;
    --sp-lg:              4rem;
    --sp-xl:              6rem;

    /* Effects */
    --radius-sm:          8px;
    --radius-md:          14px;
    --radius-lg:          24px;
    --radius-pill:        999px;
    --transition:         0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Base Reset
   ========================================================================== */

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

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
}

/* Smoky Background Effect */
body::before, body::after {
    content: '';
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 150vw; height: 150vh;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.06) 0%, transparent 60%);
    filter: blur(100px);
    animation: smokeDrift 20s linear infinite;
}

body::after {
    background: radial-gradient(circle, rgba(167, 139, 250, 0.04) 0%, transparent 50%);
    animation-direction: reverse;
    animation-duration: 25s;
}

@keyframes smokeDrift {
    0% { transform: translate(-50%, -50%) rotate(0deg) scale(1); }
    50% { transform: translate(-45%, -55%) rotate(180deg) scale(1.1); }
    100% { transform: translate(-50%, -50%) rotate(360deg) scale(1); }
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

p { color: var(--text-secondary); font-size: 1.05rem; line-height: 1.75; }
a { text-decoration: none; color: var(--neon); transition: var(--transition); }
a:hover { color: #fff; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font-family: var(--font-body); }

.container {
    width: 92%;
    max-width: var(--container-max);
    margin: 0 auto;
}

/* ==========================================================================
   Utilities
   ========================================================================== */

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

.bg-text-outline {
    position: absolute;
    font-size: clamp(5rem, 15vw, 12rem);
    font-weight: 900;
    line-height: 1;
    z-index: 0;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.03);
    text-transform: uppercase;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}

.glass-card {
    background: rgba(15, 15, 15, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-solid);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.glass-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-5px);
    background: rgba(15, 15, 15, 0.6);
}

/* Marquee Animation */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    padding: 20px 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-solid);
    border-bottom: 1px solid var(--border-solid);
}

.marquee-content {
    display: inline-block;
    animation: marquee 30s linear infinite;
    padding-left: 100%;
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    margin-right: 60px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-primary);
}

.marquee-item span { color: var(--neon); }

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

/* Circular Stat */
.stat-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--bg-surface-2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: var(--transition);
}

.stat-circle::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 4px solid var(--neon);
    clip-path: polygon(50% 50%, 50% 0, 100% 0, 100% 100%, 0 100%, 0 0, 50% 0);
    transform: rotate(45deg); /* Dynamic part */
}

.stat-circle:hover {
    border-color: var(--border-hover);
    box-shadow: var(--accent-glow);
}


.site-frame {
    margin: 20px;
    border: 1px solid var(--border-solid);
    border-radius: var(--radius-lg);
    background: var(--bg-dark);
    min-height: calc(100vh - 40px);
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 100px rgba(0,0,0,0.6);
}

.section { padding: var(--sp-xl) 0; }
.text-center { text-align: center; }

.badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(139, 92, 246, 0.1);
    color: var(--neon);
    border: 1px solid rgba(139, 92, 246, 0.2);
    margin-bottom: var(--sp-sm);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 30px;
    border-radius: var(--radius-pill);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--accent-glow);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid rgba(139, 92, 246, 0.3);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    border-color: var(--neon);
    background: rgba(139, 92, 246, 0.1);
    color: var(--text-primary);
}

.btn-pink {
    background: var(--accent-pink);
    color: #fff;
    box-shadow: 0 4px 20px rgba(255, 62, 108, 0.3);
}

.btn-pink:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 62, 108, 0.45);
    background: #ff527a;
}

.cta-group {
    display: flex;
    gap: var(--sp-sm);
    flex-wrap: wrap;
    align-items: center;
}

/* ==========================================================================
   Header
   ========================================================================== */

.main-header {
    position: fixed;
    top: 20px; left: 50%;
    transform: translateX(-50%);
    width: 95%; max-width: var(--container-max);
    z-index: 1000;
    padding: 12px 24px;
    background: rgba(11, 12, 30, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-solid);
    border-radius: var(--radius-pill);
    transition: var(--transition);
}

.main-header.scrolled {
    top: 10px;
    background: rgba(11, 12, 30, 0.85);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.main-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.04em;
}

.logo a span { color: var(--neon); }

.main-nav ul {
    display: flex !important;
    flex-direction: row !important;
    gap: 36px;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 1.5px;
    background: var(--neon);
    transition: var(--transition);
}

.main-nav a:hover { color: var(--text-primary); }
.main-nav a:hover::after { width: 100%; }

/* ==========================================================================
   HERO Section
   ========================================================================== */

.hero {
    min-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

/* Animated background blobs */
.hero-bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    animation: blobPulse 6s ease-in-out infinite alternate;
}

.hero-bg-blob-1 {
    width: 50vw; height: 50vw;
    top: -15%; left: -5%;
    background: radial-gradient(circle, rgba(109, 40, 217,0.18) 0%, transparent 70%);
}

.hero-bg-blob-2 {
    width: 35vw; height: 35vw;
    bottom: -10%; right: 0;
    background: radial-gradient(circle, rgba(139, 92, 246,0.12) 0%, transparent 70%);
    animation-delay: -3s;
}

@keyframes blobPulse {
    0% { transform: scale(1) translate(0,0); }
    100% { transform: scale(1.1) translate(2%, 4%); }
}

.hero .container {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    position: relative;
    z-index: 1;
}

@media (min-width: 1024px) {
    .hero .container > * {
        flex: 1;
    }
}

/* LEFT – Profile Image */
.hero-image-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-image-blob {
    position: relative;
    width: 420px;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Irregular mask for the profile image */
.hero-image-mask {
    width: 380px;
    height: 380px;
    background: var(--bg-surface-2);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    overflow: hidden;
    position: relative;
    z-index: 5;
    animation: blobMorph 8s linear infinite alternate;
    box-shadow: 0 0 50px rgba(139, 92, 246, 0.2);
}

.hero-image-mask img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
}

/* The spinning glow ring behind the image */
.hero-spinning-ring {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, 
        transparent 0%, 
        rgba(139, 92, 246, 0.6) 20%, 
        transparent 40%, 
        rgba(139, 92, 246, 0.8) 70%, 
        transparent 100%
    );
    animation: spinRing 4s linear infinite;
    z-index: 3;
    filter: blur(15px);
}

/* The static blue glow base */
.hero-glow-base {
    position: absolute;
    width: 110%; height: 110%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
    z-index: 1;
    filter: blur(20px);
}

@keyframes blobMorph {
    0% { border-radius: 60% 40% 30% 70% / 60% 31% 69% 40%; }
    50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    100% { border-radius: 60% 40% 30% 70% / 60% 31% 69% 40%; }
}

@keyframes spinRing {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-glow-dot {
    position: absolute;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--neon);
    box-shadow: 0 0 15px var(--neon), 0 0 40px var(--neon);
    z-index: 4;
}

.hero-glow-dot-1 { top: 10%; right: 5%; }
.hero-glow-dot-2 { bottom: 15%; left: 3%; animation: dotPulse 2s ease-in-out infinite alternate; }

@keyframes dotPulse {
    0% { opacity: 0.6; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.4); }
}

/* RIGHT – Hero Text */
.hero-content { max-width: 560px; }

.hero-greeting {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 500;
}

.hero-name {
    font-size: clamp(2.8rem, 5vw, 4.2rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 12px;
    letter-spacing: -0.04em;
    color: #fff;
}

.hero-role {
    font-size: clamp(1.4rem, 2.8vw, 2rem);
    font-weight: 700;
    color: var(--neon);
    margin-bottom: var(--sp-md);
    min-height: 1.5em;
    display: flex;
    align-items: center;
}

.hero-role .cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background: var(--neon);
    margin-left: 3px;
    vertical-align: middle;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.hero-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: var(--sp-md);
    line-height: 1.8;
}

/* Social icons */
.social-links {
    display: flex;
    gap: 14px;
    margin-bottom: var(--sp-md);
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    transition: var(--transition);
}

.social-links a:hover {
    background: rgba(139, 92, 246,0.1);
    border-color: var(--neon);
    color: var(--text-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(139, 92, 246,0.25);
}

/* Stats bar (Bottom of Hero) */
.hero-stats-bar {
    position: absolute;
    bottom: 0; left: 0; 
    width: 100%;
    padding: 30px 0;
    border-top: 1px solid var(--border-solid);
    background: rgba(11, 12, 30, 0.4);
    backdrop-filter: blur(10px);
}

.hero-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.hero-stat {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    position: relative;
    text-align: left;
}

.hero-stat + .hero-stat::before {
    content: '';
    position: absolute;
    left: -20px; top: 0; bottom: 0;
    width: 1.5px;
    background: var(--border-solid);
}

.hero-stat-value {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.2;
    max-width: 100px;
}

/* ==========================================================================
   Section Titles
   ========================================================================== */

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    text-align: center;
    margin-bottom: 12px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 560px;
    margin: 0 auto var(--sp-lg);
}

/* ==========================================================================
   Services Grid Section
   ========================================================================== */

.services-section {
    padding: var(--sp-xl) 0;
    background: var(--bg-base);
    position: relative;
    overflow: hidden;
}

.services-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: flex-end;
    margin-bottom: var(--sp-lg);
}

.services-header .section-title {
    text-align: left;
    margin: 0;
}

.services-header .section-desc {
    max-width: 500px;
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-solid);
    border-radius: var(--radius-lg);
    padding: 40px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 480px;
    position: relative;
    overflow: hidden;
}

.service-card .service-cat {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--neon);
    margin-bottom: 12px;
}

.service-card .service-title {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 30px;
    color: #fff;
}

.service-card .service-image {
    width: 100%;
    height: 180px;
    margin: 20px 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card .service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-card .card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.service-card .price-wrap {
    display: flex;
    flex-direction: column;
}

.service-card .price-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.service-card .price-val {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.service-card .circle-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-solid);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: var(--transition);
}

.service-card:hover .circle-btn {
    background: var(--neon);
    border-color: var(--neon);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

/* Featured / Middle Card - Orange Theme */
.service-card.featured {
    background: var(--accent-orange);
    border-color: transparent;
    box-shadow: var(--accent-orange-glow);
}

.service-card.featured .service-cat,
.service-card.featured .service-title,
.service-card.featured .price-label,
.service-card.featured .price-val {
    color: #000;
}

.service-card.featured .service-cat {
    opacity: 0.7;
}

.service-card.featured .circle-btn {
    background: #000;
    border-color: #000;
    color: var(--accent-orange);
}

.service-card.featured:hover .circle-btn {
    background: #fff;
    border-color: #fff;
    color: #000;
}

.service-card.featured .service-image {
    background: rgba(0, 0, 0, 0.1);
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .services-header {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    .service-card {
        min-height: auto;
    }
}

/* ==========================================================================
   Portfolio Grid (Recent Works)
   ========================================================================== */

.portfolio-filters {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--sp-md);
}

.filter-btn {
    padding: 8px 22px;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid var(--border-solid);
    background: transparent;
    color: var(--text-secondary);
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--accent-gradient);
    border-color: transparent;
    color: #fff;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.portfolio-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-solid);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.portfolio-card:hover {
    transform: translateY(-6px);
    border-color: rgba(139, 92, 246,0.3);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.portfolio-card-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
    background: var(--bg-surface-2);
}

.portfolio-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-card-img img {
    transform: scale(1.06);
}

.portfolio-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5,10,18,0.9) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-card:hover .portfolio-card-overlay { opacity: 1; }

.portfolio-card-body {
    padding: 18px;
}

.portfolio-card-cat {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--neon);
    margin-bottom: 6px;
}

.portfolio-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* ==========================================================================
   Skills Section
   ========================================================================== */

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

.skill-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-solid);
    border-radius: var(--radius-md);
    padding: var(--sp-md);
    transition: var(--transition);
}

.skill-card:hover {
    border-color: rgba(139, 92, 246,0.3);
}

.skill-name {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.95rem;
    font-weight: 600;
}

.skill-bar {
    height: 6px;
    background: var(--bg-surface-2);
    border-radius: var(--radius-pill);
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: var(--radius-pill);
    transform-origin: left;
    animation: growBar 1.5s ease forwards;
    transform: scaleX(0);
}

@keyframes growBar {
    to { transform: scaleX(1); }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.main-footer {
    padding: var(--sp-lg) 0 var(--sp-md);
    border-top: 1px solid var(--border-solid);
    text-align: center;
}

.footer-bottom {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ==========================================================================
   ====================== DASHBOARD ========================================
   ========================================================================== */

.dashboard-page {
    min-height: 100vh;
    background: var(--bg-dark);
    padding-top: 90px;
}

.dashboard-layout {
    display: flex;
    min-height: calc(100vh - 90px);
    width: 100%;
}

/* Sidebar */
.dashboard-sidebar {
    width: 260px;
    min-width: 260px;
    background: var(--bg-surface);
    border-right: 1px solid var(--border-solid);
    padding: 30px 0;
    position: sticky;
    top: 90px;
    height: calc(100vh - 90px);
    overflow-y: auto;
    flex-shrink: 0;
}

.sidebar-brand {
    padding: 0 24px 24px;
    border-bottom: 1px solid var(--border-solid);
    margin-bottom: 16px;
}

.sidebar-brand h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.sidebar-brand p {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin: 0;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    color: var(--text-primary);
    background: rgba(139, 92, 246,0.06);
    border-left-color: var(--neon);
}

.sidebar-nav a .nav-icon {
    width: 18px;
    text-align: center;
    font-size: 1rem;
}

/* Main Content Area */
.dashboard-main {
    flex-grow: 1;
    padding: 40px;
    overflow-y: auto;
}

/* Dashboard Header */
.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 36px;
}

.dashboard-header h1 {
    font-size: 1.6rem;
    font-weight: 700;
}

/* Alert messages */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: rgba(0, 200, 100, 0.1);
    border: 1px solid rgba(0,200,100,0.2);
    color: #00e87a;
}

.alert-error {
    background: rgba(255, 60, 60, 0.1);
    border: 1px solid rgba(255,60,60,0.2);
    color: #ff6060;
}

/* Tabs */
.dash-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    padding: 4px;
    width: fit-content;
    margin-bottom: 32px;
}

.dash-tab-btn {
    padding: 10px 24px;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.dash-tab-btn.active {
    background: var(--accent-gradient);
    color: #fff;
}

.dash-tab-content { display: none; }
.dash-tab-content.active { display: block; }

/* Form Styles */
.dash-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-solid);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 24px;
}

.dash-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-solid);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-grid.cols-1 { grid-template-columns: 1fr; }
.form-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-group.full { grid-column: 1 / -1; }

.form-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.form-group input,
.form-group textarea,
.form-group select {
    background: var(--bg-base);
    border: 1px solid var(--border-solid);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    padding: 12px 16px;
    transition: var(--transition);
    width: 100%;
    outline: none;
    appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--neon);
    box-shadow: 0 0 0 3px rgba(139, 92, 246,0.1);
}

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

.form-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-solid);
}

/* Stats Builder */
.stats-builder {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.stat-input-card {
    background: var(--bg-base);
    border: 1px solid var(--border-solid);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stat-input-card label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.stat-input-card input {
    background: var(--bg-surface);
    border: 1px solid var(--border-solid);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    padding: 9px 12px;
    outline: none;
    transition: var(--transition);
    width: 100%;
}

.stat-input-card input:focus {
    border-color: var(--neon);
}

/* Projects Table */
.projects-table-wrap {
    overflow-x: auto;
}

.projects-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.projects-table th,
.projects-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border-solid);
}

.projects-table th {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    background: var(--bg-base);
}

.projects-table td { color: var(--text-secondary); }
.projects-table td strong { color: var(--text-primary); }

.projects-table tr:hover td { background: rgba(139, 92, 246,0.03); }

.projects-table .project-thumb {
    width: 56px; height: 40px;
    border-radius: 6px;
    object-fit: cover;
    background: var(--bg-surface-2);
}

.action-link {
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
    cursor: pointer;
}

.action-link.delete {
    color: #ff6060;
    border-color: rgba(255,96,96,0.25);
    background: rgba(255,96,96,0.06);
}

.action-link.delete:hover {
    background: rgba(255,96,96,0.15);
    color: #ff4040;
}

.action-link.edit {
    color: var(--neon);
    border-color: rgba(139, 92, 246,0.25);
    background: rgba(139, 92, 246,0.06);
}

.project-cat-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(139, 92, 246,0.1);
    color: var(--neon);
    border: 1px solid rgba(139, 92, 246,0.15);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state p { color: var(--text-muted); }

/* Dashboard Stats Cards */
.dash-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 30px;
}

.dash-stat-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-solid);
    border-radius: var(--radius-md);
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: var(--transition);
}

.dash-stat-card:hover { border-color: rgba(139, 92, 246,0.25); }

.dash-stat-card .label {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.dash-stat-card .value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    font-family: var(--font-heading);
    line-height: 1;
}

.dash-stat-card .value.text-neon { color: var(--neon); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .hero-stat + .hero-stat::before { display: none; }
}

@media (max-width: 900px) {
    .dashboard-layout { grid-template-columns: 1fr; }
    .dashboard-sidebar {
        position: static;
        height: auto;
        padding: 16px 0;
    }
    .dashboard-main { padding: 24px 16px; }
    .stats-builder { grid-template-columns: repeat(2, 1fr); }
    .dash-stats-row { grid-template-columns: repeat(2, 1fr); }
    .form-grid.cols-3 { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   About Page Specifics
   ========================================================================== */

.about-page-wrapper {
    padding-top: 60px;
}

.about-hero-image-wrap {
    position: relative;
    display: inline-block;
}

.about-profile-img {
    width: 480px;
    height: auto;
    position: relative;
    z-index: 2;
}

.about-hero-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 120%; height: 120%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
    z-index: 1;
    filter: blur(40px);
}

.floating-label {
    position: absolute;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 12px 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.label-projects { top: 20%; left: -80px; }
.label-reviews { bottom: 15%; right: -100px; }

.floating-label strong { color: var(--neon); font-size: 1.2rem; }
.floating-label span { font-size: 0.8rem; color: var(--text-secondary); }
.stars { color: #FFB800; font-size: 0.8rem; margin-bottom: 4px; }

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-solid);
    border-radius: var(--radius-lg);
    padding: 30px;
    display: flex;
    gap: 20px;
    text-align: left;
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--neon);
    transform: translateY(-5px);
    background: rgba(139, 92, 246, 0.05);
}

.service-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.service-content h3 { font-size: 1.25rem; margin-bottom: 8px; }
.service-content p { font-size: 0.95rem; }

/* Benefits Row */
.benefits-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    margin-top: 50px;
}

.benefit-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.benefit-item strong { font-size: 2.4rem; color: #fff; }
.benefit-item span { font-size: 0.95rem; color: var(--text-secondary); }

/* Pricing Table */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-solid);
    border-radius: var(--radius-lg);
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    transition: var(--transition);
    position: relative;
}

.pricing-card.featured {
    border-color: var(--neon);
    background: rgba(139, 92, 246, 0.02);
    transform: scale(1.05);
    z-index: 2;
}

.p-header .p-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(139, 92, 246, 0.1);
    color: var(--neon);
    border-radius: var(--radius-pill);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    margin-bottom: 20px;
}

.p-header p { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 15px; }

.p-price { font-size: 3rem; font-weight: 800; color: #fff; }
.p-price span { font-size: 1rem; color: var(--text-muted); font-weight: 400; }

.p-features { list-style: none; text-align: left; margin: 0; padding: 0; }
.p-features li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-solid);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.p-features li::before {
    content: '✓';
    color: var(--neon);
    font-weight: 700;
}

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

@media (max-width: 1024px) {
    .pricing-grid, .services-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-card.featured { transform: scale(1); }
    .label-projects, .label-reviews { position: static; margin-top: 10px; text-align: left; }
}

@media (max-width: 768px) {
    .pricing-grid, .services-grid { grid-template-columns: 1fr; }
    .benefits-row { flex-direction: column; gap: 30px; }
    .about-profile-img { width: 100%; height: auto; }
}

/* ==========================================================================
   Services Page Specifics (Neon Layout)
   ========================================================================== */

.services-page-neon {
    background: #000;
}

.services-hero-section {
    padding: 100px 0 60px;
}

.services-title {
    font-size: clamp(3.5rem, 8vw, 7rem);
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.03em;
    color: #fff;
}

.breadcrumbs {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.breadcrumbs a { color: var(--text-secondary); }
.breadcrumbs span.active { color: var(--neon); }

/* Ticker Animation */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    background: var(--neon);
    padding: 20px 0;
    border-top: 2px solid #000;
    border-bottom: 2px solid #000;
    display: flex;
}

.ticker-bottom { 
    background: #000; 
    border-top: 1px solid var(--neon);
    border-bottom: 1px solid var(--neon);
    color: var(--neon); 
}

.ticker {
    display: flex;
    white-space: nowrap;
    animation: ticker-scroll 30s linear infinite;
    padding-left: 100%; /* Start from outside */
}

.ticker-item {
    font-size: 1.8rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #000;
    margin-right: 60px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.ticker-bottom .ticker-item { color: var(--neon); }

.ticker-item span { 
    font-size: 1.4rem; 
    color: rgba(0,0,0,0.5); 
}

.ticker-bottom .ticker-item span {
    color: var(--neon);
}

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

/* Specialization Section */
.specialization-section {
    position: relative;
    padding-top: 140px;
    padding-bottom: 100px;
}

.outline-text {
    position: absolute;
    top: 60px; left: 50%;
    transform: translateX(-50%);
    font-size: clamp(5rem, 18vw, 15rem);
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.04);
    z-index: 1;
    pointer-events: none;
    text-transform: uppercase;
    white-space: nowrap;
}

.badge-tag {
    display: inline-block;
    padding: 8px 18px;
    border: 1px dashed var(--neon);
    color: var(--neon);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
    background: #000;
}

.services-neon-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
    position: relative;
    z-index: 2;
}

.service-neon-card {
    background: #080808;
    border-radius: 12px;
    padding: 45px 35px;
    text-align: left;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.service-neon-card:hover {
    background: #0D0D0D;
    border-color: rgba(139, 92, 246, 0.2);
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.card-neon-bar {
    position: absolute;
    top: 45px; left: 0;
    width: 4px; height: 32px;
    background: var(--neon);
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 10px var(--neon);
}

.card-icon-box {
    width: 55px; height: 55px;
    background: #111;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 30px;
    border: 1px solid rgba(255,255,255,0.03);
}

.service-neon-card h3 { 
    font-size: 1.6rem; 
    margin-bottom: 18px; 
    color: #fff;
    font-weight: 700;
}

.service-neon-card p { 
    font-size: 1rem; 
    color: var(--text-secondary); 
    margin-bottom: 30px; 
    line-height: 1.7; 
}

.learn-more {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--neon);
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: var(--transition);
}

.learn-more span { transition: transform 0.3s ease; }
.learn-more:hover span { transform: translateX(8px); }

/* CTA Section */
.cta-section-neon {
    padding: 140px 0;
    background: radial-gradient(circle at center, rgba(139, 92, 246, 0.04) 0%, transparent 75%);
}

.cta-big-text {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    max-width: 1000px;
    margin: 0 auto;
    line-height: 1.1;
    color: #fff;
}

.pill-btn {
    border-radius: 50px;
    padding: 18px 45px;
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.25);
}

/* Tag Cloud */
.tag-cloud-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    margin-top: 100px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.tag-pill {
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: default;
}

.tag-pill.color-1 { background: var(--neon); color: #000; }
.tag-pill.color-2 { background: #fff; color: #000; }
.tag-pill.color-3 { border: 1.5px solid rgba(255,255,255,0.15); color: #fff; }
.tag-pill.color-4 { background: #111; color: #fff; border: 1px solid rgba(255,255,255,0.05); }

.tag-pill:hover { transform: translateY(-5px) scale(1.05); }

@media (max-width: 1100px) {
    .services-neon-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .services-neon-grid { grid-template-columns: 1fr; }
    .outline-text { display: none; }
    .cta-big-text { font-size: 2.2rem; }
}

/* ==========================================================================
   Pricing & Services Page Styles
   ========================================================================== */

.pricing-cat-card {
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 35px;
    transition: var(--transition);
}

.pricing-cat-card:hover {
    border-color: var(--neon);
    transform: translateY(-8px);
    box-shadow: var(--accent-glow);
}

.price-tag {
    background: rgba(139, 92, 246, 0.1);
    color: var(--neon);
    border: 1px solid rgba(139, 92, 246, 0.2);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
}

.pack-card {
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    text-align: center;
    transition: all 0.5s ease;
}

.pack-card:hover {
    border-color: var(--neon);
    background: radial-gradient(circle at top, rgba(139, 92, 246, 0.08), transparent);
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(139, 92, 246, 0.15);
}

.pack-price span {
    font-size: 3rem;
    font-weight: 900;
}

/* ==========================================================================
   Dashboard Services Tab Styles
   ========================================================================== */

.srv-item {
    transition: var(--transition);
}

.srv-item:hover {
    background: rgba(139, 92, 246, 0.05) !important;
    border-color: rgba(139, 92, 246, 0.2) !important;
    transform: translateX(5px);
}

.service-cat-group h3 {
    font-family: var(--font-heading);
    color: var(--neon);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.action-link {
    cursor: pointer;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
}

.action-link.edit:hover { background: rgba(139, 92, 246, 0.1); border-color: var(--neon); color: var(--neon); }
.action-link.delete:hover { background: rgba(255, 62, 108, 0.1); border-color: #FF3E6C; color: #FF3E6C; }

/* ==========================================================================
   Contact Page Specifics
   ========================================================================== */

.contact-hero {
    position: relative;
    overflow: hidden;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-card {
    display: flex;
    gap: 24px;
    align-items: center;
    padding: 30px;
}

.info-icon {
    width: 60px;
    height: 60px;
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon);
    flex-shrink: 0;
}

.info-content h4 {
    font-size: 0.8rem;
    color: var(--neon);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 8px;
}

.info-content p {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.contact-form-card {
    padding: 50px;
}

.contact-form-card h3 {
    font-size: 2rem;
    margin-bottom: 40px;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-field.full { grid-column: span 2; }

.form-field label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-field input, 
.form-field textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-solid);
    border-radius: 12px;
    padding: 16px 20px;
    color: #fff;
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
}

.form-field input:focus, 
.form-field textarea:focus {
    border-color: var(--neon);
    background: rgba(139, 92, 246, 0.02);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.1);
}

.contact-bonus-section {
    border-top: 1px solid var(--border-solid);
    padding: 100px 0;
    text-align: center;
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

/* ==========================================================================
   Language Switcher
   ========================================================================== */

.lang-switcher {
    position: relative;
    display: inline-block;
    margin-right: 20px;
}
.lang-current {
    background: none;
    border: 1px solid var(--border-solid);
    color: var(--text-primary);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition);
}
.lang-current:hover {
    border-color: var(--neon);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.1);
}
.lang-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-surface);
    border: 1px solid var(--border-solid);
    border-radius: var(--radius-md);
    padding: 8px;
    list-style: none;
    min-width: 60px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1001;
}
.lang-switcher:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    top: calc(100% + 5px);
}
.lang-dropdown a {
    display: block;
    padding: 6px 12px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    border-radius: 4px;
}
.lang-dropdown a:hover {
    color: var(--neon);
    background: rgba(139, 92, 246, 0.05);
}

/* ==========================================================================
   HEADER — Structure & Desktop
   ========================================================================== */

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 4px;
}

.header-btn-devis {
    padding: 10px 22px;
    font-size: 0.85rem;
}

/* Hamburger button — hidden on desktop */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: 1px solid var(--border-solid);
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 8px;
    flex-shrink: 0;
}

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

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 4, 18, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 50px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    padding: 40px 24px;
}

.mobile-nav-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: 1px solid var(--border-solid);
    color: var(--text-secondary);
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.mobile-nav-close:hover {
    border-color: var(--neon);
    color: var(--neon);
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-nav-list li a {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 8vw, 2.8rem);
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    padding: 8px 0;
    letter-spacing: -0.02em;
}

.mobile-nav-list li a:hover {
    color: var(--neon);
}

.mobile-nav-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    max-width: 340px;
}

/* ==========================================================================
   HERO — Desktop structure
   ========================================================================== */

.hero-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* ==========================================================================
   CONTACT — Home Page Grid
   ========================================================================== */

.contact-hp-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 80px;
    align-items: start;
}

/* ==========================================================================
   FOOTER — Structure
   ========================================================================== */

.footer-cta-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 80px;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--border-solid);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* ==========================================================================
   ABOUT PAGE — Grids
   ========================================================================== */

.about-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 100px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.distinction-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.awards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-stat-circles {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

/* ==========================================================================
   PORTFOLIO GRID
   ========================================================================== */

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* ==========================================================================
   ██████████████████████  RESPONSIVE  ██████████████████████
   ========================================================================== */

/* ── Tablet Large (≤ 1100px) ──────────────────────────────────────────── */
@media (max-width: 1100px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    .about-hero-grid {
        gap: 60px;
    }
}

/* ── Tablet (≤ 960px) ─────────────────────────────────────────────────── */
@media (max-width: 960px) {

    /* site-frame */
    .site-frame {
        margin: 10px;
        min-height: calc(100vh - 20px);
    }

    /* Header: hide nav + desktop actions, show burger */
    .main-nav,
    .header-actions .lang-switcher,
    .header-actions .theme-toggle,
    .header-btn-devis {
        display: none !important;
    }

    /* Show only primary CTA + burger */
    .header-actions .btn-primary {
        padding: 9px 18px;
        font-size: 0.82rem;
    }

    .mobile-menu-btn {
        display: flex;
    }

    /* Hero */
    .hero-flex {
        flex-direction: column-reverse;
        gap: 40px;
        text-align: center;
    }

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

    .hero-image-blob {
        width: 300px !important;
        height: 300px !important;
    }

    .hero-image-mask {
        width: 280px !important;
        height: 280px !important;
    }

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

    .social-links {
        justify-content: center;
    }

    .hero-stats {
        flex-wrap: wrap;
        justify-content: center;
        gap: 30px;
    }

    .hero-stat + .hero-stat::before {
        display: none;
    }

    /* About hero */
    .about-hero-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .about-image-wrap {
        max-width: 280px;
        margin: 0 auto;
    }

    .about-stat-circles {
        justify-content: center;
    }

    /* Philosophy */
    .philosophy-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    /* Portfolio */
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    /* Contact HP */
    .contact-hp-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Footer CTA */
    .footer-cta-inner {
        flex-direction: column;
        text-align: center;
    }

    /* Footer grid */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Distinction & Awards */
    .distinction-grid,
    .awards-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Section padding reduction */
    section[style*="padding: 120px"],
    section[style*="padding: 160px"] {
        padding-top: 80px !important;
        padding-bottom: 80px !important;
    }
}

/* ── Mobile (≤ 640px) ─────────────────────────────────────────────────── */
@media (max-width: 640px) {

    /* site-frame : no margin, no radius on very small screens */
    .site-frame {
        margin: 0;
        border-radius: 0;
        border-left: none;
        border-right: none;
        min-height: 100vh;
    }

    /* Header: full-width pill becomes a bar */
    .main-header {
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        transform: none;
        border-radius: 0;
        border-top: none;
        border-left: none;
        border-right: none;
        border-radius: 0 0 var(--radius-md) var(--radius-md);
    }

    .main-header.scrolled {
        top: 0;
        border-radius: 0 0 var(--radius-md) var(--radius-md);
    }

    /* Hero image */
    .hero-image-blob {
        width: 220px !important;
        height: 220px !important;
    }

    .hero-image-mask {
        width: 200px !important;
        height: 200px !important;
    }

    /* Hero text */
    .hero-stats {
        gap: 20px;
    }

    .hero-stat {
        flex: 0 0 45%;
    }

    /* Philosophy: single column */
    .philosophy-grid {
        grid-template-columns: 1fr;
    }

    /* Portfolio: single column */
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    /* Footer grid: single column */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 50px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    /* About: hide floating labels (overflow issues) */
    .about-image-wrap .glass-card[style*="right: -50px"],
    .about-image-wrap .glass-card[style*="left: -50px"] {
        display: none;
    }

    /* About stat circles: wrap */
    .about-stat-circles {
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
    }

    /* Reduced section padding */
    .section,
    .section[style] {
        padding: var(--sp-lg) 0 !important;
    }

    /* Contact form grid: single col */
    .contact-form-grid {
        grid-template-columns: 1fr;
    }

    .form-field.full {
        grid-column: span 1;
    }

    /* Glass card padding reduction */
    .glass-card {
        padding: 24px !important;
    }

    /* Container width */
    .container {
        width: 94%;
    }

    /* Marquee item font reduction */
    .marquee-item {
        font-size: 1.1rem;
        margin-right: 40px;
    }

    /* Section title */
    .section-title {
        font-size: 1.6rem;
    }

    /* Btn full width in some contexts */
    .cta-group {
        flex-direction: column;
        width: 100%;
    }

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

/* ==========================================================================
   SINGLE PROJECT — Details bar & Case Study
   ========================================================================== */

.project-details-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding: 40px 0;
}

.case-study-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
}

.case-study-row--reverse {
    grid-template-columns: 2fr 1fr;
}

@media (max-width: 768px) {
    .project-details-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        padding: 30px 0;
    }

    .case-study-row,
    .case-study-row--reverse {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .case-study-row--reverse h2 {
        text-align: left !important;
        order: -1;
    }
}

@media (max-width: 480px) {
    .project-details-inner {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
}

/* ── Section padding overrides (inline style targets) ──────────────────── */
@media (max-width: 960px) {
    /* Hero section (front-page, about, portfolio) */
    #hero,
    .portfolio-hero,
    .about-hero,
    section.contact-hero {
        padding-top: 100px !important;
        padding-bottom: 60px !important;
    }

    /* Standard sections with heavy top/bottom padding */
    .testimonials-section,
    .contact-hp-section {
        padding-top: 70px !important;
        padding-bottom: 70px !important;
    }

    /* Footer CTA */
    .footer-cta {
        padding: 60px 0 !important;
    }
}

@media (max-width: 640px) {
    #hero,
    .portfolio-hero,
    .about-hero,
    section.contact-hero {
        padding-top: 80px !important;
        padding-bottom: 40px !important;
    }

    .footer-cta {
        padding: 40px 0 !important;
    }

    .footer-cta-inner h2 {
        font-size: clamp(1.8rem, 6vw, 2.4rem) !important;
    }

    /* About page floating labels: hide to avoid overflow */
    .about-image-wrap > .glass-card {
        display: none !important;
    }
}

/* ── Very small phones (≤ 375px) ──────────────────────────────────────── */
@media (max-width: 375px) {
    .hero-image-blob {
        width: 180px !important;
        height: 180px !important;
    }

    .hero-image-mask {
        width: 165px !important;
        height: 165px !important;
    }

    .mobile-nav-list li a {
        font-size: 1.8rem;
    }

    .hero-stat {
        flex: 0 0 100%;
    }
}
