/* ConstroMatic Main Stylesheet */
:root {
    --primary-color: #ff6b00;
    /* Safety Orange */
    --secondary-color: #66fcf1;
    /* Cyan Tech */
    --accent-color: #c5c6c7;
    --dark-bg: #050608;
    /* Darker for better contrast */
    --darker-bg: #14181f;
    --text-color: #f5f5f5;
    /* Whiter text */
    --text-muted-custom: #b0b3b8;
    /* Lighter muted text */
    --font-heading: 'Rajdhani', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-color);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
    /* Pure white headers */
    font-weight: 700;
}

p {
    margin-bottom: 1.5rem;
}

/* Override Bootstrap text-muted for dark mode */
.text-muted {
    color: var(--text-muted-custom) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.bg-darker {
    background-color: var(--darker-bg);
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-primary-subtle {
    background-color: rgba(255, 107, 0, 0.15) !important;
    color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

.border-secondary {
    border-color: var(--secondary-color) !important;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 2px;
    padding: 12px 30px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #ff8533;
    /* Lighter on hover */
    border-color: #ff8533;
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.6);
    transform: translateY(-2px);
}

.btn-outline-secondary {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    padding: 12px 30px;
}

.btn-outline-secondary:hover {
    background-color: var(--secondary-color);
    color: #000;
    box-shadow: 0 0 20px rgba(102, 252, 241, 0.4);
    transform: translateY(-2px);
}

/* Navbar */
.navbar {
    background-color: rgba(5, 6, 8, 0.95);
    /* Matches new dark-bg */
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(102, 252, 241, 0.15);
    padding-top: 20px;
    /* Slight increase */
    padding-bottom: 20px;
}

/* Page Headers */
/* Increased specificity to override potentially conflicting utility classes */
header.hero-section,
header.bg-darker {
    padding-top: 160px !important;
    /* Clears the taller fixed navbar + spacing */
    padding-bottom: 80px !important;
    /* Generous bottom spacing */
}

/* Explicitly controlling Hero Section height */
header.hero-section {
    min-height: 90vh;
}

@media (orientation: portrait) {
    header.hero-section {
        min-height: auto !important;
        /* Allow content to dictate height on portrait screens */
        padding-top: 150px !important;
        padding-bottom: 60px !important;
    }
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: #fff !important;
    letter-spacing: 1px;
}

.navbar-brand span {
    color: var(--primary-color);
}

.nav-link {
    color: #e0e0e0 !important;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 500;
    text-transform: uppercase;
    margin-left: 15px;
    transition: all 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color) !important;
    text-shadow: 0 0 10px rgba(102, 252, 241, 0.5);
}

/* Footer */
footer {
    background-color: #000000;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hover-white:hover {
    color: #ffffff !important;
    padding-left: 5px;
    transition: all 0.3s ease;
}

/* Utilities */
.section-padding {
    padding: 100px 0;
}

.glass-card {
    background: rgba(31, 40, 51, 0.85);
    /* Increased opacity for readability */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border-radius: 4px;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    border-color: var(--secondary-color);
}

.letter-spacing-2 {
    letter-spacing: 2px;
}

.border-white-10 {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.border-hover-primary:hover {
    border-color: var(--primary-color) !important;
}

/* Form Controls */
.form-control,
.form-select {
    background-color: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid #444;
    color: #fff !important;
    padding: 12px;
}

.form-control:focus,
.form-select:focus {
    background-color: rgba(0, 0, 0, 0.5) !important;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.25rem rgba(102, 252, 241, 0.25);
}

/* Back to Top Button */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

#backToTop.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#backToTop:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.4);
}

/* WhatsApp Chat Button */
#whatsappChat {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    z-index: 1000;
    background-color: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.3s ease;
}

#whatsappChat:hover {
    background-color: #128c7e;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}