/* ============================================
   NexaCore — Unified Stylesheet
   Tech-Clean Design System
   ============================================ */

/* === DESIGN TOKENS === */
:root {
    --primary: #2563eb;
    --primary-light: #3b82f6;
    --primary-dark: #1e40af;
    --primary-logo: #185f89;
    --accent: #06b6d4;
    --accent-light: #22d3ee;
    --dark: #0f172a;
    --gray-900: #1e293b;
    --gray-800: #1e293b;
    --gray-700: #334155;
    --gray-600: #475569;
    --gray-500: #64748b;
    --gray-400: #94a3b8;
    --gray-300: #cbd5e1;
    --gray-200: #e2e8f0;
    --gray-100: #f1f5f9;
    --gray-50: #f8fafc;
    --white: #ffffff;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;

    --font-primary: 'Plus Jakarta Sans', sans-serif;
    --font-display: 'DM Sans', sans-serif;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.12);
    --shadow-primary: 0 4px 14px rgba(37, 99, 235, 0.25);
    --shadow-primary-lg: 0 8px 24px rgba(37, 99, 235, 0.35);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50px;

    --transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    --transition-slow: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.5s ease;
    --tech-grid-opacity: 0.05;
}

/* DARK MODE OVERRIDES */
body.dark-mode {
    --white: #030712;
    --gray-50: #0a0f1d;
    --gray-100: #0f172a;
    --gray-200: #1e293b;
    --gray-900: #f8fafc;
    --gray-800: #f1f5f9;
    --gray-700: #e2e8f0;
    --gray-600: #cbd5e1;
    --gray-500: #94a3b8;
    --dark: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.6);
    --tech-grid-opacity: 0.12;
}

body.dark-mode nav:not(:has(.nav-container)) {
    background: rgba(3, 7, 18, 0.8) !important;
    border-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode nav:not(:has(.nav-container)).scrolled {
    background: rgba(3, 7, 18, 0.95) !important;
}

body.dark-mode .logo-text {
    color: #ffffff;
}

body.dark-mode .nav-links a {
    color: #94a3b8;
}

body.dark-mode .nav-links a:hover,
body.dark-mode .nav-links a.active {
    color: #ffffff;
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4 {
    color: #ffffff;
}

body.dark-mode footer {
    background: #02040a !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

body.dark-mode .footer-bottom {
    border-color: rgba(255, 255, 255, 0.05);
}

/* === RESET & BASE === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-primary);
    background: var(--white);
    color: var(--gray-900);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul,
ol {
    list-style: none;
}

/* === UTILITIES === */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* === NAVIGATION === */
/* Estilos base compartidos para todo nav */
nav {
    position: fixed;
    top: 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform;
}

/* Estilos exclusivos para el navbar legacy (sin .nav-container bento) */
nav:not(:has(.nav-container)) {
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(241, 245, 249, 0.5);
}

nav:not(:has(.nav-container)).scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.97);
}

nav .container {
    padding: 0.9rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 8px;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -0.5px;
}

.logo-text span {
    color: var(--primary-logo);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--gray-700);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.2rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.3s;
    border-radius: 2px;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--primary);
}

.nav-links a.active::after {
    width: 100%;
}

.nav-cta {
    padding: 0.65rem 1.4rem !important;
    background: var(--primary);
    color: var(--white) !important;
    border-radius: var(--radius-sm);
    font-weight: 600 !important;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    background: var(--primary-dark) !important;
    color: var(--white) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-primary);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    z-index: 1010;
    background: none;
    border: none;
}

.menu-toggle span {
    width: 26px;
    height: 2.5px;
    background: var(--gray-700);
    transition: var(--transition);
    border-radius: 2px;
}

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

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

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

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s;
}

.mobile-nav-overlay.active {
    opacity: 1;
}

/* === BUTTONS === */
.btn {
    padding: 0.9rem 1.8rem;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-primary);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary-lg);
}

.btn-secondary {
    background: var(--white);
    color: var(--gray-700);
    border: 2px solid var(--gray-200);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-icon {
    font-size: 1.1em;
    display: inline-flex;
    align-items: center;
}

/* === SECTION COMMON === */
section {
    padding: 120px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.section-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

h1 {
    font-size: 4.2rem;
    font-weight: 800;
    line-height: 1.08;
    color: var(--dark);
    letter-spacing: -2px;
}

h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--dark);
    letter-spacing: -1px;
}

h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
}

.section-description {
    font-size: 1.15rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* === HERO SECTION === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 50%, rgba(37, 99, 235, 0.02) 100%);
    overflow: hidden;
}

.hero::before {
    background: radial-gradient(ellipse, rgba(37, 99, 235, 0.03) 0%, transparent 65%);
    pointer-events: none;
    animation: heroGlow 12s ease-in-out infinite alternate;
    will-change: transform, opacity;
    transform: translateZ(0);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 50%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(6, 182, 212, 0.03) 0%, transparent 60%);
    pointer-events: none;
}

@keyframes heroGlow {
    0% {
        opacity: 0.5;
        transform: translate(0, 0) scale(1);
    }

    100% {
        opacity: 1;
        transform: translate(-3%, 2%) scale(1.05);
    }
}

.hero-content {
    max-width: 720px;
    position: relative;
    z-index: 1;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2rem;
    letter-spacing: 0.5px;
}

.hero-tag .pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.5);
    }
}

h1 .gradient-text {
    background: linear-gradient(135deg, var(--primary-logo) 0%, var(--primary) 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.35rem;
    color: var(--gray-700);
    margin-bottom: 1.5rem;
    font-weight: 500;
    line-height: 1.6;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray-600);
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--gray-200);
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-display);
    letter-spacing: -1px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--gray-500);
    font-weight: 500;
    margin-top: 0.2rem;
}

/* === SERVICES SECTION === */
.services {
    background: var(--gray-50);
}

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

.service-card {
    padding: 2.2rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(6, 182, 212, 0.08));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    color: var(--primary);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    transform: scale(1.05);
}

.service-icon svg {
    width: 24px;
    height: 24px;
    stroke-width: 2;
}

.service-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--dark);
}

.service-description {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.65;
}

/* === WHY SECTION === */
.why-section {
    background: var(--white);
}

.why-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.why-text .section-tag {
    margin-bottom: 1rem;
}

.why-text h2 {
    text-align: left;
    margin-bottom: 1.5rem;
}

.why-text p {
    font-size: 1.1rem;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.why-features {
    display: grid;
    gap: 1.2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.2rem;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.feature-item:hover {
    background: rgba(37, 99, 235, 0.04);
    transform: translateX(4px);
}

.feature-check {
    width: 24px;
    height: 24px;
    min-width: 24px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.75rem;
    margin-top: 0.1rem;
}

.feature-text {
    font-size: 1rem;
    color: var(--gray-700);
    line-height: 1.5;
    font-weight: 500;
}

/* === PROCESS SECTION === */
.process {
    background: var(--gray-50);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
}

/* Connection line between steps */
.process-grid::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 10%;
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0.2;
    z-index: 0;
}

.process-step {
    text-align: center;
    padding: 2rem 1rem;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
    transition: var(--transition);
}

.process-step:hover .step-number {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.step-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.step-description {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* === SECTORS SECTION === */
.sectors {
    background: var(--white);
    overflow: hidden;
}

/* --- Sector Filters --- */
.sectors-filters {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.sector-filter-btn {
    padding: 0.5rem 1.4rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-full);
    background: var(--white);
    color: var(--gray-600);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-primary);
    letter-spacing: 0.2px;
}

.sector-filter-btn:hover {
    border-color: var(--primary-light);
    color: var(--primary);
    background: rgba(37, 99, 235, 0.04);
}

.sector-filter-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

/* --- Carousel Wrapper --- */
.sectors-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sectors-carousel {
    overflow: hidden;
    flex: 1;
    border-radius: var(--radius-lg);
}

.sectors-track {
    display: flex;
    gap: 1.2rem;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1.5rem 0.5rem 2rem;
}

/* --- Carousel Arrows --- */
.carousel-arrow {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    border: 2px solid var(--gray-200);
    background: var(--white);
    color: var(--gray-500);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.carousel-arrow:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(37, 99, 235, 0.06);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.15);
    transform: scale(1.08);
}

.carousel-arrow:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* --- Carousel Dots --- */
.sectors-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.sector-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: var(--gray-200);
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.sector-dot:hover {
    background: var(--primary-light);
    transform: scale(1.25);
}

.sector-dot.active {
    background: var(--primary);
    width: 28px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

/* --- Sector Image Card --- */
.sector-card-wrapper {
    flex: 0 0 280px;
    min-width: 280px;
    /* Reducimos la animación para ahorrar recursos, solo fluye suavemente */
    animation: sectorFloat 6s ease-in-out infinite;
    transition: opacity 0.4s, transform 0.4s;
    cursor: pointer;
    will-change: transform, opacity;
    transform: translateZ(0);
}

.sector-card-wrapper:nth-child(2n) {
    animation-delay: -1s;
}

.sector-card-wrapper:nth-child(3n) {
    animation-delay: -2s;
}

.sector-card-wrapper:nth-child(4n) {
    animation-delay: -0.5s;
}

.sector-card-wrapper:nth-child(5n) {
    animation-delay: -1.5s;
}

.sector-card-wrapper:nth-child(6n) {
    animation-delay: -2.5s;
}

.sector-card-wrapper:nth-child(7n) {
    animation-delay: -3s;
}

.sector-card-wrapper.hidden-card {
    opacity: 0;
    transform: scale(0.85);
    position: absolute;
    pointer-events: none;
    width: 0;
    min-width: 0;
    flex: 0 0 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

@keyframes sectorFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.sector-card-face {
    position: relative;
    width: 100%;
    height: 280px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 2px solid var(--gray-100);
    transition: border-color 0.35s, box-shadow 0.35s, transform 0.35s;
}

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

.sector-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(15, 23, 42, 0.25) 0%,
            rgba(15, 23, 42, 0.55) 60%,
            rgba(15, 23, 42, 0.85) 100%);
    transition: background 0.4s;
}

.sector-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.sector-card-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    margin: 0;
    line-height: 1.3;
}

.sector-cta-hint {
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    opacity: 0;
    transform: translateY(6px);
    transition: all 0.35s;
    letter-spacing: 0.3px;
}

/* Hover Effects */
.sector-card-wrapper:hover .sector-card-face {
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.1),
        0 8px 30px rgba(37, 99, 235, 0.18),
        0 0 60px rgba(37, 99, 235, 0.08);
    transform: translateY(-4px);
}

.sector-card-wrapper:hover .sector-card-face img {
    transform: scale(1.08);
}

.sector-card-wrapper:hover .sector-card-overlay {
    background: linear-gradient(180deg,
            rgba(15, 23, 42, 0.15) 0%,
            rgba(15, 23, 42, 0.45) 50%,
            rgba(37, 99, 235, 0.75) 100%);
}

.sector-card-wrapper:hover .sector-cta-hint {
    opacity: 1;
    transform: translateY(0);
    color: rgba(255, 255, 255, 0.9);
}

/* === SECTOR MODAL === */
.sector-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: background 0.4s ease;
    -webkit-backdrop-filter: blur(0);
    backdrop-filter: blur(0);
}

.sector-modal-overlay.active {
    background: rgba(15, 23, 42, 0.8);
    pointer-events: all;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.sector-modal {
    width: 440px;
    max-width: 92vw;
    height: 400px;
    max-height: 85vh;
    perspective: 1200px;
    transform: scale(0.75);
    opacity: 0;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
}

.sector-modal-overlay.active .sector-modal {
    transform: scale(1);
    opacity: 1;
}

.sector-modal-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.sector-modal-inner.flipped {
    transform: rotateY(180deg);
}

.sector-modal-front,
.sector-modal-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

/* Modal Front - Image + Title */
.sector-modal-front {
    display: flex;
    align-items: flex-end;
    z-index: 2;
}

.sector-modal-front img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sector-modal-front-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(15, 23, 42, 0.1) 0%,
            rgba(15, 23, 42, 0.5) 60%,
            rgba(15, 23, 42, 0.88) 100%);
}

.sector-modal-front h3 {
    position: relative;
    z-index: 2;
    color: var(--white);
    font-size: 1.6rem;
    font-weight: 800;
    padding: 2rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
    margin: 0;
    line-height: 1.3;
}

/* Modal Back - Solutions List */
.sector-modal-back {
    background: linear-gradient(145deg, #0f172a 0%, #1e3a5f 50%, var(--primary-dark) 100%);
    color: var(--white);
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    padding: 2rem 2rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.sector-modal-back::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -30%;
    width: 65%;
    height: 160%;
    background: radial-gradient(ellipse, rgba(6, 182, 212, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.sector-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 5;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.sector-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg);
}

.sector-modal-back h3 {
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0 0 0.6rem;
    color: var(--white);
    position: relative;
}

.sector-modal-back h4 {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-light);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.6rem;
}

.sector-modal-back h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
}

.sector-modal-back ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    position: relative;
    flex: 1;
}

.sector-modal-back ul li {
    font-size: 0.92rem;
    padding: 0.5rem 0;
    padding-left: 1.4rem;
    position: relative;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.5;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sector-modal-back ul li:last-child {
    border-bottom: none;
}

.sector-modal-back ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-light);
    font-size: 0.8rem;
    top: 0.55rem;
}

.sector-modal-cta {
    margin-top: 1.2rem;
    align-self: flex-start;
    font-size: 0.85rem;
    padding: 0.65rem 1.6rem;
}

/* === CTA SECTION === */
.cta-wrapper {
    padding: 4rem 0;
}

.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 60%, #1a1f4e 100%);
    color: var(--white);
    text-align: center;
    border-radius: var(--radius-xl);
    padding: 5rem 3rem;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(6, 182, 212, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 1.5rem;
    position: relative;
}

.cta-section .section-description {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.5rem;
    position: relative;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

.cta-section .btn-primary {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cta-section .btn-primary:hover {
    background: var(--gray-50);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.cta-section .btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.3);
}

.cta-section .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

/* === FOOTER === */
footer {
    background: var(--dark);
    color: var(--gray-300);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-brand .logo-text {
    color: var(--white);
}

.footer-brand p {
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.footer-social {
    display: flex;
    gap: 0.8rem;
}

.footer-social a {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.footer-social a svg {
    width: 18px;
    height: 18px;
}

.footer-column h4 {
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--gray-500);
    font-size: 0.95rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-links a:hover {
    color: var(--primary-light);
    transform: translateX(3px);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--gray-500);
    font-size: 0.9rem;
    flex-wrap: wrap;
    gap: 1rem;
}

/* === PAGE HERO (Subpages) === */
.page-hero {
    padding: 10rem 0 5rem;
    background: linear-gradient(135deg, var(--gray-50), var(--white));
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(37, 99, 235, 0.04), transparent 60%);
    pointer-events: none;
}

.page-hero .section-tag {
    margin-bottom: 1.5rem;
}

.page-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.page-hero p {
    font-size: 1.2rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* === ABOUT PAGE === */
.about-mission {
    background: var(--white);
    padding: 6rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    text-align: left;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-visual {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-xl);
    padding: 3rem;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.about-visual::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 60%;
    height: 160%;
    background: radial-gradient(ellipse, rgba(6, 182, 212, 0.2), transparent 60%);
    pointer-events: none;
}

.about-visual-content {
    position: relative;
    z-index: 1;
}

.about-visual h3 {
    color: var(--white);
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
}

.about-visual-list {
    display: grid;
    gap: 1rem;
}

.about-visual-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1rem;
    opacity: 0.9;
}

.about-visual-list li svg {
    width: 20px;
    height: 20px;
    min-width: 20px;
    color: var(--accent-light);
}

/* Values Grid */
.values-section {
    background: var(--gray-50);
    padding: 6rem 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.value-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--gray-100);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.value-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(6, 182, 212, 0.08));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary);
}

.value-icon svg {
    width: 28px;
    height: 28px;
}

.value-card h3 {
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.value-card p {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Stats Strip */
.stats-strip {
    background: var(--white);
    padding: 5rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-box .stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--font-display);
}

.stat-box .stat-label {
    font-size: 0.95rem;
    color: var(--gray-500);
    margin-top: 0.3rem;
}

/* Industries Section */
.industries-section {
    background: var(--gray-50);
    padding: 6rem 0;
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.industry-chip {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.2rem;
    background: var(--white);
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-100);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--gray-700);
    transition: var(--transition);
}

.industry-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.industry-chip svg {
    width: 20px;
    height: 20px;
    min-width: 20px;
    color: var(--primary);
}

/* === CONTACT PAGE === */
.contact-section {
    background: var(--white);
    padding: 6rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-form-wrap {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-md);
}

.contact-form-wrap h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.contact-form-wrap>p {
    color: var(--gray-500);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    color: var(--gray-900);
    transition: var(--transition);
    background: var(--white);
    -webkit-appearance: none;
    appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

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

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-submit {
    margin-top: 1rem;
}

.form-submit .btn {
    width: 100%;
    justify-content: center;
    padding: 1rem;
}

/* Contact Info Side */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.contact-info-card:hover {
    background: rgba(37, 99, 235, 0.04);
    transform: translateX(4px);
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(6, 182, 212, 0.08));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.contact-info-icon svg {
    width: 22px;
    height: 22px;
}

.contact-info-text h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.3rem;
}

.contact-info-text p {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.6;
}

.contact-info-text a {
    color: var(--primary);
    font-weight: 500;
}

.contact-info-text a:hover {
    color: var(--primary-dark);
}

/* Contact Map */
.contact-map {
    margin-top: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 220px;
    border: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    font-size: 0.9rem;
}

/* === PORTFOLIO PAGE === */
.portfolio-section {
    background: var(--gray-50);
    padding: 6rem 0;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.2rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-full);
    background: var(--white);
    color: var(--gray-600);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-primary);
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--white);
}

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

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

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.portfolio-thumbnail {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
}

.portfolio-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(15, 23, 42, 0.85) 100%);
    opacity: 0;
    transition: opacity 0.4s;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

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

.portfolio-overlay-text {
    color: var(--white);
}

.portfolio-overlay-text .portfolio-cat {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-light);
    margin-bottom: 0.3rem;
}

.portfolio-overlay-text h4 {
    font-size: 1.1rem;
    font-weight: 700;
}

.portfolio-info {
    padding: 1.5rem;
}

.portfolio-info .portfolio-cat {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
    margin-bottom: 0.4rem;
}

.portfolio-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.4rem;
}

.portfolio-info p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.6;
}

.portfolio-tags {
    display: flex;
    gap: 0.5rem;
    padding: 0 1.5rem 1.5rem;
    flex-wrap: wrap;
}

.portfolio-tag {
    padding: 0.25rem 0.7rem;
    background: var(--gray-50);
    color: var(--gray-600);
    font-size: 0.78rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s, transform 0.6s;
}

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

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s, transform 0.6s;
}

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

/* Stagger delay for grid items */
.fade-in:nth-child(1) {
    transition-delay: 0s;
}

.fade-in:nth-child(2) {
    transition-delay: 0.06s;
}

.fade-in:nth-child(3) {
    transition-delay: 0.12s;
}

.fade-in:nth-child(4) {
    transition-delay: 0.18s;
}

.fade-in:nth-child(5) {
    transition-delay: 0.24s;
}

.fade-in:nth-child(6) {
    transition-delay: 0.3s;
}

.fade-in:nth-child(7) {
    transition-delay: 0.36s;
}

.fade-in:nth-child(8) {
    transition-delay: 0.42s;
}

.fade-in:nth-child(9) {
    transition-delay: 0.48s;
}

.fade-in:nth-child(10) {
    transition-delay: 0.54s;
}

.fade-in:nth-child(11) {
    transition-delay: 0.6s;
}

/* === RESPONSIVE === */

/* Tablet */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-content,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

    .process-grid::before {
        display: none;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

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

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

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

    h1 {
        font-size: 3.2rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .page-hero h1 {
        font-size: 2.8rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 0;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        z-index: 1005;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-nav-overlay {
        display: block;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 0.8rem 0;
        font-size: 1.05rem;
        border-bottom: 1px solid var(--gray-100);
    }

    .nav-links a::after {
        display: none;
    }

    .nav-cta {
        margin-top: 1rem;
        text-align: center;
        display: block !important;
    }

    h1 {
        font-size: 2.5rem;
        letter-spacing: -1px;
    }

    h2 {
        font-size: 1.8rem;
    }

    .hero {
        padding-top: 100px;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        justify-content: center;
    }

    .services-grid,
    .process-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .carousel-arrow {
        width: 38px;
        height: 38px;
        min-width: 38px;
    }

    .sector-card-wrapper {
        flex: 0 0 260px;
        min-width: 260px;
    }

    .sectors-filters {
        gap: 0.4rem;
    }

    .sector-filter-btn {
        font-size: 0.82rem;
        padding: 0.4rem 1rem;
    }

    section {
        padding: 4rem 0;
    }

    .page-hero {
        padding: 8rem 0 3.5rem;
    }

    .page-hero h1 {
        font-size: 2.2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

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

    .cta-section {
        margin: 0;
        padding: 3rem 1.5rem;
        border-radius: var(--radius-lg);
    }

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

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

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

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

    .portfolio-filters {
        gap: 0.5rem;
    }

    .filter-btn {
        font-size: 0.82rem;
        padding: 0.4rem 1rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .stats-grid,
    .industries-grid {
        grid-template-columns: 1fr;
    }

    .sector-card-wrapper {
        flex: 0 0 240px;
        min-width: 240px;
    }

    .sector-card-face {
        height: 260px;
    }

    .carousel-arrow {
        display: none;
    }

    .sectors-carousel-wrapper {
        gap: 0;
    }

    .page-hero h1 {
        font-size: 1.8rem;
    }
}

/* === GLASS & ANIMATIONS (From code_example) === */
.glass {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.floating {
    animation: float 6s ease-in-out infinite;
    will-change: transform;
    transform: translateZ(0);
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(2deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

.floating-delayed {
    animation: float-delayed 8s ease-in-out infinite;
    will-change: transform;
    transform: translateZ(0);
}

@keyframes float-delayed {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(15px) rotate(-3deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

/* Navbar update for crystal style */
/*#navbar {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
    padding: 1.5rem 0;
    transition: var(--transition);
}

#navbar .container {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    padding: 0.7rem 2rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

#navbar.scrolled {
    padding: 1rem 0;
}

#navbar.scrolled .container {
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}*/

/* Hero update for two columns */
.hero .container {
    display: grid !important;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-main-box {
    width: 280px;
    height: 280px;
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-50) 100%);
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 2;
}

.hero-main-box img {
    width: 180px;
    height: 180px;
    object-fit: contain;
}

.floating-card {
    position: absolute;
    padding: 1.2rem;
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 180px;
}

.f-card-1 {
    top: 10%;
    right: -10%;
    background: rgba(255, 255, 255, 0.9);
}

.f-card-2 {
    bottom: 15%;
    left: -15%;
    background: rgba(255, 255, 255, 0.9);
}

.f-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.f-card-1 .f-card-icon {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
}

.f-card-2 .f-card-icon {
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent);
}

.f-card-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--dark);
}

.f-card-desc {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Decorative elements */
.hero-blob {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0.1;
    filter: blur(30px);
    z-index: 1;
    pointer-events: none;
}

@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr !important;
        text-align: center;
    }

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

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }
}

/* --- Background Decorations --- */
.bg-deco {
    position: fixed;
    pointer-events: none;
    z-index: -1;
}

.circle-b {
    width: 120px;
    height: 120px;
    border: 18px solid rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    top: 10%;
    right: -40px;
}

.circle-b-big {
    width: 200px;
    height: 200px;
    border: 30px solid rgba(6, 182, 212, 0.08);
    border-radius: 50%;
    bottom: -50px;
    left: -50px;
}

.triangle-c {
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 45px solid rgba(6, 182, 212, 0.15);
    top: 45%;
    left: 3%;
    transform: rotate(-15deg);
}

.dots-light {
    background-image: radial-gradient(rgba(37, 99, 235, 0.1) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    width: 300px;
    height: 300px;
}

/* --- Tech Grid Background --- */
.tech-bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.tech-grid {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image:
        linear-gradient(rgba(37, 99, 235, var(--tech-grid-opacity)) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, var(--tech-grid-opacity)) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg);
    animation: gridMove 20s linear infinite;
    transition: background-image 0.5s ease;
}

@keyframes gridMove {
    0% {
        transform: perspective(500px) rotateX(60deg) translateY(0);
    }

    100% {
        transform: perspective(500px) rotateX(60deg) translateY(50px);
    }
}

/* --- Theme Toggle Floating Button --- */
.theme-toggle-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.theme-toggle-btn:hover {
    transform: scale(1.1) rotate(15deg);
    background: var(--primary-dark);
}

.theme-toggle-btn svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sun-icon {
    display: none;
}

body.dark-mode .sun-icon {
    display: block;
}

body.dark-mode .moon-icon {
    display: none;
}