/* ==========================================================================
   ICOSYS GLOBAL FRAMEWORK - FUTURISTIC TECH STYLE
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Rajdhani:wght@500;600;700&display=swap');

:root {
    --bg-space: #0a0b10;
    --bg-card: rgba(20, 24, 35, 0.6);
    --neon-cyan: #00f2ff;
    --neon-blue: #0066ff;
    --text-primary: #ffffff;
    --text-secondary: #8f9cae;
    --border-glow: rgba(0, 242, 255, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Rajdhani', sans-serif;
}

body {
    background-color: var(--bg-space);
    color: var(--text-primary);
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(0, 102, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 242, 255, 0.08) 0%, transparent 40%);
}

/* ==========================================================================
   HEADER & NAVIGATION MANAGEMENT (FIXED OVERLAP & SCROLL BUGS)
   ========================================================================== */
header {
    background: rgba(10, 11, 16, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glow);
    position: sticky;
    top: 0;
    z-index: 9999; /* Forces navigation stack to stay above body text layers */
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo a {
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
}

.logo span { color: var(--neon-cyan); }

.main-navigation ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    position: relative; /* Lock coordinates for child drop list arrays */
    padding: 10px 0;
}

.main-navigation a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.main-navigation a:hover, 
.main-navigation ul li:hover > a {
    color: var(--neon-cyan);
    text-shadow: 0 0 8px rgba(0, 242, 255, 0.6);
}

/* Megalist Submenu Controller Rules */
/* Megalist Submenu Controller Rules - Fixed Right-Edge Overflow Clip */
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;           /* Anchors the menu box firmly to the right edge of "PRODUCTS" */
    left: auto;          /* Clears out the old left-centering properties */
    transform: none;     /* Removes the translate property causing the shift */
    background: rgba(10, 11, 16, 0.98);
    border: 1px solid var(--border-glow);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    display: none;
    flex-direction: column;
    min-width: 280px;    /* Slightly widened for better text spacing */
    max-height: 400px;   /* Clamps long list items safely */
    overflow-y: auto;    /* Generates scroll bar if list exceeds panel height */
    padding: 10px 0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 242, 255, 0.1);
    border-radius: 6px;
    z-index: 10000;
}

/* Standard Scrollbar styling for the massive products menu dropdown */
.dropdown-menu::-webkit-scrollbar {
    width: 6px;
}
.dropdown-menu::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.2);
}
.dropdown-menu::-webkit-scrollbar-thumb {
    background: var(--border-glow);
    border-radius: 3px;
}

.dropdown:hover .dropdown-menu { 
    display: flex; 
}

.dropdown-menu li { 
    width: 100%; 
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    font-size: 14px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    transition: all 0.2s ease;
}

.dropdown-menu a:hover { 
    background: rgba(0, 242, 255, 0.08); 
    color: #fff;
    padding-left: 25px;
}

.btn-demo {
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-cyan));
    color: white !important;
    padding: 10px 18px;
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.4);
}

.btn-demo:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 25px rgba(0, 242, 255, 0.7);
}

/* ==========================================================================
   MAIN CORE WORKSPACE LAYOUT
   ========================================================================== */
.hero-section {
    padding: 150px 20px 100px 20px;
    text-align: center;
    position: relative;
}
.hero-section h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 64px;
    letter-spacing: 4px;
    margin-bottom: 10px;
    background: linear-gradient(180deg, #fff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-section p {
    color: var(--neon-cyan);
    font-size: 20px;
    letter-spacing: 6px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(0,242,255,0.3);
}

.section-container {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

h2.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 28px;
    margin-bottom: 40px;
    text-transform: uppercase;
    border-left: 4px solid var(--neon-cyan);
    padding-left: 15px;
    letter-spacing: 2px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

/* Glassmorphism Structural Component */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.2);
}
.glass-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    letter-spacing: 1px;
}
.glass-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.product-specs {
    margin-top: 15px;
    list-style: none;
}
.product-specs li {
    font-size: 14px;
    color: #a5b4fc;
    margin-bottom: 5px;
    padding-left: 15px;
    position: relative;
}
.product-specs li::before {
    content: "▫";
    position: absolute;
    left: 0;
    color: var(--neon-cyan);
}

/* ==========================================================================
   DYNAMIC INTERACTIVE SWITCHING STATION
   ========================================================================== */
.interactive-showcase {
    display: flex;
    gap: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: 12px;
    padding: 40px;
}

@media (max-width: 768px) {
    .interactive-showcase {
        flex-direction: column;
    }
}

.tech-tabs {
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 250px;
}
.tab-btn {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    color: var(--text-secondary);
    padding: 15px 20px;
    text-align: left;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 4px;
}
.tab-btn.active, .tab-btn:hover {
    background: linear-gradient(90deg, rgba(0,102,255,0.2), transparent);
    border-left: 3px solid var(--neon-cyan);
    color: #fff;
}
.tab-pane { display: none; }
.tab-pane.active { display: block; animation: fadeIn 0.5s ease; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(10px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ==========================================================================
   FUTURISTIC CONSULTATION CAPTURE MODULE
   ========================================================================== */
.form-wrapper {
    background: radial-gradient(circle at top right, rgba(0,242,255,0.05), transparent), var(--bg-card);
    border: 1px solid var(--border-glow);
    padding: 40px;
    border-radius: 12px;
    max-width: 600px;
    margin: 0 auto;
}
.form-group { margin-bottom: 20px; }
.form-group input {
    width: 100%;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 15px;
    color: white;
    font-size: 16px;
    border-radius: 4px;
    transition: all 0.3s;
}
.form-group input:focus {
    border-color: var(--neon-cyan);
    outline: none;
    box-shadow: 0 0 10px rgba(0,242,255,0.2);
}
.btn-submit {
    width: 100%;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-cyan));
    border: none;
    padding: 15px;
    color: white;
    font-weight: 700;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.3);
    border-radius: 4px;
}
.btn-submit:hover {
    box-shadow: 0 0 25px rgba(0, 242, 255, 0.6);
}

/* ==========================================================================
   FOOTER SUMMARY FOOTPRINT
   ========================================================================== */
footer {
    background: #050609;
    border-top: 1px solid var(--border-glow);
    padding: 60px 20px 30px 20px;
    margin-top: 100px;
}
.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
}
.footer-col h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: var(--neon-cyan);
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}
.footer-col a:hover { color: white; }
.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0 auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}