/* ============================================================
   NEXTERANOVA - Corporate Design System
   Premium Technology Company Stylesheet
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
    /* Primary Colors */
    --primary-navy: #1B2A4A;
    --primary-teal: #0097B2;
    --primary-dark: #0F1B2D;
    --primary-deep: #1E3A5F;

    /* Accent Colors */
    --accent-cyan: #00BCD4;
    --accent-light: #4DD0E1;
    --accent-glow: #00E5FF;

    /* Neutral Colors */
    --neutral-100: #FFFFFF;
    --neutral-200: #F4F7FA;
    --neutral-300: #E8EDF2;
    --neutral-400: #CBD5E1;
    --neutral-500: #94A3B8;
    --neutral-600: #64748B;
    --neutral-700: #475569;
    --neutral-800: #1E293B;
    --neutral-900: #0F172A;

    /* Gradient Definitions */
    --gradient-primary: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-deep) 100%);
    --gradient-teal: linear-gradient(135deg, var(--primary-teal) 0%, var(--accent-cyan) 100%);
    --gradient-hero: linear-gradient(135deg, rgba(15, 27, 45, 0.92) 0%, rgba(30, 58, 95, 0.85) 50%, rgba(0, 151, 178, 0.75) 100%);
    --gradient-dark: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary-navy) 100%);
    --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);

    /* Typography */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --section-padding: 100px 0;
    --container-max: 1200px;
    --container-padding: 0 24px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 30px rgba(0, 151, 178, 0.3);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.08);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);

    /* Header */
    --header-height: 80px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.7;
    color: var(--neutral-700);
    background-color: var(--neutral-100);
    overflow-x: hidden;
}

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

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

ul, ol {
    list-style: none;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-navy);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
    margin-bottom: 1rem;
}

/* ---------- Layout ---------- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--container-padding);
    width: 100%;
}

.section {
    padding: var(--section-padding);
    position: relative;
}

.section--alt {
    background-color: var(--neutral-200);
}

.section--dark {
    background: var(--gradient-primary);
    color: var(--neutral-100);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
    color: var(--neutral-100);
}

.section--dark p {
    color: var(--neutral-400);
}

/* Section Headers */
.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 60px;
}

.section-header__label {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary-teal);
    margin-bottom: 12px;
}

.section-header__title {
    margin-bottom: 20px;
}

.section-header__desc {
    font-size: 1.1rem;
    color: var(--neutral-600);
    line-height: 1.8;
}

.section--dark .section-header__desc {
    color: var(--neutral-400);
}

.section-header__divider {
    width: 60px;
    height: 3px;
    background: var(--gradient-teal);
    border-radius: 3px;
    margin: 20px auto 0;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    text-transform: none;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn--primary {
    background: var(--gradient-teal);
    color: var(--neutral-100);
    box-shadow: 0 4px 15px rgba(0, 151, 178, 0.4);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 151, 178, 0.5);
}

.btn--outline {
    background: transparent;
    color: var(--neutral-100);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn--outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--neutral-100);
    transform: translateY(-2px);
}

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

.btn--outline-dark:hover {
    background: var(--primary-navy);
    color: var(--neutral-100);
    transform: translateY(-2px);
}

.btn--lg {
    padding: 18px 40px;
    font-size: 1.05rem;
}

.btn--sm {
    padding: 10px 24px;
    font-size: 0.85rem;
}

/* ---------- HEADER / NAVIGATION ---------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all var(--transition-smooth);
    padding: 0 24px;
    height: var(--header-height);
    display: flex;
    align-items: center;
    background: #ffffff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.header--scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.08);
    height: 80px;
}

.header__container {
    max-width: var(--container-max);
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header__logo img {
    height: 180px; /* Massively increased to account for image padding */
    width: auto;
    transition: all var(--transition-base);
    /* No filter to show original colored logo perfectly on white background */
}

.header--scrolled .header__logo img {
    height: 180px; /* Keep it massive even when scrolled */
}

.header__nav {
    display: flex;
    align-items: center;
    gap: 36px;
}

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

/* Mobile nav – hidden by default, shown only on tablet/mobile */
.nav__list--mobile {
    display: none;
}

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

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

.nav__link {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-dark);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    position: relative;
    white-space: nowrap;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-teal);
    transition: width var(--transition-base);
    border-radius: 2px;
}

.nav__link:hover,
.nav__link--active {
    color: var(--primary-teal);
}

.nav__link:hover::after,
.nav__link--active::after {
    width: 60%;
}

.header__cta {
    margin-left: 12px;
}

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

.menu-toggle__bar {
    width: 24px;
    height: 2px;
    background: var(--primary-dark);
    border-radius: 2px;
    transition: all var(--transition-base);
}

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

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

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

/* ---------- HERO SECTION ---------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--primary-dark);
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background-image: url('../images/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
}

.hero__particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero__particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-glow);
    border-radius: 50%;
    opacity: 0;
    animation: float-particle 6s infinite;
}

@keyframes float-particle {
    0% { opacity: 0; transform: translateY(100vh) scale(0); }
    20% { opacity: 0.6; }
    80% { opacity: 0.3; }
    100% { opacity: 0; transform: translateY(-10vh) scale(1); }
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 750px;
    padding-top: var(--header-height);
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(0, 151, 178, 0.15);
    border: 1px solid rgba(0, 151, 178, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-light);
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.hero__badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

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

.hero__title {
    color: var(--neutral-100);
    margin-bottom: 20px;
    line-height: 1.15;
}

.hero__title span {
    background: var(--gradient-teal);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: 1.2rem;
    color: var(--neutral-400);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 600px;
}

.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero__stats {
    display: flex;
    gap: 48px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero__stat {
    text-align: left;
}

.hero__stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--neutral-100);
    line-height: 1;
    margin-bottom: 4px;
}

.hero__stat-number span {
    color: var(--primary-teal);
}

.hero__stat-label {
    font-size: 0.85rem;
    color: var(--neutral-500);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ---------- ABOUT SECTION ---------- */
.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about__image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
}

.about__image-badge {
    position: absolute;
    bottom: 24px;
    right: 24px;
    background: var(--gradient-teal);
    color: var(--neutral-100);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.about__image-badge-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.about__image-badge-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

.about__label {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary-teal);
    margin-bottom: 12px;
}

.about__title {
    margin-bottom: 24px;
}

.about__text {
    color: var(--neutral-600);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.about__features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
}

.about__feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--neutral-200);
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--primary-navy);
    transition: transform var(--transition-fast);
}

.about__feature:hover {
    transform: translateX(4px);
}

.about__feature-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-teal);
    border-radius: var(--radius-sm);
    color: var(--neutral-100);
    font-size: 1rem;
    flex-shrink: 0;
}

/* ---------- SERVICES SECTION ---------- */
.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--neutral-100);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--neutral-300);
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-teal);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(0, 151, 178, 0.2);
}

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

.service-card__icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 151, 178, 0.1) 0%, rgba(0, 188, 212, 0.1) 100%);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    transition: all var(--transition-base);
}

.service-card:hover .service-card__icon {
    background: var(--gradient-teal);
}

.service-card__icon svg {
    width: 30px;
    height: 30px;
    stroke: var(--primary-teal);
    fill: none;
    stroke-width: 1.8;
    transition: stroke var(--transition-base);
}

.service-card:hover .service-card__icon svg {
    stroke: var(--neutral-100);
}

.service-card__title {
    font-size: 1.25rem;
    margin-bottom: 14px;
    color: var(--primary-navy);
}

.service-card__text {
    color: var(--neutral-600);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0;
}

/* ---------- SAAS SOLUTIONS SECTION ---------- */
.saas__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.saas-card {
    background: var(--neutral-100);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--neutral-300);
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.saas-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 151, 178, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.saas-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.saas-card__logo {
    height: 50px;
    width: auto;
    margin-bottom: 24px;
}

.saas-card__title {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--primary-navy);
}

.saas-card__desc {
    color: var(--neutral-600);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 24px;
}

.saas-card__features {
    margin-bottom: 32px;
}

.saas-card__feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    color: var(--neutral-700);
    font-size: 0.95rem;
}

.saas-card__feature-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 151, 178, 0.1);
    border-radius: 50%;
    color: var(--primary-teal);
    font-size: 0.75rem;
    flex-shrink: 0;
}

/* ---------- PORTFOLIO / ECOSYSTEM SECTION ---------- */
.ecosystem__content {
    text-align: center;
}

.ecosystem__brands {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 48px;
}

.ecosystem__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    transition: transform var(--transition-base);
}

.ecosystem__brand-img-wrap {
    width: 260px;
    height: 140px;
    background: #ffffff;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 35px; /* Huge padding to keep logos looking elegant and Apple-like */
    box-sizing: border-box; /* Crucial to keep width at 260px exactly */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-smooth);
    overflow: hidden; /* Guarantee no spillage */
}

.ecosystem__brand:hover .ecosystem__brand-img-wrap {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.ecosystem__brand img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform var(--transition-smooth);
}

.nexteranova-logo-wrap img {
    transform: scale(3.2); /* Nexteranova specifically has enormous PNG padding, we must scale it to reach the 35px visual padding limit */
}

.ehosting-logo-wrap img,
.ecufacturas-logo-wrap img {
    transform: scale(1.1); /* Slight bump, well within the 35px safe zone padding */
}

.ecosystem__brand span {
    font-size: 0.95rem;
    color: var(--neutral-300);
    font-weight: 500;
}

.ecosystem__desc-block {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 48px;
}

.ecosystem__item {
    padding: 32px 24px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all var(--transition-base);
}

.ecosystem__item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
}

.ecosystem__item-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 151, 178, 0.15);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    color: var(--accent-cyan);
    font-size: 1.3rem;
}

.ecosystem__item h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.ecosystem__item p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 0;
}

/* ---------- CYBERSECURITY SECTION ---------- */
.cyber__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.cyber__content {
    order: 1;
}

.cyber__image {
    order: 2;
    position: relative;
}

.cyber__image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-glow);
}

.cyber__label {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary-teal);
    margin-bottom: 12px;
}

.cyber__title {
    margin-bottom: 20px;
}

.cyber__text {
    color: var(--neutral-600);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 32px;
}

.cyber__list {
    display: grid;
    gap: 16px;
}

.cyber__list-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    background: var(--neutral-200);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.cyber__list-item:hover {
    background: var(--neutral-300);
    transform: translateX(4px);
}

.cyber__list-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-teal);
    border-radius: var(--radius-sm);
    color: var(--neutral-100);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.cyber__list-text h4 {
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--primary-navy);
}

.cyber__list-text p {
    font-size: 0.9rem;
    color: var(--neutral-600);
    margin-bottom: 0;
}

/* ---------- WHY CHOOSE US SECTION ---------- */
.advantages__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.advantage-card {
    text-align: center;
    padding: 40px 30px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all var(--transition-smooth);
}

.advantage-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-6px);
    border-color: rgba(0, 151, 178, 0.3);
}

.advantage-card__icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 151, 178, 0.15);
    border-radius: var(--radius-md);
    margin: 0 auto 20px;
    color: var(--accent-cyan);
    font-size: 1.5rem;
    transition: background var(--transition-base);
}

.advantage-card:hover .advantage-card__icon {
    background: var(--gradient-teal);
    color: var(--neutral-100);
}

.advantage-card__number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--neutral-100);
    margin-bottom: 8px;
}

.advantage-card__title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.advantage-card__text {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 0;
}

/* ---------- CTA SECTION ---------- */
.cta {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.cta__bg {
    position: absolute;
    inset: 0;
    background-image: url('../images/cta-bg.png');
    background-size: cover;
    background-position: center;
}

.cta__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 27, 45, 0.93) 0%, rgba(0, 151, 178, 0.75) 100%);
}

.cta__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta__title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--neutral-100);
    margin-bottom: 20px;
}

.cta__text {
    font-size: 1.15rem;
    color: var(--neutral-300);
    margin-bottom: 40px;
    line-height: 1.8;
}

.cta__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- CONTACT SECTION ---------- */
.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-form {
    background: var(--neutral-100);
    padding: 40px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--neutral-300);
}

.contact-form__title {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.contact-form__desc {
    color: var(--neutral-600);
    margin-bottom: 32px;
    font-size: 0.95rem;
}

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

.form-group label {
    display: block;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--primary-navy);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--neutral-300);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--neutral-800);
    background: var(--neutral-200);
    transition: all var(--transition-fast);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-teal);
    background: var(--neutral-100);
    box-shadow: 0 0 0 3px rgba(0, 151, 178, 0.15);
}

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

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

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

.form-group--error input,
.form-group--error select,
.form-group--error textarea {
    border-color: #EF4444;
}

.form-group__error {
    color: #EF4444;
    font-size: 0.8rem;
    margin-top: 4px;
    display: none;
}

.form-group--error .form-group__error {
    display: block;
}

/* reCAPTCHA container */
.recaptcha-container {
    margin-bottom: 20px;
}

/* Form messages */
.form-message {
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 20px;
    display: none;
}

.form-message--success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #059669;
    display: block;
}

.form-message--error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #DC2626;
    display: block;
}

/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-info__header h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.contact-info__header p {
    color: var(--neutral-600);
    font-size: 1rem;
    line-height: 1.7;
}

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

.contact-info__item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-info__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 151, 178, 0.1) 0%, rgba(0, 188, 212, 0.1) 100%);
    border-radius: var(--radius-md);
    color: var(--primary-teal);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-info__text h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--primary-navy);
}

.contact-info__text p,
.contact-info__text a {
    color: var(--neutral-600);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.contact-info__text a:hover {
    color: var(--primary-teal);
}

.contact__map {
    margin-top: 16px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--neutral-300);
}

.contact__map iframe {
    width: 100%;
    height: 220px;
    border: none;
    display: block;
}

/* ---------- FOOTER ---------- */
.footer {
    background: var(--primary-dark);
    color: var(--neutral-400);
    padding: 30px 0 0; /* Reduced top padding to pull everything up */
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 20px; /* Reduced bottom padding */
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__brand img {
    height: 350px; /* ENORMOUSLY increased based on user feedback to combat internal padding */
    width: auto;
    margin-top: -100px;    /* Consume massive transparent top padding inside the PNG */
    margin-bottom: -70px;  /* Consume massive transparent bottom padding inside the PNG */
    filter: brightness(0) invert(1);
    transform: translateX(-50px); /* Nudge left to balance the massive right-side whitespace of the PNG */
}

.footer__brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--neutral-500);
    margin-bottom: 20px;
}

.footer__social {
    display: flex;
    gap: 12px;
}

.footer__social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    color: var(--neutral-500);
    font-size: 1.1rem;
    transition: all var(--transition-base);
}

.footer__social-link:hover {
    background: var(--primary-teal);
    color: var(--neutral-100);
    transform: translateY(-2px);
}

.footer__col h4 {
    color: var(--neutral-100);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 24px;
}

/* ---------- WHATSAPP FLOATING BUTTON ---------- */
.whatsapp-float {
    position: fixed;
    bottom: 90px; /* Moved higher up user's request */
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    color: #FFF;
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__link {
    color: var(--neutral-500);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.footer__link:hover {
    color: var(--primary-teal);
    padding-left: 4px;
}

.footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 0.9rem;
}

.footer__contact-icon {
    color: var(--primary-teal);
    margin-top: 3px;
    flex-shrink: 0;
}

.footer__bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--neutral-600);
}

/* ---------- SCROLL ANIMATIONS (Apple-style) ---------- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    filter: blur(4px);
    transition: 
        opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
        transform 1s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform, filter;
}

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

.reveal--delay-1 { transition-delay: 0.15s; }
.reveal--delay-2 { transition-delay: 0.3s; }
.reveal--delay-3 { transition-delay: 0.45s; }
.reveal--delay-4 { transition-delay: 0.6s; }

/* Scale up variant */
.reveal--scale {
    transform: scale(0.95) translateY(20px);
}

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

/* Slide from left */
.reveal--left {
    transform: translateX(-40px);
}

.reveal--left.reveal--visible {
    transform: translateX(0);
}

/* Slide from right */
.reveal--right {
    transform: translateX(40px);
}

.reveal--right.reveal--visible {
    transform: translateX(0);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        filter: none;
        transition: none;
    }
}

/* ---------- BACK TO TOP ---------- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-teal);
    color: var(--neutral-100);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-base);
    z-index: 999;
    font-size: 1.2rem;
}

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

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

/* ---------- RESPONSIVE ---------- */

/* Large Desktop */
@media (max-width: 1200px) {
    .footer__grid {
        grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
        gap: 30px;
    }
}

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

    .nav__list {
        display: none;
    }

    .header__cta {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    /* Mobile Nav Overlay */
    .nav__list--mobile {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--primary-dark);
        padding: 100px 40px 40px;
        gap: 8px;
        transition: right var(--transition-smooth);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
        z-index: 1000;
    }

    .nav__list--mobile.nav__list--open {
        right: 0;
    }

    .nav__list--mobile .nav__link {
        font-size: 1.05rem;
        padding: 12px 16px;
        color: var(--neutral-300);
        border-radius: var(--radius-sm);
    }

    .nav__list--mobile .nav__link:hover,
    .nav__list--mobile .nav__link--active {
        background: rgba(0, 151, 178, 0.15);
        color: var(--neutral-100);
    }

    .nav__list--mobile .nav__link::after {
        display: none;
    }

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

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

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

    .cyber__image {
        order: 1;
    }

    .cyber__content {
        order: 2;
    }

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

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

    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

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

    .hero__stats {
        gap: 32px;
    }
}

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

    .hero__content {
        text-align: center;
    }

    .hero__subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero__actions {
        justify-content: center;
    }

    .hero__stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 24px;
    }

    .hero__stat {
        text-align: center;
    }

    .hero__stat-number {
        font-size: 2rem;
    }

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

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

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

    .ecosystem__brands {
        gap: 40px;
        padding: 32px 24px;
    }

    .ecosystem__desc-block {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 28px 24px;
    }

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

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

/* Small Mobile */
@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .btn--lg {
        padding: 14px 28px;
        font-size: 0.95rem;
    }

    .hero__badge {
        font-size: 0.75rem;
    }

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

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

/* ---------- Preloader ---------- */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s, visibility 0.5s;
}

.preloader--hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader__spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(0, 151, 178, 0.2);
    border-top-color: var(--primary-teal);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
