/* ======== DARKNODE THEME VARIABLES ======== */
:root {
    --bg-deep: #020408;
    --bg-panel: rgba(15, 20, 28, 0.6);
    --neon-cyan: #00f3ff;
    --neon-purple: #bc13fe;
    --neon-blue: #0070ff;
    --text-main: #e0e6ed;
    --text-muted: #8b9bb4;
    --border-glass: rgba(0, 243, 255, 0.15);
    --glass-blur: blur(12px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-deep);
    color: var(--text-main);
    overflow-x: hidden;
    position: relative;
}

/* --- BACKGROUND PARTICLES --- */
#canvas-bg {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    opacity: 0.4;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, .nav-links a, .btn {
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
}

/* ======== HEADER / NAVBAR ======== */
#main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(2, 4, 8, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px; 
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: 2px;
}

.logo img {
    height: 40px; 
    width: 40px;
    border-radius: 50%; 
    border: 2px solid var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 1px;
    position: relative;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 8px var(--neon-cyan);
}

/* Buttons */
.btn {
    padding: 10px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    display: inline-block;
    border: 1px solid transparent;
    letter-spacing: 1px;
    cursor: pointer;
}

.btn-primary {
    background: rgba(0, 243, 255, 0.1);
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
}

.btn-primary:hover {
    background: var(--neon-cyan);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.4);
}

.btn-large {
    font-size: 18px;
    padding: 15px 40px;
    background: #fff;
    color: #000;
}
.btn-large:hover {
    background: var(--neon-cyan);
    box-shadow: 0 0 30px var(--neon-cyan);
}

/* ======== HERO SECTION ======== */
.hero-revamped {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90vh;
    padding: 0 5%;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #fff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(0, 243, 255, 0.1);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.6;
}

/* ======== SOLUTIONS SLIDER ======== */
.solutions-slider-section {
    padding: 100px 5%;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 10px;
    color: #fff;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 60px;
}

/* Slider Container Styles */
.slider-container {
    width: 100%;
    max-width: 1000px;
    height: 500px;
    margin: 0 auto;
    position: relative;
}

.slider-container .slide .item {
    width: 220px;
    height: 320px;
    position: absolute;
    top: 50%;
    transform: translate(0, -50%);
    border-radius: 12px;
    /* Dark Card Style */
    background-size: cover;
    background-position: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    border: 1px solid var(--border-glass);
    display: inline-block;
    transition: 0.5s;
    overflow: hidden;
}

/* Dark Overlay for images */
.slide .item::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(0deg, rgba(0,0,0,0.9), transparent);
    z-index: 1;
}

.slide .item:nth-child(1),
.slide .item:nth-child(2) {
    top: 0; left: 0; transform: translate(0, 0);
    border-radius: 20px; width: 100%; height: 100%;
    box-shadow: none;
    border: none;
}

/* Positioning the carousel cards */
.slide .item:nth-child(3) { left: 65%; z-index: 2; }
.slide .item:nth-child(4) { left: calc(65% + 240px); z-index: 1; opacity: 0.5; }
.slide .item:nth-child(n + 5) { left: calc(65% + 480px); opacity: 0; }

.item .content {
    position: absolute; top: 50%; left: 80px;
    width: 400px; text-align: left; color: #eee;
    transform: translate(0, -50%);
    display: none;
    z-index: 10;
}

.slide .item:nth-child(2) .content { display: block; }

.content .name {
    font-size: 48px; 
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    color: var(--neon-cyan);
    text-transform: uppercase;
    opacity: 0; 
    animation: showContent 1s ease-in-out 1 forwards;
    text-shadow: 0 0 20px rgba(0, 243, 255, 0.4);
}

.content .des {
    margin: 20px 0;
    color: #ddd;
    line-height: 1.6;
    opacity: 0; 
    animation: showContent 1s ease-in-out 0.3s 1 forwards;
}

.content button {
    padding: 12px 30px;
    border: 1px solid var(--neon-cyan);
    background: rgba(0,0,0,0.5);
    color: var(--neon-cyan);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    text-transform: uppercase;
    opacity: 0; 
    animation: showContent 1s ease-in-out 0.6s 1 forwards;
    transition: 0.3s;
}

.content button:hover {
    background: var(--neon-cyan);
    color: #000;
    box-shadow: 0 0 20px var(--neon-cyan);
}

@keyframes showContent {
    from { opacity: 0; transform: translate(0, 50px); filter: blur(10px); }
    to { opacity: 1; transform: translate(0); filter: blur(0); }
}

.slider-buttons {
    position: absolute;
    bottom: 30px;
    width: 100%;
    text-align: center;
    z-index: 100;
}

.slider-buttons button {
    width: 50px; height: 50px;
    border-radius: 50%;
    border: 1px solid var(--border-glass);
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 20px;
    margin: 0 10px;
    cursor: pointer;
    transition: 0.3s;
}

.slider-buttons button:hover {
    background: var(--neon-cyan);
    color: #000;
    box-shadow: 0 0 20px var(--neon-cyan);
}

/* ======== FEATURES GRID ======== */
.features-section { padding: 100px 5%; }

.features-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); 
    gap: 30px; 
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-glass);
    padding: 40px; 
    border-radius: 12px;
    text-align: center; 
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.feature-card:hover { 
    transform: translateY(-10px); 
    border-color: var(--neon-cyan);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.1); 
}

.feature-card-icon { 
    font-size: 3rem; 
    margin-bottom: 20px; 
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
}

.feature-card h3 { color: #fff; font-size: 24px; margin-bottom: 15px; }
.feature-card p { color: var(--text-muted); line-height: 1.6; }

/* ======== DASHBOARD SHOWCASE ======== */
.showcase-section { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    padding: 100px 5%; 
    gap: 60px; 
    max-width: 1400px;
    margin: 0 auto;
}

.showcase-content { flex: 1; }

.showcase-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #fff;
}

.showcase-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.showcase-video-wrapper { 
    flex: 1; 
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-glass);
    box-shadow: 0 0 40px rgba(0, 243, 255, 0.1);
    position: relative;
}

.showcase-video-wrapper::after {
    content: '';
    position: absolute; inset: 0;
    border-radius: 12px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
    pointer-events: none;
}

.showcase-video-wrapper video { 
    width: 100%; 
    display: block; 
}

/* ======== CTA SECTION ======== */
.cta-section { 
    padding: 100px 5%; 
    text-align: center;
    background: linear-gradient(0deg, rgba(0, 243, 255, 0.05), transparent);
    border-top: 1px solid var(--border-glass);
}

.cta-section h2 { font-size: 3.5rem; margin-bottom: 15px; color: #fff; }
.cta-section p { font-size: 1.2rem; margin-bottom: 40px; color: var(--text-muted); }

/* ======== FOOTER ======== */
footer { 
    text-align: center; 
    padding: 40px 5%; 
    background: #000; 
    border-top: 1px solid #1a1a1a;
    color: #444; 
}

footer a { color: var(--neon-cyan); text-decoration: none; }

/* ======== MOBILE RESPONSIVE STYLES ======== */
@media (max-width: 768px) {
    /* Navbar */
    .navbar {
        flex-direction: column;
        gap: 20px;
        background: rgba(2, 4, 8, 0.95);
        padding: 20px;
    }
    .nav-links {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .logo { font-size: 28px; margin-bottom: 5px; }

    /* Hero */
    .hero-revamped { padding-top: 40px; min-height: 80vh; }
    .hero-title { font-size: 2.8rem; margin-bottom: 15px; }
    .hero-subtitle { font-size: 1rem; margin-bottom: 30px; }
    .btn-large { padding: 12px 25px; font-size: 16px; }

    /* Slider - Mobile Optimization */
    .solutions-slider-section { padding: 60px 5%; }
    .section-title { font-size: 2.2rem; }
    .section-subtitle { font-size: 1rem; margin-bottom: 40px; }
    
    .slider-container { height: 450px; }
    .slider-container .slide .item {
        width: 280px;
        height: 380px;
    }
    
    /* On mobile, simplify to single focus card logic */
    .slide .item:nth-child(3),
    .slide .item:nth-child(4),
    .slide .item:nth-child(n+5) {
        opacity: 0; pointer-events: none; 
    }
    
    .slide .item:nth-child(2) {
        left: 50%; 
        transform: translate(-50%, -50%);
        top: 45%;
        box-shadow: 0 10px 30px rgba(0, 243, 255, 0.15);
    }
    
    .item .content {
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        text-align: center;
        top: auto;
        bottom: 20px;
        padding: 0 15px;
    }
    
    .content .name { font-size: 32px; margin-bottom: 5px; }
    .content .des { font-size: 14px; margin: 10px 0; line-height: 1.4; }
    .content button { padding: 8px 20px; font-size: 14px; }

    /* Features */
    .features-section { padding: 60px 5%; }
    .features-grid { grid-template-columns: 1fr; gap: 20px; }
    .feature-card { padding: 30px; }

    /* Showcase */
    .showcase-section { 
        padding: 60px 5%; 
        flex-direction: column; 
        text-align: center; 
        gap: 40px; 
    }
    .showcase-content h2 { font-size: 2.5rem; }

    /* CTA & Footer */
    .cta-section { padding: 60px 5%; }
    .cta-section h2 { font-size: 2.5rem; }
    footer { padding: 30px 5%; font-size: 14px; }
}