/* =============================================================================
   SANGAMAM COMMUNICATIONS - Main Stylesheet
   Enterprise Premium UI
   ============================================================================= */

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

:root {
    --sc-blue: #1e40af;
    --sc-blue-dark: #1e3a8a;
    --sc-blue-light: #3b82f6;
    --sc-cyan: #06b6d4;
    --sc-dark: #0f172a;
    --sc-navy: #1e293b;
    --sc-gray: #64748b;
    --sc-gray-light: #94a3b8;
    --sc-border: #e2e8f0;
    --sc-light: #f8fafc;
    --sc-white: #ffffff;
    --sc-gold: #f59e0b;
    --sc-green: #10b981;
    --sc-red: #ef4444;
    --font-display: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: 0.3s ease;
    --transition-slow: 0.6s ease;
    --shadow-xs: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.1);
    --shadow: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);
    --shadow-blue: 0 8px 32px rgba(30,64,175,0.25);
    --radius-sm: 0.5rem;
    --radius: 0.75rem;
    --radius-lg: 1.25rem;
    --radius-xl: 2rem;
    --header-h: 80px;
}

[data-theme="dark"] {
    --sc-white: #0f172a;
    --sc-light: #1e293b;
    --sc-border: #334155;
    --sc-navy: #e2e8f0;
    --sc-gray: #94a3b8;
}

html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--sc-white);
    color: var(--sc-navy);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--sc-dark);
}
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3 { color: #f1f5f9; }

.display-1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
.display-2 { font-size: clamp(2rem, 5vw, 3.5rem); }
.section-title { font-size: clamp(1.75rem, 4vw, 2.75rem); font-family: var(--font-display); }
.section-subtitle { font-size: 1.125rem; color: var(--sc-gray); max-width: 580px; }

.text-gradient {
    background: linear-gradient(135deg, var(--sc-blue) 0%, var(--sc-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.text-gold { color: var(--sc-gold); }

/* ---- Links ---- */
a { color: var(--sc-blue); transition: color var(--transition); }
a:hover { color: var(--sc-blue-dark); }

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1040;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--sc-border);
    transition: box-shadow var(--transition);
}
[data-theme="dark"] .site-header {
    background: rgba(15,23,42,0.95);
    border-bottom-color: var(--sc-border);
}
.site-header.scrolled { box-shadow: var(--shadow); }

.header-top {
    background: var(--sc-dark);
    color: rgba(255,255,255,0.75);
    font-size: 0.8rem;
}
.header-top-link {
    color: rgba(255,255,255,0.75);
    transition: color var(--transition);
}
.header-top-link:hover { color: var(--sc-cyan); }
.social-mini a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    transition: color var(--transition);
}
.social-mini a:hover { color: var(--sc-cyan); }

/* Logo */
.navbar-brand { display: flex; align-items: center; gap: 0.625rem; text-decoration: none; }
.logo-mark { flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; }
.logo-name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.1rem;
    line-height: 1.1;
    color: var(--sc-dark);
    letter-spacing: -0.02em;
}
.logo-sub {
    font-size: 0.65rem;
    color: var(--sc-gray);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 500;
}
[data-theme="dark"] .logo-name { color: #f1f5f9; }

/* Main Nav */
.main-nav { padding: 0.75rem 0; }
.navbar-nav .nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--sc-navy);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    position: relative;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: var(--sc-blue); background: rgba(30,64,175,0.06); }
[data-theme="dark"] .navbar-nav .nav-link { color: #cbd5e1; }
[data-theme="dark"] .navbar-nav .nav-link:hover { color: #93c5fd; }

.nav-cta {
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
}

.dark-toggle {
    background: none;
    border: 1px solid var(--sc-border);
    color: var(--sc-gray);
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all var(--transition);
}
.dark-toggle:hover { border-color: var(--sc-blue); color: var(--sc-blue); }

/* ============================================
   MEGA MENU
   ============================================ */
.mega-menu-item { position: static !important; }
.mega-menu {
    left: 0 !important;
    right: 0 !important;
    width: 100%;
    border: none;
    border-top: 3px solid var(--sc-blue);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2rem 0;
    margin-top: 0 !important;
    background: var(--sc-white);
}
[data-theme="dark"] .mega-menu { background: #1e293b; }
.mega-menu-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}
.mega-menu-sm .mega-menu-inner { grid-template-columns: repeat(2, 1fr); }
.mega-col {}
.mega-heading {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sc-gray);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--sc-border);
}
.mega-link {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--sc-navy);
    padding: 0.35rem 0.5rem;
    margin: 0.1rem 0;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all var(--transition);
}
.mega-link:hover { color: var(--sc-blue); background: rgba(30,64,175,0.06); padding-left: 0.9rem; }
[data-theme="dark"] .mega-link { color: #cbd5e1; }

.mega-cta-card {
    background: linear-gradient(135deg, #eff6ff, #e0f2fe);
    border-radius: var(--radius);
    padding: 1.5rem;
    height: 100%;
}
[data-theme="dark"] .mega-cta-card { background: linear-gradient(135deg, #1e3a8a33, #0c4a6e33); }
.mega-cta-icon {
    width: 48px;
    height: 48px;
    background: var(--sc-blue);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    margin-bottom: 0.75rem;
}
.mega-cta-card h6 { font-family: var(--font-display); margin-bottom: 0.5rem; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: all var(--transition);
}
.btn-primary {
    background: linear-gradient(135deg, var(--sc-blue) 0%, var(--sc-blue-light) 100%);
    border: none;
    box-shadow: var(--shadow-blue);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--sc-blue-dark) 0%, var(--sc-blue) 100%);
    transform: translateY(-1px);
    box-shadow: 0 12px 40px rgba(30,64,175,0.35);
}
.btn-outline-primary { border: 2px solid var(--sc-blue); color: var(--sc-blue); }
.btn-outline-primary:hover { background: var(--sc-blue); transform: translateY(-1px); }
.btn-lg { padding: 0.875rem 2rem; font-size: 1rem; border-radius: 3rem; }
.btn-xl { padding: 1.1rem 2.5rem; font-size: 1.1rem; border-radius: 3rem; }
.btn-ghost {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
}
.btn-ghost:hover { background: rgba(255,255,255,0.2); color: white; }

/* ============================================
   SECTIONS
   ============================================ */
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-lg { padding: 7rem 0; }
.section-dark { background: var(--sc-dark); color: white; }
.section-light { background: var(--sc-light); }
.section-blue { background: linear-gradient(135deg, var(--sc-blue-dark) 0%, var(--sc-blue) 100%); color: white; }

/* Label above heading */
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sc-blue);
    background: rgba(30,64,175,0.08);
    padding: 0.375rem 0.875rem;
    border-radius: 2rem;
    margin-bottom: 1rem;
}
.section-dark .section-eyebrow { background: rgba(255,255,255,0.1); color: var(--sc-cyan); }
.section-blue .section-eyebrow { background: rgba(255,255,255,0.15); color: white; }

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    min-height: calc(100vh - var(--header-h));
    background: var(--sc-dark);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 5rem 0;
}
.hero-bg-mesh {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 60% 40%, rgba(30,64,175,0.35) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 20% 80%, rgba(6,182,212,0.2) 0%, transparent 50%),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(59,130,246,0.15) 0%, transparent 50%);
    z-index: 0;
}
.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
}
.hero-content { position: relative; z-index: 1; }
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(6,182,212,0.12);
    border: 1px solid rgba(6,182,212,0.25);
    color: var(--sc-cyan);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.375rem 1rem;
    border-radius: 2rem;
    margin-bottom: 1.5rem;
    animation: fadeInDown 0.6s ease both;
}
.hero-eyebrow::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--sc-cyan);
    border-radius: 50%;
    animation: pulse 2s infinite;
}
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.25rem);
    font-weight: 800;
    color: white;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.7s 0.1s ease both;
}
.hero-sub {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.7);
    max-width: 560px;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.7s 0.2s ease both;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
    animation: fadeInUp 0.7s 0.3s ease both;
}
.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    animation: fadeInUp 0.7s 0.4s ease both;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
}
.hero-stat-item { text-align: left; }
.hero-stat-num {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}
.hero-stat-num span { color: var(--sc-cyan); }
.hero-stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.55); margin-top: 0.25rem; }

.hero-visual {
    position: relative;
    animation: fadeInRight 0.8s 0.2s ease both;
}
.hero-card-stack {
    position: relative;
    padding: 2rem;
}
.hero-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    margin-bottom: 1rem;
    transition: transform var(--transition);
}
.hero-card:hover { transform: translateX(4px); }
.hero-card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}
.hero-card h6 { color: white; font-size: 0.9rem; margin-bottom: 0.25rem; }
.hero-card p { color: rgba(255,255,255,0.55); font-size: 0.8rem; margin: 0; }

/* Floating accent orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: orbitFloat 8s ease-in-out infinite;
}
.hero-orb-1 { width: 300px; height: 300px; background: rgba(30,64,175,0.3); filter: blur(80px); top: -100px; right: -100px; }
.hero-orb-2 { width: 200px; height: 200px; background: rgba(6,182,212,0.2); filter: blur(60px); bottom: 50px; right: 100px; animation-delay: -4s; }

/* ============================================
   CLIENTS / LOGOS
   ============================================ */
.clients-section { padding: 2.5rem 0; border-top: 1px solid var(--sc-border); border-bottom: 1px solid var(--sc-border); }
.clients-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sc-gray); white-space: nowrap; }
.clients-scroll {
    display: flex;
    gap: 3rem;
    align-items: center;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}
.clients-track {
    display: flex;
    gap: 3rem;
    align-items: center;
    animation: scrollClients 30s linear infinite;
    white-space: nowrap;
    min-width: max-content;
}
.client-logo {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--sc-gray-light);
    opacity: 0.6;
    transition: opacity var(--transition);
    white-space: nowrap;
}
.client-logo:hover { opacity: 1; }

/* ============================================
   SERVICES GRID
   ============================================ */
.service-card {
    background: var(--sc-white);
    border: 1px solid var(--sc-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--sc-blue), var(--sc-cyan));
    opacity: 0;
    transition: opacity var(--transition);
}
.service-card:hover {
    border-color: transparent;
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    color: inherit;
}
.service-card:hover::before { opacity: 1; }
[data-theme="dark"] .service-card { background: #1e293b; border-color: #334155; }

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, rgba(30,64,175,0.1), rgba(6,182,212,0.1));
    color: var(--sc-blue);
    transition: all var(--transition);
}
.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--sc-blue), var(--sc-cyan));
    color: white;
}
.service-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-display);
}
.service-card p { font-size: 0.875rem; color: var(--sc-gray); margin: 0; line-height: 1.6; }
.service-card-arrow {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    color: var(--sc-gray-light);
    font-size: 1.25rem;
    transition: all var(--transition);
}
.service-card:hover .service-card-arrow { color: var(--sc-blue); transform: translate(3px, -3px); }

/* ============================================
   STATS / COUNTER
   ============================================ */
.stats-section { background: linear-gradient(135deg, var(--sc-blue-dark) 0%, var(--sc-blue) 100%); padding: 4rem 0; }
.stat-card { text-align: center; padding: 1.5rem; }
.stat-number {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: white;
    line-height: 1;
    margin-bottom: 0.5rem;
}
.stat-number span { color: var(--sc-gold); }
.stat-label { color: rgba(255,255,255,0.7); font-size: 0.9rem; font-weight: 500; }
.stat-divider {
    width: 1px;
    background: rgba(255,255,255,0.15);
    align-self: stretch;
}

/* ============================================
   PROCESS / TIMELINE
   ============================================ */
.process-step {
    display: flex;
    gap: 1.5rem;
    position: relative;
    padding-bottom: 2.5rem;
}
.process-step:last-child { padding-bottom: 0; }
.process-step::before {
    content: '';
    position: absolute;
    left: 22px;
    top: 48px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(var(--sc-blue), transparent);
}
.process-step:last-child::before { display: none; }
.step-num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sc-blue), var(--sc-cyan));
    color: white;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-blue);
    position: relative;
    z-index: 1;
}
.step-content h5 { font-family: var(--font-display); margin-bottom: 0.35rem; }
.step-content p { color: var(--sc-gray); font-size: 0.875rem; margin: 0; }

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonial-card {
    background: var(--sc-white);
    border: 1px solid var(--sc-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
    position: relative;
}
[data-theme="dark"] .testimonial-card { background: #1e293b; border-color: #334155; }
.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-family: Georgia, serif;
    font-size: 4rem;
    line-height: 1;
    color: var(--sc-blue);
    opacity: 0.15;
}
.testimonial-stars { color: var(--sc-gold); margin-bottom: 1rem; font-size: 0.9rem; }
.testimonial-text { font-size: 0.9rem; color: var(--sc-navy); line-height: 1.7; margin-bottom: 1.25rem; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sc-blue), var(--sc-cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}
.testimonial-name { font-weight: 600; font-size: 0.9rem; line-height: 1.2; }
.testimonial-role { color: var(--sc-gray); font-size: 0.8rem; }

/* ============================================
   TECHNOLOGY STACK
   ============================================ */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
}
.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 0.75rem;
    background: var(--sc-white);
    border: 1px solid var(--sc-border);
    border-radius: var(--radius);
    transition: all var(--transition);
    cursor: default;
}
[data-theme="dark"] .tech-item { background: #1e293b; border-color: #334155; }
.tech-item:hover { border-color: var(--sc-blue); box-shadow: var(--shadow-blue); transform: translateY(-2px); }
.tech-item i { font-size: 1.75rem; color: var(--sc-blue); }
.tech-item span { font-size: 0.72rem; font-weight: 600; text-align: center; color: var(--sc-gray); }

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, var(--sc-dark) 0%, var(--sc-blue-dark) 100%);
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
}
.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 60% at 80% 50%, rgba(59,130,246,0.2) 0%, transparent 60%),
        radial-gradient(ellipse 40% 40% at 20% 50%, rgba(6,182,212,0.15) 0%, transparent 50%);
}
.cta-content { position: relative; z-index: 1; }
.cta-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
}
.cta-sub { color: rgba(255,255,255,0.7); font-size: 1.1rem; margin-bottom: 2.5rem; }
.cta-badges { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.cta-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255,255,255,0.75);
    font-size: 0.85rem;
}
.cta-badge i { color: var(--sc-cyan); }

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-form-card {
    background: var(--sc-white);
    border: 1px solid var(--sc-border);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}
[data-theme="dark"] .contact-form-card { background: #1e293b; border-color: #334155; }
.form-label { font-weight: 500; font-size: 0.875rem; color: var(--sc-navy); margin-bottom: 0.375rem; }
.form-control, .form-select {
    border: 1.5px solid var(--sc-border);
    border-radius: var(--radius-sm);
    padding: 0.625rem 0.875rem;
    font-size: 0.9rem;
    transition: all var(--transition);
    background: var(--sc-white);
    color: var(--sc-navy);
}
.form-control:focus, .form-select:focus {
    border-color: var(--sc-blue);
    box-shadow: 0 0 0 3px rgba(30,64,175,0.1);
}
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}

/* ============================================
   BLOG CARDS
   ============================================ */
.blog-card {
    background: var(--sc-white);
    border: 1px solid var(--sc-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}
[data-theme="dark"] .blog-card { background: #1e293b; border-color: #334155; }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-thumb {
    height: 200px;
    background: linear-gradient(135deg, var(--sc-blue-dark), var(--sc-blue));
    position: relative;
    overflow: hidden;
}
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255,255,255,0.3);
}
.blog-category {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--sc-blue);
    background: rgba(30,64,175,0.08);
    padding: 0.2rem 0.6rem;
    border-radius: 1rem;
}
.blog-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.blog-title { font-size: 1rem; font-family: var(--font-display); margin: 0.5rem 0; line-height: 1.4; }
.blog-title a { color: inherit; text-decoration: none; }
.blog-title a:hover { color: var(--sc-blue); }
.blog-excerpt { font-size: 0.85rem; color: var(--sc-gray); margin-bottom: 1rem; flex: 1; }
.blog-meta { display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; color: var(--sc-gray-light); margin-top: auto; }

/* ============================================
   CASE STUDIES
   ============================================ */
.case-card {
    background: var(--sc-white);
    border: 1px solid var(--sc-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
}
[data-theme="dark"] .case-card { background: #1e293b; border-color: #334155; }
.case-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.case-header {
    background: linear-gradient(135deg, var(--sc-blue-dark), var(--sc-blue));
    padding: 2rem;
    color: white;
}
.case-industry { font-size: 0.75rem; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.08em; }
.case-title { font-family: var(--font-display); font-size: 1.2rem; margin: 0.5rem 0 0; }
.case-body { padding: 1.5rem; }
.case-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin-bottom: 1rem; }
.case-metric { text-align: center; }
.case-metric-val { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: var(--sc-blue); }
.case-metric-val span { color: var(--sc-green); }
.case-metric-label { font-size: 0.7rem; color: var(--sc-gray); }

/* ============================================
   PRODUCTS
   ============================================ */
.product-card {
    background: var(--sc-white);
    border: 1px solid var(--sc-border);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    height: 100%;
    position: relative;
    transition: all var(--transition);
    overflow: hidden;
}
[data-theme="dark"] .product-card { background: #1e293b; border-color: #334155; }
.product-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--sc-blue), var(--sc-cyan));
    opacity: 0;
    transition: opacity var(--transition);
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.product-card:hover::after { opacity: 1; }
.product-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}
.product-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.badge-new { background: rgba(16,185,129,0.1); color: var(--sc-green); }
.badge-popular { background: rgba(30,64,175,0.1); color: var(--sc-blue); }

/* ============================================
   INDUSTRIES
   ============================================ */
.industry-card {
    background: var(--sc-white);
    border: 1px solid var(--sc-border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    text-align: center;
    transition: all var(--transition);
    text-decoration: none;
    color: inherit;
    display: block;
}
[data-theme="dark"] .industry-card { background: #1e293b; border-color: #334155; }
.industry-card:hover { border-color: var(--sc-blue); box-shadow: var(--shadow); transform: translateY(-3px); color: inherit; }
.industry-icon { font-size: 2.5rem; margin-bottom: 0.75rem; display: block; }
.industry-name { font-weight: 600; font-size: 0.9rem; }

/* ============================================
   FAQ
   ============================================ */
.faq-item { border: 1px solid var(--sc-border); border-radius: var(--radius); margin-bottom: 0.75rem; overflow: hidden; }
[data-theme="dark"] .faq-item { border-color: #334155; }
.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.25rem 1.5rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--sc-navy);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all var(--transition);
}
[data-theme="dark"] .faq-question { color: #e2e8f0; }
.faq-question:hover { color: var(--sc-blue); background: rgba(30,64,175,0.03); }
.faq-question[aria-expanded="true"] { color: var(--sc-blue); background: rgba(30,64,175,0.04); }
.faq-question i { transition: transform var(--transition); flex-shrink: 0; }
.faq-question[aria-expanded="true"] i { transform: rotate(180deg); }
.faq-answer { padding: 0 1.5rem 1.25rem; color: var(--sc-gray); font-size: 0.9rem; line-height: 1.7; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--sc-dark);
    color: rgba(255,255,255,0.75);
}
.footer-newsletter {
    background: linear-gradient(135deg, var(--sc-blue-dark) 0%, #0c4a6e 100%);
    padding: 3.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.newsletter-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: white;
    margin-bottom: 0.5rem;
}
.newsletter-sub { color: rgba(255,255,255,0.65); }
.newsletter-form .form-control {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    border-radius: 2rem 0 0 2rem;
}
.newsletter-form .form-control::placeholder { color: rgba(255,255,255,0.45); }
.newsletter-form .form-control:focus { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.4); box-shadow: none; }
.newsletter-form .btn { border-radius: 0 2rem 2rem 0; }

.footer-main { padding: 4rem 0; }
.footer-logo { color: white; text-decoration: none; }
.footer-desc { color: rgba(255,255,255,0.55); font-size: 0.875rem; line-height: 1.7; margin-bottom: 1.5rem; }
.footer-contact-list { margin-bottom: 1.5rem; }
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    margin-bottom: 0.6rem;
    text-decoration: none;
    transition: color var(--transition);
}
.footer-contact-item i { color: var(--sc-cyan); flex-shrink: 0; margin-top: 0.15rem; }
.footer-contact-item:hover { color: white; }
.footer-social { display: flex; gap: 0.5rem; }
.social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all var(--transition);
    text-decoration: none;
}
.social-btn:hover { background: var(--sc-blue); border-color: var(--sc-blue); color: white; }

.footer-heading {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: white;
    margin-bottom: 1rem;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a {
    color: rgba(255,255,255,0.55);
    font-size: 0.875rem;
    text-decoration: none;
    transition: all var(--transition);
    display: inline-block;
}
.footer-links a:hover { color: white; transform: translateX(3px); }

.tech-badges { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tech-badge {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.55);
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.25rem 0.55rem;
    border-radius: 0.3rem;
    transition: all var(--transition);
}
.tech-badge:hover { background: rgba(30,64,175,0.3); border-color: rgba(30,64,175,0.5); color: white; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 1.25rem 0;
    background: rgba(0,0,0,0.2);
}
.footer-bottom p { color: rgba(255,255,255,0.45); }
.footer-legal-nav a { color: rgba(255,255,255,0.45); text-decoration: none; transition: color var(--transition); }
.footer-legal-nav a:hover { color: white; }

/* ============================================
   FLOATING ELEMENTS
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    z-index: 1000;
    transition: all var(--transition);
    text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 8px 30px rgba(37,211,102,0.5); }
.whatsapp-tooltip {
    position: absolute;
    right: 68px;
    background: var(--sc-dark);
    color: white;
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}
.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; }

.scroll-top-btn {
    position: fixed;
    bottom: 5.5rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    background: var(--sc-blue);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: var(--shadow-blue);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
    cursor: pointer;
}
.scroll-top-btn.visible { opacity: 1; pointer-events: auto; }
.scroll-top-btn:hover { background: var(--sc-blue-dark); transform: translateY(-2px); }

/* ============================================
   COOKIE BANNER
   ============================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--sc-dark);
    color: white;
    padding: 1rem 0;
    z-index: 2000;
    border-top: 3px solid var(--sc-blue);
}
.cookie-banner a { color: var(--sc-cyan); }

/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumb-nav { background: var(--sc-light); border-bottom: 1px solid var(--sc-border); padding: 0.75rem 0; }
.breadcrumb { margin: 0; }
.breadcrumb-item a { color: var(--sc-blue); text-decoration: none; font-size: 0.85rem; }
.breadcrumb-item.active { color: var(--sc-gray); font-size: 0.85rem; }
.breadcrumb-item + .breadcrumb-item::before { color: var(--sc-gray-light); }

/* ============================================
   PAGE HERO (inner pages)
   ============================================ */
.page-hero {
    background: linear-gradient(135deg, var(--sc-dark) 0%, var(--sc-blue-dark) 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero-title { font-family: var(--font-display); font-size: clamp(1.75rem, 4vw, 3rem); font-weight: 800; color: white; margin-bottom: 0.75rem; }
.page-hero-sub { color: rgba(255,255,255,0.65); font-size: 1rem; max-width: 600px; }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-24px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}
@keyframes orbitFloat {
    0%, 100% { transform: translate(0,0); }
    50% { transform: translate(20px, -20px); }
}
@keyframes scrollClients {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@keyframes countUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Scroll-triggered reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

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

/* ============================================
   UTILITIES
   ============================================ */
.bg-gradient-blue { background: linear-gradient(135deg, var(--sc-blue-dark), var(--sc-blue)); }
.bg-gradient-dark { background: linear-gradient(135deg, var(--sc-dark), var(--sc-navy)); }
.border-blue { border-color: var(--sc-blue) !important; }
.icon-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--sc-border), transparent);
    margin: 4rem 0;
}
.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: var(--sc-light);
    border: 1px solid var(--sc-border);
    color: var(--sc-navy);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.3rem 0.75rem;
    border-radius: 2rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991.98px) {
    .mega-menu { position: static !important; box-shadow: none; border: none; border-top: 1px solid var(--sc-border); border-radius: 0; padding: 1rem; }
    .mega-menu-inner { grid-template-columns: 1fr; gap: 1.5rem; }
    .mega-featured { display: none; }
    .hero-visual { margin-top: 3rem; }
    .hero-orb-1, .hero-orb-2 { display: none; }
}
@media (max-width: 767.98px) {
    .section { padding: 3.5rem 0; }
    .stats-section .stat-divider { display: none; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    .hero-stats { gap: 1.5rem; }
    .contact-form-card { padding: 1.5rem; }
    .footer-newsletter { padding: 2.5rem 0; }
}
@media (max-width: 575.98px) {
    :root { --header-h: 64px; }
    .hero-title { font-size: 2rem; }
    .whatsapp-float { bottom: 1rem; right: 1rem; }
    .scroll-top-btn { bottom: 4rem; right: 1rem; }
}

/* ============================================
   CARD HOVER GLOW EFFECT
   ============================================ */
.card-glow {
    position: relative;
    isolation: isolate;
}
.card-glow::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--sc-blue), var(--sc-cyan));
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}
.card-glow:hover::before { opacity: 0.15; }

/* ============================================
   SKELETON LOADING
   ============================================ */
.skeleton {
    background: linear-gradient(90deg, var(--sc-border) 25%, var(--sc-light) 50%, var(--sc-border) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

/* ============================================
   ALERTS & NOTICES
   ============================================ */
.alert-success-custom {
    background: rgba(16,185,129,0.08);
    border: 1px solid rgba(16,185,129,0.2);
    color: #065f46;
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
}
.alert-error-custom {
    background: rgba(239,68,68,0.08);
    border: 1px solid rgba(239,68,68,0.2);
    color: #991b1b;
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
}
[data-theme="dark"] .alert-success-custom { color: #6ee7b7; }
[data-theme="dark"] .alert-error-custom { color: #fca5a5; }

/* ============================================
   PAGINATION
   ============================================ */
.pagination .page-link {
    border-radius: var(--radius-sm);
    margin: 0 0.15rem;
    border: 1px solid var(--sc-border);
    color: var(--sc-blue);
    font-size: 0.875rem;
    transition: all var(--transition);
}
.pagination .page-link:hover,
.pagination .page-item.active .page-link {
    background: var(--sc-blue);
    border-color: var(--sc-blue);
    color: white;
}

/* ============================================
   FORMS - ADDITIONAL
   ============================================ */
.required-star { color: var(--sc-red); }
.char-counter { font-size: 0.75rem; color: var(--sc-gray-light); }
.form-hint { font-size: 0.78rem; color: var(--sc-gray); margin-top: 0.25rem; }

/* ============================================
   PWA INSTALL PROMPT
   ============================================ */
.pwa-install-banner {
    position: fixed;
    bottom: 5.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--sc-dark);
    color: white;
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 1500;
    max-width: 400px;
    width: calc(100% - 2rem);
}
