/* ===== VARIABLES & RESET (Dark Theme) ===== */
:root {
    /* Dark Theme Palette */
    --bg-body: #0b0e14;   /* Deep Navy/Black */
    --bg-surface: #151a23; /* Slightly lighter for cards */
    --bg-card: #1e2633;
    
    /* Primary Blue/Cyan Set */
    --primary: #2979ff;    /* Vivid Blue */
    --primary-dark: #1565c0; 
    --secondary: #00e5ff;  /* Cyan Accent */
    
    /* Text - FORCED WHITE FOR VISIBILITY */
    --text-main: #ffffff;
    --text-muted: #e2e8f0; /* Very light grey, almost white */
    
    /* Accents */
    --border-light: rgba(255, 255, 255, 0.15);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.5);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.7);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/* FORCE ALL HEADINGS AND TEXT TO BE WHITE/VISIBLE */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: #ffffff !important;
}

p, li, span, div {
    color: #ffffff;
}

/* Override Bootstrap's invisible dark grey text */
.text-muted {
    color: rgba(255, 255, 255, 0.85) !important;
}

.lead {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* ===== ANIMATED BACKGROUND ===== */
#neuron-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    opacity: 0.5; /* Increased opacity slightly for effect */
}

/* ===== NAVBAR ===== */
.navbar {
    background: rgba(11, 14, 20, 0.98); /* Less transparent for readability */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    padding: 0.8rem 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.navbar-brand img {
    width: 40px; 
    height: 40px; 
    border-radius: 50%; 
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.2);
}

.navbar-brand span {
    color: #ffffff !important;
    font-weight: 700;
    font-size: 1.25rem;
}

/* Desktop Nav Links */
.navbar-nav .nav-link {
    color: #ffffff !important; /* Force White */
    font-weight: 500;
    margin: 0 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}

.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
    color: var(--secondary) !important;
}

/* ===== SIDEBAR (Mobile) ===== */
.sidebar {
    position: fixed;
    top: 0; left: -300px;
    width: 300px;
    height: 100vh;
    background: #0f0f0f;
    z-index: 10000;
    transition: left 0.3s ease;
    border-right: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
}

.sidebar.active { left: 0; }

.sidebar-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-nav { list-style: none; padding: 20px; }

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 10px;
    color: #ffffff !important;
}

.sidebar-nav .nav-link:hover {
    background: rgba(255,255,255,0.1);
    color: var(--primary) !important;
}

.sidebar-close {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
}

.sidebar-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.sidebar-overlay.active { opacity: 1; visibility: visible; }

.sidebar-toggle {
    background: transparent;
    border: none;
    color: #ffffff !important;
}

/* ===== HERO CAROUSEL ===== */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding-top: 80px; 
}

/* MOBILE PADDING FIX - Ensures text is seen */
@media (max-width: 991px) {
    .hero-section {
        padding-top: 110px; /* Reduced from 150px as requested */
        height: auto;
        min-height: 100vh;
        align-items: flex-start; /* Start content below navbar */
    }
    
    .display-title {
        font-size: 2.5rem;
    }
    
    .navbar-nav { display: none; } 
    .sidebar-toggle { display: block; }
}

@media (min-width: 992px) {
    .sidebar-toggle { display: none; }
}

.carousel-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s;
    display: flex;
    align-items: center;
    padding: 0 5%;
}

.carousel-slide.active { opacity: 1; visibility: visible; }

/* Text Animations */
.carousel-slide.active h1 { animation: slideUp 0.8s forwards 0.2s; opacity: 0; }
.carousel-slide.active p { animation: slideUp 0.8s forwards 0.4s; opacity: 0; }
.carousel-slide.active .btn { animation: slideUp 0.8s forwards 0.6s; opacity: 0; }

.display-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #ffffff !important;
}

.text-gradient {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ===== CARDS & SECTIONS ===== */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    color: #ffffff !important;
}

/* Updated Service Card for Glass Effect & Neon Borders */
.service-card {
    background: rgba(30, 38, 51, 0.7); /* Dark Glass */
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-light);
    border-bottom-width: 4px; /* Thick bottom border for color */
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* CARD TEXT VISIBILITY FIX */
.service-card h4 {
    color: #ffffff !important;
    font-weight: 700;
}

.service-card p {
    color: rgba(255, 255, 255, 0.9) !important; /* Force visible light grey/white */
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    background: rgba(40, 50, 65, 0.9);
    /* Border color handles glow on hover via specific classes below */
}

.service-icon {
    width: 50px; height: 50px;
    background: rgba(41, 121, 255, 0.1);
    color: var(--secondary);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s;
}

/* ===== INDEX PAGE AUTO-COLORING ===== */
/* Manually targets the 6 service cards in index.html to apply the neon colors */

/* 1. OS Installation (Cyan) */
#services .col-md-4:nth-child(1) .service-card { border-bottom-color: #00e5ff; }
#services .col-md-4:nth-child(1) .service-card:hover { box-shadow: 0 10px 30px rgba(0, 229, 255, 0.2); }
#services .col-md-4:nth-child(1) .service-icon { color: #00e5ff; background: rgba(0, 229, 255, 0.1); }

/* 2. Package Installation (Purple) */
#services .col-md-4:nth-child(2) .service-card { border-bottom-color: #d500f9; }
#services .col-md-4:nth-child(2) .service-card:hover { box-shadow: 0 10px 30px rgba(213, 0, 249, 0.2); }
#services .col-md-4:nth-child(2) .service-icon { color: #d500f9; background: rgba(213, 0, 249, 0.1); }

/* 3. Hardware Setup (Orange) */
#services .col-md-4:nth-child(3) .service-card { border-bottom-color: #ff9100; }
#services .col-md-4:nth-child(3) .service-card:hover { box-shadow: 0 10px 30px rgba(255, 145, 0, 0.2); }
#services .col-md-4:nth-child(3) .service-icon { color: #ff9100; background: rgba(255, 145, 0, 0.1); }

/* 4. Networking & CCTV (Blue) */
#services .col-md-4:nth-child(4) .service-card { border-bottom-color: #2979ff; }
#services .col-md-4:nth-child(4) .service-card:hover { box-shadow: 0 10px 30px rgba(41, 121, 255, 0.2); }
#services .col-md-4:nth-child(4) .service-icon { color: #2979ff; background: rgba(41, 121, 255, 0.1); }

/* 5. Diagnostics (Yellow) */
#services .col-md-4:nth-child(5) .service-card { border-bottom-color: #ffea00; }
#services .col-md-4:nth-child(5) .service-card:hover { box-shadow: 0 10px 30px rgba(255, 234, 0, 0.2); }
#services .col-md-4:nth-child(5) .service-icon { color: #ffea00; background: rgba(255, 234, 0, 0.1); }

/* 6. Web & SEO (Pink) */
#services .col-md-4:nth-child(6) .service-card { border-bottom-color: #f50057; }
#services .col-md-4:nth-child(6) .service-card:hover { box-shadow: 0 10px 30px rgba(245, 0, 87, 0.2); }
#services .col-md-4:nth-child(6) .service-icon { color: #f50057; background: rgba(245, 0, 87, 0.1); }


/* ===== NEW PORTFOLIO SECTION ===== */
.portfolio-section {
    padding: 80px 0;
    background: var(--bg-body);
}

.project-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 300px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(11, 14, 20, 0.95), rgba(41, 121, 255, 0.3));
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: flex-end;
    padding: 25px;
}

.project-card:hover .project-img {
    transform: scale(1.1);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-tag {
    font-size: 0.8rem;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    display: block;
}

.project-info h3 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
}

.project-info p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.8);
    margin: 0;
    line-height: 1.4;
}

/* ===== BOOKING SECTION ===== */
.booking-section {
    background: linear-gradient(180deg, var(--bg-body) 0%, var(--bg-surface) 100%);
    padding: 5rem 0;
    border-top: 1px solid var(--border-light);
}

/* ===== TESTIMONIALS ===== */
.review-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.review-card p {
    color: rgba(255, 255, 255, 0.9) !important;
}

.review-card h6 {
    color: var(--secondary) !important;
}

.stars { color: #fbbf24; margin-bottom: 1rem; }

/* ===== FOOTER ===== */
.footer {
    background: #000000;
    border-top: 1px solid var(--border-light);
    padding: 4rem 0 2rem;
}

.footer h5 { color: white !important; margin-bottom: 1.5rem; }
.footer p { color: rgba(255, 255, 255, 0.7) !important; }
.footer a { color: rgba(255, 255, 255, 0.7) !important; text-decoration: none; transition: 0.2s; }
.footer a:hover { color: var(--secondary) !important; }

/* ===== BUTTONS & ANIMATIONS ===== */
.btn-primary {
    background: var(--primary);
    color: white !important;
    padding: 12px 32px;
    border-radius: 50px;
    border: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 0 15px rgba(41, 121, 255, 0.4);
}

.btn-outline-light {
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    color: white !important;
}

.btn-outline-light:hover {
    background: white;
    color: black !important;
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
/* ===== TECH BLOG SECTION ===== */
.blog-section {
    background: linear-gradient(180deg, var(--bg-body) 0%, var(--bg-surface) 100%);
    position: relative;
}

.blog-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: var(--primary);
}

/* Image & Date Badge */
.blog-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.blog-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-img {
    transform: scale(1.1);
}

.blog-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(11, 14, 20, 0.85);
    backdrop-filter: blur(5px);
    padding: 8px 15px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--secondary);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.15);
    z-index: 2;
}

.blog-date .day {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

.blog-date .month {
    display: block;
    font-size: 0.75rem;
    color: var(--secondary);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Content */
.blog-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.blog-meta span i {
    margin-right: 5px;
    color: var(--primary);
}

.blog-content h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    font-weight: 700;
    color: #ffffff !important;
    line-height: 1.3;
}

.blog-content p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    flex-grow: 1;
    line-height: 1.6;
}

/* Read More Link */
.read-more {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s;
}

.read-more:hover {
    color: var(--primary);
    gap: 12px;
}