:root {
    --primary-blue: #155178;
    --primary-red: #ef3c52;
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
}

/* General Styles */
body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--primary-blue);
}

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    text-align: center;
}

.section-title:after {
    content: '';
    width: 80px;
    height: 3px;
    background: var(--primary-red);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.btn-primary {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(239, 60, 82, 0.3);
}

.btn-primary:hover {
    background-color: #d92c41;
    border-color: #d92c41;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(239, 60, 82, 0.4);
}

.btn-lg {
    font-size: 1.1rem;
    padding: 15px 35px;
}

/* Navbar */
.navbar {
    transition: all 0.3s ease;
    padding: 15px 0;
}

.navbar-brand img {
    height: 90px;
    width: auto;
    transition: all 0.3s ease;
}

.navbar-toggler {
    border: none;
    padding: 0;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-nav .nav-link {
    color: var(--primary-blue);
    font-weight: 500;
    padding: 10px 20px;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-red);
}

.navbar-scrolled {
    background-color: #fff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

.navbar-scrolled .navbar-brand img {
    height: 70px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(21, 81, 120, 0.95), rgba(21, 81, 120, 0.8)), url('../img/uploaded/hvac-crane.jpg') center/cover no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: #fff;
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

/* About Section */
.about {
    background-color: var(--light-gray);
}

.about-card {
    background: #fff;
    border-radius: 10px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    height: 100%;
    transition: all 0.3s ease;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.about-icon {
    font-size: 2.5rem;
    color: var(--primary-red);
    margin-bottom: 20px;
}

/* Services Section */
.service-box {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    height: 100%;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.service-box:hover {
    transform: translateY(-5px);
    border-bottom: 3px solid var(--primary-red);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #fff;
    font-size: 1.8rem;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-blue);
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--primary-blue), #0c3b5c);
    color: #fff;
    padding: 100px 0;
    text-align: center;
}

.cta h2 {
    color: #fff;
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.footer {
    background-color: #0c3b5c;
    color: rgba(255, 255, 255, 0.8);
    padding: 70px 0 20px;
}

.footer-logo {
    height: 60px;
    width: auto;
    display: inline-block;
}

.footer-text {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.footer h5 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer h5:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-red);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links li a:hover {
    color: var(--primary-red);
    text-decoration: none;
    padding-left: 5px;
}

.social-links {
    margin-top: 10px;
}

.social-links a {
    color: #fff;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-red);
    transform: translateY(-3px);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 50px;
    text-align: center;
    font-size: 0.9rem;
}

/* Testimonials */
.testimonial-card {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    position: relative;
}

.testimonial-card:before {
    content: '\201C';
    font-size: 80px;
    position: absolute;
    top: -10px;
    left: 20px;
    color: var(--primary-red);
    opacity: 0.2;
    font-family: serif;
}

.testimonial-content {
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.testimonial-author-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    background-color: var(--primary-blue);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.author-details h5 {
    margin: 0;
    font-size: 1.1rem;
}

.author-details p {
    margin: 0;
    font-size: 0.9rem;
    color: #777;
}

/* Call and Text Buttons */
.call-button {
    color: #fff !important;
    background-color: var(--primary-red) !important;
    border-color: var(--primary-red) !important;
    border-radius: 50px 0 0 50px !important;
}

.text-button {
    transition: all 0.3s ease;
    border-radius: 0 50px 50px 0 !important; 
    background-color: var(--primary-red) !important;
    border: 1px solid var(--primary-red) !important;
    color: #fff !important;
    margin-left: 5px !important;
}

.text-button:hover {
    transform: translateY(-3px);
    background-color: #d92c41 !important;
}

.navbar-nav .text-button {
    color: #fff !important;
    background-color: var(--primary-red) !important;
    border-radius: 30px !important;
    margin-left: 5px !important;
}

.navbar-nav .call-button {
    border-radius: 30px !important;
}

.navbar-nav .text-button:hover {
    background-color: #d92c41 !important;
}

.btn-group .call-button {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    margin-right: 0 !important;
}

.btn-group .text-button {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(239, 60, 82, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #d92c41;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(239, 60, 82, 0.4);
}

/* Media Queries */
@media (max-width: 991px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    .section-title {
        font-size: 2.2rem;
    }
    .hero {
        min-height: 80vh;
    }
}

@media (max-width: 767px) {
    .navbar-brand img {
        height: 70px;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .section {
        padding: 60px 0;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    .service-title {
        font-size: 1.3rem;
    }
    .cta h2 {
        font-size: 2rem;
    }
    .cta p {
        font-size: 1rem;
    }
}

@media (max-width: 575px) {
    .navbar-brand img {
        height: 60px;
    }
    .hero h1 {
        font-size: 1.8rem;
    }
    .btn-lg {
        font-size: 1rem;
        padding: 12px 25px;
    }
    .section {
        padding: 50px 0;
    }
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        bottom: 20px;
        right: 20px;
    }
}
