/* --- Variables & Core --- */
:root {
    --bg-color: #020202;
    --card-bg: rgba(10, 10, 10, 0.85);
    --neon-green: #0aff00; 
    --neon-red: #ff003c;
    --text-main: #f0f0f0;
    --text-dim: #888;
    --font-header: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
    background-image: radial-gradient(circle at 50% 50%, rgba(10, 255, 0, 0.03) 0%, transparent 50%);
}

h1, h2, h3 { font-family: var(--font-header); text-transform: uppercase; letter-spacing: 2px; }

/* --- Beacons --- */
.beacon {
    position: fixed; width: 6px; height: 6px; background-color: white;
    border-radius: 50%; z-index: 9999;
    box-shadow: 0 0 10px white, 0 0 20px var(--neon-red);
    animation: strobe 1.5s infinite;
}
.beacon-left { top: 20px; left: 20px; }
.beacon-right { top: 20px; right: 20px; animation-delay: 0.1s; }

@keyframes strobe {
    0%, 10%, 20%, 100% { opacity: 0.1; transform: scale(1); }
    5%, 15% { opacity: 1; transform: scale(2); box-shadow: 0 0 30px white, 0 0 50px var(--neon-red); }
}

/* --- Navbar --- */
.navbar {
    position: fixed; top: 0; width: 100%; 
    height: 50px; /* Reverted to original size */
    background: rgba(2, 2, 2, 0.9); backdrop-filter: blur(5px);
    z-index: 1000; border-bottom: 1px solid rgba(10, 255, 0, 0.2);
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 40px;
}

/* Centered Logo - Absolute positioning ensures it never shifts */
.logo-container {
    position: absolute; left: 50%; transform: translateX(-50%);
    display: flex; align-items: center; justify-content: center; height: 100%;
}
.nav-logo { height: 25px; filter: drop-shadow(0 0 5px var(--neon-green)); }
.text-logo {
    display: none; font-family: var(--font-header); font-weight: 700;
    font-size: 1.5rem; color: var(--neon-green); letter-spacing: 5px;
}

/* Desktop Links */
.nav-links { display: flex; gap: 30px; list-style: none; }
.nav-links a {
    color: var(--text-main); text-decoration: none; font-weight: 500;
    font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px;
    transition: color 0.3s ease, text-shadow 0.3s;
}
.nav-links a:hover { color: var(--neon-green); text-shadow: 0 0 8px var(--neon-green); }
.right-links a:hover { color: var(--neon-red); text-shadow: 0 0 8px var(--neon-red); }

/* Mobile Menu Toggle (Hamburger) */
.menu-toggle {
    display: none; flex-direction: column; justify-content: space-between;
    width: 30px; height: 20px; cursor: pointer; z-index: 1001;
}
.menu-toggle span {
    display: block; height: 2px; width: 100%; background: var(--neon-green);
    transition: all 0.3s ease;
}

/* --- Mobile Dropdown Menu --- */
.mobile-menu {
    position: fixed;
    top: 50px; /* Matched to the new navbar height so there is no gap */
    left: 0;
    width: 100%;
    height: auto;
    background: rgba(5, 5, 5, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--neon-green);
    box-shadow: 0 15px 40px rgba(0,0,0,0.9);
    z-index: 999;
    padding: 20px 0 30px 0;
    
    transform: translateY(-150%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-links {
    list-style: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.mobile-links a {
    font-family: var(--font-header);
    font-size: 1.2rem;
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 3px;
    display: block;
    width: 100%;
}

.mobile-links a:hover {
    color: var(--neon-red);
    text-shadow: 0 0 10px var(--neon-red);
}

/* Toggle Animation (X shape) */
.menu-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); background: var(--neon-red); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); background: var(--neon-red); }

/* --- Hero Section --- */
.hero {
    height: 100vh; display: flex; flex-direction: column;
    justify-content: center; align-items: center; position: relative;
    border-bottom: 1px solid rgba(255, 0, 60, 0.3); text-align: center;
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(10, 255, 0, 0.05) 1px, transparent 1px),
                linear-gradient(rgba(10, 255, 0, 0.05) 1px, transparent 1px);
    background-size: 40px 40px; z-index: -1;
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}
.hero h1 { font-size: clamp(3rem, 8vw, 5rem); color: white; text-shadow: 0 0 20px var(--neon-green); line-height: 1; margin-bottom: 10px; }
.hero-sub { color: var(--neon-red); letter-spacing: 8px; font-size: 1.2rem; margin-bottom: 30px; }
.hero-text-block p { font-size: 1.1rem; color: var(--text-main); }

.grid-line { position: absolute; background: var(--neon-green); opacity: 0.3; }
.horizontal { top: 80%; left: 0; width: 100%; height: 1px; }
.vertical { top: 0; left: 20%; width: 1px; height: 100%; }

/* Scroll Indicator */
.scroll-indicator { position: absolute; bottom: 40px; }
.scroll-indicator span {
    display: block; width: 15px; height: 15px;
    border-bottom: 2px solid var(--neon-red); border-right: 2px solid var(--neon-red);
    transform: rotate(45deg); margin: -5px auto; animation: scroll 2s infinite;
}
.scroll-indicator span:nth-child(2) { animation-delay: -0.2s; }
.scroll-indicator span:nth-child(3) { animation-delay: -0.4s; }
@keyframes scroll {
    0%, 100% { opacity: 0; transform: rotate(45deg) translate(0, 0); }
    50% { opacity: 1; }
}

/* --- General Sections --- */
.section { padding: 80px 20px; }
.container { max-width: 1100px; margin: 0 auto; }
.section-title {
    font-size: 2rem; margin-bottom: 50px; color: white;
    border-left: 4px solid var(--neon-green); padding-left: 20px;
}

/* --- NEW: Subsidiaries Grid --- */
.subsidiary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.sub-card {
    display: flex; flex-direction: column;
    background: var(--card-bg); border: 1px solid rgba(10, 255, 0, 0.3);
    text-decoration: none; transition: 0.3s;
}
.sub-card.red-theme { border-color: rgba(255, 0, 60, 0.3); }

.sub-card:hover { transform: translateY(-5px); box-shadow: 0 0 20px rgba(10, 255, 0, 0.15); border-color: var(--neon-green); }
.sub-card.red-theme:hover { box-shadow: 0 0 20px rgba(255, 0, 60, 0.15); border-color: var(--neon-red); }

.sub-logo-box {
    height: 150px; display: flex; align-items: center; justify-content: center;
    background: #000; border-bottom: 1px solid #222; overflow: hidden;
}
.sub-logo-box img { max-height: 80px; max-width: 80%; object-fit: contain; }
.fallback-text { display: none; font-family: var(--font-header); font-size: 1.5rem; letter-spacing: 2px; }
.sub-card:not(.red-theme) .fallback-text { color: var(--neon-green); }
.sub-card.red-theme .fallback-text { color: var(--neon-red); }

.sub-content { padding: 30px; }
.sub-content h3 { color: white; font-size: 1.5rem; margin-bottom: 10px; }
.sub-content p { color: var(--text-dim); margin-bottom: 20px; font-size: 0.95rem; }

.neon-button {
    font-family: var(--font-header); font-size: 0.8rem; letter-spacing: 1px;
    color: var(--neon-green); text-transform: uppercase;
    display: inline-flex; align-items: center; gap: 10px;
}
.sub-card.red-theme .neon-button { color: var(--neon-red); }
.sub-card:hover .neon-button span { transform: translateX(5px); transition: 0.3s; }


/* --- Subsidiary Background Vectors --- */
.sub-card {
    position: relative;
    overflow: hidden; /* Keeps backgrounds inside the card */
    z-index: 1;
}

/* Background overlay base */
.sub-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    opacity: 0.05; /* Keeps it subtle so text remains readable */
    transition: opacity 0.3s ease;
    background-repeat: repeat;
}

.sub-card:hover::after {
    opacity: 0.15; /* Becomes more visible on hover */
}

/* Hineuron: Software/Code Pattern (< / > and nodes) */
.sub-card:not(.red-theme)::after {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><text x="10" y="40" font-family="monospace" font-size="20" fill="%230aff00">&lt;/&gt;</text><circle cx="80" cy="80" r="2" fill="%230aff00"/><path d="M20 50 L80 80" stroke="%230aff00" stroke-width="0.5"/></svg>');
    background-size: 100px 100px;
}

/* AirCines: Drone/Aerial Targeting Pattern */
.sub-card.red-theme::after {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="120" height="120"><circle cx="60" cy="60" r="40" stroke="%23ff003c" stroke-width="1" fill="none"/><path d="M60 10 L60 30 M60 90 L60 110 M10 60 L30 60 M90 60 L110 60" stroke="%23ff003c" stroke-width="1"/><circle cx="60" cy="60" r="2" fill="%23ff003c"/></svg>');
    background-size: 120px 120px;
    background-position: center;
}

/* --- Philosophy Cards --- */
.philosophy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.card {
    background: var(--card-bg); border: 1px solid rgba(10, 255, 0, 0.2);
    padding: 30px; transition: 0.3s;
}
.card:hover { border-color: var(--neon-green); box-shadow: 0 0 15px rgba(10, 255, 0, 0.1); }
.card-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 15px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); padding-bottom: 10px;
}
.card-icon { font-family: var(--font-header); color: var(--neon-red); font-weight: bold; font-size: 1.2rem; }
.card h3 { color: var(--neon-green); font-size: 1.2rem; }

/* --- Ventures Grid --- */
/* Optimized for exactly 4 items to make a perfect 2x2 grid */
.ventures-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(45%, 1fr)); gap: 15px; }
.venture-card {
    background: #080808; border: 1px solid #222; padding: 30px 20px;
    text-align: center; transition: all 0.3s; display: flex; flex-direction: column; align-items: center;
}
.venture-card:hover { background: #111; border-color: var(--neon-red); }
.v-icon { width: 40px; height: 4px; background: var(--neon-green); margin-bottom: 20px; box-shadow: 0 0 10px var(--neon-green); }
.v-icon.red { background: var(--neon-red); box-shadow: 0 0 10px var(--neon-red); }
.venture-card h3 { font-size: 1.1rem; margin-bottom: 10px; color: white; }
.venture-card p { font-size: 0.85rem; color: var(--text-dim); }

/* --- Footer --- */
footer { padding: 60px 20px 40px; background: #000; text-align: center; border-top: 2px solid var(--neon-green); }
.footer-decor { width: 50px; height: 2px; background: var(--neon-red); margin: 20px auto; }
.footer-links { margin-bottom: 20px; display: flex; justify-content: center; gap: 15px; align-items: center; }
.footer-links a { color: var(--neon-green); text-decoration: none; font-family: var(--font-header); font-size: 0.9rem; transition: 0.3s; }
.footer-links a:hover { color: var(--neon-red); text-shadow: 0 0 10px var(--neon-red); }
.footer-links .divider { color: #444; }
.copyright { color: #444; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; }

/* --- Utilities & Mobile --- */
.hidden { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.show { opacity: 1; transform: translateY(0); }


/* --- Mobile Breakpoints --- */
@media (max-width: 768px) {
    .navbar { padding: 0 20px; }
    .nav-links { display: none; } /* Hide desktop links */
    .menu-toggle { display: flex; } /* Show hamburger */
    
    .vertical { display: none; } 
    .ventures-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 1.5rem; }
}