/* ==========================================================================
   1. GLOBAL RESETS, VARIABLES & TYPOGRAPHY
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --bg-dark: #0a0a0a;
    --bg-card: #121212;
    --brand-red: #dc3545;
    --text-muted: #a0a0a0;
    --border-color: #2d2d2d;
    --gold-accent: #bfa15f;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark) !important;
    color: #ffffff !important;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography Utilities */
.fw-extrabold { font-weight: 800; }
.fw-black { font-weight: 900; }
.tracking-wide { letter-spacing: 2px; }
.text-danger-custom { color: var(--brand-red); }
.lh-relaxed { line-height: 1.75; }

/* Section Spacing Extensions */
.py-6 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

/* ==========================================================================
   2. SHARED LAYOUT COMPONENTS (NAVBAR & FOOTER)
   ========================================================================== */
.navbar {
    background-color: rgba(10, 10, 10, 0.95) !important;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.35rem;
    letter-spacing: 1px;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: #cccccc !important;
    transition: color 0.2s ease;
}

.nav-link:hover, 
.nav-link.active,
.nav-item.dropdown:hover .nav-link {
    color: var(--brand-red) !important;
}

/* Dropdown Menu Customization */
.dropdown-menu {
    background-color: #161616 !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.dropdown-item {
    color: #dddddd !important;
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--brand-red) !important;
    color: #ffffff !important;
}

/* Navbar Search Input Configuration */
.search-nav-input {
    background: #1c1c1c;
    border: 1px solid #333;
    color: #fff;
    font-size: 0.85rem;
    border-radius: 20px;
    padding: 0.35rem 1rem;
    width: 180px;
    transition: all 0.3s ease;
}

.search-nav-input:focus {
    outline: none;
    border-color: var(--brand-red);
    width: 210px;
    background: #252525;
}

/* ==========================================================================
   3. HOME PAGE SPECIFIC STYLES (LAPTOP MOCKUP & BRANDING)
   ========================================================================== */
.brand-text-block {
    display: inline-block;
    line-height: 1;
    vertical-align: middle;
    border-left: 2px solid var(--brand-red);
    padding-left: 8px;
}

/* CSS Pure Laptop Design Framework */
.laptop-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.laptop-screen {
    background: #1f1f1f;
    border: 14px solid #2b2b2b;
    border-radius: 12px 12px 0 0;
    aspect-ratio: 16/10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
}

.screen-graphic {
    width: 95%;
    height: 90%;
    background: linear-gradient(135deg, #1f2022 0%, #111214 100%);
    border: 1px solid #3a3a3a;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.inner-box {
    border: 2px solid var(--gold-accent);
    padding: 10px 20px;
    text-align: center;
}

.inner-box h5 {
    color: var(--gold-accent);
    font-weight: 700;
    margin: 0;
    letter-spacing: 2px;
    font-size: 1.1rem;
}

.inner-box p {
    color: #888888;
    font-size: 0.65rem;
    margin: 4px 0 0 0;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.laptop-base {
    background: #dfdfdf;
    height: 12px;
    width: 114%;
    margin-left: -7%;
    border-radius: 0 0 12px 12px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

.laptop-base::after {
    content: '';
    position: absolute;
    background: #b5b5b5;
    width: 18%;
    height: 4px;
    top: 0;
    left: 41%;
    border-radius: 0 0 4px 4px;
}

/* ==========================================================================
   4. COMPONENT CARDS & GRID PANELS
   ========================================================================== */
.project-card {
    background: var(--bg-card);
    border: 1px solid #222222;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--brand-red) !important;
}

.mock-img-placeholder {
    background: #181818;
    aspect-ratio: 16/10;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 3px solid var(--brand-red);
    color: #555555;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   5. OPERATIONAL MATRICES & TABLES (IOC SERVICE TIERS)
   ========================================================================== */
.matrix-table {
    border-collapse: separate;
    border-spacing: 0 12px;
}

.matrix-table th {
    background-color: transparent;
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: none;
    font-weight: 600;
}

.matrix-table td {
    background-color: #111111;
    border: none;
    padding: 1.2rem;
    vertical-align: middle;
    border-top: 1px solid #1a1a1a;
    border-bottom: 1px solid #1a1a1a;
}

.matrix-table td:first-child {
    border-radius: 6px 0 0 6px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
    border-left: 1px solid #1a1a1a;
}

.matrix-table td:last-child {
    border-radius: 0 6px 6px 0;
    border-right: 1px solid #1a1a1a;
}

/* Checkmark and Disallow Badges */
.check-icon {
    width: 24px;
    height: 24px;
    background: #0d6efd;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.85rem;
}

.cross-icon {
    width: 24px;
    height: 24px;
    background: #222222;
    color: #555555;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* ==========================================================================
   6. CONTACT FORM & INTERFACE INPUTS
   ========================================================================== */
.form-control {
    background-color: #141414 !important;
    border: 1px solid var(--border-color) !important;
    color: #ffffff !important;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    outline: none !important;
    border-color: var(--brand-red) !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15) !important;
}

label.text-muted {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* ==========================================================================
   7. UTILITIES & ADVANCED ANIMATIONS
   ========================================================================== */
.transition-all {
    transition: all 0.3s ease;
}

.btn-light.rounded-pill:hover {
    background-color: #e5e5e5;
    transform: scale(1.02);
}

/* ==========================================================================
   8. MEDIA QUERIES (MOBILE RESPONSIVENESS FINETUNING)
   ========================================================================== */
@media (max-width: 991.98px) {
    .laptop-container {
        max-width: 340px;
        margin-bottom: 2.5rem;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
    
    .matrix-table th {
        font-size: 0.7rem;
        letter-spacing: 0.5px;
    }
    
    .matrix-table td {
        padding: 0.85rem;
        font-size: 0.8rem;
    }
    
    .search-nav-input {
        width: 100%;
        margin-top: 0.5rem;
    }
    
    .search-nav-input:focus {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .py-6 {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }
    
    .laptop-container {
        max-width: 280px;
    }
    
    .laptop-screen {
        border-width: 10px;
    }
    
    .inner-box h5 {
        font-size: 0.9rem;
    }
}