:root {
    --primary: #D83107;    /* Brand Red */
    --secondary: #575757;  /* Brand Gray */
    --dark: #1A1A1A;       /* Dark Background */
    --medium: #2D2D2D;     /* Secondary Background */
    --light: #FFFFFF;      /* White Text/Background */
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--dark);
    color: var(--light);
    line-height: 1.6;
}

.navbar {
    background: var(--light) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero-section {
    padding: 120px 0 80px;
    background: linear-gradient(rgba(26,29,36,0.9), rgba(26,29,36,0.9)),
                url('https://images.unsplash.com/photo-1485291571150-772bcfc10da5') center/cover;
}

.section-title {
    color: var(--primary);
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 40px;
}

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

.service-card {
    background: var(--medium);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(216, 49, 7, 0.1);
}

.contact-info {
    background: var(--medium);
    border-radius: 12px;
    padding: 30px;
}

.contact-form input,
.contact-form textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--secondary);
}

.footer {
    background: #0D0F14;
    padding: 50px 0 30px;
}

.navbar {
    --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2887, 87, 87, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-brand {
    color: white;
}

.navbar-brand img {
    height: 50px;
    width: auto;
    max-width: 180px;
}

.nav-link {
    color: var(--dark) !important;
    font-weight: 500;
}

.nav-link:hover, .nav-link:focus {
    color: var(--primary) !important;
}

.navbar-toggler {
    color: transparent;
    border-color: var(--secondary);
}

.navbar-toggler-icon {
    background-image: var(--bs-navbar-toggler-icon-bg);
}

.navbar .container {
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
}

.navbar-collapse {
    padding-left: 15px;
    padding-right: 15px;
}

.logo-container {
    transition: transform 0.3s ease;
}

.logo-container:hover {
    transform: scale(1.05);
}

.brand-text {
    line-height: 1.1;
}

.navbar-brand .small {
    font-size: 0.65em;
    color: var(--primary);
    opacity: 0.8;
}

.btn-primary,
.text-primary,
.section-title:after {
    border-color: var(--primary) !important;
    color: var(--primary) !important;
}

/* Secondary Color Applications */
.text-secondary,
.text-muted {
    color: var(--secondary) !important;
}

.btn-primary {
    background-color: var(--primary) !important;
    color: white!important;
}

.section-title:after {
    background-color: white;
}

.rental-card {
    transition: transform 0.3s;
    border: 1px solid rgba(216, 49, 7, 0.1);
}

.rental-card:hover {
    transform: translateY(-5px);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: var(--primary);
    padding: 1.2rem;
    border-radius: 50%;
}

.thumbnails img {
    border: 2px solid transparent;
    transition: all 0.3s;
    border-radius: 5px;
}

.thumbnails img:hover {
    border-color: var(--primary);
    opacity: 0.8;
}

.cursor-pointer {
    cursor: pointer;
}

.modal-dialog {
    max-width: 90%;
}

.carousel-item img {
    height: 300px;
    object-fit: cover;
}

.modal-content {
    background-color: black;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    /* Ensure navbar doesn't cause overflow */
    .navbar-nav {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .nav-item.mx-3 {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Fix for mobile viewport */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Prevent image overflow */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Specific navbar button fix */
    .navbar-toggler {
        padding: 0.25rem 0.5rem;
        margin-right: 0;
    }

    /* Navigation */
    .navbar-brand img {
        height: 35px !important;
    }
    
    .nav-item {
        margin: 5px 0;
    }

    /* Hero Section */
    .hero-section {
        padding: 100px 0 40px !important;
    }
    
    .display-4 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-section .btn {
        width: 100%;
        margin-bottom: 10px;
    }

    /* Services Section */
    .service-card {
        margin-bottom: 20px;
        padding: 20px;
    }
    
    .service-card i.fa-3x {
        font-size: 2em !important;
    }
    
    .service-card ul li {
        font-size: 0.9rem;
    }

    /* Contact Section */
    .contact-info,
    .bg-dark {
        margin-bottom: 30px;
    }
    
    iframe {
        height: 250px;
    }

    /* Footer */
    .footer .col-md-4 {
        margin-bottom: 30px;
    }
    
    .footer h5 {
        font-size: 1.1rem;
    }

    /* General Adjustments */
    h2.section-title {
        font-size: 1.8rem;
    }
    
    .h4 {
        font-size: 1.25rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .navbar-brand .fs-4 {
        font-size: 1.25rem !important;
    }
    
    .navbar-brand .small {
        font-size: 0.5em;
    }
    
    .fa-paw {
        font-size: 1.5rem !important;
    }

    .rental-card {
        margin-bottom: 1.5rem;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        padding: 0.8rem;
    }

    .modal-dialog {
        max-width: 95%;
    }
    
    .carousel-item img {
        height: 200px;
    }
}

@media (max-width: 576px) {
    /* Extra Small Devices */
    body {
        font-size: 0.9rem;
    }
    
    .contact-info {
        padding: 20px;
    }
    
    .footer {
        padding: 30px 0;
    }

    .navbar-brand img {
        max-width: 180px;
    }
    
    .hero-section h1 {
        font-size: 1.8rem !important;
    }
    
    .service-card {
        margin-left: 0;
        margin-right: 0;
    }
}
