/* ==========================================================================
   style.css - Premium External Sheet for KD IT INFRA PROJECT LLP
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* Font style updated to Inter for standard corporate look */
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: #475569; /* Soft corporate grey */
    background: #f8fafc; /* Minimalist background */
    scroll-behavior: smooth; /* Modern smooth scrolling across the page */
}

/* Header Top Bar */
.top-bar {
    background: #0f172a; /* Deep charcoal blue */
    color: #f1f5f9;
    padding: 10px 0;
    font-size: 14px;
}

.top-bar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.contact-info a {
    color: #f1f5f9;
    text-decoration: none;
    margin-right: 20px;
    transition: color 0.3s;
}

.contact-info a:hover {
    color: #ffd700; /* Subtle professional gold */
}

.top-slogan {
    font-size: 16px;
    font-weight: 600;
    color: #ffd700;
    letter-spacing: 1px;
}

/* Main Navigation Bar */
.navbar {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: sticky; /* Professional sticky header */
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 75px;
}

.logo-nav {
    font-size: 26px;
    font-weight: 800;
    color: #1e3a8a; /* Deep blue professional logo */
    text-decoration: none;
    letter-spacing: -1px;
}

.llp-text { font-size: 16px; font-weight: 500; color: #475569; }

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 25px 18px;
    color: #334155; /* Formal charcoal */
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-menu a:hover, .nav-menu a.active {
    color: #1e3a8a;
    background: #f1f5f9;
}

/* Dropdown Menu (Professional styling) */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border-top: 3px solid #1e3a8a;
    border-radius: 0 0 5px 5px;
}

.nav-menu li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown a {
    padding: 12px 20px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    display: block;
    text-decoration: none;
}

.dropdown a:hover { color: #1e3a8a; background: #f8fafc; }

/* Professional Slider Section */
.slider {
    position: relative;
    height: 580px;
    overflow: hidden;
    background: #000;
    width: 100%;
}

.slides {
    display: flex; /* Teeno slides ko ek line (row) mein khada karne ke liye */
    flex-direction: row; /* Strict rule ki slides vertical na hon */
    height: 100%;
    width: 300%; /* 3 slides ke liye exact 300% width */
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
    flex: 1; /* Teeno slides barabar ka hissa lengi */
    width: 33.333%; /* Strict screen width constraint */
    height: 100%;
    position: relative;
    background-size: cover;
    background-position: center right; /* FIX: Image right side fix rahegi jahan camera hai */
    background-repeat: no-repeat;
    display: flex;
    align-items: center; /* Vertical center alignment */
    justify-content: flex-start; /* FIX: Content left side se shuru hoga */
}

/* Background Concepts (Professional Placeholders) */
.slides {
    display: flex;
    flex-direction: row;
    height: 100%;
    width: 500%; /* FIX: 400% se badhakar 500% kiya kyunki ab 5 slides hain */
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
    flex: 1;
    width: 20%; /* FIX: 25% se ghatakar 20% kiya taaki 5 slides barabar hissa le sakein */
    height: 100%;
    position: relative;
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* --- Aapki purani aur naye background images ka code --- */
.slide1 { background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images/cctv-banner.jpg'); }
.slide2 { background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images/networking-banner.jpg'); }
.slide3 { background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images/access-banner.jpg'); }
.slide4 { background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images/Smart Board.jpg'); }

/* --- NAYI SLIDE 5 KA CODE (Ise add karein) --- */
.slide5 { 
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                      url('images/UPS.jpg'); /* Apni 5th image ka naam yahan likhein */
}
.slider-content {
    text-align: left; /* FIX: Left alignment jisse camera na chhupe */
    color: white;
    z-index: 10;
    padding: 0 50px;
    max-width: 650px; /* FIX: Text ko right side camera par chadhne se rokega */
    margin-left: 80px; /* Left edge se professional gap */
}

.slider-content h2 {
    font-size: 3.2rem; /* Size halka sa adjust kiya balance ke liye */
    font-weight: 800;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
}

.slider-content .highlight { color: #ffd700; }

.slider-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 550px;
}

@keyframes fadeInUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-40px); } to { opacity: 1; transform: translateY(0); } }

/* Main Container: Sidebar & Content Grid */
.container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 280px 1fr; /* Professional grid division */
    gap: 40px;
}

/* Sidebar Styling (Professional color) */
.sidebar {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.sidebar h3 {
    color: #1e3a8a;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ffd700;
}

.service-cat a {
    display: flex;
    align-items: center;
    padding: 14px;
    color: #475569;
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 7px;
    transition: 0.3s ease;
    font-weight: 600;
}

.service-cat a i { width: 35px; font-size: 1.1rem; }

.service-cat a:hover, .service-cat a.active {
    background: #1e3a8a;
    color: white;
}

/* Main Content Area */
.main-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.welcome-text h1 {
    color: #1e3a8a;
    margin-bottom: 20px;
    font-size: 2.5rem;
    font-weight: 800;
}

.welcome-text p {
    font-size: 1.15rem;
    color: #64748b;
    margin-bottom: 35px;
}

/* Services Grid Area (Formal card look) */
.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.service-box {
    padding: 30px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    transition: 0.3s ease;
    background: #fff;
}

.service-box:hover {
    border-color: #1e3a8a;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.service-box i {
    font-size: 2.2rem;
    color: #1e3a8a;
    margin-bottom: 18px;
}

.service-box h4 { margin-bottom: 12px; color: #1e3a8a; font-weight: 700; font-size: 1.25rem; }

/* Call to Action Bar (Corporate feel) */
.contact-bar {
    background: #1e3a8a;
    color: white;
    padding: 70px 20px;
    text-align: center;
    margin-top: 70px;
}

.contact-bar h2 { font-size: 2rem; margin-bottom: 15px; font-weight: 700; }

.contact-bar p { font-size: 1.1rem; margin-bottom: 30px; opacity: 0.9; }

.contact-btn {
    display: inline-block;
    padding: 16px 45px;
    background: #ffd700;
    color: #1e3a8a;
    text-decoration: none;
    font-weight: 800;
    border-radius: 6px;
    margin-top: 20px;
    transition: 0.3s ease;
    text-transform: uppercase;
}

.contact-btn:hover { background: #fff; transform: scale(1.05); }

/* Footer Area (Minimalist professional) */
footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 40px 20px;
    text-align: center;
    font-size: 14px;
}

/* ==========================================================================
   Responsive Design Fix (Desktop, Laptop & Mobile Global Adaptation)
   ========================================================================== */

/* 1. LARGE LAPTOPS (E.g., 1200px - 1400px Wide Screens) */
@media (max-width: 1400px) {
    .slider-content {
        margin-left: 40px;
        max-width: 550px;
        padding: 0 10px;
    }
    .slider-content h2 {
        font-size: 2.6rem;
    }
    .container {
        gap: 20px;
    }
}

/* 2. SMALL LAPTOPS & TABLETS (992px - 1200px Wide Screens) */
@media (max-width: 1200px) {
    .slider {
        height: 480px; /* Height compressed dynamically */
    }
    .slider-content {
        max-width: 500px;
    }
    .slider-content h2 {
        font-size: 2.2rem;
    }
    .slider-content p {
        font-size: 1.1rem;
    }
    .main-content {
        padding: 25px;
    }
    .services-grid {
        gap: 20px;
    }
}

/* 3. MOBILE SCREENS & SMALL TABLETS (992px se choti sabhi screens ke liye) */
@media (max-width: 992px) {
    body {
        line-height: 1.6;
    }

    .container {
        grid-template-columns: 1fr; /* Sidebar automatic layout breakdown */
        margin: 20px auto;
        padding: 0 15px;
    }
    
    .sidebar {
        display: none; /* Secondary desktop menu hidden for better mobile space */
    }

    .slider {
        height: 380px; /* Mobile layout aspect-ratio adjustment */
    }
    
    .slide {
        background-position: center center; /* Focus center alignment on small devices */
        justify-content: center;
    }

    .slider-content {
        margin-left: 0;
        padding: 15px;
        max-width: 100%;
        text-align: center; /* Center typography rules on mobile viewports */
    }

    .slider-content h2 {
        font-size: 1.6rem;
        line-height: 1.3;
    }

    .slider-content p {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .contact-btn {
        padding: 12px 30px;
        font-size: 14px;
    }

    .services-grid {
        grid-template-columns: 1fr; /* Grid blocks stacked cleanly vertically */
        gap: 15px;
    }

    .service-box {
        padding: 20px;
    }

    .nav-container {
        padding: 0 15px;
    }
    
    .logo-nav {
        font-size: 20px;
    }
    
    .nav-menu a {
        padding: 25px 10px;
        font-size: 13px;
    }
}