@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    /* Premium Color System (HSL) */
    --primary-h: 218;
    --primary-s: 74%;
    --primary-l: 12%;

    --accent-h: 188;
    --accent-s: 100%;
    --accent-l: 41%;

    --primary-color: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    --accent-color: hsl(var(--accent-h), var(--accent-s), var(--accent-l));
    --accent-hover: hsl(var(--accent-h), var(--accent-s), 35%);

    --text-dark: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== UTILITIES ===== */
.reveal-hidden {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform, opacity;
}

.reveal-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #ffffff;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    transition: background 0.4s ease, color 0.4s ease;
}

/* ===== PREMIUM HEADER ===== */
header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 14px 5%;
    background: var(--primary-color);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.header-left {
    display: flex;
    align-items: center;
}

.header-left a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

header img {
    width: 140px;
    height: auto;
    transition: var(--transition);
}

nav {
    display: flex;
    gap: 40px;
}

.header-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

nav a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    padding: 8px 0;
    transition: var(--transition);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

nav a:hover {
    color: var(--white);
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

nav a.active {
    color: var(--accent-color);
    font-weight: 600;
}

/* Action Buttons */
.hamburger {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
}

.hamburger:hover {
    background: var(--accent-color);
    transform: scale(1.1);
}

.hamburger {
    display: none;
}

/* Responsive Header */
@media (max-width: 992px) {
    .hamburger {
        display: flex;
    }

    nav {
        position: fixed;
        top: 68px;
        /* Header height */
        left: -100%;
        width: 100%;
        height: auto;
        background: var(--primary-color);
        flex-direction: column;
        padding: 30px;
        gap: 20px;
        text-align: center;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: var(--shadow-lg);
        z-index: 999;
        justify-content: flex-start;
    }

    nav.active {
        left: 0;
    }

    .header-left {
        flex: 1;
    }

    nav a {
        font-size: 18px;
    }
}

/* ===== HERO SECTION (SLIDER) ===== */
.hero {
    height: 90vh;
    padding: 0;
    position: relative;
    overflow: hidden;
}

/* Mobile: use a robust viewport height that accounts for the sticky header */
@media (max-width: 768px) {
    .hero {
        height: 75vh !important;
    }
}

.hero-slide {
    position: relative;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    align-items: center !important;
    text-align: center;
    height: 100% !important;
    min-height: 100%;
    color: var(--white);
    padding: 0 40px 60px !important;
}

@media (max-width: 768px) {
    .hero-slide {
        padding: 0 20px 80px !important;
    }
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.image-slide {
    background: url("images/header/home.jpg");
    background-size: cover;
    background-position: center;
}

/* .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(10, 31, 68, 0.6), rgba(10, 31, 68, 0.6));
    z-index: 2;
} */

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 700px;
    margin: auto auto 0 !important;
    width: 100%;
}

.page-hero .hero-content {
    margin: 0 auto !important;
}

.page-hero .hero-content h1,
.page-hero .hero-content p {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.hero h1 {
    font-size: 36px;
    /* Reduced from 48px */
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero p {
    font-size: 15px;
    margin-bottom: 24px;
    opacity: 0.9;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

/* Animations for smooth entrance */
.hero-content h1,
.hero-content p,
.hero-content .btn {
    opacity: 0;
    transform: translateY(30px);
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.swiper-slide-active .hero-content h1 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

/* Ensure fast exit for inactive slides */
.swiper-slide:not(.swiper-slide-active) .hero-content h1,
.swiper-slide:not(.swiper-slide-active) .hero-content p,
.swiper-slide:not(.swiper-slide-active) .hero-content .btn {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Hide content of inactive slides to prevent overlap/ghosting */
.swiper-slide:not(.swiper-slide-active) .hero-content h1,
.swiper-slide:not(.swiper-slide-active) .hero-content p,
.swiper-slide:not(.swiper-slide-active) .hero-content .btn {
    opacity: 0 !important;
    transition: none !important;
}

.swiper-slide-active .hero-content p {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

.swiper-slide-active .hero-content .btn {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.7s;
}

.swiper-pagination-bullet {
    background: var(--white);
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    background: var(--accent-color);
    opacity: 1;
}

.btn {
    background: var(--accent-color);
    color: var(--white);
    padding: 10px 24px;
    /* Reduced from 12px 28px */
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    /* Reduced from 16px */
    display: inline-block;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.3);
}

.btn:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 188, 212, 0.4);
    color: var(--white);
}

/* ===== STATS COUNTER ===== */
.stats-counter {
    padding: 60px 5%;
    background: var(--bg-light);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    max-width: 1300px;
    margin: 0 auto;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.stat-icon {
    font-size: 28px;
    color: var(--accent-color);
    margin-bottom: 15px;
    width: 60px;
    height: 60px;
    background: rgba(0, 188, 212, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.stat-item:hover .stat-icon {
    background: var(--accent-color);
    color: var(--white);
    transform: rotateY(360deg);
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-suffix {
    color: var(--accent-color);
}

.stat-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 1100px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .stat-value {
        font-size: 24px;
    }

    .stat-label {
        font-size: 11px;
    }
}


/* ===== SECTIONS ===== */
section {
    padding: 80px 60px;
    text-align: center;
}

.home-video-section {
    background-color: #000;
    padding: 0;
    overflow: hidden;
    line-height: 0;
}

.about-video-container {
    width: 100%;
    margin: 0;
    padding: 0;
}

.about-video {
    width: 100%;
    height: auto;
    display: block;
}

.about p {
    max-width: 700px;
    margin: 20px auto;
}

.partners-section {
    background: var(--white);
    padding: 60px 0;
    position: relative;
    width: 100%;
}

.cen {
    text-align: center;
    margin-bottom: 30px;
}

/* ===== LOGO SECTION ===== */
.logo-section {
    --logo-width: 220px;
    --logo-height: 120px;
    --logo-padding: 0 40px;
    padding: 60px 0;
    background: var(--white);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.logo-section h2 {
    font-size: 32px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 50px;
}

.slider {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.slide-track {
    display: flex;
    width: max-content;
}

.logo {
    width: var(--logo-width);
    height: var(--logo-height);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--logo-padding);
    flex-shrink: 0;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition);
}

.logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}


.logo img {
    width: 100%;
    max-height: 90px;
    object-fit: contain;
    display: block;
}

/* Row 1: Moves Left */
.track-left {
    animation: scrollLeft 40s linear infinite;
}

/* Row 2: Moves Right */
.track-right {
    animation: scrollRight 80s linear infinite;
}

@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-1 * var(--logo-width) * 22));
        /* 22 logos in the first half */
    }
}

@keyframes scrollRight {
    0% {
        transform: translateX(calc(-1 * var(--logo-width) * 44));
        /* 44 logos in the first half */
    }

    100% {
        transform: translateX(0);
    }
}

/* Each row pauses only when hovering its OWN logos */
.track-left:hover {
    animation-play-state: paused;
}

.track-right:hover {
    animation-play-state: paused;
}

/* ===== WHY ===== */
.why {
    background: #e9edf3;
    padding: 60px 20px;
    /* Adds space so the background looks intentional */
    display: flow-root;
    /* Ensures all list items stay inside this background */
}

.why h2 {
    color: #000000;
}

.why ul {
    list-style: none;
    margin-top: 30px;
}

.why li {
    margin: 10px 0;
}

/* ===== CONTACT ===== */
.contact {
    background: #0a1f44;
    color: white;
}


/* ===== FOOTER ===== */
.footer {
    background: #0B1C2D;
    color: #ffffff;
    font-family: Arial, sans-serif;
    padding: 25px 0 10px;
    position: relative;
}

/* ===== FOOTER TOP ===== */
.footer-top {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
}

/* LOGO COLUMN CONTENT CENTERED */
.footer-col:first-child {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* LOGO */
.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.footer-logo img {
    width: 120px;
    height: auto;
}

/* ADDRESS */
.address {
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 10px;
    opacity: 0.9;
}

/* SOCIAL ICONS */
.socials {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    color: var(--accent-color);
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
}

.socials a:hover {
    background: var(--accent-color);
    color: #0B1C2D;
}

/* COLUMN TITLES */
.footer-col h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: 600;
}

/* LINKS AND TEXT */
.footer-col ul {
    list-style: none;
    padding: 0;
}



.footer-col ul li {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}



.footer-col ul li a,
.contact-text {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover,
a.contact-text:hover {
    color: var(--accent-color);
}

/* Active page link style - matches header accent */
.footer-col ul li a.active-link {
    color: var(--accent-color);
}

/* Contact Item */
.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.contact-icon {
    color: var(--accent-color);
    font-size: 16px;
}

/* FULL WIDTH LINE ABOVE COPYRIGHT */
.footer-line {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(0, 188, 212, 0) 0%, rgba(0, 188, 212, 0.3) 50%, rgba(0, 188, 212, 0) 100%);
    margin: 15px 0 10px;
}

/* COPYRIGHT CENTER */
.footer-bottom {
    width: 100%;
    text-align: center;
    padding: 10px 10px 0;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-bottom p {
    margin: 0;
    color: #e0e0e0;
    font-size: 14px;
}

/* SPARKLE ICON */
.footer-sparkle {
    position: absolute;
    right: 5%;
    bottom: 5px;
    color: #aebfd4;
    font-size: 24px;
    opacity: 0.6;
}

/* ✅ Responsive */
@media(max-width: 900px) {
    .footer-top {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 30px;
    }
}

@media(max-width: 600px) {
    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .socials {
        justify-content: center;
    }
}

/* portfolio */

/* ===== INTERACTIVE SOLUTIONS HUB (LIGHT THEME & SCREEN-FIT) ===== */
.solutions-hub {
    min-height: 100vh;
    padding: 60px 5%;
    background: #ffffff;
    color: var(--text-dark);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Subtle background pattern for premium feel */
.solutions-hub::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--accent-color) 0.5px, transparent 0.5px);
    background-size: 30px 30px;
    opacity: 0.05;
    top: 0;
    left: 0;
    pointer-events: none;
}

.hub-container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hub-header {
    margin-bottom: 50px;
    text-align: center;
}

.hub-header h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.hub-header p {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.hub-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.solutions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.solution-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 30px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.solution-item:hover {
    background: #f1f5f9;
    transform: translateX(10px);
}

.solution-item.active {
    background: var(--white);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.08);
}

.sol-num {
    font-size: 20px;
    font-weight: 800;
    color: #cbd5e1;
    transition: all 0.4s ease;
}

.solution-item.active .sol-num {
    color: var(--accent-color);
}

.sol-text h3 {
    font-size: 18px;
    margin-bottom: 4px;
    color: var(--text-dark);
    font-weight: 600;
    transition: all 0.4s ease;
}

.solution-item.active .sol-text h3 {
    color: var(--accent-color);
}

.sol-text p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

/* Visualizer Styles (Light Theme) */
.solutions-visualizer {
    position: relative;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.viz-card {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--white);
    border: 1px solid rgba(0, 102, 204, 0.1);
    border-radius: 30px;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    box-shadow: 0 20px 50px rgba(0, 102, 204, 0.05);
}

.viz-card.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.viz-icon {
    font-size: 70px;
    color: var(--accent-color);
    margin-bottom: 30px;
}

.viz-details h4 {
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 700;
    color: var(--primary-color);
}

.viz-details p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-muted);
}

@media (max-height: 800px) {
    .solutions-hub {
        padding: 40px 5%;
    }

    .hub-header {
        margin-bottom: 30px;
    }

    .hub-content {
        gap: 40px;
    }

    .solutions-visualizer {
        height: 400px;
    }
}

@media (max-width: 1100px) {
    .solutions-hub {
        height: auto;
        min-height: auto;
    }

    .hub-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .solutions-visualizer {
        height: 300px;
        order: -1;
    }
}

@media (max-width: 992px) {
    header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 5%;
    }

    nav {
        top: 64px;
        max-height: calc(100vh - 64px);
        overflow-y: auto;
    }

    .solutions-hub {
        height: auto;
        min-height: auto;
    }

    .hub-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .solutions-visualizer {
        height: 300px;
        order: -1;
    }
}

@media (max-width: 768px) {
    section {
        padding: 40px 15px !important;
    }

    .solutions-hub {
        padding: 40px 15px !important;
    }

    .hub-header {
        margin-bottom: 30px;
    }

    .hub-header h2 {
        font-size: 24px;
    }

    .hub-header p {
        font-size: 14px;
    }

    .hub-content {
        gap: 20px;
    }

    .solution-item {
        padding: 12px 18px;
        gap: 12px;
    }

    .sol-text h3 {
        font-size: 15px;
    }

    .sol-text p {
        font-size: 13px;
    }

    .solutions-visualizer {
        height: 270px;
    }

    .viz-card {
        padding: 24px 20px;
    }

    .viz-icon {
        font-size: 40px;
        margin-bottom: 12px;
    }

    .viz-details h4 {
        font-size: 17px;
    }

    .viz-details p {
        font-size: 13.5px;
        line-height: 1.5;
    }

    .logo-section {
        --logo-width: 140px;
        --logo-height: 80px;
        --logo-padding: 0 15px;
        padding: 30px 0 !important;
    }

    .logo-section h2 {
        font-size: 20px !important;
        margin-bottom: 25px !important;
    }

    .footer {
        padding: 30px 0 15px !important;
    }

    .footer-top {
        gap: 25px !important;
    }

    .footer-col h4 {
        font-size: 16px !important;
        margin-bottom: 12px !important;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: clamp(22px, 6.5vw, 32px) !important;
        line-height: 1.25;
    }

    .hero p {
        font-size: 13.5px !important;
        margin-bottom: 18px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .stat-item {
        padding: 12px 8px !important;
    }

    .stat-icon {
        width: 44px !important;
        height: 44px !important;
        font-size: 18px !important;
        margin-bottom: 8px !important;
    }

    .stat-value {
        font-size: 20px !important;
    }

    .stat-label {
        font-size: 10px !important;
    }

    .solutions-visualizer {
        height: 290px;
    }

    .viz-card {
        padding: 16px 12px;
    }

    .viz-details p {
        font-size: 12.5px;
    }
}

/* ===== TERMS & CONDITIONS LINK ===== */
.tnc-link {
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    color: #ffffff; /* White by default */
    font-size: 14px;
    margin-left: 15px;
    font-weight: normal; /* Back to normal weight */
    text-decoration: none;
}

.tnc-link:hover {
    color: var(--accent-color); /* Turns blue on hover */
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-bottom p {
    margin: 0;
    color: #e0e0e0;
    font-size: 14px;
}