/* assets/css/style.css */

/* --- Visual Foundations --- */
:root {
    --bg-main: #F9F8F6;
    /* Warm brownish-white */
    --bg-card: #FFFFFF;
    --primary: #2563EB;
    --secondary: #7C3AED;
    --text-primary: #1F2937;
    --text-muted: #4B5563;
}

body {
    scroll-behavior: smooth;
    overflow-x: hidden;
    background-color: var(--bg-main);
    color: var(--text-primary);
}

/* --- Hero Slider Upgrades --- */
.hero-slider {
    position: relative;
    overflow: hidden;
}

.slide-inner {
    transition: transform 8s ease-out;
    /* Smooth background zoom base */
}

/* Zoom-in effect on active slide */
.swiper-slide-active .slide-inner {
    transform: scale(1.08);
}

.slide-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(11, 15, 25, 0.1), rgba(11, 15, 25, 0.6));
    z-index: 10;
}

/* --- Hero Parallax Text Styles --- */
.scriptheading {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    position: relative;
    color: #E5E7EB;
}

.dashbefore::before {
    content: '';
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 2px;
    background-color: #2563EB;
    /* Premium blue accent */
}

/* Make sure container text is aligned right slightly so the dash has room */
.slide-text-content {
    margin-left: 20px;
}

/* --- Global Scroll Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(80px);
    /* Increased for more pronounced upward motion */
    transition: all 1.5s cubic-bezier(0.22, 1, 0.36, 1);
    /* Slower, more majestic */
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Hover Interactions --- */
.hover-card {
    transition: all 0.2s ease-out;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.hover-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    border-color: rgba(37, 99, 235, 0.15);
}

.btn-hover {
    transition: all 0.3s ease;
}

.btn-hover:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

/* Gradient text utility */
.text-gradient {
    background: linear-gradient(to right, #2563EB, #7C3AED);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Utility Spacing & Polish --- */
.section-padding {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

@media (min-width: 768px) {
    .section-padding {
        padding-top: 8rem;
        padding-bottom: 8rem;
    }
}

.line-tight {
    line-height: 1.2;
}

.line-relaxed {
    line-height: 1.7;
}

/* Custom Swiper Pagination */
.swiper-pagination-bullet {
    background: #E5E7EB !important;
    opacity: 0.6 !important;
}

.swiper-pagination-bullet-active {
    background: #2563EB !important;
    opacity: 1 !important;
}

/* --- Floating Navbar & Dynamic Transitions --- */
.header-fixed {
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    padding-top: 0;
}

.navbar-container {
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    border-radius: 0;
}

/* State 1: Hero Mode (Minimal & Transparent) */
.header-fixed:not(.is-scrolled) {
    background: transparent !important;
    box-shadow: none !important;
    padding-top: 0 !important; /* Push completely to the top edge */
}
.header-fixed:not(.is-scrolled) .navbar-container {
    background: transparent !important;
    box-shadow: none !important;
}
.header-fixed:not(.is-scrolled) a, 
.header-fixed:not(.is-scrolled) button, 
.header-fixed:not(.is-scrolled) i {
    color: #ffffff !important;
}

/* State 2: Scrolled Mode (Enterprise Floating Card) */
.header-fixed.is-scrolled {
    padding-top: 0 !important; /* Flush to top */
}

.header-fixed.is-scrolled .navbar-container {
    background: rgba(10, 15, 28, 0.9) !important; /* Elegant dark glass */
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0 0 12px 12px; /* Top-flush TrybeNet style */
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
    padding-top: 0.25rem !important; /* Micro padding */
    padding-bottom: 0.25rem !important;
    max-width: 100% !important; /* Full width like TrybeNet */
}

@media (min-width: 768px) {
    .header-fixed.is-scrolled {
        padding-top: 0.25rem !important; /* Float gently on desktop */
    }
    .header-fixed.is-scrolled .navbar-container {
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 12px; /* Pill on desktop */
        max-width: 1152px !important; /* 6xl constraint */
    }
}

/* Maintain high contrast on dark card */
.header-fixed.is-scrolled a, 
.header-fixed.is-scrolled button, 
.header-fixed.is-scrolled i {
    color: #ffffff !important;
}