/* General Styles */
:root {
    --primary-color: #dc3545;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --dark-color: #212529;
    --bs-primary: #dc3545;
    --bs-primary-rgb: 220, 53, 69;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
}

/* ===== OVERRIDE BOOTSTRAP PRIMARY COLORS TO RED ===== */
/* Override all Bootstrap primary button styles */
.btn-primary {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: #fff !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #c82333 !important;
    border-color: #bd2130 !important;
    color: #fff !important;
}

.btn-outline-primary {
    color: #dc3545 !important;
    border-color: #dc3545 !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: #fff !important;
}

/* Override Bootstrap primary backgrounds */
.bg-primary {
    background-color: #dc3545 !important;
}

/* Override Bootstrap primary text colors */
.text-primary {
    color: #dc3545 !important;
}

/* Override Bootstrap primary borders */
.border-primary {
    border-color: #dc3545 !important;
}

/* Override Bootstrap links */
a.text-primary:hover,
a.text-primary:focus {
    color: #c82333 !important;
}

/* Override Bootstrap badges */
.badge-primary {
    background-color: #dc3545 !important;
}

/* Override Bootstrap alerts */
.alert-primary {
    background-color: rgba(220, 53, 69, 0.1) !important;
    border-color: #dc3545 !important;
    color: #721c24 !important;
}

/* Override Bootstrap list group items */
.list-group-item-primary {
    background-color: rgba(220, 53, 69, 0.1) !important;
    color: #721c24 !important;
}

/* Override Bootstrap table variants */
.table-primary {
    background-color: rgba(220, 53, 69, 0.1) !important;
}

/* ===== INTRO SLIDER SECTION ===== */
.intro-slider-section {
    position: relative;
    width: 100%;
    height: calc(100vh - 90px);
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-images {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

/* Fallback gradient for slides without images */
.slide:not([style*="background-image"]) {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

/* Slider Overlay */
.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 3;
}

/* Intro Content */
.intro-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
}

/* Slider Navigation Dots - Oval Shape, Center Right */
.slider-dots {
    position: absolute;
    right: 3%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 5;
}

.slider-dots .dot {
    width: 16px;
    height: 32px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.slider-dots .dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

.slider-dots .dot.active {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 1);
    height: 40px;
}

/* Fade-in animations for intro content */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0;
}

.fade-in-up.delay-1 {
    animation-delay: 0.2s;
}

.fade-in-up.delay-2 {
    animation-delay: 0.4s;
}

.fade-in-up.delay-3 {
    animation-delay: 0.6s;
}

/* Sticky Navbar */
.sticky-navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Hero Section (for other pages using standard layout) */
.hero-section {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    min-height: 75vh;
    position: relative;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.3);
    min-height: 75vh;
}

.min-vh-75 {
    min-height: 75vh;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

/* Equipment Cards */
.equipment-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.equipment-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,.175)!important;
}

.equipment-img {
    height: 250px;
    object-fit: cover;
    width: 100%;
}

.equipment-detail-img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

/* Client Cards */
.client-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
}

.client-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.15)!important;
}

.client-logo {
    max-width: 150px;
    max-height: 100px;
    object-fit: contain;
}

/* Navbar - Enhanced with bigger size and triangle separators */
.navbar {
    padding: 0 !important;
    min-height: 120px;
}

.navbar .container {
    padding-left: 0 !important;
    margin-left: 0 !important;
    max-width: 100% !important;
}

.navbar-brand {
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    align-items: center;
    margin-right: 2rem !important;
    margin-left: 0 !important;
}

.navbar-brand img {
    transition: transform 0.3s ease;
    height: 115px !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar-nav {
    gap: 0;
}

.navbar-nav .nav-link {
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    padding: 1rem 1.5rem;
    letter-spacing: 0.5px;
}

.navbar-nav .nav-link:hover {
    color: #dc3545 !important;
}

/* Triangle Separators - Full Height */
.nav-separator {
    width: 0;
    height: 0;
    border-top: 35px solid transparent;
    border-bottom: 35px solid transparent;
    border-left: 20px solid rgba(220, 53, 69, 0.5);
    margin: 0 0.75rem;
    position: relative;
    align-self: stretch;
}

.nav-separator::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-top: 33px solid transparent;
    border-bottom: 33px solid transparent;
    border-left: 18px solid #212529;
    left: -20px;
    top: -33px;
}

/* Dropdown menu adjustments for bigger navbar */
.navbar-nav .dropdown-menu {
    margin-top: 0.5rem;
}

/* Buttons */
.btn {
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.15);
}

/* Cards */
.card {
    transition: all 0.3s ease;
}

/* Timeline */
.timeline-badge {
    font-size: 1.5rem;
    font-weight: bold;
}

/* Footer */
footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #dc3545 !important;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Responsive */
@media (max-width: 991px) {
    /* Hide separators on mobile when navbar collapses */
    .nav-separator {
        display: none;
    }
    
    /* Adjust navbar for mobile */
    .navbar {
        min-height: 75px;
        padding: 0 !important;
    }
    
    .navbar .container {
        padding-left: 15px !important;
    }
    
    .navbar-brand img {
        height: 70px !important;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
    
    /* Stack nav items vertically on mobile */
    .navbar-nav {
        align-items: flex-start !important;
    }
    
    /* Adjust slider dots for mobile */
    .slider-dots {
        right: 2%;
        gap: 10px;
    }
    
    .slider-dots .dot {
        width: 12px;
        height: 24px;
        border-radius: 12px;
    }
    
    .slider-dots .dot.active {
        height: 30px;
    }
}

@media (max-width: 768px) {
    /* Intro slider adjustments */
    .intro-slider-section {
        height: calc(100vh - 70px);
    }
    
    .intro-content .display-3 {
        font-size: 2.5rem;
    }
    
    .intro-content .lead {
        font-size: 1.1rem;
    }
    
    .intro-content .fs-5 {
        font-size: 1rem !important;
    }
    
    /* Hero section for other pages */
    .hero-section {
        min-height: 60vh;
    }
    
    .hero-overlay {
        min-height: 60vh;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .display-6 {
        font-size: 1.5rem;
    }
    
    /* Adjust slider dots for smaller mobile */
    .slider-dots {
        right: 1.5%;
    }
}

@media (max-width: 576px) {
    .intro-content .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .intro-content .display-3 {
        font-size: 2rem;
    }
}

/* Admin Dashboard */
.hover-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,.175)!important;
}

/* Table Styles */
.table-hover tbody tr:hover {
    background-color: rgba(220, 53, 69, 0.1);
}

/* Form Styles */
.form-control:focus,
.form-select:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

/* Alert Styles */
.alert {
    border-radius: 0.5rem;
}

/* Image Thumbnail */
.img-thumbnail {
    border: 2px solid #dee2e6;
    border-radius: 0.5rem;
}

/* Loading Spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}
