/* ROOT VARIABLES */
:root {
    --brand-teal: #45B1C1;
    --charcoal-grey: #4A4A4A;
    --text-dark: #333333;
    --light-grey: #F8F9FA;
    --white: #FFFFFF;
    --scoat-cyan: #46b3c1;
    --scoat-charcoal: #5d5d5d; 
    --cool-bg: #f0f9fa; 
}

/* RESET & BASE */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}
html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

body { 
    font-family: 'Inter', sans-serif; 
    color: var(--text-dark); 
    background-color: var(--cool-bg);
    line-height: 1.6; 
    width: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, .nav-links a { 
    font-family: 'Montserrat', sans-serif; 
    letter-spacing: -0.02em;
}

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

.flex-between { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

/* TOP BAR */
.top-info-bar { 
    background: var(--light-grey); 
    font-size: 13px; 
    padding: 10px 0; 
    border-bottom: 1px solid #ddd; 
    color: #666; 
}

.separator { 
    margin: 0 10px; 
    color: #ccc; 
}

/* HEADER & NAV */
.navbar-block { 
    padding: 15px 0; 
    background: var(--white); 
    border-bottom: 4px solid var(--brand-teal); 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
}

.main-logo { 
    height: 65px; 
}

.nav-links { 
    list-style: none; 
    display: flex; 
    gap: 0px; 
}

.nav-links a { 
    text-decoration: none; 
    font-weight: 700; 
    font-size: 14px; 
    transition: 0.3s;
    padding: 15px 24px;
    margin-bottom: 0 !important;
    margin-top: 0 !important; 
}

.nav-links a:hover, .nav-links a.active { 
    color: var(--brand-teal); 
}

#mainNav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 90px; 
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999; 
    box-shadow: 0 4px 30px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.02);
    border-bottom: 1px solid rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* INNER PAGE HEADER OVERLAY */
.page-header {
    position: relative;
    background: linear-gradient(135deg, rgba(70, 179, 193, 0.9) 0%, rgba(51, 138, 148, 0.8) 60%, rgba(93, 93, 93, 0.9) 100%);
    padding-top: 170px;
    padding-bottom: 110px;
    color: white;
    text-align: center;
}

/* HERO SECTION */
.block-hero { 
    height: 75vh; 
    background: #222; 
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
}

.hero-overlay { 
    position: absolute; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.5); 
}

.hero-content { 
    position: relative; 
    z-index: 10; 
    max-width: 800px; 
    width: 100%;
}

.hero-content h1 { 
    font-size: 3.5rem; 
    line-height: 1.1; 
    margin-bottom: 20px; 
}

.highlight { 
    color: var(--brand-teal); 
}

.hero-btns { 
    margin-top: 30px; 
    display: flex; 
    gap: 15px; 
}

.hero-section {
    position: relative;
    min-height: 80vh;
    width: 100%;
    display: flex;
    align-items: center;
    color: white;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 1.5s ease-in-out;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(70, 179, 193, 0.85) 0%, rgba(51, 138, 148, 0.75) 60%, rgba(93, 93, 93, 0.85) 100%);
    z-index: 2;
}

.hero-title {
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    line-height: 1.15;
    font-weight: 800;
}

.hero-title span { 
    color: #e0f7fa; 
}

/* CANVASES & CAROUSEL */
#bgCanvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 3;
    opacity: 0.5;
    pointer-events: none;
}

#contentCanvas {
    width: 100%;
    max-width: 420px;
    height: 420px;
    filter: drop-shadow(0 0 30px rgba(255,255,255,0.3));
}

.carousel-fade-wrapper {
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: translateY(0);
}

.carousel-fade-out {
    opacity: 0;
    transform: translateY(-20px);
}

.title-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.wave-container {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 15;
}

.shape-fill { 
    fill: var(--cool-bg); 
}

/* BUTTONS */
.btn-teal { 
    background: var(--brand-teal); 
    color: white; 
    padding: 14px 28px; 
    text-decoration: none; 
    border-radius: 4px; 
    font-weight: bold; 
}

.btn-outline { 
    border: 2px solid white; 
    color: white; 
    padding: 12px 28px; 
    text-decoration: none; 
    border-radius: 4px; 
    font-weight: bold; 
}

/* STATS RIBBON */
.block-stats { 
    background: var(--charcoal-grey); 
    color: white; 
    padding: 50px 0; 
}

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

.stat-box strong { 
    font-size: 2.8rem; 
    color: var(--brand-teal); 
    display: block; 
}

.stat-box p { 
    font-weight: 600; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    font-size: 13px; 
}

/* SERVICES BLOCK */
.block-services { 
    padding: 100px 0; 
}

.section-title { 
    text-align: center; 
    margin-bottom: 60px; 
    font-size: 2.2rem; 
}

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

.service-card { 
    padding: 50px 30px; 
    border: 1px solid #eee; 
    text-align: center; 
    transition: 0.4s; 
}

.service-card.active, .service-card:hover { 
    border-color: var(--brand-teal); 
    box-shadow: 0 15px 40px rgba(0,0,0,0.05); 
    transform: translateY(-10px); 
}

.service-card .icon { 
    font-size: 40px; 
    margin-bottom: 20px; 
    display: block; 
}

/* FLIP CARD DESIGN */
.flip-card {
    background-color: transparent;
    height: 280px;
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-radius: 16px;
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    padding: 24px;
}

.flip-card-front {
    background-color: #ffffff;
    color: black;
}

.flip-card-back {
    background-color: #46b3c1;
    color: white;
    transform: rotateY(180deg);
}

.blob-icon {
    width: 75px;
    height: 75px;
    background-color: #46b3c1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
    transition: all 0.5s ease-in-out;
}

.flip-card:hover .blob-icon {
    border-radius: 50%;
    transform: scale(1.05);
    background-color: #5d5d5d;
}

.flip-card:hover .blob-icon img {
    filter: brightness(0) invert(1);
}

/* PROCESS SECTION */
.process-section {
    background-color: #ffffff;
    padding: 140px 0 100px 0;
    position: relative;
    z-index: 10;
}

.process-item {
    position: relative;
    text-align: center;
    padding: 0 15px;
}

.process-number {
    position: absolute;
    top: -15px;
    right: 15%;
    width: 45px;
    height: 45px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--scoat-cyan);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    z-index: 10;
    font-family: 'Montserrat', sans-serif;
}

.process-icon-box {
    width: 130px;
    height: 130px;
    background-color: var(--scoat-cyan);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.4s ease;
    border: 1px solid #f1f5f9;
}

.process-item:hover .process-icon-box img {
    filter: brightness(0) invert(1);
}

.process-line {
    width: 2px;
    height: 60px;
    background: #e2e8f0;
    margin: 0 auto 25px;
    position: relative;
}

.process-line::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
}

.process-item:hover .process-line {
    background: var(--scoat-cyan);
}

.process-item:hover .process-line::after {
    border-color: var(--scoat-cyan);
}

.process-content h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    color: #1e293b;
    margin-bottom: 12px;
}

.process-content p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* INFRASTRUCTURE BLOCK */
.block-infra { 
    padding: 100px 0; 
    background: #fcfcfc; 
}

.infra-flex { 
    display: flex; 
    gap: 80px; 
    align-items: center; 
}

.infra-img, .infra-text { 
    flex: 1; 
}

.image-placeholder { 
    height: 400px; 
    background: #ddd; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 8px; 
}

.check-list { 
    list-style: none; 
    margin: 25px 0; 
}

.check-list li::before { 
    content: '✔'; 
    color: var(--brand-teal); 
    margin-right: 10px; 
    font-weight: bold; 
}

.link-teal { 
    color: var(--brand-teal); 
    font-weight: bold; 
    text-decoration: none; 
}

/* VIDEO MODAL */
.video-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(15, 23, 42, 0.95);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.video-modal.active { 
    display: flex; 
}

/* FOOTER */
.main-footer { 
    padding-top: 80px; 
    background: #fafafa; 
    border-top: 6px solid var(--charcoal-grey); 
}

.footer-grid { 
    display: grid; 
    grid-template-columns: 1.5fr 1fr 1fr; 
    gap: 50px; 
    padding-bottom: 60px; 
}

.footer-logo { 
    height: 55px; 
    margin-bottom: 20px; 
}

.footer-col h4 { 
    margin-bottom: 25px; 
    font-size: 18px; 
    color: var(--charcoal-grey); 
}

.footer-col ul { 
    list-style: none; 
}

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

.footer-col ul li a { 
    text-decoration: none; 
    color: #666; 
    font-size: 14px; 
}

.sub-footer { 
    background: var(--charcoal-grey); 
    color: #999; 
    padding: 25px 0; 
    font-size: 13px; 
}

/* RESPONSIVE & BREAKPOINTS */
@media (max-width: 1023px) {
    #navLinks {
        position: fixed;
        top: 0;
        right: -100%; 
        width: 280px;
        height: 100vh;
        background-color: #ffffff;
        display: flex !important;
        flex-direction: column;
        padding: 0 !important;
        z-index: 9998;
        overflow-y: auto;
        visibility: hidden;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s ease;
        margin-top: 90px;
    }
    #navLinks.menu-active {
        right: 0; 
        visibility: visible;
    }
    #menuOverlay {
        position: fixed;
        inset: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(15, 23, 42, 0.4);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 9997;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    #menuOverlay.backdrop-active {
        opacity: 1;
        pointer-events: auto;
    }
}

@media (max-width: 992px) {
    .services-grid, .stats-grid, .footer-grid { 
        grid-template-columns: 1fr 1fr; 
    }
    .infra-flex { 
        flex-direction: column; 
    }
    .hero-content h1 { 
        font-size: 2.5rem; 
    }
}

@media (max-width: 600px) {
    .services-grid, .stats-grid, .footer-grid { 
        grid-template-columns: 1fr; 
    }
    .nav-links { 
        display: none; 
    } 
}