/* --- GLOBAL STYLES (Modern & Clean) --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #268C98;       /* Teal */
    --primary-dark: #1e707a;
    --secondary: #0f172a;     /* Dark Navy */
    --accent: #f59e0b;        /* Orange/Gold */
    --light: #f8fafc;         /* Light Grey BG */
    --white: #ffffff;
    --text: #334155;          /* Slate Grey Text */
    --text-light: #64748b;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }
body { background-color: var(--light); color: var(--text); line-height: 1.6; }
a { text-decoration: none; transition: 0.3s; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; }

/* --- NAVIGATION BAR --- */
.navbar {
    background: var(--white); padding: 15px 5%; display: flex; justify-content: space-between; 
    align-items: center; position: sticky; top: 0; z-index: 1000; box-shadow: var(--shadow);
}
.logo-box { display: flex; align-items: center; gap: 12px; }
.logo-box img { height: 45px; border-radius: 6px; }
.logo-box span { font-size: 22px; font-weight: 800; color: var(--secondary); letter-spacing: -0.5px; }

.nav-menu { display: flex; gap: 30px; align-items: center; }
.nav-menu a { font-size: 15px; font-weight: 500; color: var(--text); }
.nav-menu a:hover, .nav-menu a.active { color: var(--primary); }

.btn-login {
    background: var(--secondary); color: var(--white) !important; padding: 10px 25px; 
    border-radius: 50px; font-weight: 600; font-size: 14px; transition: 0.3s;
}
.btn-login:hover { background: var(--primary); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(38, 140, 152, 0.3); }

/* --- HERO SLIDER SECTION (NEW SPLIT LAYOUT) --- */
.hero-slider {
    position: relative;
    height: 90vh; /* Slightly taller for images */
    overflow: hidden;
    background: var(--secondary);
}

.slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    /* Darker background overlay to make foreground images pop */
    background-image: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.9));
    background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center;
    padding: 20px 10%; /* Added horizontal padding */
    opacity: 0;
    animation: fadeSlide 15s infinite;
}

/* Stagger the animation */
.slide:nth-child(1) { animation-delay: 0s; }
.slide:nth-child(2) { animation-delay: 5s; }
.slide:nth-child(3) { animation-delay: 10s; }

@keyframes fadeSlide {
    0% { opacity: 0; transform: scale(1.05); } /* Slight zoom effect */
    3% { opacity: 1; transform: scale(1); }
    33.33% { opacity: 1; transform: scale(1); }
    36.33% { opacity: 0; transform: scale(1.05); }
    100% { opacity: 0; transform: scale(1.05); }
}

/* The Split Layout Grid */
.slide-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Equal split */
    gap: 60px;
    max-width: 1300px;
    align-items: center;
}

/* Text Side (Left) */
.hero-text { text-align: left; color: var(--white); }
.hero-text h1 { font-size: 52px; font-weight: 800; margin-bottom: 20px; line-height: 1.2; }
.hero-text span { color: var(--primary); }
.hero-text p { font-size: 18px; color: #cbd5e1; margin-bottom: 35px; max-width: 600px; }
.btn-hero {
    background: var(--primary); color: white; padding: 15px 40px; border-radius: 50px; 
    font-size: 16px; font-weight: 700; display: inline-block; box-shadow: 0 10px 20px rgba(38, 140, 152, 0.4);
}
.btn-hero:hover { background: var(--white); color: var(--primary); transform: translateY(-3px); }

/* Image Side (Right) */
.hero-image-box img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.4); /* Deep shadow for depth */
    border: 5px solid rgba(255,255,255,0.1); /* Subtle frame */
    aspect-ratio: 4/3; /* Ensure consistent shape */
    object-fit: cover;
}

/* --- SECTIONS GENERAL --- */
.section-pad { padding: 80px 10%; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 36px; font-weight: 700; color: var(--secondary); }
.section-title p { color: var(--text-light); margin-top: 10px; }

/* --- FEATURES GRID --- */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.feature-card {
    background: var(--white); padding: 40px 30px; border-radius: 20px; text-align: center;
    transition: 0.3s; border: 1px solid #eee;
}
.feature-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); border-color: transparent; }
.icon-box { 
    width: 70px; height: 70px; background: rgba(38, 140, 152, 0.1); border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; color: var(--primary); font-size: 28px;
}
.feature-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; color: var(--secondary); }

/* --- FOOTER --- */
footer { background: var(--secondary); color: var(--white); padding: 60px 10% 20px; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-about p { color: #94a3b8; font-size: 14px; margin-top: 15px; }
.footer-links h4 { color: var(--white); margin-bottom: 20px; font-size: 18px; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #cbd5e1; font-size: 14px; }
.footer-links a:hover { color: var(--primary); padding-left: 5px; }
.copyright { text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; font-size: 13px; color: #64748b; }

/* MOBILE RESPONSIVE */
@media (max-width: 968px) {
    .nav-menu { display: none; }
    .slide-grid { grid-template-columns: 1fr; text-align: center; gap: 30px; }
    .hero-text { text-align: center; }
    .hero-text p { margin: 0 auto 30px; }
    .hero-content h1 { font-size: 38px; }
    /* On mobile, move image to top */
    .hero-image-box { order: -1; }
    .hero-image-box img { max-height: 300px; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
}