/* =========================================
   1. THEME VARIABLES & FONTS
   ========================================= */
:root {
    /* BASE VARIABLES (Default fallback) */
    --bg-color: #0b1120;
    --card-bg: #151e32;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --accent: #3b82f6; 
    --accent-hover: #60a5fa;
    --border: #1e293b;
    --glow: 0 0 15px rgba(59, 130, 246, 0.3);
    
    /* FONTS */
    --font-head: 'Exo 2', sans-serif; 
    --font-mono: 'JetBrains Mono', monospace;
}

/* THEME: BLUE (Positive Tech Style) */
.theme-blue {
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --text-main: #f1f5f9;
    --accent: #0ea5e9;
    --accent-hover: #38bdf8;
    --border: #334155;
    --glow: 0 0 20px rgba(14, 165, 233, 0.2);
}

/* THEME: GREEN (Kaspersky Style) */
.theme-green {
    --bg-color: #121212;
    --card-bg: #1d1d1d;
    --text-main: #ffffff;
    --accent: #00a651;
    --accent-hover: #00d466;
    --border: #333;
    --glow: 0 0 15px rgba(0, 166, 81, 0.3);
}

/* THEME: SILVER (Original Dark Mode) */
.theme-silver {
    --bg-color: #050505;
    --card-bg: #111;
    --text-main: #e0e0e0;
    --accent: #C0C0C0;
    --accent-hover: #ffffff;
    --border: #333;
    --glow: 0 0 10px rgba(192, 192, 192, 0.2);
}

/* =========================================
   2. RESET & BASE STYLES
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-head);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.5s ease, color 0.5s ease;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* =========================================
   3. THEME SWITCHER WIDGET
   ========================================= */
.theme-switcher {
    position: fixed;
    /* Default: Top Right (Desktop) */
    top: 20px;
    right: 20px;
    
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 10px;
    border-radius: 30px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    transition: 0.3s ease;
}

/* FIX: Move to bottom on Laptops (<= 1640px) to prevent Nav overlap */
@media (max-width: 1640px) {
    .theme-switcher {
        top: auto;      
        bottom: 20px;   
        right: 20px;
    }
}

.theme-label { font-size: 0.7rem; font-family: var(--font-mono); text-transform: uppercase; color: var(--text-muted); margin-right: 5px; }
.theme-btn { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #fff; cursor: pointer; transition: transform 0.2s; }
.theme-btn:hover { transform: scale(1.2); }
.btn-blue { background: #0ea5e9; }
.btn-green { background: #00a651; }
.btn-silver { background: #C0C0C0; }

/* =========================================
   4. LAYOUT & HEADER
   ========================================= */
.scan-line {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 3px;
    background: var(--accent);
    opacity: 0.1;
    animation: scan 8s linear infinite;
    pointer-events: none;
    z-index: 999;
}
@keyframes scan { 0% { top: -10%; } 100% { top: 110%; } }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

header {
    padding: 20px 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container { display: flex; justify-content: space-between; align-items: center; }

.logo { font-size: 1.5rem; font-weight: 700; letter-spacing: 1px; }
.highlight { color: var(--accent); }

nav ul { display: flex; gap: 30px; }
nav a { font-weight: 600; font-size: 0.9rem; text-transform: uppercase; }
nav a:hover { color: var(--accent); }

/* =========================================
   5. BUTTONS
   ========================================= */
.btn-primary {
    background: var(--accent);
    color: #fff;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    display: inline-block;
    font-family: var(--font-head);
    letter-spacing: 0.5px;
}
.theme-silver .btn-primary { color: #000; } 
.btn-primary:hover { background: var(--accent-hover); box-shadow: var(--glow); }

.btn-outline { border: 1px solid var(--accent); color: var(--accent); padding: 8px 20px; border-radius: 4px; font-weight: 600; }
.btn-outline:hover { background: var(--accent); color: #fff; }
.theme-silver .btn-outline:hover { color: #000; }

.btn-text { color: var(--accent); font-weight: 700; margin-left: 20px; font-size: 0.95rem; }
.btn-text:hover { text-decoration: underline; }

/* =========================================
   6. SECTIONS
   ========================================= */
section { padding: 100px 0; border-bottom: 1px solid var(--border); }
.section-title { font-size: 2.2rem; margin-bottom: 20px; text-transform: uppercase; color: var(--text-main); font-weight: 700; }
.center-title { text-align: center; margin-bottom: 60px; }
.section-desc { max-width: 700px; margin: 0 auto 50px; text-align: center; color: var(--text-muted); font-size: 1.1rem; }

/* HERO */
.hero {
    text-align: center;
    padding: 160px 0 120px;
    background: radial-gradient(circle at top center, var(--border) 0%, var(--bg-color) 70%);
}
.hero-title { font-size: 3.5rem; line-height: 1.1; margin-bottom: 25px; letter-spacing: -0.5px; font-weight: 700; }
.subtitle { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 40px; max-width: 700px; margin-left: auto; margin-right: auto; font-weight: 300; }

/* SPLIT SECTION */
.split-wrapper { display: flex; gap: 50px; justify-content: center; flex-wrap: wrap; }
.split-col { flex: 1; min-width: 300px; padding: 20px; }
.split-divider { width: 1px; background: var(--border); display: block; }

.col-header { text-align: center; margin-bottom: 30px; }
.icon-large { font-size: 3rem; margin-bottom: 15px; color: var(--accent); }
.split-col h3 { font-size: 1.5rem; margin-bottom: 10px; font-weight: 600; }
.split-col p { color: var(--text-muted); font-size: 1rem; }

.service-list li {
    margin-bottom: 15px;
    padding-left: 20px;
    position: relative;
    font-size: 1rem;
    color: var(--text-muted);
}
.service-list li strong { color: var(--text-main); display: block; margin-bottom: 3px; font-weight: 600; }
.service-list li::before {
    content: "►";
    position: absolute; left: 0; top: 4px; color: var(--accent); font-size: 0.8rem;
}

/* DESIGNER SECTION */
.designer-section { background: var(--card-bg); }
.designer-content { display: flex; gap: 50px; align-items: center; }
.designer-text { flex: 1; }
.designer-visual { flex: 1; display: flex; justify-content: center; }

.lead { font-size: 1.2rem; margin-bottom: 30px; font-weight: 300; }

.quote-box {
    background: rgba(0,0,0,0.2);
    border-left: 4px solid var(--accent);
    padding: 20px;
    margin-bottom: 30px;
    font-style: italic;
    color: var(--text-muted);
}
.link-ref { display: block; margin-top: 10px; font-size: 0.8rem; color: var(--accent); font-style: normal; font-weight: bold; }

.checklist li { margin-bottom: 10px; padding-left: 25px; position: relative; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: bold; }

.hologram-card {
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--accent);
    padding: 25px;
    width: 320px;
    font-family: var(--font-mono);
    box-shadow: var(--glow);
    border-radius: 4px;
}
.holo-header { border-bottom: 1px solid var(--border); padding-bottom: 10px; margin-bottom: 15px; color: var(--accent); font-weight: bold; letter-spacing: 1px; }
.bar { height: 6px; background: #333; margin-bottom: 15px; border-radius: 3px; overflow: hidden; }
.fill { height: 100%; background: var(--accent); }

/* IOT & GRID */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.feature-card { background: var(--card-bg); padding: 30px; border: 1px solid var(--border); transition: 0.3s; border-radius: 4px; }
.feature-card:hover { border-color: var(--accent); transform: translateY(-5px); }
.feature-card h3 { color: var(--accent); margin-bottom: 15px; font-weight: 600; }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; }

/* CONTACT FORM */
.form-wrapper { max-width: 700px; margin: 0 auto; background: var(--card-bg); padding: 40px; border-radius: 8px; border: 1px solid var(--border); }
.form-intro { text-align: center; margin-bottom: 30px; color: var(--text-muted); }

.form-row { display: flex; gap: 20px; }
.form-group { margin-bottom: 20px; width: 100%; }
label { display: block; margin-bottom: 8px; font-size: 0.85rem; color: var(--text-muted); font-weight: 600; }
input, textarea {
    width: 100%; padding: 12px;
    background: var(--bg-color); border: 1px solid var(--border);
    color: var(--text-main); font-family: var(--font-head);
    transition: 0.3s;
    border-radius: 4px;
}
input:focus, textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 5px rgba(0,0,0,0.5); }
.status-msg { margin-top: 15px; text-align: center; font-family: var(--font-mono); }

/* FOOTER */
footer { padding: 60px 0 30px; background: var(--card-bg); border-top: 1px solid var(--border); }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; margin-bottom: 40px; gap: 30px; }
.footer-links a { display: block; margin-bottom: 10px; color: var(--text-muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { text-align: center; border-top: 1px solid var(--border); padding-top: 20px; color: #666; font-size: 0.8rem; }
.crypto { font-family: var(--font-mono); margin-top: 5px; color: var(--accent); opacity: 0.7; }

/* =========================================
   7. RESPONSIVE & MOBILE MENU (Fixes Included)
   ========================================= */

/* Default Hamburger (Hidden on Desktop) */
.hamburger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--text-main);
    border-radius: 3px;
    transition: 0.25s ease-in-out;
}

.hamburger span:nth-child(1) { top: 0px; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { top: 18px; }

/* Hamburger Animation */
.hamburger.active span:nth-child(1) { top: 9px; transform: rotate(135deg); background: var(--accent); }
.hamburger.active span:nth-child(2) { opacity: 0; left: -60px; }
.hamburger.active span:nth-child(3) { top: 9px; transform: rotate(-135deg); background: var(--accent); }


/* TABLET & MOBILE LAYOUT (Max Width 1024px) */
@media (max-width: 1024px) {

    /* HEADER FIX: Always Row, Hamburger Left, Logo Right */
    .nav-container {
        display: flex;
        flex-direction: row !important; 
        align-items: center;
        justify-content: space-between;
        padding: 0 20px;
        position: relative;
    }

    /* Move Hamburger to the LEFT */
    .hamburger { 
        display: block; 
        order: -1; 
        margin-right: 20px;
        flex-shrink: 0; 
    }

    /* Adjust Logo to Right */
    .logo {
        flex-grow: 1;
        text-align: right; 
        font-size: 1.2rem; 
    }

    /* MOBILE DRAWER MENU */
    nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        min-height: 50vh;
        background: var(--card-bg);
        border-bottom: 2px solid var(--accent);
        
        /* Hiding Logic */
        transform: translateY(-150%);
        transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        z-index: 999;
        box-shadow: 0 10px 30px rgba(0,0,0,0.8);
        
        padding-top: 80px; /* Space for the header */
        padding-bottom: 40px;
    }

    nav.nav-open {
        transform: translateY(0%);
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }

    nav a {
        font-size: 1.3rem;
        display: block;
        padding: 5px 0;
        font-weight: 700;
    }

    /* Content Adjustments */
    .hero-title { font-size: 2rem; }
    .split-divider { display: none; }
    .designer-content { flex-direction: column; }
    .form-row { flex-direction: column; gap: 0; }
}
