/* ==========================================
   musamimweb — Global Styles
   ========================================== */

:root {
    --bg: #0a0a0f;
    --bg-alt: #101018;
    --surface: #16161f;
    --surface-2: #1d1d2a;
    --border: rgba(255, 255, 255, 0.09);
    --text: #f4f4f8;
    --text-muted: #a0a0b4;
    --accent: #ff3d68;
    --accent-2: #7c5cff;
    --accent-3: #00e6b8;
    --accent-4: #ffb547;
    --gradient: linear-gradient(120deg, #ff3d68 0%, #7c5cff 50%, #00e6b8 100%);
    --gradient-soft: linear-gradient(135deg, rgba(255, 61, 104, 0.15), rgba(124, 92, 255, 0.15));
    --radius: 18px;
    --radius-lg: 26px;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    --font-display: 'Instrument Serif', 'Times New Roman', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --max: 1240px;
    --nav-h: 78px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

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

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #2a2a3c; }

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

.highlight {
    font-style: italic;
    padding-right: 0.05em;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ==========================================
   Typography
   ========================================== */

h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.015em;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent-3);
    margin-bottom: 18px;
}
.section-tag::before {
    content: '';
    width: 26px;
    height: 2px;
    background: var(--accent-3);
    display: inline-block;
}

.section-header { margin-bottom: 60px; max-width: 780px; }
.section-title {
    font-size: clamp(2rem, 4.4vw, 3.4rem);
    margin-bottom: 18px;
}
.section-subtitle { color: var(--text-muted); font-size: 1.06rem; max-width: 620px; }
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-header.center .section-subtitle { margin-left: auto; margin-right: auto; }

.view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--accent-3);
    transition: gap 0.25s ease, color 0.25s ease;
}
.view-all:hover { gap: 14px; color: var(--text); }

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

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 34px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.98rem;
    letter-spacing: 0.01em;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
    white-space: nowrap;
    overflow: hidden;
}
.btn svg { transition: transform 0.25s ease; }

.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 10px 34px rgba(255, 61, 104, 0.28);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 46px rgba(124, 92, 255, 0.42);
}
.btn-primary:hover svg { transform: translateX(4px); }

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text);
    backdrop-filter: blur(12px);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

.btn-outline {
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    color: var(--text);
}
.btn-outline:hover {
    background: var(--text);
    color: #08080c;
    transform: translateY(-3px);
}

.btn-light {
    background: #fff;
    color: #0a0a0f;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}
.btn-light:hover { transform: translateY(-3px); box-shadow: 0 20px 52px rgba(0, 0, 0, 0.45); }

.btn-full { width: 100%; }

/* ==========================================
   Navbar
   ========================================== */

.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 900;
    height: var(--nav-h);
    transition: background 0.35s ease, backdrop-filter 0.35s ease, border-color 0.35s ease, height 0.35s ease;
    border-bottom: 1px solid transparent;
}
.navbar.scrolled {
    background: rgba(10, 10, 15, 0.82);
    backdrop-filter: blur(18px) saturate(160%);
    border-bottom-color: var(--border);
    height: 70px;
}
.nav-container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 28px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: -0.02em;
}
.logo-icon {
    display: grid;
    place-items: center;
    width: 34px; height: 34px;
    border-radius: 11px;
    background: var(--gradient);
    font-size: 1rem;
    box-shadow: 0 6px 18px rgba(255, 61, 104, 0.4);
}
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-link {
    position: relative;
    padding: 10px 16px;
    font-size: 0.94rem;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: 100px;
    transition: color 0.25s ease, background 0.25s ease;
}
.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--text); }
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px; left: 50%;
    transform: translateX(-50%);
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--accent);
}
.nav-link.btn-nav {
    margin-left: 8px;
    padding: 12px 24px;
    background: var(--text);
    color: #0a0a0f;
    font-weight: 600;
}
.nav-link.btn-nav:hover { background: var(--accent-3); }
.nav-link.btn-nav.active::after { display: none; }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    z-index: 1000;
}
.hamburger span {
    width: 26px; height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ==========================================
   Hero
   ========================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--nav-h) + 70px) 0 110px;
    overflow: hidden;
}
.hero-bg, .page-header-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.55;
    animation: float 16s ease-in-out infinite;
}
.orb-1 {
    width: 520px; height: 520px;
    background: radial-gradient(circle, #ff3d68, transparent 68%);
    top: -160px; left: -120px;
}
.orb-2 {
    width: 560px; height: 560px;
    background: radial-gradient(circle, #7c5cff, transparent 68%);
    bottom: -220px; right: -140px;
    animation-delay: -5s;
}
.orb-3 {
    width: 420px; height: 420px;
    background: radial-gradient(circle, #00e6b8, transparent 70%);
    top: 40%; left: 55%;
    opacity: 0.3;
    animation-delay: -9s;
}
@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -40px) scale(1.08); }
    66% { transform: translate(-30px, 30px) scale(0.95); }
}
.hero-canvas, .header-canvas {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    opacity: 0.5;
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: radial-gradient(ellipse at 20% 40%, transparent 30%, rgba(10, 10, 15, 0.75) 100%);
    pointer-events: none;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 28px;
    width: 100%;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-bottom: 30px;
    animation: fadeUp 0.7s ease both;
}
.badge-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--accent-3);
    box-shadow: 0 0 0 0 rgba(0, 230, 184, 0.7);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 230, 184, 0.6); }
    70% { box-shadow: 0 0 0 12px rgba(0, 230, 184, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 230, 184, 0); }
}
.hero-title {
    font-size: clamp(2.6rem, 7vw, 5.6rem);
    max-width: 1000px;
    margin-bottom: 26px;
    animation: fadeUp 0.8s 0.1s ease both;
}
.hero-subtitle {
    font-size: clamp(1.05rem, 1.7vw, 1.28rem);
    color: var(--text-muted);
    max-width: 620px;
    margin-bottom: 40px;
    animation: fadeUp 0.8s 0.2s ease both;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 76px;
    animation: fadeUp 0.8s 0.3s ease both;
}
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    max-width: 900px;
    border-top: 1px solid var(--border);
    padding-top: 34px;
    animation: fadeUp 0.8s 0.4s ease both;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-number {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.2vw, 2.7rem);
    font-weight: 800;
    line-height: 1;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stat-number::after { content: '+'; -webkit-text-fill-color: var(--accent-3); }
.stat:last-child .stat-number::after { content: ''; }
.stat-label { font-size: 0.82rem; color: var(--text-muted); letter-spacing: 0.06em; text-transform: uppercase; }

.hero-scroll {
    position: absolute;
    bottom: 30px; left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.scroll-arrow { width: 18px; height: 18px; animation: bounce 2s infinite; }
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   Page Header (inner pages)
   ========================================== */

.page-header {
    position: relative;
    padding: calc(var(--nav-h) + 90px) 0 90px;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}
.page-header-content { position: relative; z-index: 2; max-width: 760px; }
.page-header h1 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); margin-bottom: 22px; }
.page-header p { color: var(--text-muted); font-size: 1.1rem; }

/* ==========================================
   Sections base
   ========================================== */

section { position: relative; }
.industries, .featured-projects, .services-preview, .process, .testimonials,
.core-services, .industry-solutions, .tech-stack, .packages,
.mission, .about-stats, .team, .values, .timeline,
.portfolio-filter-section, .portfolio-grid-section, .faq-section {
    padding: 110px 0;
}
.industries { background: var(--bg); }
.process, .tech-stack, .values, .faq-section { background: var(--bg-alt); }
.about-stats, .portfolio-grid-section { background: var(--bg-alt); }

/* ==========================================
   Industries grid
   ========================================== */

.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
}
.industry-card {
    position: relative;
    padding: 34px 26px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease;
    cursor: pointer;
}
.industry-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-soft);
    opacity: 0;
    transition: opacity 0.35s ease;
}
.industry-card:hover { transform: translateY(-6px); border-color: rgba(255, 255, 255, 0.22); }
.industry-card:hover::before { opacity: 1; }
.industry-icon {
    position: relative;
    font-size: 2rem;
    margin-bottom: 16px;
    display: block;
}
.industry-card h3 {
    position: relative;
    font-size: 1.15rem;
    margin-bottom: 8px;
    font-weight: 700;
}
.industry-card p {
    position: relative;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* ==========================================
   Project cards
   ========================================== */

.projects-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 26px;
}
.project-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    transition: transform 0.4s ease, border-color 0.4s ease;
    cursor: pointer;
}
.project-card:hover { transform: translateY(-8px); border-color: rgba(255, 255, 255, 0.2); }
.project-thumb {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    display: grid;
    place-items: center;
}
.project-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 15, 0.85), transparent 55%);
}
.project-thumb-icon {
    font-size: 4rem;
    z-index: 1;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.4));
    transition: transform 0.5s ease;
}
.project-card:hover .project-thumb-icon { transform: scale(1.12) rotate(-4deg); }
.project-body {
    position: relative;
    padding: 24px 26px 28px;
}
.project-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-3);
    margin-bottom: 10px;
}
.project-title { font-size: 1.3rem; margin-bottom: 8px; font-weight: 700; }
.project-desc { font-size: 0.9rem; color: var(--text-muted); }
.project-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 0.82rem;
    color: var(--text-muted);
}
.project-meta .arrow {
    width: 30px; height: 30px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    transition: background 0.25s ease, transform 0.25s ease;
}
.project-card:hover .project-meta .arrow {
    background: var(--accent);
    transform: rotate(-45deg);
}
.project-meta .arrow svg { width: 14px; height: 14px; }

/* ==========================================
   Services grid
   ========================================== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 22px;
}
.service-card {
    position: relative;
    padding: 38px 32px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform 0.35s ease, border-color 0.35s ease;
}
.service-card::after {
    content: '';
    position: absolute;
    top: -60%; right: -60%;
    width: 220px; height: 220px;
    border-radius: 50%;
    background: var(--gradient);
    filter: blur(70px);
    opacity: 0;
    transition: opacity 0.45s ease;
}
.service-card:hover { transform: translateY(-6px); border-color: rgba(255, 255, 255, 0.2); }
.service-card:hover::after { opacity: 0.28; }
.service-number {
    position: absolute;
    top: 22px; right: 26px;
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.06);
    line-height: 1;
}
.service-icon {
    position: relative;
    width: 56px; height: 56px;
    display: grid; place-items: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    font-size: 1.5rem;
    margin-bottom: 22px;
}
.service-card h3 { position: relative; font-size: 1.3rem; margin-bottom: 12px; font-weight: 700; }
.service-card p { position: relative; color: var(--text-muted); font-size: 0.94rem; }
.service-features {
    position: relative;
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.service-features span {
    font-size: 0.74rem;
    padding: 6px 12px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-muted);
}
.services-cta { text-align: center; margin-top: 54px; }

/* ==========================================
   Process
   ========================================== */

.process-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 24px;
    counter-reset: step;
}
.process-step {
    position: relative;
    padding: 34px 26px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    transition: transform 0.35s ease, background 0.35s ease;
}
.process-step:hover { transform: translateY(-5px); background: var(--surface-2); }
.process-step::before {
    counter-increment: step;
    content: '0' counter(step);
    display: block;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 18px;
}
.process-step h3 { font-size: 1.15rem; margin-bottom: 10px; font-weight: 700; }
.process-step p { font-size: 0.9rem; color: var(--text-muted); }

/* ==========================================
   Testimonials
   ========================================== */

.testimonials-track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.testimonial-card {
    flex: 0 0 calc((100% - 48px) / 3);
    padding: 36px 32px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.testimonial-stars { color: var(--accent-4); font-size: 0.95rem; letter-spacing: 2px; }
.testimonial-text { font-size: 1rem; color: #d8d8e4; line-height: 1.7; flex: 1; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.author-avatar {
    width: 46px; height: 46px;
    border-radius: 50%;
    display: grid; place-items: center;
    font-weight: 700;
    font-size: 1rem;
    background: var(--gradient);
    color: #fff;
    flex-shrink: 0;
}
.author-info h4 { font-size: 0.94rem; font-weight: 700; }
.author-info span { font-size: 0.8rem; color: var(--text-muted); }

.testimonials-overflow { overflow: hidden; }
.testimonials-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 46px;
}
.testimonial-btn {
    width: 46px; height: 46px;
    display: grid; place-items: center;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.testimonial-btn:hover { background: var(--surface-2); border-color: rgba(255, 255, 255, 0.25); transform: scale(1.06); }
.testimonial-btn svg { width: 18px; height: 18px; }
.testimonial-dots { display: flex; gap: 8px; }
.testimonial-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: width 0.3s ease, background 0.3s ease;
}
.testimonial-dot.active { width: 26px; border-radius: 100px; background: var(--accent); }

/* ==========================================
   CTA
   ========================================== */

.cta-section {
    position: relative;
    padding: 130px 0;
    overflow: hidden;
    text-align: center;
    background: var(--bg);
    border-top: 1px solid var(--border);
}
.cta-bg { position: absolute; inset: 0; overflow: hidden; }
.cta-orb-1 { width: 500px; height: 500px; background: radial-gradient(circle, #7c5cff, transparent 68%); top: -180px; left: 10%; }
.cta-orb-2 { width: 500px; height: 500px; background: radial-gradient(circle, #ff3d68, transparent 68%); bottom: -200px; right: 10%; }
.cta-content { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; }
.cta-content h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); margin-bottom: 22px; }
.cta-content p { color: var(--text-muted); font-size: 1.08rem; margin-bottom: 40px; }

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

.footer {
    background: #07070b;
    border-top: 1px solid var(--border);
    padding: 80px 0 30px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 2.7fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid var(--border);
}
.footer-brand p {
    color: var(--text-muted);
    font-size: 0.92rem;
    max-width: 320px;
    margin: 20px 0 26px;
}
.social-links { display: flex; gap: 10px; }
.social-link {
    width: 40px; height: 40px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.social-link svg { width: 17px; height: 17px; }
.social-link:hover { background: var(--accent); color: #fff; border-color: transparent; transform: translateY(-3px); }

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.footer-column h4 {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 20px;
}
.footer-column ul { display: flex; flex-direction: column; gap: 12px; }
.footer-column ul a {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: color 0.2s ease, padding-left 0.2s ease;
}
.footer-column ul a:hover { color: var(--accent-3); padding-left: 4px; }
.contact-info li {
    display: flex;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}
.contact-info svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 3px; color: var(--accent-3); }
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 28px;
}
.footer-bottom p { font-size: 0.82rem; color: var(--text-muted); }
.footer-badges { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-badges span { font-size: 0.72rem; color: #6a6a80; letter-spacing: 0.06em; }

/* ==========================================
   Services page
   ========================================== */

.services-list { display: flex; flex-direction: column; gap: 26px; }
.service-row {
    display: grid;
    grid-template-columns: 0.9fr 1.4fr;
    gap: 50px;
    align-items: center;
    padding: 46px 44px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    transition: border-color 0.35s ease, transform 0.35s ease;
}
.service-row:hover { border-color: rgba(255, 255, 255, 0.2); transform: translateX(6px); }
.service-row.reverse { grid-template-columns: 1.4fr 0.9fr; }
.service-row.reverse .service-visual { order: 2; }
.service-row.reverse .service-detail { order: 1; }
.service-visual {
    aspect-ratio: 16 / 11;
    border-radius: var(--radius);
    display: grid;
    place-items: center;
    font-size: 3.6rem;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
}
.service-visual span { position: relative; z-index: 1; filter: drop-shadow(0 8px 20px rgba(0,0,0,0.35)); }
.service-detail .service-kicker {
    font-size: 0.74rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-3);
    font-weight: 600;
    margin-bottom: 14px;
    display: block;
}
.service-detail h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 14px; }
.service-detail > p { color: var(--text-muted); margin-bottom: 22px; }
.service-detail ul { display: flex; flex-direction: column; gap: 10px; }
.service-detail li {
    position: relative;
    padding-left: 26px;
    font-size: 0.92rem;
    color: #cdcdd8;
}
.service-detail li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

/* Industry solutions */
.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}
.solution-card {
    padding: 34px 30px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    transition: transform 0.35s ease, border-color 0.35s ease;
}
.solution-card:hover { transform: translateY(-5px); border-color: rgba(255, 255, 255, 0.2); }
.solution-card .sol-icon { font-size: 1.9rem; margin-bottom: 16px; }
.solution-card h3 { font-size: 1.15rem; margin-bottom: 10px; font-weight: 700; }
.solution-card p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 18px; }
.solution-card .sol-link { font-size: 0.82rem; font-weight: 600; color: var(--accent-3); }

/* Tech stack */
.tech-categories { display: flex; flex-direction: column; gap: 34px; }
.tech-cat h3 {
    font-size: 0.86rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 18px;
    font-weight: 600;
}
.tech-items { display: flex; flex-wrap: wrap; gap: 12px; }
.tech-chip {
    padding: 12px 22px;
    border-radius: 100px;
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.tech-chip:hover { background: var(--gradient); color: #fff; border-color: transparent; transform: translateY(-3px); }

/* Packages */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
    align-items: stretch;
}
.package-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 40px 34px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    transition: transform 0.35s ease, border-color 0.35s ease;
}
.package-card:hover { transform: translateY(-6px); border-color: rgba(255, 255, 255, 0.2); }
.package-card.featured {
    background: linear-gradient(160deg, rgba(255, 61, 104, 0.12), rgba(124, 92, 255, 0.1));
    border-color: rgba(255, 61, 104, 0.4);
}
.package-badge {
    position: absolute;
    top: -13px; right: 28px;
    padding: 6px 16px;
    border-radius: 100px;
    background: var(--gradient);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
}
.package-name { font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-3); font-weight: 600; margin-bottom: 16px; }
.package-price {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 6px;
}
.package-price small { font-size: 0.9rem; font-weight: 500; color: var(--text-muted); }
.package-desc { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 26px; }
.package-features { display: flex; flex-direction: column; gap: 12px; flex: 1; margin-bottom: 30px; }
.package-features li {
    display: flex;
    gap: 10px;
    font-size: 0.89rem;
    color: #cdcdd8;
}
.package-features li::before { content: '✓'; color: var(--accent-3); font-weight: 700; flex-shrink: 0; }

/* ==========================================
   Portfolio page
   ========================================== */

.portfolio-filter-section { padding: 60px 0 40px; }
.filter-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    padding-bottom: 26px;
    border-bottom: 1px solid var(--border);
}
.filter-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-tab {
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-muted);
    border: 1px solid var(--border);
    background: var(--surface);
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.filter-tab:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.25); }
.filter-tab.active { background: var(--text); color: #0a0a0f; border-color: var(--text); font-weight: 600; }
.filter-search { position: relative; min-width: 250px; }
.filter-search .search-icon {
    position: absolute;
    left: 16px; top: 50%;
    transform: translateY(-50%);
    width: 17px; height: 17px;
    color: var(--text-muted);
    pointer-events: none;
}
.filter-search input {
    width: 100%;
    padding: 12px 18px 12px 44px;
    border-radius: 100px;
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.25s ease;
}
.filter-search input:focus { border-color: var(--accent-3); }
.filter-search input::placeholder { color: #6a6a80; }

.portfolio-grid-section { padding: 50px 0 110px; }
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 26px;
}
.portfolio-grid .project-card { animation: cardIn 0.45s ease both; }
@keyframes cardIn {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.portfolio-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}
.portfolio-empty strong { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--text); margin-bottom: 8px; }
.load-more-wrapper { text-align: center; margin-top: 54px; }

/* Project modal */
.project-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.project-modal.open { display: flex; }
.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 9, 0.85);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1040px;
    max-height: 88vh;
    overflow-y: auto;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    animation: modalIn 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
@keyframes modalIn {
    from { opacity: 0; transform: translateY(30px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-close {
    position: absolute;
    top: 16px; right: 16px;
    z-index: 2;
    width: 42px; height: 42px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: rgba(10, 10, 15, 0.7);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    transition: background 0.25s ease, transform 0.25s ease;
}
.modal-close:hover { background: var(--accent); transform: rotate(90deg); }
.modal-close svg { width: 18px; height: 18px; }
.modal-hero {
    aspect-ratio: 16 / 9;
    display: grid;
    place-items: center;
    font-size: 5rem;
    border-bottom: 1px solid var(--border);
}
.modal-body-inner { padding: 36px 40px 42px; }
.modal-body-inner .project-tag { margin-bottom: 12px; }
.modal-body-inner h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 16px; }
.modal-body-inner > p { color: var(--text-muted); margin-bottom: 28px; }
.modal-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 30px;
}
.modal-stat {
    padding: 20px;
    border-radius: var(--radius);
    background: var(--bg-alt);
    border: 1px solid var(--border);
    text-align: center;
}
.modal-stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.modal-stat span { font-size: 0.76rem; color: var(--text-muted); letter-spacing: 0.06em; text-transform: uppercase; }
.modal-tech { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.modal-tech span {
    font-size: 0.78rem;
    padding: 7px 15px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-muted);
}
.modal-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.case-study-cta { padding: 90px 0; background: var(--bg); border-top: 1px solid var(--border); }
.case-study-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}
.case-study-text { max-width: 620px; }
.case-study-text h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin-bottom: 14px; }
.case-study-text p { color: var(--text-muted); }

/* ==========================================
   About page
   ========================================== */

.mission-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 70px;
    align-items: center;
}
.mission-content h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 24px; }
.mission-content > p { color: var(--text-muted); margin-bottom: 20px; }
.mission-values { display: flex; flex-direction: column; gap: 22px; margin-top: 36px; }
.value { display: flex; gap: 18px; }
.value-icon {
    width: 52px; height: 52px;
    flex-shrink: 0;
    display: grid; place-items: center;
    border-radius: 15px;
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: 1.4rem;
}
.value h4 { font-size: 1.05rem; margin-bottom: 5px; font-weight: 700; }
.value p { font-size: 0.9rem; color: var(--text-muted); }

.mission-visual { position: relative; }
.mission-image { position: relative; padding: 20px; }
.image-stack { position: relative; aspect-ratio: 1 / 1.05; }
.stack-item {
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: transform 0.5s ease;
}
.stack-1 { background: linear-gradient(140deg, rgba(255, 61, 104, 0.22), rgba(124, 92, 255, 0.12)); transform: rotate(-6deg); }
.stack-2 { background: linear-gradient(140deg, rgba(124, 92, 255, 0.22), rgba(0, 230, 184, 0.12)); transform: rotate(4deg) translate(18px, -14px); }
.stack-3 {
    background: linear-gradient(150deg, #1a1a26, #101018);
    transform: rotate(-1deg) translate(8px, 16px);
    display: grid;
    place-items: center;
    font-size: 4.5rem;
}
.stack-3::after { content: '✦'; background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.mission-visual:hover .stack-1 { transform: rotate(-9deg) translate(-8px, 6px); }
.mission-visual:hover .stack-2 { transform: rotate(7deg) translate(26px, -22px); }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}
.stat-block {
    padding: 36px 28px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    text-align: center;
    transition: transform 0.35s ease, border-color 0.35s ease;
}
.stat-block:hover { transform: translateY(-5px); border-color: rgba(255, 255, 255, 0.2); }
.stat-block strong {
    display: block;
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}
.stat-block span { font-size: 0.84rem; color: var(--text-muted); letter-spacing: 0.05em; }

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}
.team-card {
    padding: 30px 24px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    text-align: center;
    transition: transform 0.35s ease, border-color 0.35s ease;
}
.team-card:hover { transform: translateY(-6px); border-color: rgba(255, 255, 255, 0.2); }
.team-avatar {
    width: 104px; height: 104px;
    margin: 0 auto 22px;
    border-radius: 50%;
    display: grid; place-items: center;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    position: relative;
}
.team-avatar::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1.5px dashed rgba(255, 255, 255, 0.16);
}
.team-card h3 { font-size: 1.1rem; margin-bottom: 4px; font-weight: 700; }
.team-role { font-size: 0.82rem; color: var(--accent-3); margin-bottom: 14px; display: block; }
.team-bio { font-size: 0.86rem; color: var(--text-muted); margin-bottom: 18px; }
.team-socials { display: flex; justify-content: center; gap: 8px; }
.team-socials a {
    width: 32px; height: 32px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: background 0.25s ease, color 0.25s ease;
}
.team-socials a:hover { background: var(--accent); color: #fff; }

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 22px;
}
.value-card {
    padding: 34px 30px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    transition: transform 0.35s ease, border-color 0.35s ease;
}
.value-card:hover { transform: translateY(-5px); border-color: rgba(255, 255, 255, 0.2); }
.value-card .vc-icon { font-size: 1.9rem; margin-bottom: 16px; }
.value-card h3 { font-size: 1.12rem; margin-bottom: 10px; font-weight: 700; }
.value-card p { font-size: 0.9rem; color: var(--text-muted); }

.timeline-track { position: relative; display: flex; flex-direction: column; gap: 0; }
.timeline-track::before {
    content: '';
    position: absolute;
    left: 16px; top: 10px; bottom: 10px;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), var(--accent-2), transparent);
}
.timeline-item { position: relative; padding: 0 0 44px 58px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
    content: '';
    position: absolute;
    left: 9px; top: 6px;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--accent);
    box-shadow: 0 0 0 4px rgba(255, 61, 104, 0.14);
}
.timeline-year {
    font-family: var(--font-display);
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--accent-3);
    letter-spacing: 0.1em;
    margin-bottom: 6px;
    display: block;
}
.timeline-item h3 { font-size: 1.2rem; margin-bottom: 8px; font-weight: 700; }
.timeline-item p { color: var(--text-muted); font-size: 0.92rem; max-width: 640px; }

/* ==========================================
   Contact page
   ========================================== */

.contact-section { padding: 90px 0 110px; }
.contact-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 40px;
    align-items: start;
}
.contact-card {
    position: sticky;
    top: 100px;
    padding: 40px 36px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
}
.contact-card h3 { font-size: 1.45rem; margin-bottom: 12px; }
.contact-card > p { font-size: 0.94rem; color: var(--text-muted); margin-bottom: 30px; }
.contact-methods { display: flex; flex-direction: column; gap: 22px; margin-bottom: 32px; }
.method { display: flex; gap: 16px; }
.method-icon {
    width: 46px; height: 46px;
    flex-shrink: 0;
    display: grid; place-items: center;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    font-size: 1.15rem;
}
.method h4 { font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px; font-weight: 600; }
.method a, .method address { font-size: 0.94rem; color: var(--text); font-style: normal; transition: color 0.2s ease; }
.method a:hover { color: var(--accent-3); }
.contact-social { display: flex; gap: 10px; padding-top: 24px; border-top: 1px solid var(--border); }

.contact-form-panel {
    padding: 44px 40px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
}
.contact-form { display: flex; flex-direction: column; gap: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 9px; }
.form-group label { font-size: 0.86rem; font-weight: 500; color: #d8d8e4; }
.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 18px;
    border-radius: 13px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    font-size: 0.94rem;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    width: 100%;
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-3);
    box-shadow: 0 0 0 3px rgba(0, 230, 184, 0.12);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #62627a; }
.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a0a0b4' stroke-width='2'%3e%3cpath d='M6 9l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 17px;
    padding-right: 44px;
    cursor: pointer;
}
.form-group select option { background: var(--bg-alt); color: var(--text); }
.form-group.error input,
.form-group.error select,
.form-group.error textarea { border-color: #ff5470; }
.form-error { font-size: 0.78rem; color: #ff5470; min-height: 0; display: none; }
.form-group.error .form-error { display: block; }

.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 12px;
}
.checkbox-group input[type="checkbox"] {
    width: 19px; height: 19px;
    flex-shrink: 0;
    accent-color: var(--accent);
    cursor: pointer;
}
.checkbox-group label { font-size: 0.86rem; color: var(--text-muted); cursor: pointer; }

.btn-loading { display: inline-flex; align-items: center; gap: 8px; }
.spinner { width: 18px; height: 18px; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-note { font-size: 0.78rem; color: var(--text-muted); text-align: center; }
.form-note a { color: var(--accent-3); text-decoration: underline; }

.form-success {
    text-align: center;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.success-icon {
    width: 76px; height: 76px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: rgba(0, 230, 184, 0.12);
    border: 2px solid var(--accent-3);
    color: var(--accent-3);
    font-size: 2.2rem;
    margin-bottom: 14px;
    animation: popIn 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}
@keyframes popIn {
    from { opacity: 0; transform: scale(0.4); }
    to { opacity: 1; transform: scale(1); }
}
.form-success h3 { font-size: 1.5rem; margin-bottom: 6px; }
.form-success p { color: var(--text-muted); margin-bottom: 22px; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.faq-item {
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: border-color 0.25s ease;
}
.faq-item.open { border-color: rgba(255, 255, 255, 0.22); }
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 26px;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
}
.faq-icon {
    flex-shrink: 0;
    width: 26px; height: 26px;
    display: grid; place-items: center;
    border-radius: 50%;
    border: 1px solid var(--border);
    font-size: 1.1rem;
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
    line-height: 1;
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--accent); color: #fff; border-color: transparent; }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}
.faq-answer-inner { padding: 0 26px 24px; color: var(--text-muted); font-size: 0.92rem; }

/* ==========================================
   Scroll reveal
   ========================================== */

.reveal {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

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

@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr; gap: 44px; }
    .mission-grid { grid-template-columns: 1fr; gap: 48px; }
    .mission-visual { max-width: 420px; margin: 0 auto; }
    .contact-grid { grid-template-columns: 1fr; }
    .contact-card { position: static; }
    .testimonial-card { flex: 0 0 calc((100% - 24px) / 2); }
    .faq-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    :root { --nav-h: 70px; }
    .hamburger { display: flex; }
    .nav-links {
        position: fixed;
        inset: 0;
        flex-direction: column;
        justify-content: center;
        gap: 14px;
        background: rgba(8, 8, 13, 0.97);
        backdrop-filter: blur(24px);
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 30px;
    }
    .nav-links.open { transform: translateX(0); }
    .nav-link { font-size: 1.15rem; padding: 14px 24px; }
    .nav-link.active::after { display: none; }
    .nav-link.btn-nav { margin-left: 0; margin-top: 8px; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 26px; }
    .section-header { margin-bottom: 44px; }
    .industries, .featured-projects, .services-preview, .process, .testimonials,
    .core-services, .industry-solutions, .tech-stack, .packages,
    .mission, .about-stats, .team, .values, .timeline,
    .portfolio-filter-section, .portfolio-grid-section, .faq-section {
        padding: 80px 0;
    }
    .service-row, .service-row.reverse { grid-template-columns: 1fr; gap: 28px; padding: 30px 26px; }
    .service-row.reverse .service-visual { order: 1; }
    .service-row.reverse .service-detail { order: 2; }
    .footer-links { grid-template-columns: repeat(2, 1fr); gap: 34px; }
}

@media (max-width: 640px) {
    .container, .nav-container, .hero-content { padding: 0 20px; }
    .hero { min-height: auto; padding-top: calc(var(--nav-h) + 60px); padding-bottom: 80px; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { width: 100%; }
    .hero-stats { grid-template-columns: 1fr 1fr; gap: 22px; }
    .hero-scroll { display: none; }
    .testimonial-card { flex: 0 0 100%; }
    .projects-carousel, .portfolio-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .contact-form-panel { padding: 30px 22px; }
    .contact-card { padding: 30px 24px; }
    .modal-stats { grid-template-columns: 1fr; }
    .modal-body-inner { padding: 28px 24px 34px; }
    .modal-hero { font-size: 3.4rem; }
    .filter-wrapper { flex-direction: column; align-items: stretch; }
    .filter-search { min-width: 100%; }
    .case-study-content { flex-direction: column; align-items: flex-start; }
    .footer-links { grid-template-columns: 1fr 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .project-modal { padding: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1; transform: none; }
}

/* ==========================================
   Refined serif typography overrides
   ========================================== */

h1, h2, h3, h4, h5 { font-weight: 400; }

.hero-title, .page-header h1 { line-height: 1.02; letter-spacing: -0.02em; }
.section-title, .cta-content h2, .case-study-text h2, .mission-content h2 { line-height: 1.06; }

.logo, .logo-text { font-weight: 400; letter-spacing: -0.01em; }

.stat-number, .package-price, .stat-block strong, .modal-stat strong,
.service-number, .team-avatar { font-weight: 400; }

.industry-card h3, .project-title, .service-card h3, .process-step h3,
.solution-card h3, .team-card h3, .value-card h3, .timeline-item h3,
.contact-card h3, .form-success h3, .value h4, .service-detail h3,
.modal-body-inner h2, .faq-question { font-weight: 400; }

/* Small UI labels stay in the sans stack */
.method h4, .author-info h4, .footer-column h4 {
    font-family: var(--font-body);
    font-weight: 600;
}
.value h4 { font-family: var(--font-display); }

.hero-subtitle, .section-subtitle, .page-header p { letter-spacing: 0.002em; }
.btn, .nav-link, .filter-tab, .stat-label { letter-spacing: 0.005em; }

/* ==========================================
   Live demo showcase
   ========================================== */

.live-demos { padding: 110px 0; background: var(--bg-alt); }

.demo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 24px;
}

.demo-card {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.demo-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.demo-chrome {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 11px 14px;
    background: #111119;
    border-bottom: 1px solid var(--border);
}
.demo-dot { width: 8px; height: 8px; border-radius: 50%; background: #2b2b3a; }
.demo-dot:nth-child(1) { background: #d9645f; }
.demo-dot:nth-child(2) { background: #d6a847; }
.demo-dot:nth-child(3) { background: #4fae6d; }
.demo-url {
    margin-left: 10px;
    font-size: 0.67rem;
    color: #8d8da2;
    background: rgba(255, 255, 255, 0.05);
    padding: 3px 11px;
    border-radius: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 68%;
}

.demo-shot {
    position: relative;
    aspect-ratio: 16 / 10;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 24px;
    overflow: hidden;
    background: var(--demo-grad, var(--gradient));
}
.demo-shot::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.16), transparent 62%),
                linear-gradient(to top, rgba(0, 0, 0, 0.35), transparent 58%);
}
.demo-shot-inner { position: relative; z-index: 1; color: #fff; }
.demo-brand {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    line-height: 1.06;
    letter-spacing: -0.01em;
    display: block;
}
.demo-cat {
    display: block;
    margin-top: 10px;
    font-size: 0.64rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    opacity: 0.88;
}
.demo-hover {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    background: rgba(6, 6, 10, 0.6);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.demo-card:hover .demo-hover { opacity: 1; }
.demo-hover span {
    padding: 12px 24px;
    border-radius: 100px;
    background: #fff;
    color: #0a0a0f;
    font-size: 0.83rem;
    font-weight: 600;
}

.demo-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 17px 19px;
}
.demo-meta strong {
    display: block;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.08rem;
    line-height: 1.2;
}
.demo-meta small { display: block; font-size: 0.74rem; color: var(--text-muted); margin-top: 2px; }
.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
    font-size: 0.63rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--accent-3);
}
.live-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-3);
    box-shadow: 0 0 0 3px rgba(0, 230, 184, 0.18);
}

/* Live chip inside project thumbnails */
.thumb-live {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 100px;
    background: rgba(8, 8, 12, 0.62);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: #fff;
}
.thumb-live::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent-3);
}

/* ==========================================
   Modal: embedded live site
   ========================================== */

.modal-browser-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 76px 12px 16px;
    background: #0f0f16;
    border-bottom: 1px solid var(--border);
}
.modal-browser-url {
    flex: 1;
    margin-left: 10px;
    font-size: 0.72rem;
    color: #9a9aae;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    padding: 5px 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.modal-iframe-wrap {
    height: clamp(400px, 66vh, 680px);
    background: #fff;
    overflow: hidden;
}
.modal-iframe-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: #fff;
}
.modal-live-note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.76rem;
    color: var(--text-muted);
    margin-bottom: 22px;
}
.modal-live-note::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-3);
    box-shadow: 0 0 0 3px rgba(0, 230, 184, 0.16);
}

@media (max-width: 860px) {
    .live-demos { padding: 80px 0; }
    .modal-iframe-wrap { height: clamp(300px, 52vh, 480px); }
}

@media (max-width: 640px) {
    .demo-grid { grid-template-columns: 1fr; }
    .modal-iframe-wrap { height: 320px; }
}

/* Demo showcase intro */
.demo-intro {
    color: var(--text-muted);
    max-width: 640px;
    margin: -14px 0 42px;
    font-size: 0.98rem;
    line-height: 1.7;
}
@media (max-width: 860px) {
    .demo-intro { margin-top: -6px; margin-bottom: 32px; }
}

/* ---------- Logo artwork ---------- */
/* Used once the logo image is supplied: swap <span class="logo-icon">⚡</span>
   for <img class="logo-img" src="assets/logo.png" alt=""> (square mark)
   or use .logo-wordmark for a full horizontal logo. */
.logo-img {
    display: block;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    object-fit: contain;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    padding: 0;
}
.logo-wordmark {
    display: block;
    height: 30px;
    width: auto;
    max-width: 190px;
    object-fit: contain;
}
