/* ══════════════════════════════════════════════════════════════
   BARNAOUI CONSULTING — Professional Website Stylesheet
   Design System: Minimalistic, Dark-first, Network-inspired
   Colors: #fbae17, #f15a24, #29abe2, #0035ce
   Fonts: Montserrat
   ══════════════════════════════════════════════════════════════ */

/* ─── CSS Custom Properties ─── */
:root {
    /* Brand colors */
    --brand-amber: #fbae17;
    --brand-orange: #f15a24;
    --brand-cyan: #29abe2;
    --brand-blue: #0035ce;

    /* Gradients */
    --gradient-brand: linear-gradient(135deg, #29abe2, #0035ce);
    --gradient-warm: linear-gradient(135deg, #fbae17, #f15a24);
    --gradient-accent: linear-gradient(135deg, #29abe2, #0035ce, #f15a24);

    /* Typography */
    --font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --section-padding: 120px 0;
    --container-width: 1200px;
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 20px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-theme: 0.4s ease;
}

/* ─── Dark Theme (Default) ─── */
[data-theme="dark"] {
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --bg-tertiary: #1a1a24;
    --bg-card: #14141e;
    --bg-card-hover: #1c1c28;
    --bg-input: #1a1a24;

    --text-primary: #f0f0f5;
    --text-secondary: #a0a0b0;
    --text-tertiary: #6a6a7a;
    --text-inverse: #0a0a0f;

    --border-color: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-card-hover: 0 8px 40px rgba(0, 0, 0, 0.5);

    --nav-bg: rgba(10, 10, 15, 0.85);
    --hero-overlay: linear-gradient(180deg, rgba(10, 10, 15, 0.3) 0%, rgba(10, 10, 15, 0.95) 100%);
    --canvas-dot: rgba(41, 171, 226, 0.15);
    --canvas-line: rgba(41, 171, 226, 0.06);
}

/* ─── Light Theme ─── */
[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f7f7fa;
    --bg-tertiary: #eeeef2;
    --bg-card: #ffffff;
    --bg-card-hover: #f7f7fa;
    --bg-input: #f0f0f5;

    --text-primary: #111118;
    --text-secondary: #555566;
    --text-tertiary: #888899;
    --text-inverse: #ffffff;

    --border-color: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.15);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06);
    --shadow-card-hover: 0 8px 40px rgba(0, 0, 0, 0.1);

    --nav-bg: rgba(255, 255, 255, 0.9);
    --hero-overlay: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.97) 100%);
    --canvas-dot: rgba(0, 53, 206, 0.12);
    --canvas-line: rgba(0, 53, 206, 0.04);
}

/* Theme toggles for logo visibility */
[data-theme="dark"] .logo-light { display: none !important; }
[data-theme="dark"] .logo-dark { display: block; }
[data-theme="light"] .logo-dark { display: none !important; }
[data-theme="light"] .logo-light { display: block; }

/* Theme toggle icon visibility */
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }

/* ─── Reset & Base ─── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-family);
    font-weight: 500;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color var(--transition-theme), color var(--transition-theme);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

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

/* ══════════════════════════════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════════════════════════════ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition-theme), border-color var(--transition-theme), box-shadow var(--transition-normal);
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo img {
    height: 36px;
    width: auto;
    transition: opacity var(--transition-fast);
}

.nav-logo:hover img {
    opacity: 0.85;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    transition: color var(--transition-fast), background var(--transition-fast);
    letter-spacing: 0.01em;
}

.nav-links a:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.nav-cta {
    background: var(--gradient-brand) !important;
    color: #fff !important;
    padding: 8px 20px !important;
    border-radius: var(--border-radius-sm) !important;
    font-weight: 700 !important;
}

.nav-cta:hover {
    opacity: 0.9;
    background: var(--gradient-brand) !important;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Theme toggle */
.theme-toggle {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.theme-toggle:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
    background: var(--bg-tertiary);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-normal);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ══════════════════════════════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════════════════════════════ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#network-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--hero-overlay);
    z-index: 1;
    transition: background var(--transition-theme);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 24px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 32px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    animation: fadeInDown 0.8s ease forwards;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.2rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-primary);
    letter-spacing: -0.025em;
    animation: fadeInUp 0.8s ease 0.1s forwards;
    opacity: 0;
}

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

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.8;
    font-weight: 500;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease 0.3s forwards;
    opacity: 0;
}

.hero-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.trust-item svg {
    color: var(--brand-cyan);
}

.trust-separator {
    width: 1px;
    height: 20px;
    background: var(--border-color);
}

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-family);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all var(--transition-normal);
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--gradient-brand);
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 53, 206, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 53, 206, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--brand-cyan);
    color: var(--brand-cyan);
    background: rgba(41, 171, 226, 0.05);
}

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

/* ══════════════════════════════════════════════════════════════
   SECTIONS — Shared Styles
   ══════════════════════════════════════════════════════════════ */
.section {
    padding: var(--section-padding);
    transition: background-color var(--transition-theme);
}

.section:nth-child(even) {
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--brand-cyan);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    font-weight: 500;
}

/* ══════════════════════════════════════════════════════════════
   ABOUT SECTION
   ══════════════════════════════════════════════════════════════ */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 40px 32px;
    transition: all var(--transition-normal);
}

.about-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.about-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--gradient-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: 24px;
}

.about-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.about-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ══════════════════════════════════════════════════════════════
   SERVICES SECTION
   ══════════════════════════════════════════════════════════════ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 40px 32px 32px;
    position: relative;
    transition: all var(--transition-normal);
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-brand);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.service-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

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

.service-number {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-tertiary);
    letter-spacing: 0.05em;
}

.service-icon {
    color: var(--brand-cyan);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

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

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.service-tags li {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 50px;
    background: rgba(41, 171, 226, 0.08);
    color: var(--brand-cyan);
    letter-spacing: 0.02em;
    transition: background var(--transition-fast);
}

.service-card:hover .service-tags li {
    background: rgba(41, 171, 226, 0.12);
}

/* ══════════════════════════════════════════════════════════════
   PLATFORMS SECTION
   ══════════════════════════════════════════════════════════════ */
.platforms {
    padding: 80px 0;
}

.platforms-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}

.platform-item {
    padding: 20px 36px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-card);
    transition: all var(--transition-normal);
}

.platform-item:hover {
    border-color: var(--brand-cyan);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(41, 171, 226, 0.1);
}

.platform-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}

.platform-item:hover .platform-name {
    color: var(--brand-cyan);
}

/* ══════════════════════════════════════════════════════════════
   STATS SECTION
   ══════════════════════════════════════════════════════════════ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 40px 32px;
    text-align: center;
    transition: all var(--transition-normal);
}

.stat-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.stat-value {
    display: inline;
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.stat-suffix {
    display: inline;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--brand-cyan);
    margin-left: 2px;
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 8px;
    margin-bottom: 16px;
}

.stat-bar {
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    border-radius: 4px;
    background: var(--gradient-brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.5s ease;
}

.stat-card.animate .stat-bar-fill {
    transform: scaleX(1);
}

/* ══════════════════════════════════════════════════════════════
   REVIEWS SECTION
   ══════════════════════════════════════════════════════════════ */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.review-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.review-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.review-stars {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 20px;
    color: var(--brand-amber);
}

.review-rating {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-left: 8px;
}

.review-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    border: none;
    padding: 0;
    margin-bottom: 24px;
    flex: 1;
    font-style: italic;
}

.review-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    flex-shrink: 0;
}

.review-info {
    flex: 1;
}

.review-client {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.review-date {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.review-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #22c55e;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.reviews-cta {
    text-align: center;
}

/* ══════════════════════════════════════════════════════════════
   TEAM SECTION
   ══════════════════════════════════════════════════════════════ */
.team-card {
    display: flex;
    align-items: center;
    gap: 60px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 60px;
    max-width: 900px;
    margin: 0 auto;
    transition: all var(--transition-normal);
}

.team-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-card-hover);
}

.team-photo {
    flex-shrink: 0;
}

.team-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-photo-placeholder img {
    border-radius: 100%;
    width: 180px;
}

.team-name {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.team-role {
    font-size: 1rem;
    font-weight: 600;
    color: var(--brand-cyan);
    margin-bottom: 16px;
}

.team-certs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.cert-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 50px;
    background: rgba(41, 171, 226, 0.08);
    color: var(--brand-cyan);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border: 1px solid rgba(41, 171, 226, 0.15);
}

.team-bio {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.team-links {
    display: flex;
    gap: 12px;
}

.team-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand-cyan);
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(41, 171, 226, 0.2);
    transition: all var(--transition-fast);
}

.team-link:hover {
    background: rgba(41, 171, 226, 0.08);
    border-color: var(--brand-cyan);
}

/* ══════════════════════════════════════════════════════════════
   CONTACT SECTION
   ══════════════════════════════════════════════════════════════ */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: start;
}
.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-info .section-title {
    text-align: left;
}

.contact-info .section-label {
    text-align: left;
    display: block;
}

.contact-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-detail-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(41, 171, 226, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-cyan);
    flex-shrink: 0;
    border: 1px solid rgba(41, 171, 226, 0.12);
}

.contact-detail-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2px;
}

.contact-detail-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

a.contact-detail-value:hover {
    color: var(--brand-cyan);
}

/* Contact form card */
.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    transition: all var(--transition-theme);
}

.contact-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 28px;
    color: var(--text-primary);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-tertiary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--brand-cyan);
    box-shadow: 0 0 0 3px rgba(41, 171, 226, 0.1);
}

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

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236a6a7a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-success {
    text-align: center;
    padding: 40px 20px;
}

.form-success svg {
    color: #22c55e;
    margin-bottom: 16px;
}

.form-success h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

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

/* ══════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════ */
.footer {
    background: var(--bg-secondary);
    padding: 80px 0 40px;
    border-top: 1px solid var(--border-color);
    transition: all var(--transition-theme);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    margin-bottom: 60px;
}

.footer-logo {
    height: 32px;
    width: auto;
    margin-bottom: 16px;
}

.footer-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 280px;
}

.footer-links-group h4 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--brand-cyan);
}

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

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

.footer-tagline {
    font-weight: 600;
    color: var(--text-tertiary);
}

/* ══════════════════════════════════════════════════════════════
   BACK TO TOP
   ══════════════════════════════════════════════════════════════ */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--gradient-brand);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all var(--transition-normal);
    z-index: 900;
    box-shadow: 0 4px 16px rgba(0, 53, 206, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 53, 206, 0.4);
}

/* ══════════════════════════════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════════════════════════════ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll-triggered animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation for children */
.stagger-children .fade-in:nth-child(1) { transition-delay: 0.05s; }
.stagger-children .fade-in:nth-child(2) { transition-delay: 0.1s; }
.stagger-children .fade-in:nth-child(3) { transition-delay: 0.15s; }
.stagger-children .fade-in:nth-child(4) { transition-delay: 0.2s; }
.stagger-children .fade-in:nth-child(5) { transition-delay: 0.25s; }
.stagger-children .fade-in:nth-child(6) { transition-delay: 0.3s; }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN
   ══════════════════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .reviews-grid .review-card:nth-child(3) {
        grid-column: span 2;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .team-card {
        flex-direction: column;
        text-align: center;
        padding: 48px 40px;
        gap: 32px;
    }

    .team-certs {
        justify-content: center;
    }

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

/* Mobile */
@media (max-width: 768px) {
    :root {
        --section-padding: 64px 0;
    }

    /* Navigation mobile */
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        padding: 16px 24px;
        gap: 4px;
        transform: translateY(-120%);
        transition: transform var(--transition-normal);
        z-index: 999;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-links a {
        display: block;
        padding: 12px 16px;
        font-size: 1rem;
    }

    .nav-cta {
        text-align: center;
        margin-top: 8px;
    }

    .hamburger {
        display: flex;
    }

    /* Hero mobile */
    .hero-title {
        font-size: clamp(2rem, 7vw, 3rem);
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-trust {
        flex-direction: column;
        gap: 12px;
    }

    .trust-separator {
        display: none;
    }

    /* Services mobile */
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Stats mobile */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .stat-value {
        font-size: 2.2rem;
    }

    /* Reviews mobile */
    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .reviews-grid .review-card:nth-child(3) {
        grid-column: span 1;
    }

    /* Platforms mobile */
    .platforms-row {
        gap: 16px;
    }

    .platform-item {
        padding: 14px 24px;
    }

    /* Footer mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

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

    .team-photo-placeholder {
        width: 140px;
        height: 140px;
    }

    .contact-card {
        padding: 28px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .stat-card {
        padding: 24px 20px;
    }

    .stat-value {
        font-size: 1.8rem;
    }

    .service-card {
        padding: 28px 24px 24px;
    }

    .team-card {
        padding: 32px 24px;
    }

    .about-card {
        padding: 28px 24px;
    }
}

/* ══════════════════════════════════════════════════════════════
   PRINT STYLES
   ══════════════════════════════════════════════════════════════ */
@media print {
    .navbar,
    .back-to-top,
    .theme-toggle,
    #network-canvas {
        display: none !important;
    }

    .hero {
        min-height: auto;
        padding: 40px 0;
    }

    .section {
        padding: 40px 0;
    }

    body {
        color: #000;
        background: #fff;
    }
}
