/* main.css - FINAL FIXED VERSION - NO WHITE SPACE */

/* ========== RESET & BASE ========== */
:root {
    --header-height: 70px;
    --mobile-header-height: 60px;
    --primary-color: #08574a;
    --secondary-color: #0da188;
    --main-color: linear-gradient(135deg, #f9f9fb 0%, #007bff 100%);
    --main-hov: linear-gradient(135deg, #080824 0%, #eef1f5 100%);
    --accent-color: #007bff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    position: relative;
    -webkit-overflow-scrolling: touch;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    overflow-x: hidden !important;
}

/* Hide horizontal scrollbar everywhere */
::-webkit-scrollbar {
    width: 8px;
    height: 0 !important;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #08574a;
    border-radius: 4px;
}

/* ========== HEADER FIXES ========== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    z-index: 1000;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: bisque;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    height: var(--header-height);
}

/* Navigation container */
nav[aria-label="Main navigation"] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: var(--header-height);
    max-width: 100%;
    position: relative;
}

/* Logo/Brand section */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.nav-brand img.logo {
    width: 50px;
    height: 50px;
    object-fit: cover;
   
}

/* SIMPLER RAINBOW ANIMATION */
.nav-brand span {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(
        90deg,
        
        #ff4d00,
        #989810,
        #096509,
        #130935,
        #43156e
    );
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: flowingRainbow 6s ease-in-out infinite;
}

@keyframes flowingRainbow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Desktop Navigation Center */
.nav-center {
    display: flex;
    gap: 30px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-center a {
    color: rgb(33, 28, 28);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-center a:hover {
    color: var(--primary-color);
}

.nav-center a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #007bff;
    transition: width 0.3s ease;
}

.nav-center a:hover::after {
    width: 100%;
}

/* Login Button */
.login-btn {
    background: var(--main-color);
    color: rgb(23, 22, 22);
    border: 2px solid white;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.login-btn:hover {
    background: var(--main-hov);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Burger Menu (Hidden on Desktop) */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.burger-line {
    width: 100%;
    height: 3px;
    background: var(--main-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Mobile Navigation (Hidden on Desktop) */
.mobile-nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: rgba(8, 87, 74, 0.98);
    backdrop-filter: blur(10px);
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 999;
    flex-direction: column;
    gap: 15px;
}

.mobile-nav.active {
    transform: translateY(0);
    opacity: 1;
}

.mobile-nav a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 12px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    padding-left: 25px;
}

/* ========== SLIDER STYLES - NO WHITE SPACE ========== */
/* FIXED: Remove margin-top from body and hero section */
body {
    padding-top: 0 !important;
}

/* Main Home Hero Section - FIXED */
.main_home-hero-section {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    background: #000;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

/* CRITICAL FIX: Make hero section start from top, under fixed header */
.main_home-hero-slider-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* Full viewport */
    overflow: hidden;
}

.main_home-hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.main_home-hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.main_home-hero-slide.main_home-active {
    opacity: 1;
}

/* FIXED: Images fill container */
.main_home-hero-slide img {
    width: 100%;
    height: 100vh; /* Full viewport */
    object-fit: cover;
    object-position: center;
    filter: brightness(0.4);
    display: block;
}

/* Hero content positioning - FIXED to account for header */
.main_home-hero-content {
    position: absolute;
    top: calc(50% + (var(--header-height) / 2)); /* Account for header */
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    width: 90%;
    max-width: 900px;
    padding: 0 20px;
}

.main_home-hero-content h1 {
    font-size: 3.5em;
    margin-bottom: 25px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    color: white;
    font-weight: bold;
}

.main_home-hero-content p {
    font-size: 1.4em;
    margin-bottom: 50px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
    line-height: 1.7;
    color: white;
    opacity: 0.95;
}

.main_home-hero-cta-wrapper {
    margin-top: 40px;
}

.main_home-hero-cta-button {
    display: inline-block;
    padding: 20px 40px;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.3em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    border: 2px solid transparent;
}

.main_home-hero-cta-button:hover {
    background-color: #0056b3;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    border-color: rgba(255,255,255,0.3);
}

/* Slider Navigation */
.main_home-slider-dots {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 12px;
}

.main_home-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.main_home-dot.main_home-active {
    background-color: white;
    transform: scale(1.2);
}

.main_home-dot:hover {
    background-color: rgba(255,255,255,0.8);
    transform: scale(1.1);
}

.main_home-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255,255,255,0.2);
    color: white;
    border: none;
    padding: 20px;
    cursor: pointer;
    font-size: 24px;
    z-index: 3;
    transition: all 0.3s ease;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main_home-slider-arrow:hover {
    background-color: rgba(255,255,255,0.3);
    transform: translateY(-50%) scale(1.1);
}

.main_home-prev {
    left: 30px;
}

.main_home-next {
    right: 30px;
}

/* ========== FEATURES SECTION ========== */
.main_home-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.main_home-feature {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.main_home-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.main_home-feature h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.3em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.main_home-feature p {
    color: #666;
    line-height: 1.6;
    font-size: 1em;
}

/* ========== RESPONSIVE DESIGN ========== */

/* Tablet Styles (max-width: 1024px) */
@media screen and (max-width: 1024px) {
    .nav-center {
        gap: 20px;
    }
    
    .main_home-hero-content h1 {
        font-size: 2.8em;
    }
    
    .main_home-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Navigation Active (max-width: 768px) */
@media screen and (max-width: 768px) {
    /* Adjust header height for mobile */
    :root {
        --header-height: 60px;
    }
    
    /* Hide desktop navigation */
    .nav-center {
        display: none;
    }
    
    /* Show burger menu */
    .burger-menu {
        display: flex;
    }
    
    /* Adjust header padding */
    nav[aria-label="Main navigation"] {
        padding: 0 15px;
        height: var(--header-height);
    }
    
    .nav-brand img.logo {
        width: 40px;
        height: 40px;
    }
    
    .nav-brand span {
        font-size: 1.2rem;
    }
    
    /* Login button - make it icon only on mobile */
    .login-btn span {
        display: none;
    }
    
    .login-btn {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .login-btn::before {
        content: '👤';
        font-size: 1.2rem;
    }
    
    /* Mobile Navigation */
    .mobile-nav {
        top: var(--header-height);
    }
    
    /* Slider adjustments for mobile - NO WHITE SPACE */
    .main_home-hero-slider-container {
        height: 100vh; /* Still full viewport */
    }
    
    .main_home-hero-slide img {
        height: 100vh; /* Still full viewport */
    }
    
    /* Adjust hero content position for mobile header */
    .main_home-hero-content {
        top: calc(50% + (var(--header-height) / 2));
    }
    
    .main_home-hero-content h1 {
        font-size: 2.5em;
        margin-bottom: 20px;
    }
    
    .main_home-hero-content p {
        font-size: 1.2em;
        margin-bottom: 40px;
    }
    
    .main_home-hero-cta-button {
        padding: 18px 35px;
        font-size: 1.2em;
    }
    
    .main_home-slider-arrow {
        padding: 15px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .main_home-prev {
        left: 15px;
    }
    
    .main_home-next {
        right: 15px;
    }
    
    .main_home-slider-dots {
        bottom: 50px;
    }
    
    /* Features grid */
    .main_home-features {
        grid-template-columns: 1fr;
        padding: 40px 15px;
        gap: 20px;
    }
    
    .main_home-feature {
        padding: 20px;
    }
}

/* Small Mobile (max-width: 480px) */
@media screen and (max-width: 480px) {
    nav[aria-label="Main navigation"] {
        padding: 0 10px;
    }
    
    .nav-brand span {
        font-size: 1rem;
    }
    
    .nav-brand img.logo {
        width: 35px;
        height: 35px;
    }
    
    .main_home-hero-content h1 {
        font-size: 2em;
    }
    
    .main_home-hero-content p {
        font-size: 1.1em;
        margin-bottom: 35px;
    }
    
    .main_home-hero-cta-button {
        padding: 15px 30px;
        font-size: 1.1em;
    }
    
    .main_home-feature {
        padding: 20px;
    }
}

/* ========== EXTRA FIXES TO GUARANTEE NO WHITE SPACE ========== */
/* Remove any top margins that might be causing white space */
body > *:first-child:not(.site-header) {
    margin-top: 0 !important;
}

/* Ensure no padding or margin on main container */
.main-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Force hero section to start from top */
.main_home-hero-section {
    position: relative;
    top: 0;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Make sure header is truly fixed and doesn't create space */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}
