/* ===================================================================
   1. CORE: CYBERPUNK VARIABLES & RESET
   =================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700;900&family=Rajdhani:wght@300;400;500;600;700&display=swap');

:root {
    /* --- COLOR PALETTE: EMERGENCY NEON --- */
    --cyber-yellow: #FFD600;  /* Hazard Yellow (WhatsApp/Warnings) */
    --cyber-red: #FF003C;     /* SOS Red (Emergency/Call) */
    --cyber-blue: #00F3FF;    /* Hologram Blue (Tech/Links) */
    --cyber-green: #00FF9D;   /* Status OK */
    
    /* --- BACKGROUNDS --- */
    --bg-deep: #020202;       /* The Void */
    --bg-dark: #080808;       /* Panels */
    --bg-panel: #111111;      /* Cards */
    
    /* --- TEXT & BORDERS (CONTRAST FIXED) --- */
    --text-main: #FFFFFF;
    --text-muted: #E0E0E0;    /* FIXED: Was too dark (#B0B0B0), now bright grey */
    --text-grey: #FFFFFF;     /* FIXED: Added for pure white high-contrast text */
    --border-dim: rgba(255, 255, 255, 0.2); /* FIXED: Brighter border */
    --glass-border: 1px solid rgba(255, 255, 255, 0.15);
    
    /* --- EFFECTS --- */
    --neon-glow-red: 0 0 10px rgba(255, 0, 60, 0.5), 0 0 20px rgba(255, 0, 60, 0.3);
    --neon-glow-blue: 0 0 10px rgba(0, 243, 255, 0.5), 0 0 20px rgba(0, 243, 255, 0.3);
    --tech-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    
    /* --- UI CONSTANTS --- */
    --header-height: 80px;
    --border-radius: 4px; /* Tech looks are sharper, less rounded */
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
    line-height: 1.6;
    padding-top: var(--header-height);
    overflow-x: hidden;
    /* Subtle Tech Grid Background */
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, .brand-font {
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
}

/* FIXED: Added text-shadow to paragraphs for readability on dark backgrounds */
p { margin-bottom: 1.5rem; color: var(--text-muted); text-shadow: 0 1px 2px rgba(0,0,0,0.8); }

/* High Visibility Utilities */
.text-grey { color: var(--text-grey) !important; text-shadow: 0 1px 2px rgba(0,0,0,0.8); }
.text-muted { color: var(--text-muted) !important; text-shadow: 0 1px 2px rgba(0,0,0,0.8); }

/* ===================================================================
   2. HIGH-TECH NAVIGATION (GLASS & BLUR)
   =================================================================== */
.header {
    background: rgba(2, 2, 2, 0.95); /* FIXED: Slightly darker for contrast */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 214, 0, 0.25); /* FIXED: Brighter yellow line */
    height: var(--header-height);
    transition: all 0.4s ease;
    z-index: 1000;
}

.header__logo {
    text-decoration: none;
    transition: transform 0.3s;
}

.header__logo:hover {
    transform: scale(1.02);
    text-shadow: 0 0 15px rgba(255, 214, 0, 0.3);
}

.nav-link {
    color: #fff !important;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 0.5rem 1rem !important;
    position: relative;
    opacity: 0.95; /* FIXED: Increased opacity */
    transition: 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0%;
    height: 2px;
    background: var(--cyber-yellow);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    box-shadow: 0 0 10px var(--cyber-yellow);
}

.nav-link:hover {
    color: var(--cyber-yellow) !important;
    opacity: 1;
    text-shadow: 0 0 8px rgba(255, 214, 0, 0.6);
}

.nav-link:hover::after { width: 80%; }

/* ===================================================================
   3. CYBER BUTTONS (THE "SOS" FEEL)
   =================================================================== */
/* Base Tech Button Shape */
.btn-cyber {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    overflow: hidden;
    /* Angled "Sci-Fi" Corners */
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    text-decoration: none; /* Added to fix a tags */
}

/* Yellow (WhatsApp/Chat) */
.btn-cyber-yellow {
    background: var(--cyber-yellow);
    color: #000 !important; /* PERFECT CONTRAST */
    font-weight: 900;
    box-shadow: 0 0 15px rgba(255, 214, 0, 0.2);
}

.btn-cyber-yellow::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    transition: 0.5s;
    z-index: -1;
}

.btn-cyber-yellow:hover {
    box-shadow: 0 0 30px rgba(255, 214, 0, 0.6);
    transform: translateY(-2px);
}

.btn-cyber-yellow:hover::before { left: 100%; }

/* Red (SOS/Call) - Pulsing Alert */
.btn-cyber-red {
    background: var(--cyber-red);
    color: #fff !important;
    font-weight: 900;
    box-shadow: 0 0 15px rgba(255, 0, 60, 0.4);
    animation: sos-pulse-ring 2s infinite;
}

.btn-cyber-red:hover {
    background: #ff1f55;
    box-shadow: 0 0 40px rgba(255, 0, 60, 0.8);
    letter-spacing: 2px; /* Expands on hover */
}

/* Tech/Blue (Standard) */
.btn-tech {
    background: transparent;
    border: 1px solid var(--cyber-blue);
    color: var(--cyber-blue);
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.btn-tech:hover {
    background: rgba(0, 243, 255, 0.1);
    color: #fff;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.4);
    text-shadow: 0 0 5px var(--cyber-blue);
}

/* ===================================================================
   4. HERO SECTION (SCANLINES & ANIMATIONS)
   =================================================================== */
.hero {
    position: relative;
    overflow: hidden;
    /* NEW: Added Background Image with a dark radial vignette overlay to keep text popping */
    background: 
        radial-gradient(circle at center, rgba(26, 26, 26, 0.6) 0%, rgba(0, 0, 0, 0.9) 100%),
        url('../img/Herobackgroundimage.jpeg') center center / cover no-repeat;
}

/* CRT Scanline Effect Overlay (Still works perfectly over the image!) */
.hero::after {
    content: " ";
    display: block;
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 1;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}

/* INTEGRATION: slideInUp combined with continuous flicker + MOBILE FIXES */
.hero-title {
    font-size: clamp(1.8rem, 8vw, 4.5rem); 
    font-weight: 900;
    line-height: 1.1;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    animation: slideInUp 0.8s ease-out, flicker 4s infinite alternate;
    overflow-wrap: break-word; 
    word-break: break-word;
    position: relative; /* Ensure text sits above the background */
    z-index: 2; 
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #fff; /* FIXED: Increased brightness */
    animation: slideInUp 1s ease-out;
    position: relative;
    z-index: 2;
}

.hero-tag {
    display: inline-block;
    padding: 5px 15px;
    border: 1px solid var(--cyber-red);
    color: var(--cyber-red);
    font-family: 'Orbitron';
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 2px;
    background: rgba(255, 0, 60, 0.1);
    box-shadow: var(--neon-glow-red);
    margin-bottom: 20px;
    animation: blink-alert 2s infinite;
    position: relative;
    z-index: 2;
}

/* ===================================================================
   5. SERVICE CARDS (HOLOGRAPHIC UI)
   =================================================================== */
.service-card {
    background: linear-gradient(145deg, rgba(20,20,20,0.9), rgba(10,10,10,0.95));
    border: 1px solid rgba(255, 255, 255, 0.1); /* FIXED: Brighter border */
    border-radius: var(--border-radius);
    padding: 2rem;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 3px;
    background: var(--cyber-blue);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(25, 25, 25, 0.95);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
    border-color: rgba(0, 243, 255, 0.3);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card i {
    transition: 0.4s;
}

/* INTEGRATION: Added icon-bounce on hover */
.service-card:hover i {
    color: var(--cyber-blue) !important;
    text-shadow: var(--neon-glow-blue);
    animation: icon-bounce 0.6s ease infinite alternate;
}

/* NEW TECH PANEL CLASS */
.tech-panel {
    background: rgba(17, 17, 17, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15); /* FIXED: Brighter border */
    position: relative;
    padding: 25px;
    border-radius: var(--border-radius);
}

/* ===================================================================
   6. TABLES & LISTS (DARK MODE CONTRAST FIX)
   =================================================================== */
.table-dark {
    background-color: transparent;
    border-color: #444; /* FIXED: Brighter border */
}
.table-dark th {
    color: #fff; /* FIXED: Pure white headers */
    font-family: 'Orbitron';
}
.table-dark td {
    background-color: rgba(255,255,255,0.02);
    border-color: rgba(255,255,255,0.15);
    color: #E0E0E0; /* FIXED: Bright grey text */
    vertical-align: middle;
}
.table-hover tbody tr:hover td {
    background-color: rgba(0, 243, 255, 0.05);
    color: #fff;
}

/* ===================================================================
   7. FOOTER (HIGH CONTRAST & VISIBILITY)
   =================================================================== */
.footer-top-bar {
    position: relative;
    background: #090909;
    border-top: 1px solid var(--cyber-blue);
    border-bottom: 1px solid #222;
    padding: 60px 0;
    box-shadow: 0 -10px 40px rgba(0, 243, 255, 0.05);
}

/* Footer Link Grid */
.footer-loc-link {
    display: inline-block;
    color: #E0E0E0; /* FIXED: High visibility grey */
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.2s;
    padding: 2px 5px;
    font-weight: 500;
}
.footer-loc-link:hover {
    color: var(--cyber-yellow);
    text-shadow: 0 0 8px var(--cyber-yellow);
}

.footer-section, .footer {
    background: #000;
    padding-top: 60px;
}
/* FIXED: Force high visibility text on footer elements */
.footer-section p, .footer-section li, .footer-section span, .footer-section a,
.footer p, .footer li, .footer span, .footer a { 
    color: #E0E0E0 !important; 
}
.footer-section .text-muted, .footer .text-muted, .footer .text-secondary { 
    color: #E0E0E0 !important; 
}

.social-btn {
    width: 45px; height: 45px;
    border: 1px solid #444; /* FIXED: Brighter border */
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff !important; text-decoration: none;
    transition: 0.3s;
    background: #0a0a0a;
}
.social-btn:hover {
    border-color: var(--cyber-blue);
    background: var(--cyber-blue);
    color: #000 !important;
    box-shadow: 0 0 15px var(--cyber-blue);
}

/* ===================================================================
   8. MODALS & FORMS (CONTRAST FIXES)
   =================================================================== */
.modal-content {
    background: rgba(10, 10, 10, 0.98);
    border: 1px solid var(--cyber-blue);
    backdrop-filter: blur(20px);
    box-shadow: 0 0 50px rgba(0, 243, 255, 0.2);
}

.modal-header { border-bottom: 1px solid #333; }
.form-label { color: #fff !important; font-weight: bold; } /* FIXED: White labels */

.form-control, .form-select {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #555; /* FIXED: Brighter border */
    color: #fff !important; /* FIXED: Pure white text inside input */
    padding: 12px;
    border-radius: 4px;
}
.form-control::placeholder { color: #aaa; }
.form-control:focus, .form-select:focus {
    background: #000;
    border-color: var(--cyber-yellow);
    color: #fff !important;
    box-shadow: 0 0 10px rgba(255, 214, 0, 0.3);
}

/* ===================================================================
   9. FLOATING ACTION BUTTONS (ALWAYS VISIBLE)
   =================================================================== */
.floating-cta {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.floating-cta__btn {
    width: 60px; height: 60px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px;
    color: #fff !important;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    transition: transform 0.3s;
    border: 2px solid rgba(255,255,255,0.4); /* FIXED: Brighter border */
    cursor: pointer;
}

.call-float { 
    background: var(--cyber-red); 
    animation: pulse-border 2s infinite; 
}

/* INTEGRATION: Added pulse-whatsapp animation to WhatsApp float */
.whatsapp-float { 
    background: #25D366; 
    animation: pulse-whatsapp 2s infinite;
}

.floating-cta__btn:hover { 
    transform: scale(1.1) rotate(10deg); 
}

/* ===================================================================
   10. ANIMATION KEYFRAMES
   =================================================================== */
@keyframes sos-pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(255, 0, 60, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(255, 0, 60, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 0, 60, 0); }
}

@keyframes blink-alert {
    0%, 100% { opacity: 1; border-color: var(--cyber-red); }
    50% { opacity: 0.7; border-color: transparent; }
}

@keyframes pulse-border {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); box-shadow: 0 0 20px rgba(255,0,60,0.6); }
    100% { transform: scale(1); }
}

@keyframes slideInUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* INTEGRATION: Flicker animation for text */
@keyframes flicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% {
    text-shadow:
    0 0 4px #fff,
    0 0 11px var(--cyber-blue),
    0 0 19px var(--cyber-blue),
    0 0 40px var(--cyber-blue);
  }
  20%, 24%, 55% { text-shadow: none; color: #aaa; }
}

/* INTEGRATION: WhatsApp sonar pulse */
@keyframes pulse-whatsapp { 
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); } 
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); } 
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } 
}

/* INTEGRATION: Icon bounce for hover states */
@keyframes icon-bounce {
    from { transform: scale(1.15) translateY(0); }
    to { transform: scale(1.2) translateY(-5px); }
}

/* UTILITIES */
.hover-glow:hover {
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.15);
    border-color: var(--cyber-blue) !important;
}

.text-cyber-yellow { color: var(--cyber-yellow) !important; }
.text-cyber-blue { color: var(--cyber-blue) !important; }


/* ===================================================================
   11. MOBILE NAVIGATION
   =================================================================== */
.mobile-nav {
    position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
    background: rgba(10, 10, 10, 0.98); backdrop-filter: blur(15px);
    z-index: 1050; transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
    border-left: 2px solid var(--cyber-yellow);
    display: flex; flex-direction: column; padding: 20px; 
    box-shadow: -10px 0 30px rgba(0,0,0,0.8);
}
.mobile-nav.active { right: 0; }
body.mobile-nav-active { overflow: hidden; } /* Prevents scrolling when menu is  open */

.mobile-nav-close-btn { 
    align-self: flex-end; background: transparent; border: none; 
    color: var(--text-main); font-size: 2rem; cursor: pointer; 
    transition: 0.3s;
}
.mobile-nav-close-btn:hover { color: var(--cyber-red); transform: rotate(90deg); }

.mobile-nav .nav-link { 
    font-size: 1.2rem; padding: 15px 0 !important; 
    border-bottom: 1px solid rgba(255,255,255,0.05); color: #fff !important; 
    transition: 0.3s;
}
.mobile-nav .nav-link:hover { color: var(--cyber-yellow) !important; padding-left: 10px !important; }
.mobile-nav .nav-link::after { display: none; } /* Disable underline animation on mobile */
.text-cyber-red { color: var(--cyber-red) !important; }
.bg-dark-2 { background: #111 !important; }