﻿:root {
    --bg: #06070b;
    --bg-surface: #0d1117;
    --bg-card: #121826;
    --text-primary: #f5f7ff;
    --text-secondary: #a7b0c0;
    /* cooler animated gradient palette */
    --accent-blue: #5aa0ff;
    --accent-purple: #7f6bff;
    --accent-pink: #ff6ad9;
    --border: rgba(255, 255, 255, 0.12);
    --container-width: 1180px;
}

.nav-wrap {
    display: flex;
    align-items: center;
}

/* Push nav to right */
#main-nav {
    margin-left: auto;
}

/* static accent (animation removed) */

/* Ensure inline icons inside buttons are perfectly centered */
.btn i,
.btn svg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    font-size: 1.05rem;
    line-height: 1;
    vertical-align: middle;
}

.resume-btn { display: inline-flex; align-items: center; }

/* Small optical nudge for FontAwesome glyphs if needed */
.btn .fa-download { transform: translateY(0.1rem); }

/* Tweak mobile hero typography for denser layout */
@media (max-width: 420px) {
    h1 { font-size: clamp(1.6rem, 8vw, 2.2rem); max-width: 28ch; }
    .hero-subtext { font-size: 0.92rem; }
    .hero-cta-group { gap: 8px; }
}

/* Mobile / small screens: show hamburger on the right and hide CTA on header */
@media (max-width: 768px) {
    .mobile-toggle {
        display: inline-flex; /* override default hidden */
        align-items: center;
        justify-content: center;
        order: 99; /* push to the far right in the flex row */
        margin-left: auto;
    }

    /* make sure hamburger bars use the primary color on dark header */
    .mobile-toggle .hamburger,
    .mobile-toggle .hamburger::before,
    .mobile-toggle .hamburger::after {
        background: var(--text-primary);
    }

    /* hide the right aligned CTA on small screens to free space */
    .nav-wrap > a.btn.btn-cta {
        display: none;
    }

    /* reduce header height a bit on small devices */
    .nav-wrap {
        height: 64px;
        gap: 12px;
    }
}

/* when mobile nav is open prevent body scroll */
body.nav-open {
    overflow: hidden;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: radial-gradient(circle at 10% 10%, rgba(79, 140, 255, 0.18), transparent 25%),
        radial-gradient(circle at 90% 80%, rgba(255, 79, 216, 0.14), transparent 30%),
        var(--bg);
    color: var(--text-secondary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.page-glow {
    position: fixed;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: -1;
}

.glow-top {
    top: -180px;
    left: -140px;
    background: rgba(79, 140, 255, 0.25);
}

.glow-bottom {
    bottom: -180px;
    right: -100px;
    background: rgba(139, 92, 255, 0.22);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1200;
    border-bottom: 1px solid transparent;
    backdrop-filter: blur(14px);
    background: rgba(6, 7, 11, 0.72);
}

.site-header.scrolled {
    border-color: var(--border);
}

.nav-wrap {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

/* Mobile navigation toggle */
.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.mobile-toggle .hamburger {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    position: relative;
}

.mobile-toggle .hamburger::before,
.mobile-toggle .hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--text-primary);
}

.mobile-toggle .hamburger::before { top: -6px; }
.mobile-toggle .hamburger::after { top: 6px; }

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-family: 'Sora', 'Poppins', Inter, sans-serif;
    font-weight: 700;
    letter-spacing: 0.01em;
}

/* Slightly larger wordmark for better prominence */
.logo span {
    font-size: 1.28rem; /* slightly larger for clarity */
    color: var(--text-primary);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.01em;
    text-transform: none;
}

/* subtle logo animation to feel alive */
.logo:hover span { transform: translateY(-2px) scale(1.01); transition: transform 220ms ease; }

.main-logo-icon {
    width: 34px;
    height: 34px;
    object-fit: contain;
    margin-right: 10px;
}

@media (min-width: 1000px) {
    .logo span { font-size: 1.6rem; }
}

@media (min-width: 1400px) {
    .logo span { font-size: 1.9rem; }
}

.main-logo-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
}

header nav ul {
    display: flex;
    gap: 28px;
}

header nav a {
    color: rgba(245, 247, 255, 0.85);
    font-size: 0.95rem;
    font-weight: 500;
    padding-bottom: 6px;
    border-bottom: 2px solid transparent;
    transition: color 0.22s ease, border-color 0.22s ease;
}

header nav a:hover {
    color: var(--text-primary);
}

header nav a.active {
    color: var(--text-primary);
    border-bottom-color: var(--accent-blue);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.92rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: 0 0 30px rgba(139, 92, 255, 0.25);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 35px rgba(139, 92, 255, 0.4);
}

.btn.ghost {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--border);
    box-shadow: none;
    color: var(--text-primary);
}

.btn.ghost:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* reduce vertical spacing between sections site-wide */
main section {
    padding: 24px 0; /* reduced vertical spacing between sections */
    padding: 48px 0;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.74rem;
    margin-bottom: 16px;
    color: rgba(167, 176, 192, 0.9);
}

h1,
h2,
h3 {
    color: var(--text-primary);
    line-height: 1.12;
}

h1 {
    font-size: clamp(2.3rem, 4vw, 4.5rem);
    margin-bottom: 20px;
    max-width: 48ch;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.8rem, 3vw, 3rem);
    letter-spacing: -0.01em;
    margin-bottom: 18px;
}

.highlight {
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple), var(--accent-pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero {
    position: relative;
    overflow: hidden;
    padding-top: 40px;
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 38px 38px;
    mask-image: radial-gradient(circle at center, black 35%, transparent 80%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    align-items: center;
}

.hero-subtext {
    max-width: 58ch;
    margin-bottom: 12px;
}

.hero-cta-group {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.hero-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 0.86rem;
    color: rgba(245, 247, 255, 0.85);
}

.hero-trust-row i {
    color: var(--accent-blue);
    margin-right: 6px;
}

.panel-card {
    background: linear-gradient(160deg, rgba(18, 24, 38, 0.95), rgba(18, 24, 38, 0.72));
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 26px;
    box-shadow: 0 0 45px rgba(79, 140, 255, 0.12);
}

.panel-kicker {
    color: var(--accent-pink);
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.panel-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.panel-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 12px;
}

/* Navbar logo fixes: ensure the mark is never clipped and displays at full size */
.navbar, .site-header, .navbar .container-fluid, header {
    overflow: visible !important;
}

.navbar-brand .main-logo-icon,
.logo-icon img,
.main-logo-icon {
    border-radius: 0 !important;
    width: 36px !important;
    height: 36px !important;
    object-fit: contain !important;
    margin: 0 !important;
    vertical-align: middle !important;
}

/* Make sure small-screen navbar doesn't clip the logo */
@media (max-width: 576px) {
    .navbar-brand .main-logo-icon,
    .logo-icon img {
        width: 30px !important;
        height: 30px !important;
    }
}

.panel-metrics div {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px;
}

.panel-metrics strong {
    display: block;
    color: var(--text-primary);
}

.panel-metrics span {
    font-size: 0.75rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: end;
    margin-bottom: 20px;
}

.section-header > div {
    flex: 1;
}

.section-header.single {
    margin-bottom: 20px;
}

.view-all-link {
    color: var(--accent-blue);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(79,140,255,0.03);
}

.view-all-link i {
    margin-left: 6px;
    transform: translateY(1px);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.project-card {
    background: rgba(18, 24, 38, 0.75);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: rgba(139, 92, 255, 0.42);
    box-shadow: 0 0 35px rgba(79, 140, 255, 0.18);
}

.project-thumb {
    height: 160px;
    background: linear-gradient(135deg, rgba(79, 140, 255, 0.45), rgba(139, 92, 255, 0.45));
    display: flex;
    align-items: end;
    padding: 14px;
    position: relative;
}

.thumb-two {
    background: linear-gradient(135deg, rgba(139, 92, 255, 0.5), rgba(255, 79, 216, 0.35));
}

.thumb-three {
    background: linear-gradient(135deg, rgba(79, 140, 255, 0.45), rgba(255, 79, 216, 0.35));
}

.thumb-overlay {
    font-weight: 600;
    color: #ffffff;
}

.thumb-dim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6,7,11,0.24), rgba(6,7,11,0.6));
    z-index: 0;
    pointer-events: none;
}

.project-thumb .thumb-overlay {
    position: relative;
    z-index: 1;
}

.project-details {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1 1 auto;
}

.project-details h3 {
    font-size: 1.28rem;
    margin-bottom: 10px;
    font-weight: 800; /* stronger, more professional weight */
    color: var(--text-primary);
    letter-spacing: -0.01em;
    line-height: 1.05;
    text-shadow: 0 6px 18px rgba(2,6,23,0.18);
}

.project-desc {
    margin-bottom: 16px;
}

.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.live-link {
    align-self: flex-start; /* default placement */
}

/* Ensure CTA sits at bottom of card */
.project-card .btn.live-link {
    margin-top: auto;
}

.badge-row span {
    display: inline-flex;
    font-size: 0.75rem;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
}

.live-link {
    padding: 10px 14px;
    font-size: 0.82rem;
}

.skill-groups {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.skill-group-card {
    background: rgba(18, 24, 38, 0.82);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 22px;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.skill-group-card:hover {
    border-color: rgba(79, 140, 255, 0.5);
    transform: translateY(-4px);
}

.skill-group-card h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.skill-group-card i {
    color: var(--accent-blue);
    margin-right: 8px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 48px;
}

.about-avatar {
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 0 40px rgba(139, 92, 255, 0.16);
}

.avatar-img {
    width: 100%;
    display: block;
}

/* Studio mockup styles */
.studio-mockup {
    width: 100%;
    /* make full image fit inside the frame without cropping */
    padding-top: 66%; /* container aspect ratio - tune to your image */
    background-size: contain; /* fit full image inside */
    background-position: center center;
    background-repeat: no-repeat;
    background-color: rgba(6,7,11,0.36); /* gentle fill when aspect differs */
    position: relative;
    border-radius: 14px;
}

.studio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6,7,11,0.06), rgba(6,7,11,0.18));
    mix-blend-mode: multiply;
    pointer-events: none;
}

.studio-frame {
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: 6%;
    height: 6%;
    border-radius: 8px;
    background: linear-gradient(90deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}

/* ensure highly visible content inside mockup: add inner inset shadow and subtle border */
.studio-mockup::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    /* lighter inset so image remains visible */
    box-shadow: inset 0 10px 28px rgba(2,6,23,0.32), inset 0 -4px 12px rgba(255,255,255,0.01);
    pointer-events: none;
}

.strength-list {
    margin: 18px 0 20px;
}

.strength-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
}

.strength-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(120deg, var(--accent-blue), var(--accent-pink));
}

.contact-card {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 24px;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(79, 140, 255, 0.12), rgba(139, 92, 255, 0.08));
}

.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-inner {
    display: grid;
    /* left: brand, middle: links, right: social/cta */
    grid-template-columns: 320px 1fr 260px;
    gap: 18px;
    align-items: start; /* align items to top so headings line up horizontally */
    padding: 14px 0 8px;
    border-top: 1px solid var(--border);
}

.footer-col {
    color: var(--text-secondary);
    padding: 6px 0; /* reduce vertical breathing room per column */
}

/* ensure each footer column stacks content from the top so headings align */
.footer-inner > .footer-col,
.footer-inner > .footer-brand,
.footer-inner > .footer-links,
.footer-inner > .footer-social {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* ensure each top-level footer column aligns to the grid start */
.footer-brand, .footer-links, .footer-social { align-self: start; }

.footer-logo { align-items: flex-start; }
.footer-logo img { margin-top: 0; }
.footer-brand .footer-logo p { margin-top: 6px; }
.footer-links, .footer-social { padding-top: 0; }
.footer-links ul { margin-top: 0; }

.footer-right {
    display: grid;
    grid-template-columns: 1fr; /* default stack; on wide screens layout will be adjusted */
    gap: 8px;
}

.footer-right .footer-col { padding: 0; }

/* Desktop: align right block items to the right column and keep compact spacing */
@media (min-width: 900px) {
    .footer-right { display: flex; flex-direction: column; align-items: flex-end; justify-content: flex-start; gap: 12px; }
    .footer-links { align-self: start; }
    .footer-links ul { margin-left: 0; }
    .footer-cta { margin-top: 6px; }
}

.footer-logo {
    display: inline-flex;
    gap: 12px;
    color: var(--text-primary);
}

.footer-logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: contain;
}

.footer-brand .footer-logo strong {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 700;
}

.footer-brand .footer-logo p {
    margin: 4px 0 0;
    font-size: 0.94rem;
    color: var(--text-secondary);
}

.footer-heading {
    color: var(--text-primary);
    margin: 0 0 10px 0;
}

.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin: 0; }
.footer-links a { color: var(--text-secondary); transition: color 0.18s; display: block; padding: 2px 0; }
.footer-links a:hover { color: var(--text-primary); }

.social-row { display: flex; gap: 12px; margin-bottom: 12px; }
.social-btn {
    width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px; color: var(--text-primary); background: rgba(255,255,255,0.02);
    transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
    font-size: 1.05rem;
}
.social-btn:hover { transform: translateY(-4px); background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple)); box-shadow: 0 8px 30px rgba(139,92,255,0.12); }

.footer-cta { margin-top: 6px; }
.btn-cta-small { padding: 8px 14px; border-radius: 10px; font-size: 0.9rem; }

.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 8px 0 12px; color: var(--text-secondary); border-top: 1px solid rgba(255,255,255,0.02); font-size: 0.92rem; }
.footer-policy a { color: var(--text-secondary); margin-left: 8px; }

@media (max-width: 900px) {
    .footer-inner { grid-template-columns: 1fr; padding: 12px 0 10px; gap: 12px; }
    .footer-heading { font-size: 0.98rem; margin-bottom: 8px; }
    .footer-links li { margin: 0; }
    .footer-right { grid-template-columns: 1fr 1fr; }
}

/* =========================================
   Mobile Footer Layout Fix
   ========================================= */
@media (max-width: 768px) {
    .footer-inner {
        display: grid !important;
        /* Brand gets left column, Connect gets right column */
        grid-template-columns: 1fr auto !important;
        gap: 24px 16px !important;
        padding: 32px 12px 20px !important;
    }

    .footer-brand {
        grid-column: 1 / 2 !important;
        grid-row: 1 !important;
    }

    .footer-social {
        grid-column: 2 / 3 !important;
        grid-row: 1 !important;
        padding: 0 !important;
    }

        .footer-social::before {
            display: none !important; /* Removes the stray vertical line */
        }

    .footer-links {
        grid-column: 1 / 3 !important; /* Forces links to a new full-width row */
        grid-row: 2 !important;
        margin-top: 8px !important;
    }

        .footer-links ul {
            display: flex !important;
            flex-wrap: wrap !important; /* Prevents the "ConsultationContact" text crush */
            gap: 12px 24px !important;
        }

        .footer-links a {
            white-space: nowrap !important;
        }

    .social-row {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    .social-btn {
        width: 38px !important;
        height: 38px !important;
        font-size: 0.95rem !important;
    }

    .footer-bottom {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
        padding: 16px 12px !important;
    }

    .footer-policy {
        margin-left: 0 !important;
    }
}
@media (max-width: 560px) {
    .footer-inner { grid-template-columns: 1fr; gap: 12px; padding: 10px 0; }
    .footer-bottom { flex-direction: column; gap: 8px; align-items: flex-start; padding-bottom: 10px; }
    .footer-brand .footer-logo strong { font-size: 1rem; }
    /* show quick links in two columns to use horizontal width on small devices */
    .footer-links ul { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0; margin: 0; }
    .footer-links li { margin: 0; }
    .footer-right { grid-template-columns: 1fr; }
    .social-row { gap: 10px; }
    .social-btn { width: 44px; height: 44px; }
    .footer-cta .btn-cta-small { display: block; width: 100%; padding: 10px 12px; margin-top: 8px; }
}

.reveal {
    opacity: 0;
    transform: translateY(14px) scale(0.995);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Why Choose Us Section */
.why-choose-us {
    background: linear-gradient(135deg, rgba(79, 140, 255, 0.08), rgba(139, 92, 255, 0.06));
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.why-choose-card {
    background: rgba(18, 24, 38, 0.8);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.why-choose-card:hover {
    transform: translateY(-6px);
    border-color: rgba(79, 140, 255, 0.5);
    box-shadow: 0 0 30px rgba(79, 140, 255, 0.15);
}

.why-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(79, 140, 255, 0.2), rgba(139, 92, 255, 0.2));
    border-radius: 12px;
    font-size: 1.6rem;
    color: var(--accent-blue);
}

.why-choose-card h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.why-choose-card p {
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

/* Free Consultation Section */
.free-consultation {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(79, 140, 255, 0.12), rgba(139, 92, 255, 0.1));
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.consultation-bg {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(79, 140, 255, 0.1), transparent 50%),
                      radial-gradient(circle at 80% 50%, rgba(139, 92, 255, 0.1), transparent 50%);
    pointer-events: none;
}

.consultation-content {
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: center;
}

.consultation-text h2 {
    font-size: clamp(1.6rem, 2.5vw, 2.5rem);
    margin-bottom: 16px;
}

.consultation-text > p {
    font-size: 1.02rem;
    line-height: 1.7;
    margin-bottom: 24px;
    color: var(--text-secondary);
}

.consultation-benefits {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.consultation-benefits li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.consultation-benefits li i {
    color: var(--accent-pink);
    font-size: 1.1rem;
}

.consultation-card {
    background: linear-gradient(135deg, rgba(18, 24, 38, 0.9), rgba(18, 24, 38, 0.7));
    border: 1px solid rgba(79, 140, 255, 0.3);
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 0 40px rgba(79, 140, 255, 0.15);
    text-align: center;
}

.consultation-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

/* Testimonials */
.testimonials {
    background: linear-gradient(180deg, rgba(6,7,11,0.02), transparent);
    border-top: 1px solid rgba(255,255,255,0.02);
    padding-top: 8px; /* small visual separation */
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 18px;
}

.testimonial-card {
    background: linear-gradient(180deg, rgba(18,24,38,0.9), rgba(18,24,38,0.82));
    border: 1px solid rgba(255,255,255,0.04);
    padding: 18px;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.testimonial-quote {
    color: var(--text-primary);
    font-size: 0.98rem;
    line-height: 1.45;
}

.testimonial-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
    color: var(--text-secondary);
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.04);
}

.testimonial-avatar.placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(79,140,255,0.12), rgba(139,92,255,0.08));
    color: var(--text-primary);
    font-size: 1.05rem;
}

.testimonial-role {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

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

@media (max-width: 520px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    .testimonial-avatar { width: 40px; height: 40px; }
}

.highlight-text {
    color: var(--accent-blue);
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.btn-large {
    width: 100%;
    padding: 14px 24px;
    font-size: 0.98rem;
}

.small-text {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-top: 16px;
}

@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal.is-visible {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

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

    .skill-groups {
        grid-template-columns: 1fr;
    }

    .why-choose-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-content,
    .about-content,
    .contact-card,
    .consultation-content {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1200px) {
    .projects .section-header h2 {
        white-space: nowrap;
    }
}

@media (max-width: 760px) {
    /* compact header for small screens */
    .nav-wrap { height: 56px; }
    header nav {
        display: none;
    }

    .btn-cta {
        display: inline-flex; /* keep visible but compact */
        padding: 8px 10px;
    }

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

    .why-choose-grid {
        grid-template-columns: 1fr;
    }

    .consultation-content {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    /* Show mobile toggle and mobile nav panel (animated) */
    .mobile-toggle { display: inline-flex; z-index: 80; }
    header nav {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(6,7,11,0.96);
        padding: 12px 18px;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 8px 30px rgba(2,6,23,0.6);
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        transform: translateY(-8px);
        transition: max-height 260ms cubic-bezier(.22,1,.36,1), opacity 200ms ease, transform 260ms cubic-bezier(.22,1,.36,1);
        z-index: 60;
    }

    /* open state uses max-height to animate smoothly */
    header nav.open {
        display: block !important;
        max-height: 420px;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
        z-index: 1300;
    }

    header nav.open ~ .mobile-backdrop {
        opacity: 1;
        pointer-events: auto;
    }
    .mobile-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: linear-gradient(180deg, rgba(6,7,11,0.36), rgba(6,7,11,0.42));
        backdrop-filter: blur(8px) saturate(120%);
        opacity: 0;
        pointer-events: none;
        transition: opacity 220ms ease;
        z-index: 50;
    }

    header nav ul {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    header nav a {
        padding: 8px 10px;
        display: block;
    }

    /* Remove desktop underline/blue line in mobile menu and instead highlight text */
    header nav a {
        border-bottom: none; /* remove the underline behavior on mobile */
        color: var(--text-primary);
    }

    header nav ul li a.active,
    header nav a.active {
        color: var(--accent-blue);
        background: rgba(79, 140, 255, 0.04);
        border-radius: 8px;
        font-weight: 700;
    }

    /* nicer list appearance in glass panel */
    header nav ul li {
        padding: 8px 6px;
        border-radius: 8px;
        transition: background 160ms ease;
    }

    header nav ul li a {
        display: block;
        color: var(--text-primary);
        font-weight: 600;
    }

    header nav ul li:hover {
        background: rgba(255,255,255,0.02);
    }

    /* Keep CTA visible on mobile: scale down slightly and keep in header */
    .btn-cta {
        display: inline-flex;
        padding: 8px 12px;
        font-size: 0.9rem;
        border-radius: 10px;
        box-shadow: 0 8px 30px rgba(139,92,255,0.14);
        z-index: 85;
    }

    /* Mobile toggle hamburger animation */
    .mobile-toggle .hamburger,
    .mobile-toggle .hamburger::before,
    .mobile-toggle .hamburger::after {
        transition: transform 220ms ease, top 220ms ease, opacity 220ms ease;
    }

    .mobile-toggle.open .hamburger { background: transparent; }
    .mobile-toggle.open .hamburger::before { top: 0; transform: rotate(45deg); }
    .mobile-toggle.open .hamburger::after { top: 0; transform: rotate(-45deg); }

    /* reduce vertical rhythm on mobile so content appears closer to header */
    main section {
        padding: 36px 0;
    }

    /* specifically tighten hero top spacing on small screens */
    .hero {
        padding-top: 20px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .consultation-text > p {
        font-size: 0.95rem;
    }

    .consultation-benefits {
        gap: 10px;
    }

    .consultation-card {
        padding: 20px;
    }
}
