@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800;900&display=swap');

:root {
    /* Exact Logo Palette */
    --primary: #0A1C36;       /* Deep Navy from logo base */
    --primary-light: #16325B; 
    --secondary: #3AC5C5;     /* Vibrant Teal/Cyan from logo top */
    --secondary-dark: #229B9B; 
    --accent: #DD1021;        /* Punchy Red from the 'i' dot */
    --accent-hover: #F21A2D;
    
    --dark: #0F172A;          
    --gray-text: #475569;     
    --light: #F8FAFC;         
    --white: #FFFFFF;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--light);
    color: var(--gray-text);
    scroll-behavior: smooth;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Ultra-modern clean background with subtle grid */
    background-image: 
        linear-gradient(rgba(10, 28, 54, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(10, 28, 54, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

p.justify-text {
    text-align: justify;
    text-justify: inter-word;
    line-height: 1.75;
}

/* --- Ultra-Premium Header (Sticky & Glass) --- */
.glass-nav {
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-nav .nav-logo { transition: all 0.5s ease; filter: brightness(0) invert(1); } /* White logo at start */
.glass-nav.scrolled .nav-logo { filter: none; transform: scale(0.9); } /* Color logo when scrolled */

/* When Scrolled */
.glass-nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 15px 35px -10px rgba(10, 28, 54, 0.06);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* Nav Links Color Transition */
.nav-link {
    color: rgba(255, 255, 255, 0.85);
    transition: all 0.3s ease;
    position: relative;
    font-weight: 600;
}
.nav-link:hover { color: var(--secondary); }
.nav-link.active { color: var(--secondary); }
.nav-link::after {
    content: ''; position: absolute; bottom: -4px; left: 0; width: 0%; height: 2px;
    background: var(--secondary); transition: width 0.3s ease;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.glass-nav.scrolled .nav-link { color: var(--primary); }
.glass-nav.scrolled .nav-link:hover { color: var(--secondary-dark); }
.glass-nav.scrolled .nav-link.active { color: var(--secondary-dark); }

/* --- Gradients aligned with Logo --- */
.bg-gradient-primary { 
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); 
}
.bg-gradient-secondary { 
    background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary) 100%); 
}
.bg-gradient-accent { 
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%); 
}
.text-gradient {
    background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-image: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
}

/* --- Ultra-Premium Cards --- */
.card-premium {
    background: var(--white);
    border-radius: 24px;
    border: 1px solid rgba(10, 28, 54, 0.04);
    box-shadow: 0 10px 30px -10px rgba(10, 28, 54, 0.03);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.card-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(10, 28, 54, 0.08);
    border-color: rgba(58, 197, 197, 0.2);
}

/* Refined Icons */
.icon-container {
    width: 60px; height: 60px;
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    box-shadow: 0 10px 20px -5px rgba(0,0,0,0.05);
    position: relative; overflow: hidden;
    transition: all 0.4s ease;
}
.card-premium:hover .icon-container {
    transform: scale(1.08) rotate(2deg);
}

/* --- FRESH, MODERN BUTTONS --- */
.btn-premium {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 0.5rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    padding: 0.85rem 2rem;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative; overflow: hidden; z-index: 1;
    font-size: 0.95rem;
}
.btn-premium i { transition: transform 0.3s ease; }
.btn-premium:hover i { transform: translateX(3px); }

/* Button Variants */
.btn-accent {
    background: var(--accent); color: var(--white);
    box-shadow: 0 10px 20px -5px rgba(221, 16, 33, 0.3);
    border: 1px solid transparent;
}
.btn-accent:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(221, 16, 33, 0.4);
}

.btn-secondary {
    background: var(--secondary); color: var(--primary);
    box-shadow: 0 10px 20px -5px rgba(58, 197, 197, 0.3);
    border: 1px solid transparent;
}
.btn-secondary:hover {
    background: var(--secondary-dark); color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(58, 197, 197, 0.4);
}

.btn-primary {
    background: var(--primary); color: var(--white);
    box-shadow: 0 10px 20px -5px rgba(10, 28, 54, 0.3);
    border: 1px solid transparent;
}
.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(10, 28, 54, 0.4);
}
.btn-outline {
    background: transparent; color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline:hover {
    background: var(--primary); color: var(--white);
}


/* --- HERO CAROUSEL REFINEMENTS --- */
.hero-carousel {
    position: relative; width: 100%; height: 100vh; min-height: 700px; overflow: hidden;
    background-color: var(--primary);
}
.carousel-slide {
    position: absolute; inset: 0; opacity: 0; z-index: 1;
    transition: opacity 1s ease-in-out; 
}
.carousel-slide.active { opacity: 1; z-index: 10; }
.carousel-bg {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    transform: scale(1.1); transition: transform 8s ease-out; 
}
.carousel-slide.active .carousel-bg { transform: scale(1); }
/* Refined overlay matching logo colors */
.carousel-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(10, 28, 54, 0.95) 0%, rgba(10, 28, 54, 0.6) 40%, rgba(58, 197, 197, 0.25) 100%);
    z-index: 2;
}
.carousel-content { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; }
.carousel-text-wrapper {
    opacity: 0; transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); transition-delay: 0.3s;
}
.carousel-slide.active .carousel-text-wrapper { opacity: 1; transform: translateY(0); }

/* Indicators */
.carousel-indicators {
    position: absolute; bottom: 50px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 12px; z-index: 20;
}
.indicator {
    width: 30px; height: 4px; background: rgba(255,255,255,0.2); border-radius: 4px;
    cursor: pointer; transition: all 0.3s ease; position: relative; overflow: hidden;
}
.indicator::after {
    content: ''; position: absolute; top: 0; left: 0; height: 100%; width: 0%;
    background: var(--secondary); transition: width 0s linear;
}
.indicator.active { background: rgba(255,255,255,0.4); width: 60px; }
.indicator.active::after { width: 100%; transition: width 6s linear; }

/* Subpage Hero */
.hero-wrapper { position: relative; overflow: hidden; }
.hero-overlay-sub {
    background: linear-gradient(135deg, rgba(10, 28, 54, 0.95) 0%, rgba(10, 28, 54, 0.7) 60%, rgba(58, 197, 197, 0.4) 100%);
}

/* Animations */
.reveal-up { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-up.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--light); }
::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--secondary); }
