:root {
    --primary: #1a3a6f;
    --primary-dark: #0f2a4f;
    --secondary: #c49a2b;
    --secondary-light: #e0b04b;
    --dark: #1e1e1e;
    --light: #f8f9fa;
    --gray: #6c757d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Fix for fixed header offset - prevents content hiding under navbar */
*[id]:before {
    display: block;
    content: " ";
    margin-top: -80px;
    height: 80px;
    visibility: hidden;
    pointer-events: none;
}

/* Navigation */
#mainNav {
    background: rgba(26, 58, 111, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

/* Shrinking Navigation on Scroll */
#mainNav.navbar-shrink {
    padding: 0.5rem 0;
    background: rgba(26, 58, 111, 0.98);
}

#mainNav.navbar-shrink .brand-text {
    font-size: 1.2rem;
}

#mainNav .navbar-brand .brand-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

#mainNav .navbar-brand .brand-highlight {
    color: var(--secondary);
}

#mainNav .navbar-brand .brand-tagline {
    font-size: 0.7rem;
    font-weight: 400;
    opacity: 0.9;
}

/* Navigation Links - Improved */
.navbar-nav .nav-item {
    position: relative;
}

.navbar-nav .nav-link {
    color: white !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: all 0.3s;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--secondary) !important;
}

/* Active Navigation Link Indicator */
.navbar-nav .nav-link.active {
    color: var(--secondary) !important;
}

.navbar-nav .nav-link.active:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 25px;
    height: 2px;
    background: var(--secondary);
    border-radius: 2px;
}

.btn-quote {
    background: var(--secondary);
    color: white !important;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-quote:hover {
    background: var(--secondary-light);
    transform: translateY(-2px);
    color: white !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-badge {
    display: inline-block;
    background: var(--secondary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease 0.1s both;
}

.btn-hero {
    background: var(--secondary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    animation: fadeInUp 1s ease 0.4s both;
    border: none;
    cursor: pointer;
}

.btn-hero:hover {
    background: var(--secondary-light);
    transform: translateY(-3px);
    color: white;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 4rem 0;
    color: white;
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

/* Section Common */
.section-padding {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--secondary);
}

.section-title p {
    color: var(--gray);
    font-size: 1.1rem;
}

.section-title.text-start h2:after {
    left: 0;
    transform: none;
}

/* Equipment Cards */
.equipment-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0,0,0,0.1);
    transition: all 0.3s;
    margin-bottom: 2rem;
    height: 100%;
}

.equipment-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.equipment-image {
    height: 250px;
    overflow: hidden;
    position: relative;
    background: #f5f5f5;
}

.equipment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.equipment-card:hover .equipment-image img {
    transform: scale(1.1);
}

.equipment-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--secondary);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: bold;
}

.equipment-body {
    padding: 1.5rem;
}

.equipment-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.equipment-category {
    color: var(--secondary);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

/* Team Cards */
.team-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
    margin-bottom: 2rem;
    height: 100%;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.team-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.team-info {
    padding: 1.5rem;
    text-align: center;
}

.team-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.team-position {
    color: var(--secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Partners Section */
.partners-section {
    background: var(--light);
    padding: 4rem 0;
}

.partner-logo {
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    margin: 0.5rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.partner-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.partner-logo img {
    max-height: 80px;
    width: auto;
    filter: grayscale(100%);
    transition: all 0.3s;
}

.partner-logo img:hover {
    filter: grayscale(0%);
}

/* Contact Section */
.contact-info-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    text-align: center;
    height: 100%;
    transition: all 0.3s;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.contact-icon {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: auto;
}

.footer a {
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.footer a:hover {
    color: var(--secondary);
}

.social-links a {
    display: inline-block;
    width: 35px;
    height: 35px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 35px;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary-light);
    transform: translateY(-3px);
}

/* Loading Spinner */
.loading-spinner {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================ */
/* MOBILE RESPONSIVE STYLES */
/* ============================================ */

@media (max-width: 991px) {
    /* Mobile Navigation */
    #navbarContent {
        background: var(--primary);
        padding: 1rem;
        border-radius: 10px;
        margin-top: 1rem;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        margin: 0;
        border-radius: 8px;
    }
    
    .navbar-nav .nav-link:hover {
        background: rgba(255,255,255,0.1);
    }
    
    .navbar-nav .nav-link.active {
        background: rgba(196, 154, 43, 0.2);
    }
    
    .navbar-nav .nav-link.active:after {
        display: none;
    }
    
    .btn-quote {
        margin-top: 0.5rem;
        text-align: center;
        display: block;
    }
}

@media (max-width: 768px) {
    /* General */
    .section-padding {
        padding: 3rem 0;
    }
    
    /* Hero */
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-badge {
        font-size: 0.75rem;
    }
    
    .btn-hero {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        display: block;
        margin: 0.5rem auto;
        width: fit-content;
    }
    
    /* Section Titles */
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .section-title p {
        font-size: 1rem;
    }
    
    /* Stats */
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    /* Brand */
    .navbar-brand .brand-text {
        font-size: 1.2rem;
    }
    
    .navbar-brand .brand-tagline {
        font-size: 0.6rem;
    }
    
    /* Back to Top */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
    
    /* Equipment Cards */
    .equipment-image {
        height: 200px;
    }
    
    .team-image {
        height: 250px;
    }
    
    /* Footer */
    .footer {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
        display: flex;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.6rem;
    }
    
    .section-title h2 {
        font-size: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.4rem;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Tablet Landscape */
@media (min-width: 768px) and (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .equipment-image {
        height: 200px;
    }
}

/* Print Styles */
@media print {
    .navbar, 
    .footer, 
    .btn-quote, 
    .back-to-top,
    .stats-section,
    .partners-section {
        display: none;
    }
    
    body {
        color: black;
        background: white;
    }
    
    .hero-section {
        min-height: auto;
        color: black;
    }
    
    .hero-overlay {
        display: none;
    }
}

/* Utility Classes */
.text-primary {
    color: var(--primary) !important;
}

.text-secondary {
    color: var(--secondary) !important;
}

.bg-primary {
    background: var(--primary) !important;
}

.bg-secondary {
    background: var(--secondary) !important;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
}