:root {
    --primary-color: #60B5FF;
    --accent-color: #ff914d;
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
    --orange-bg: #FFECDB;
    --footer-bg: #FF9149;
    
    /* Add spacing variables */
    --section-padding: 5rem 0;
    --section-padding-mobile: 3rem 0;
    
    /* Add transition variables */
    --transition-standard: all 0.3s ease;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Add component organization */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
                url('../images/front.jpeg') no-repeat center center;
    background-size: cover;
    min-height: 100vh;
    position: relative;
    padding: 150px 0;
}

/* Add responsive utilities */
@media (max-width: 768px) {
    section {
        padding: var(--section-padding-mobile);
    }
    
    .hero-section {
        min-height: 80vh;
        padding: 80px 0;
    }
}

/* Add performance improvements */
.card, .btn, .nav-link {
    transition: var(--transition-standard);
}

/* Add accessibility improvements */
.nav-link:focus,
.btn:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Global Styles */
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
}

/* Hero Section */
.hero-section {
    background: url('../images/front.jpeg') no-repeat center center;
    background-size: cover;
    padding: 150px 0;
    position: relative;
}

/* Add responsive background handling */
@media (max-width: 768px) {
    .hero-section {
        background-position: center;
        padding: 100px 0;
        min-height: 60vh;
    }
}

@media (max-width: 576px) {
    .hero-section {
        background-position: center;
        padding: 80px 0;
        min-height: 50vh;
    }
}

/* Ensure text remains readable on all backgrounds */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay for better text visibility */
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section .display-4 {
    font-size: 2.8rem;
    margin-top: 2rem;
    padding: 0 20px; /* Added padding for mobile */
}

.hero-section .lead {
    font-size: 1.2rem;
    margin: 2rem 0;
    padding: 0 20px; /* Added padding for mobile */
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 80vh; /* Adjusted from 50vh to 80vh */
        padding: 80px 0;
        background-attachment: scroll; /* Disable fixed on mobile */
    }
    
    .hero-section .display-4 {
        font-size: 2rem;
        margin-top: 1rem;
    }

    .hero-section .lead {
        font-size: 1rem;
        margin: 1.5rem 0;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 70vh;
        padding: 60px 0;
    }
    
    .hero-section .display-4 {
        font-size: 1.8rem;
    }
}

/* Improved Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Enhanced Card Hover Effects */
.card {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), 
                box-shadow 0.3s ease,
                border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* Button Animations */
.btn {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateZ(0);
}

.btn:hover {
    transform: translateY(-3px) translateZ(0);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Navbar Link Animation */
.nav-link::after {
    transition: width 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

/* Smooth Section Transitions */
section {
    scroll-behavior: smooth;
}

/* Pulse Animation for Important Elements */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* Add this to elements you want to highlight */
.whatsapp-btn {
    animation: pulse 2s infinite;
}

.btn-primary {
    background-color: #60B5FF;
    border-color: #60B5FF;
}

.btn-primary:hover {
    background-color: #FF9149;
    border-color: #FF9149;
}

.btn-outline-light:hover {
    background-color: #FFECDB;
    color: #FF9149;
    border-color: #FFECDB;
}
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
                url('../images/front.jpeg') no-repeat center center/cover;
    min-height: 100vh;
    color: white;
    display: flex;
    align-items: center;
    text-align: center;
}

/* Cards Animation */
.card {
    border: none;
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Service & Equipment Cards */
.service-card, .equipment-card {
    border: 2px solid transparent;
    cursor: pointer;
}

.service-card:hover, .equipment-card:hover {
    border-color: var(--accent-color);
}

.benefit-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

/* Navigation */
.navbar {
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar.scrolled {
    background: rgba(13, 110, 253, 0.95) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-link {
    font-weight: 500;
    position: relative;
    color: rgba(255,255,255,0.85);
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: white;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Sections */
/* Add scroll-margin-top to all sections */
section {
    scroll-margin-top: 100px; /* Should match your JavaScript offset */
    padding: 5rem 0;
}

/* Adjust navbar height if needed */
.navbar {
    height: 80px; /* Adjust based on your actual navbar height */
}

/* Contact Map */
.map-container {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.contact-info i {
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: 70vh;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .navbar-collapse {
        background: var(--primary-color);
        padding: 1rem;
        border-radius: 10px;
    }
}

/* Footer Section */
.footer {
    background-color: #FF9149;
    color: white;
    padding: 3rem 0;
}

.footer a {
    color: white;  /* Changed from var(--light-color) */
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--dark-color);  /* Changed hover color to dark for contrast */
}

.footer-heading {
    color: white;  /* Changed from var(--accent-color) */
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-logo {
    max-width: 150px;
    margin-bottom: 1.5rem;
}

/* Remove duplicate .footer-heading rule */
.footer-heading {
    color: white;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-social {
    font-size: 1.5rem;
}

.footer-social a {
    margin-right: 1rem;
}

.footer-bottom {
    border-top: 1px solid white; /* Changed from rgba(255,255,255,0.1) */
    padding-top: 1.5rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .footer {
        text-align: center;
    }
    
    .footer-col {
        margin-bottom: 2rem;
    }
}

/* Services Section Background */
#services {
    background-color: #FFECDB;
}

#contact {
    background-color: #FFECDB;
}

/* Reviews Section */
#reviews .card {
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.review-item {
    min-height: 250px;
}

.carousel-control-prev, 
.carousel-control-next {
    width: 5%;
    color: var(--primary-color);
}

.carousel-indicators button {
    background-color: var(--primary-color);
}
