/* styles.css */
/* --- 1. GLOBAL VARIABLES & RESET --- */
:root {
    --navy: #0A192F;
    --navy-light: #112240;
    --orange: #FF5722;
    --orange-hover: #E64A19;
    --white: #ffffff;
    --slate: #64748b;
    --light-grey: #f1f5f9;
    --overlay-dark: rgba(10, 25, 47, 0.80); /* Slightly darker for better text read */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; overflow-x: hidden; background-color: var(--white); color: var(--navy); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- 2. NAVIGATION (Horizontal & Fixed) --- */
.navbar {
    position: fixed;
    top: 0; width: 100%; z-index: 1000;
    padding: 15px 0;
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.nav-flex { display: flex; justify-content: space-between; align-items: center; }

.logo h3 { color: var(--white); font-size: 1.8rem; text-transform: uppercase; letter-spacing: 2px; font-weight: 800; }

.nav-links { display: flex; gap: 30px; align-items: center; margin: 0; }
.nav-links a { color: var(--white); font-weight: 500; text-transform: uppercase; font-size: 0.85rem; transition: 0.3s; letter-spacing: 0.5px; }
.nav-links a:hover { color: var(--orange); }

.btn-nav { background: var(--orange); padding: 10px 25px; border-radius: 4px; color: white !important; font-weight: bold; }
.btn-nav:hover { background: var(--orange-hover); }

/* Dropdown Styling */
.dropdown { position: relative; }
.dropdown-content { display: none; position: absolute; background-color: var(--navy); min-width: 220px; box-shadow: 0px 8px 16px rgba(0,0,0,0.3); z-index: 1001; top: 100%; left: 0; border-top: 3px solid var(--orange); }
.dropdown:hover .dropdown-content { display: block; }
.dropdown-content a { padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.1); display: block; text-transform: none; }
.dropdown-content a:hover { background-color: var(--navy-light); padding-left: 20px; color: var(--orange); }

/* --- 3. HERO CAROUSEL --- */
.hero-slider { position: relative; width: 100%; height: 100vh; overflow: hidden; background: #000; margin-top: 0; }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; transition: opacity 1s ease-in-out; display: flex; align-items: center; }
.slide.active { opacity: 1; z-index: 1; }
.overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--overlay-dark); z-index: 2; }

.hero-content { position: relative; z-index: 3; color: white; max-width: 800px; margin-top: 60px; }
.hero-content h1 { font-size: 4rem; margin-bottom: 20px; line-height: 1.1; font-weight: 700; }
.hero-content p { font-size: 1.5rem; margin-bottom: 30px; color: #cbd5e1; font-weight: 300; }

.btn-primary { display: inline-block; padding: 15px 40px; background: var(--orange); color: white; font-weight: bold; border-radius: 5px; font-size: 1.1rem; border: none; cursor: pointer; transition: 0.3s; }
.btn-primary:hover { transform: translateY(-3px); background: var(--orange-hover); }

/* Animation & Arrows */
.animate-text { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.slide.active .animate-text { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.1); color: white; border: 1px solid rgba(255,255,255,0.3); padding: 15px 20px; cursor: pointer; font-size: 1.5rem; z-index: 10; border-radius: 50%; transition: 0.3s; }
.arrow:hover { background: var(--orange); border-color: var(--orange); }
.left { left: 30px; } .right { right: 30px; }

/* --- 4. SERVICES GRID & GENERAL LAYOUT --- */
.section-pad { padding: 100px 0; }
.text-center { text-align: center; }
.bg-light { background-color: var(--light-grey); }
.section-title { margin-bottom: 60px; }
.section-title h2 { font-size: 2.5rem; color: var(--navy); margin-bottom: 15px; }
.section-title p { color: var(--slate); font-size: 1.2rem; max-width: 700px; margin: 0 auto; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.service-card { background: var(--white); padding: 40px 30px; border-radius: 8px; border: 1px solid #e2e8f0; text-align: left; transition: 0.3s; position: relative; overflow: hidden; box-shadow: 0 4px 6px rgba(0,0,0,0.05); height: 100%; }
.service-card:hover { transform: translateY(-5px); border-color: var(--orange); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--orange); opacity: 0; transition: 0.3s; }
.service-card:hover::before { opacity: 1; }
.icon-box { font-size: 2.5rem; color: var(--orange); margin-bottom: 20px; }
.service-card h3 { font-size: 1.4rem; color: var(--navy); margin-bottom: 10px; }
.service-card p { color: var(--slate); font-size: 1rem; }

/* Sub-Page Header */
.page-header { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%); padding: 150px 0 80px; color: white; text-align: center; }
.page-header h1 { font-size: 3.5rem; margin-bottom: 20px; }
.page-header p { font-size: 1.3rem; color: #cbd5e1; max-width: 600px; margin: 0 auto; }

/* --- 5. MOBILE RESPONSIVE --- */
.menu-toggle { display: none; cursor: pointer; color: white; font-size: 1.5rem; }
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .nav-links { position: fixed; right: -100%; top: 70px; height: calc(100vh - 70px); width: 100%; background: var(--navy); flex-direction: column; justify-content: flex-start; padding-top: 40px; transition: 0.3s; gap: 0; overflow-y: auto; }
    .nav-links.active { right: 0; }
    .nav-links li { width: 100%; text-align: center; }
    .nav-links a { display: block; padding: 20px; font-size: 1.2rem; }
    .hero-content h1 { font-size: 2.5rem; } .hero-content p { font-size: 1.1rem; }
    .grid-3 { grid-template-columns: 1fr; }
    .dropdown-content { position: static; display: none; background: var(--navy-light); box-shadow: none; border: none; }
    .dropdown.active .dropdown-content { display: block; }
    .page-header h1 { font-size: 2.5rem; }
}