/**
 * Hemraj Security Services & Developers
 * Customized Production-Ready Stylesheet
 * Brand Colors: Navy (#071A2E), Gold (#D4AF37)
 */

:root {
    --navy-dark: #000000;    /* Pure Black background */
    --navy: #0C0D10;         /* Core Dark Charcoal */
    --navy-light: #16181C;   /* Charcoal highlight */
    --gold: #DC2626;         /* Crimson Red (remaps gold highlights to red) */
    --gold-light: #FEE2E2;   /* Light red overlay */
    --gold-dark: #B91C1C;    /* Dark red hover states */
    --red: #DC2626;
    --red-hover: #B91C1C;
    --gray-bg: #FFFFFF;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--gray-bg);
    color: var(--navy);
    overflow-x: hidden;
}

/* Background Utility Classes */
.bg-navy-dark {
    background-color: var(--navy-dark) !important;
}

.bg-navy {
    background-color: var(--navy) !important;
}

.bg-navy-light {
    background-color: var(--navy-light) !important;
}

.bg-gold {
    background-color: var(--gold) !important;
}

/* Text Utility Classes */
.text-navy {
    color: var(--navy) !important;
}

.text-gold {
    color: var(--gold) !important;
}

.text-gold-light {
    color: var(--gold-light) !important;
}

/* Custom Dividers & Outlines */
.border-gold {
    border: 1px solid var(--gold) !important;
}

.border-bottom-gold {
    border-bottom: 2px solid var(--gold) !important;
}

.border-gold-opacity {
    border-color: rgba(212, 175, 55, 0.2) !important;
}

/* General Layout spacing */
.transition-all {
    transition: all 0.3s ease;
}

/* Navbar Customization (White theme with Red & Black accents) */
.navbar {
    background-color: #ffffff !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.navbar-brand .brand-text {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.5px;
}

.navbar-brand .brand-subtext {
    font-size: 8px;
    letter-spacing: 2px;
}

.navbar-nav .nav-link {
    color: #0c0d10 !important;
    font-weight: 600;
    padding: 0.5rem 1.2rem;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--red) !important;
}

.navbar-nav .nav-link.active {
    position: relative;
}

@media (min-width: 992px) {
    .navbar-nav .nav-link.active::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 1.2rem;
        right: 1.2rem;
        height: 3px;
        background-color: var(--red);
        border-radius: 2px;
    }
}

.dropdown-menu-dark {
    padding: 0.5rem 0;
}

.dropdown-menu-dark .dropdown-item:hover {
    background-color: var(--navy-light);
    color: var(--gold);
}

/* Custom Buttons */
.btn-gold {
    background-color: var(--gold);
    color: var(--navy) !important;
    border: 1px solid var(--gold);
}

.btn-gold:hover {
    background-color: var(--gold-dark);
    border-color: var(--gold-dark);
    color: white !important;
}

.btn-gold-gradient {
    background: linear-gradient(135deg, var(--gold) 0%, var(--red) 100%) !important;
    color: white !important;
    border: none !important;
    transition: all 0.3s ease;
}

.btn-gold-gradient:hover {
    background: linear-gradient(135deg, var(--gold-dark) 0%, var(--red-hover) 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4) !important;
}

.btn-navy {
    background-color: var(--navy);
    color: white !important;
    border: 1px solid var(--navy);
}

.btn-navy:hover {
    background-color: var(--navy-dark);
}

.hover-scale {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-scale:hover {
    transform: translateY(-3px);
}

/* Premium Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(3, 13, 23, 0.95) 0%, rgba(7, 26, 46, 0.85) 100%), url('https://images.unsplash.com/photo-1578575437130-527eed3abbec?auto=format&fit=crop&w=1920&q=80') no-repeat center center;
    background-size: cover;
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    color: white;
}

.hero-content {
    max-width: 800px;
}

.hero-subtitle {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--gold);
    letter-spacing: 2px;
    font-size: 0.9rem;
}

.trust-badges-hero .badge {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

/* Floating Elements */
.floating-call,
.floating-whatsapp {
    position: fixed;
    bottom: 80px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    z-index: 999;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.floating-call {
    right: 20px;
    background-color: #0d84fb;
}

.floating-whatsapp {
    left: 20px;
    background-color: #25d366;
}

.floating-call:hover,
.floating-whatsapp:hover {
    transform: scale(1.1);
    color: white;
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background-color: var(--navy);
    border: 1px solid var(--gold);
    z-index: 999;
    display: none;
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.back-to-top:hover {
    opacity: 1;
    transform: translateY(-2px);
    background-color: var(--navy-dark);
}

/* Section Headings */
.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: var(--navy);
    position: relative;
    max-width: fit-content;
}

.section-title-center {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: var(--navy);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--gold);
}

/* Premium Cards */
.premium-card {
    background: white;
    border: 1px solid rgba(7, 26, 46, 0.05);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
    height: 100%;
}

.premium-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(7, 26, 46, 0.09);
    border-color: rgba(212, 175, 55, 0.4);
}

.premium-card .card-icon-wrapper {
    width: 65px;
    height: 65px;
    border-radius: 12px;
    background-color: rgba(212, 175, 55, 0.08);
    color: var(--gold-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.premium-card:hover .card-icon-wrapper {
    background-color: var(--gold);
    color: var(--navy);
    transform: scale(1.05);
}

/* Counter Cards */
.counter-box {
    background-color: white;
    border-top: 4px solid var(--gold);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

/* Timeline Process styling */
.process-timeline {
    position: relative;
}

.process-timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 40px;
    width: 4px;
    background: var(--gold-light);
    z-index: 1;
}

@media (min-width: 768px) {
    .process-timeline-line {
        left: 50%;
        margin-left: -2px;
    }
}

.timeline-item {
    position: relative;
    z-index: 2;
    margin-bottom: 3rem;
}

.timeline-badge {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--navy);
    border: 3px solid var(--gold);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 3;
}

/* Form Styling overrides */
.form-control:focus, .form-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.2);
}

/* Footer widget links customize */
.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--gold);
    padding-left: 5px;
}

.social-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: var(--navy-light);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-icon:hover {
    background-color: var(--gold);
    color: var(--navy);
    transform: translateY(-2px);
}

/* Red Background and Text Utility Helpers */
.bg-red {
    background-color: var(--red) !important;
}
.text-red {
    color: var(--red) !important;
}
.border-red {
    border: 1px solid var(--red) !important;
}

/* Founder Card Styles and Responsiveness */
.founder-card-premium {
    position: relative;
    padding: 15px;
}

.founder-card-premium .image-box {
    position: relative;
    z-index: 2;
    background-color: var(--navy);
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(7, 26, 46, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.founder-card-premium img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

.founder-card-premium .border-decor {
    position: absolute;
    width: 130px;
    height: 130px;
    top: 0;
    left: 0;
    z-index: 1;
    border-radius: 12px;
    opacity: 0.2;
    background-color: var(--gold) !important;
}

.founder-card-premium .badge-exp {
    position: absolute;
    bottom: 25px;
    right: 0;
    z-index: 3;
    background-color: var(--gold) !important;
    color: var(--navy) !important;
    border-left: 4px solid var(--red) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15) !important;
}

@media (max-width: 576px) {
    .founder-card-premium {
        padding: 10px;
    }
    .founder-card-premium .border-decor {
        width: 100px;
        height: 100px;
    }
    .founder-card-premium .badge-exp {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 15px;
        display: inline-block;
        width: 100%;
        text-align: center;
        border-left: none !important;
        border-top: 4px solid var(--red) !important;
    }
}

/* High Visibility Form Inputs & Placeholders */
.form-control,
.form-select {
    background-color: #1f2229 !important; /* Lighter background for better contrast */
    color: #ffffff !important;
    border: 1px solid #4b5563 !important; /* Lighter border color */
}

/* Lighter select dropdown arrow icon */
.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
}

.form-control:focus,
.form-select:focus {
    background-color: #262a33 !important;
    border-color: var(--red) !important;
    box-shadow: 0 0 0 0.25rem rgba(220, 38, 38, 0.25) !important;
    color: #ffffff !important;
}

.form-control::placeholder {
    color: #9ca3af !important; /* Lighter placeholder grey for visibility */
    opacity: 1 !important;     /* Override browser opacity defaults */
}

/* Dropdown select options styling compatibility */
.form-select option {
    background-color: #16181c !important;
    color: #ffffff !important;
}
