/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --primary: #ff6500;
    --primary-dark: #cc5200;
    --black: #050505;
    --dark-grey: #121212;
    --light-grey: #1e1e1e;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --border-color: rgba(255, 255, 255, 0.1);
    
    --font-heading: 'Syne', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
    
    --container-width: 1300px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; cursor: none; } 

html { scroll-behavior: smooth; }

body {
    background-color: var(--black);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main { flex: 1; } /* Pushes footer to bottom */

body.loading { overflow: hidden; }

/* UTILITY */
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }
.orange-text { color: var(--primary); }
.section-padding { padding: 120px 0; }
.dark-bg { background-color: #0a0a0a; }
.text-center { text-align: center; }
.text-left { text-align: left; }

/* TYPOGRAPHY */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; text-transform: uppercase; }
.sub-heading { display: block; font-size: 0.9rem; letter-spacing: 4px; color: var(--primary); margin-bottom: 15px; font-weight: 600; }
.section-header h2 { font-size: 3rem; line-height: 1.1; margin-bottom: 40px; }
.lead-text { font-size: 1.2rem; margin-bottom: 20px; color: #fff; }

/* ANIMATIONS */
.fade-in { opacity: 0; transition: 1s ease; }
.fade-up { opacity: 0; transform: translateY(30px); transition: 1s ease; }
.fade-in.appeared, .fade-up.appeared { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* CURSOR */
.cursor-dot, .cursor-outline {
    position: fixed; top: 0; left: 0; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none; z-index: 9999;
}
.cursor-dot { width: 8px; height: 8px; background: var(--primary); }
.cursor-outline { width: 40px; height: 40px; border: 1px solid rgba(255, 101, 0, 0.5); transition: width 0.2s, height 0.2s; }
body:hover .cursor-outline.hovered { width: 80px; height: 80px; background: rgba(255, 101, 0, 0.1); border-color: var(--primary); }

/* PRELOADER */
.preloader {
    position: fixed; inset: 0; background: var(--black); z-index: 10000;
    display: flex; justify-content: center; align-items: center; text-align: center;
    transition: opacity 0.5s ease, visibility 0.5s;
}
.preloader.fade-out { opacity: 0; visibility: hidden; }
.loader-logo { font-size: 3rem; margin-bottom: 20px; letter-spacing: 2px; }
.loader-line-mask { width: 200px; height: 2px; background: #333; overflow: hidden; margin: 0 auto 20px; }
.loader-line { width: 0%; height: 100%; background: var(--primary); transition: width 2s ease-in-out; }
.loader-status { font-size: 0.8rem; letter-spacing: 3px; color: var(--text-muted); }

/* NAVIGATION */
#header {
    position: fixed; top: 0; width: 100%; z-index: 1000; padding: 25px 0; transition: var(--transition);
    border-bottom: 1px solid transparent;
}
#header.scrolled { background: rgba(5, 5, 5, 0.9); backdrop-filter: blur(10px); padding: 15px 0; border-bottom: 1px solid var(--border-color); }

.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 800; color: #fff; text-decoration: none; }
.logo .dot { color: var(--primary); }

.desktop-nav ul { display: flex; list-style: none; gap: 30px; }
.desktop-nav a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: 0.3s; text-transform: uppercase; letter-spacing: 1px;}
.desktop-nav a:hover, .desktop-nav a.current { color: var(--primary); }

.btn-primary {
    background: var(--primary); color: #fff; padding: 12px 30px; border-radius: 50px; text-decoration: none;
    font-weight: 600; display: inline-flex; align-items: center; gap: 10px; transition: var(--transition); border: 1px solid var(--primary);
}
.btn-primary:hover { background: transparent; color: var(--primary); }
.btn-secondary { padding: 12px 30px; border: 1px solid rgba(255,255,255,0.3); border-radius: 50px; color: #fff; text-decoration: none; transition: 0.3s; }
.btn-secondary:hover { border-color: #fff; background: rgba(255,255,255,0.05); }

.hamburger { display: none; flex-direction: column; gap: 6px; cursor: pointer; }
.hamburger span { width: 25px; height: 2px; background: #fff; }

/* SUB-PAGE HEADER (NEW) */
.page-header-section {
    padding: 180px 0 80px 0;
    background: radial-gradient(circle at 50% 0%, #1a0f00 0%, #050505 80%);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-header-title { font-size: 4rem; line-height: 1; margin-bottom: 20px; }
.page-header-desc { font-size: 1.1rem; color: var(--text-muted); max-width: 600px; margin: 0 auto; }

/* HERO SECTION (HOME) */
.hero-section {
    min-height: 100vh; display: flex; align-items: center; position: relative; padding-top: 80px;
    background: radial-gradient(circle at 70% 50%, #1a0f00 0%, #050505 60%); overflow: hidden;
}
.noise-bg { position: absolute; inset: 0; opacity: 0.05; background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1MDAiIGhlaWdodD0iNTAwIj48ZmlsdGVyIGlkPSJnoiPjxmZVR1cmJ1bGVuY2UgdHlwZT0iZnJhY3RhbE5vaXNlIiBiYXNlRnJlcXVlbmN5PSIwLjY1IiBudW1PY3RhdmVzPSIzIiBzdGl0Y2hUaWxlcz0ic3RpdGNoIi8+PC9maWx0ZXI+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsdGVyPSJ1cmwoI2cpIiBvcGFjaXR5PSIwLjUiLz48L3N2Zz4='); pointer-events: none; }

.hero-grid { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.hero-text { flex: 1; max-width: 650px; z-index: 2; }
.tagline { display: block; font-family: monospace; color: var(--primary); margin-bottom: 20px; }
.hero-title { font-size: 4.5rem; line-height: 0.95; margin-bottom: 30px; letter-spacing: -1px; }
.outline-text { -webkit-text-stroke: 1px #fff; color: transparent; }
.hero-desc { font-size: 1.1rem; color: var(--text-muted); max-width: 500px; margin-bottom: 40px; }
.hero-btns { display: flex; gap: 20px; }

/* HERO VISUAL (RACCOON CSS DRAWING) */
.hero-visual { flex: 1; display: flex; justify-content: flex-end; position: relative; }
.raccoon-container { position: relative; width: 350px; height: 350px; }
.raccoon-head { width: 260px; height: 220px; background: #9ea0a3; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); border-radius: 45% 45% 40% 40%; box-shadow: 0 0 50px rgba(0,0,0,0.5); z-index: 2; }
.ear { width: 70px; height: 80px; background: #666; position: absolute; top: -30px; clip-path: polygon(50% 0, 0% 100%, 100% 100%); z-index: -1; }
.ear.left { left: 10px; transform: rotate(-20deg); } .ear.right { right: 10px; transform: rotate(20deg); }
.head-shape { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: inherit; }
.mask { position: absolute; top: 60px; left: 0; width: 100%; height: 80px; background: #111; clip-path: polygon(0 20%, 30% 0, 70% 0, 100% 20%, 100% 80%, 70% 100%, 30% 100%, 0 80%); }
.eye { width: 50px; height: 50px; background: #000; border-radius: 50%; position: absolute; top: 75px; display: flex; align-items: center; justify-content: center; z-index: 5; }
.eye.left { left: 50px; } .eye.right { right: 50px; }
.pupil { width: 15px; height: 15px; background: var(--primary); border-radius: 50%; box-shadow: 0 0 10px var(--primary); }
.nose { width: 30px; height: 20px; background: #222; position: absolute; bottom: 50px; left: 50%; transform: translateX(-50%); border-radius: 10px; }
.whiskers span { display: block; width: 60px; height: 2px; background: #555; margin: 10px 0; }
.whiskers.left { position: absolute; left: -20px; top: 100px; transform: rotate(10deg); }
.whiskers.right { position: absolute; right: -20px; top: 100px; transform: rotate(-10deg); }
.radar-scan { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 400px; height: 400px; border: 1px solid rgba(255, 101, 0, 0.2); border-radius: 50%; animation: radar 4s linear infinite; z-index: 1; }
@keyframes radar { 0% { transform: translate(-50%, -50%) scale(0.5); opacity: 1; } 100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; } }

/* SCROLL INDICATOR */
.scroll-indicator { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; color: var(--text-muted); font-size: 0.8rem; letter-spacing: 2px; }
.scroll-indicator .line { width: 1px; height: 40px; background: var(--text-muted); margin-top: 10px; animation: scrollDown 2s infinite; }
@keyframes scrollDown { 0% { transform-origin: top; transform: scaleY(0); } 50% { transform-origin: top; transform: scaleY(1); } 51% { transform-origin: bottom; transform: scaleY(1); } 100% { transform-origin: bottom; transform: scaleY(0); } }

/* MARQUEE */
.marquee-section { padding: 15px 0; background: var(--primary); color: var(--black); overflow: hidden; transform: rotate(-1deg) scale(1.05); }
.track { white-space: nowrap; animation: scroll 20s linear infinite; }
.content { font-size: 1.2rem; font-weight: 800; font-family: var(--font-heading); }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* SERVICES */
.services-wrapper { display: flex; flex-direction: column; }
.service-row { display: flex; align-items: center; padding: 40px 0; border-bottom: 1px solid rgba(255,255,255,0.1); transition: 0.3s; }
.service-row:hover { background: #0f0f0f; padding-left: 20px; border-color: var(--primary); }
.srv-num { font-size: 1.2rem; color: var(--primary); margin-right: 40px; font-family: monospace; }
.srv-content { flex: 1; }
.srv-content h3 { font-size: 1.8rem; margin-bottom: 5px; }
.srv-content p { color: #666; font-size: 0.95rem; max-width: 600px; }
.srv-tags { display: flex; gap: 10px; margin-right: 40px; }
.srv-tags span { font-size: 0.75rem; border: 1px solid #333; padding: 5px 15px; border-radius: 20px; color: #888; text-transform: uppercase; }
.srv-arrow { font-size: 1.5rem; opacity: 0; transform: translateX(-20px); transition: 0.3s; color: var(--primary); }
.service-row:hover .srv-arrow { opacity: 1; transform: translateX(0); }

/* ABOUT */
.about-split { display: flex; align-items: center; gap: 60px; }
.about-content { flex: 1; }
.about-illustration { flex: 1; display: flex; justify-content: center; }
.about-illustration svg { max-width: 100%; height: auto; filter: drop-shadow(0 0 20px rgba(255,101,0,0.2)); }

/* BLOGS */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.blog-card { background: #111; border: 1px solid #222; border-radius: 12px; overflow: hidden; transition: 0.3s; }
.blog-card:hover { transform: translateY(-10px); border-color: var(--primary); }
.blog-img-placeholder { height: 200px; width: 100%; }
.gradient-1 { background: linear-gradient(45deg, #333, #1a1a1a); }
.gradient-2 { background: linear-gradient(45deg, #444, #222); }
.gradient-3 { background: linear-gradient(45deg, #3a3a3a, #111); }
.blog-content { padding: 25px; }
.blog-meta { display: flex; justify-content: space-between; color: #666; font-size: 0.85rem; margin-bottom: 15px; }
.blog-meta i { color: var(--primary); margin-right: 5px; }
.blog-tag { color: var(--primary); border: 1px solid var(--primary); padding: 2px 10px; border-radius: 20px; }
.blog-content h4 { font-size: 1.3rem; margin-bottom: 15px; line-height: 1.3; }
.blog-content p { color: #888; font-size: 0.95rem; margin-bottom: 20px; }
.read-more { color: var(--primary); text-decoration: none; font-weight: 600; transition: 0.3s; display: inline-block; }
.read-more:hover { transform: translateX(5px); }
.blog-footer-illustration { margin-top: 60px; text-align: center; opacity: 0.5; }

/* FOOTER */
footer { background: #080808; border-top: 1px solid #111; padding-top: 100px; margin-top: auto; }
.cta-header { margin-bottom: 80px; }
.footer-lead { font-size: 1.5rem; color: var(--text-muted); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.5fr; gap: 50px; margin-bottom: 80px; }
.brand-col p { color: #666; margin: 20px 0; max-width: 300px; }
.contact-details a, .contact-details p { display: flex; align-items: center; gap: 10px; color: #888; text-decoration: none; margin-bottom: 10px; transition: 0.3s; }
.contact-details a:hover { color: var(--primary); }
.footer-col h4 { margin-bottom: 25px; font-size: 1.1rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: #777; text-decoration: none; transition: 0.3s; font-size: 0.9rem; text-transform: uppercase; }
.footer-col ul li a:hover { color: var(--primary); padding-left: 5px; }
.social-links { display: flex; gap: 15px; margin-bottom: 30px; }
.social-links a { width: 40px; height: 40px; background: #151515; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: #fff; transition: 0.3s; font-size: 1.2rem; text-decoration: none;}
.social-links a:hover { background: var(--primary); }
.footer-form { display: flex; border-bottom: 1px solid #333; max-width: 300px; }
.footer-form input { background: none; border: none; padding: 10px; color: #fff; width: 100%; outline: none; }
.footer-form button { background: none; border: none; color: var(--primary); font-size: 1.2rem; transition: 0.3s; }
.footer-form button:hover { transform: translateX(5px); }
.footer-bottom { border-top: 1px solid #111; padding: 30px 0; color: #444; font-size: 0.8rem; }
.bottom-flex { display: flex; justify-content: space-between; }
.legal-links a { color: #444; margin-left: 20px; text-decoration: none; transition: 0.3s; }
.legal-links a:hover { color: var(--primary); }

/* CONTACT FORM PAGE */
.contact-wrapper { display: flex; gap: 50px; }
.contact-text { flex: 1; }
.contact-form-box { flex: 1; background: #111; padding: 40px; border-radius: 12px; border: 1px solid #222; }
.form-group { position: relative; margin-bottom: 30px; }
.form-group input, .form-group textarea { width: 100%; padding: 15px; background: #0a0a0a; border: 1px solid #333; color: white; border-radius: 8px; font-family: var(--font-body); outline: none; transition: 0.3s; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 10px rgba(255, 101, 0, 0.1); }
.form-group label { position: absolute; left: 15px; top: 15px; color: #666; pointer-events: none; transition: 0.3s; font-size: 0.9rem; }
.form-group input:focus ~ label, .form-group input:not(:placeholder-shown) ~ label, .form-group textarea:focus ~ label, .form-group textarea:not(:placeholder-shown) ~ label { top: -22px; left: 0; color: var(--primary); font-size: 0.8rem; font-weight: bold; }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .hero-title, .page-header-title { font-size: 3.5rem; }
    .hero-visual { transform: scale(0.8); }
    .about-split, .contact-wrapper { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .hero-grid { flex-direction: column; text-align: center; padding-top: 50px;}
    .hero-visual { display: none; }
    .desktop-nav, .header-actions .btn-primary { display: none; }
    .hamburger { display: flex; }
    .srv-tags, .srv-arrow { display: none; } 
    .service-row { flex-direction: column; align-items: flex-start; gap: 10px; }
    .srv-num { margin-bottom: 10px; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .bottom-flex { flex-direction: column; gap: 10px; text-align: center; }
    .legal-links { margin: 0; }
    .cursor-dot, .cursor-outline { display: none; }
}