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

/* --- LIGHT MODE --- */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-main: #111827;
    --text-muted: #6b7280;
    --accent: #f97316; 
    --accent-dark: #ea580c;
    --accent-glow: rgba(249, 115, 22, 0.15);
    --border-color: #e5e7eb;
    --overlay-bg: #ffffff;
    --card-bg: #ffffff;
    --font-family: 'Inter', sans-serif;
}

/* --- DARK MODE --- */
[data-theme="dark"] {
    --bg-primary: #030303; 
    --bg-secondary: #0a0a0a; 
    --text-main: #f3f4f6; 
    --text-muted: #9ca3af;
    --accent: #ff7700; 
    --accent-dark: #cc5c00;
    --accent-glow: rgba(255, 119, 0, 0.2);
    --border-color: rgba(255, 255, 255, 0.08); 
    --overlay-bg: #000000;
    --card-bg: linear-gradient(145deg, #0d0d0d, #050505); 
}

* { margin: 0; padding: 0; box-sizing: border-box; cursor: none; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-family); background-color: var(--bg-primary); color: var(--text-main); line-height: 1.6; overflow-x: hidden; overflow-y: hidden; transition: background-color 0.5s ease, color 0.5s ease; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; }

/* --- INTRO & CURSOR --- */
#intro-scene { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background-color: var(--overlay-bg); display: flex; justify-content: center; align-items: center; z-index: 99999; transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1), opacity 1s ease; }
.intro-text { font-size: clamp(2.5rem, 5vw, 5rem); font-weight: 800; letter-spacing: -1px; color: var(--text-main); overflow: hidden; }
.intro-text-inner { display: block; transform: translateY(100%); animation: slideUpReveal 1s cubic-bezier(0.77, 0, 0.175, 1) forwards 0.2s; }
@keyframes slideUpReveal { to { transform: translateY(0); } }
#intro-scene.fade-out { transform: translateY(-100%); pointer-events: none; }

.cursor-dot { width: 8px; height: 8px; background-color: var(--accent); position: fixed; top: 0; left: 0; border-radius: 50%; z-index: 100000; pointer-events: none; transform: translate(-50%, -50%); box-shadow: 0 0 10px var(--accent-glow); }
.cursor-outline { width: 40px; height: 40px; border: 1px solid var(--accent); position: fixed; top: 0; left: 0; border-radius: 50%; z-index: 99998; pointer-events: none; transform: translate(-50%, -50%); transition: width 0.2s, height 0.2s, background-color 0.2s; }
.cursor-hover .cursor-outline { width: 60px; height: 60px; background-color: var(--accent-glow); border-color: transparent; }

/* --- LAYOUT & REVEALS --- */
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section-padding { padding: 100px 0; }
.bg-alt { background-color: var(--bg-secondary); }
.text-center { text-align: center; }

.reveal { opacity: 0; transform: translateY(40px); transition: all 1s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* --- NAVBAR & BUTTONS --- */
.btn-primary { display: inline-block; background-color: var(--accent); color: #fff; padding: 14px 32px; text-decoration: none; font-weight: 600; border-radius: 6px; transition: all 0.3s; border: none; }
.btn-primary:hover { transform: translateY(-5px); box-shadow: 0 10px 20px var(--accent-glow); background-color: var(--accent-dark); color: #fff; }
.btn-small { padding: 10px 24px; font-size: 0.9rem; }

.navbar { position: fixed; top: 0; left: 0; width: 100%; padding: 25px 0; z-index: 1000; transition: all 0.3s; }
.navbar.scrolled, .navbar.solid-nav { background-color: var(--bg-primary); padding: 15px 0; box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
[data-theme="dark"] .navbar.scrolled, [data-theme="dark"] .navbar.solid-nav { box-shadow: 0 4px 30px rgba(0,0,0,0.8); border-bottom: 1px solid var(--border-color); }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo a { font-size: 1.5rem; font-weight: 800; text-decoration: none; color: #fff; letter-spacing: 1px; transition: color 0.3s; }
.navbar.scrolled .logo a, .navbar.solid-nav .logo a { color: var(--text-main); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { text-decoration: none; color: #fff; font-weight: 600; font-size: 0.95rem; transition: color 0.3s; }
.navbar.scrolled .nav-links a:not(.btn-primary), .navbar.solid-nav .nav-links a:not(.btn-primary) { color: var(--text-main); }
.nav-links a:hover:not(.btn-primary) { color: var(--accent); }

.theme-toggle { background: transparent; border: 1px solid rgba(255,255,255,0.3); color: #fff; width: 40px; height: 40px; border-radius: 50%; display: flex; justify-content: center; align-items: center; transition: all 0.3s; font-size: 1.2rem; }
.navbar.scrolled .theme-toggle, .navbar.solid-nav .theme-toggle { border-color: var(--border-color); color: var(--text-main); }
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }

/* --- HERO SECTIONS --- */
/* Changed hero to use an actual img tag instead of a CSS background */
.hero { position: relative; height: 100vh; display: flex; align-items: center; background-color: #050505; overflow: hidden; }
.hero-bg-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-sm { padding: 200px 0 100px; display: flex; align-items: center; position: relative; background-color: #050505; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to right, rgba(0,0,0,0.9), rgba(0,0,0,0.4)); z-index: 1; }
.hero-glow { position: absolute; width: 60vw; height: 60vw; background: radial-gradient(circle, var(--accent-glow) 0%, rgba(0,0,0,0) 70%); top: -20%; right: -20%; border-radius: 50%; z-index: 1; filter: blur(80px); pointer-events: none; }
.hero-content { position: relative; z-index: 10; max-width: 800px; color: #ffffff; }
.hero h1 { font-size: clamp(3rem, 5vw, 4.5rem); margin-bottom: 20px; font-weight: 800; letter-spacing: -1px; }
.hero-sm h1 { font-size: clamp(2.5rem, 4vw, 4rem); margin-bottom: 10px; font-weight: 800; }
.sub-headline { font-size: 1.5rem; font-weight: 600; color: var(--accent); margin-bottom: 20px; }
.hero .description { font-size: 1.1rem; color: #ddd; margin-bottom: 40px; max-width: 600px; }

/* Video Background Specifics */
.video-background { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; overflow: hidden; background: #000; }
.video-background iframe, .video-background video { position: absolute; top: 50%; left: 50%; width: 100vw; height: 56.25vw; min-height: 100vh; min-width: 177.77vh; transform: translate(-50%, -50%); pointer-events: none; object-fit: cover; }
.lazy-video { opacity: 0; transition: opacity 1.5s ease-in-out; }
.lazy-video.loaded { opacity: 1; }

/* --- CARDS & GRIDS --- */
.stats-banner { background-color: var(--accent); color: #fff; padding: 60px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; gap: 30px; }
.stat-item h2 { font-size: 3rem; margin-bottom: 5px; }

.section-heading { text-align: center; max-width: 700px; margin: 0 auto 60px; }
.section-heading h2 { font-size: 2.5rem; margin-bottom: 15px; }
.section-heading p { color: var(--text-muted); font-size: 1.1rem; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; }

.value-card, .service-card, .feature, .testimonial-card { background: var(--card-bg); padding: 40px; border-radius: 12px; border: 1px solid var(--border-color); transition: all 0.5s; }
.bg-alt .value-card, .bg-alt .service-card, .bg-alt .feature { background: var(--card-bg); }
.value-card:hover, .service-card:hover, .feature:hover { transform: translateY(-10px); border-color: var(--accent); box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
[data-theme="dark"] .value-card:hover, [data-theme="dark"] .service-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.5); }

.value-card { text-align: center; }
.value-card i { font-size: 3rem; color: var(--accent); margin-bottom: 20px; }
.service-card { display: flex; align-items: center; gap: 20px; padding: 30px; }
.service-card i { font-size: 2.5rem; color: var(--accent); }

/* Testimonial Specific */
.testimonial-card p { font-style: italic; margin-bottom: 20px; color: var(--text-main); font-size: 1.05rem; }
.testimonial-author h5 { color: var(--accent); margin: 0; }
.testimonial-author span { font-size: 0.85rem; color: var(--text-muted); }

/* Projects & Images */
.project-card { background: var(--card-bg); border-radius: 12px; overflow: hidden; border: 1px solid var(--border-color); transition: all 0.5s; display: block; text-decoration: none; color: inherit; }
.project-card:hover { transform: translateY(-10px); border-color: var(--accent); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.project-img { height: 250px; background-color: var(--border-color); display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 0.9rem; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); background-size: cover; background-position: center; }
.project-card:hover .project-img { transform: scale(1.05); }
.project-info { padding: 30px; position: relative; z-index: 2; }

/* Forms */
.form-input { width: 100%; padding: 18px; margin-bottom: 25px; border-radius: 8px; border: 1px solid var(--border-color); background: var(--bg-primary); color: var(--text-main); font-family: inherit; font-size: 1rem; transition: border-color 0.3s; }
.form-input:focus { outline: none; border-color: var(--accent); }
[data-theme="dark"] .form-input { background: #080808; }

/* --- FOOTER --- */
.footer { background-color: #050505; color: #fff; padding: 80px 0 20px; position: relative; overflow: hidden; border-top: 1px solid var(--border-color); }
.footer-glow { position: absolute; width: 50vw; height: 50vw; background: radial-gradient(circle, var(--accent-glow) 0%, rgba(0,0,0,0) 70%); bottom: -20%; left: -10%; border-radius: 50%; pointer-events: none; filter: blur(80px); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 50px; margin-bottom: 60px; position: relative; z-index: 10; }
.footer-info h2 { font-size: 2.5rem; margin-bottom: 15px; }
.footer-contact h4, .footer-social h4 { color: #fff; margin-bottom: 20px; font-size: 1.2rem; }
.footer-contact p { color: #aaa; display: flex; align-items: flex-start; gap: 10px; margin-bottom: 15px; }
.social-icons a { color: #aaa; text-decoration: none; display: flex; align-items: center; gap: 10px; transition: all 0.3s; margin-bottom: 10px;}
.social-icons a:hover { color: var(--accent); transform: translateX(5px); }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid #222; color: #777; font-size: 0.9rem; position: relative; z-index: 10; }

.map-container { width: 100%; border-radius: 12px; overflow: hidden; border: 1px solid var(--border-color); height: 450px; position: relative; }
[data-theme="dark"] .map-container iframe { filter: invert(90%) hue-rotate(180deg) grayscale(80%); }

@media (max-width: 900px) {
    .nav-links { display: none; }
    .hero h1 { font-size: 2.5rem; }
    .stats-grid, .footer-grid, .grid-2 { grid-template-columns: 1fr; }
    .hero-sm { padding: 150px 0 80px; }
}