/* Prevent horizontal scroll and fix layout shifting */
html, body {
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

/* Base Styles & Variables */
:root {
    /* Color Palette */
    --primary-color: #0056b3;
    --primary-dark: #003d82;
    --secondary-color: #e74c3c;
    --dark-color: #2c3e50;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --light-gray: #e9ecef;
    --white: #ffffff;
    --black: #212529;
    
    /* Typography */
    --font-primary: 'Roboto', sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;
    
    /* Spacing */
    --spacing-unit: 1rem;
    --container-width: 1200px;
    --section-padding: 5rem 0;
    
    /* Border Radius */
    --border-radius: 4px;
    --border-radius-lg: 8px;
    
    /* Box Shadow */
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --box-shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    
    /* Transition */
    --transition: all 0.3s ease;
}

/* Reset & Base Styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: var(--font-size-base);
}

body {
    font-family: var(--font-primary);
    line-height: var(--line-height-base);
    color: var(--dark-color);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* Buttons */
.btn, button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 2px solid transparent;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Base button styles */
.btn-primary {
    color: white !important;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    position: relative;
    z-index: 1;
}

.btn-primary:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    z-index: -1;
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: 50px;
}

.btn-primary:hover:before {
    opacity: 1;
}

.btn-primary:hover {
    color: rgba(255, 255, 255, 0.9) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Navigation button specific styles */
.nav .btn-primary {
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    margin-left: 1rem;
    border-radius: 50px;
    color: white !important;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    transition: all 0.3s ease;
}

.nav .btn-primary:hover {
    color: rgba(255, 255, 255, 0.9) !important;
    background: linear-gradient(135deg, rgb(231, 76, 60), #d62c1a);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.3);
}

/* Secondary button */
.btn-secondary {
    color: white !important;
    background: linear-gradient(135deg, var(--secondary-color), #d62c1a);
    border: none;
    position: relative;
    z-index: 1;
}

.btn-secondary:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #d62c1a, var(--secondary-color));
    z-index: -1;
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: 50px;
}

.btn-secondary:hover:before {
    opacity: 1;
}

.btn-secondary:hover {
    color: rgba(255, 255, 255, 0.9) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(214, 44, 26, 0.3);
}

/* Large button */
.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    white-space: normal;
    text-align: center;
    width: auto;
    max-width: 100%;
    display: inline-flex;
    margin: 0.5rem 0;
    border-radius: 50px;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .btn, button {
        padding: 0.7rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .btn-lg {
        padding: 0.9rem 2rem;
        font-size: 1rem;
        width: 100%;
        max-width: 300px;
    }
    
    .nav .btn-primary {
        padding: 0.5rem 1.2rem;
        font-size: 0.9rem;
        margin-left: 0.5rem;
    }
}

/* Button hover effect */
.btn-hover-effect {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-hover-effect:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.btn-hover-effect:hover:after {
    width: 300px;
    height: 300px;
    opacity: 0;
}

@media (max-width: 576px) {
    .btn-lg {
        padding: 0.8rem 1.2rem;
        font-size: 0.95rem;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .cta-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
}

.btn-block {
    display: block;
    width: 100%;
}

/* Layout */
.container {
    width: 100%;
    max-width: var(--container-width);
    padding: 0 var(--spacing-unit);
    margin: 0 auto;
}

.section {
    padding: var(--section-padding);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

.header.scrolled {
    padding: 0.5rem 0;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark-color);
}

.logo span {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin-left: 2rem;
}

.nav-menu a {
    color: var(--dark-color);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

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

.nav-menu .btn {
    margin-left: 1rem;
    padding: 0.5rem 1.25rem;
}

.nav-toggle {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--dark-color);
    margin: 5px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/hero-bg.jpg') no-repeat center center/cover;
    color: var(--white);
    text-align: center;
    padding: 0 var(--spacing-unit);
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    line-height: 1.2;
}

.hero .lead {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 86, 179, 0.9) 0%, rgba(0, 61, 130, 0.9) 100%);
    opacity: 0.8;
    z-index: 1;
}

/* Services Section */
.services {
    background-color: var(--light-color);
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-lg);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: block;
}

.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: var(--dark-color);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
    transition: var(--transition);
}

.service-card .service-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 500;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.service-card:hover .service-link {
    opacity: 1;
    transform: translateX(0);
}

.service-link i {
    margin-left: 5px;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.service-card:hover .service-link i {
    transform: translateX(3px);
}

/* Detailed Services Section */
.services-detailed {
    padding: 5rem 0;
    background-color: #f8f9fa;
}

.service-detail {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 400px;
}

.service-detail:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

.service-detail:nth-child(even) .service-detail-content {
    order: 2;
}

.service-detail:nth-child(even) .service-detail-image {
    order: 1;
}

.service-detail-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-detail h2 {
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    font-size: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.service-detail h2:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.service-detail h3 {
    color: var(--primary-dark);
    margin: 1.5rem 0 1rem;
    font-size: 1.3rem;
}

.service-detail ul {
    list-style: none;
    margin: 1rem 0 2rem;
}

.service-detail ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.service-detail ul li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.service-detail-image {
    position: relative;
    min-height: 300px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
}

.service-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.emergency-contact {
    background-color: #fff8f8;
    border-left: 3px solid var(--secondary-color);
    padding: 1rem;
    margin-top: 1.5rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.emergency-contact p {
    margin: 0.5rem 0;
    color: var(--dark-color);
}

.emergency-contact a {
    color: var(--secondary-color);
    font-weight: 500;
    text-decoration: none;
}

.emergency-contact i {
    margin-right: 0.5rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .service-detail {
        grid-template-columns: 1fr;
    }
    
    .service-detail:nth-child(even) .service-detail-content,
    .service-detail:nth-child(even) .service-detail-image {
        order: initial;
    }
    
    .service-detail-image {
        min-height: 250px;
    }
}

@media (max-width: 576px) {
    .service-detail-content {
        padding: 2rem 1.5rem;
    }
    
    .service-card .service-link {
        opacity: 1;
        transform: translateX(0);
    }
}

/* About Section */
.about {
    position: relative;
    overflow: hidden;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-content {
    padding-right: 2rem;
}

.about-image {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow-lg);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.about-image:hover img {
    transform: scale(1.05);
}

.certifications {
    margin-top: 2rem;
}

.certification {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.certification i {
    color: var(--primary-color);
    margin-right: 1rem;
    font-size: 1.25rem;
}

/* Testimonials Section */
.testimonials {
    background-color: var(--light-color);
    text-align: center;
}

.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    margin: 0 1rem;
    position: relative;
}

.testimonial::before {
    content: '\201C';
    font-family: Georgia, serif;
    font-size: 5rem;
    color: var(--primary-color);
    position: absolute;
    left: 1rem;
    top: 1rem;
    opacity: 0.2;
    line-height: 1;
}

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

.testimonial p {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.rating {
    color: #ffc107;
    margin-bottom: 1rem;
}

/* Contact Section */
.contact {
    position: relative;
}

.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.contact-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
}

/* Form Status Messages */
.form-status {
    padding: 10px;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    display: none;
}

.form-status.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-status.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Loading State */
button[type="submit"] .button-loader {
    display: none;
}

button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

button[type="submit"]:disabled .button-text {
    display: none;
}

button[type="submit"]:disabled .button-loader {
    display: inline-block;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.25);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-info {
    padding: 2rem 0;
}

.contact-method {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-method i {
    width: 40px;
    height: 40px;
    background-color: var(--light-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.1rem;
    transition: var(--transition);
}

.contact-method:hover i {
    background-color: var(--primary-color);
    color: var(--white);
}

.contact-method a {
    color: var(--dark-color);
    font-weight: 500;
}

.map-container {
    margin-top: 3rem;
}

.map {
    margin-top: 1rem;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.map iframe {
    width: 100%;
    border: 0;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: var(--light-gray);
    padding: 5rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-about h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
}

.footer-about p {
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    transition: var(--transition);
}

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

.footer h4 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

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

.footer-services ul li,
.footer-contact p {
    margin-bottom: 0.75rem;
}

.footer-services a,
.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-services a:hover,
.footer-contact a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact i {
    width: 20px;
    margin-right: 10px;
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0 0;
    margin-top: 2rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.footer-links {
    margin-top: 1rem;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.developer-credit {
    width: 100%;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.developer-credit a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.developer-credit a:hover {
    color: var(--white);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0.75rem;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    text-align: center;
    line-height: 60px;
    font-size: 1.5rem;
    box-shadow: var(--box-shadow);
    z-index: 1000; /* Higher z-index than WhatsApp button */
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

.back-to-top:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-3px);
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px; /* Changed from right to left */
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: var(--white);
    border-radius: 50%;
    text-align: center;
    font-size: 1.5rem;
    box-shadow: var(--box-shadow);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
}

.whatsapp-float:hover {
    background-color: #128c7e;
    color: var(--white);
    transform: translateY(-3px);
}

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

.fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

/* Responsive Styles */
@media (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 991.98px) {
    .container {
        max-width: 720px;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        z-index: 1000;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        margin: 0 0 1.5rem 0;
        width: 100%;
    }
    
    .nav-menu a {
        display: block;
        padding: 0.5rem 0;
    }
    
    .nav-menu .btn {
        margin: 1rem 0 0;
        width: 100%;
        text-align: center;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .contact-form {
        order: 2;
    }
    
    .contact-info {
        order: 1;
    }
}

@media (max-width: 767.98px) {
    .container {
        max-width: 100%;
        padding-right: 15px;
        padding-left: 15px;
    }
    
    /* Prevent horizontal overflow in mobile menu */
    .navbar-collapse {
        overflow-x: hidden;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero .lead {
        font-size: 1.1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .cta-buttons .btn:last-child {
        margin-bottom: 0;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .testimonial {
        padding: 1.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        text-align: center;
        margin-top: 1.5rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-links {
        margin-top: 0.5rem;
    }
    
    .footer-links {
        margin-top: 1rem;
    }
    
    .footer-links a {
        display: block;
        margin: 0.5rem 0;
    }
}

@media (max-width: 575.98px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero {
        min-height: 500px;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .back-to-top,
    .whatsapp-float {
        width: 45px;
        height: 45px;
        font-size: 1rem;
        bottom: 20px;
        right: 20px;
    }
}

/* Print Styles */
@media print {
    .header,
    .back-to-top,
    .whatsapp-float,
    .footer {
        display: none !important;
    }
    
    body {
        padding: 0;
        color: #000;
        background: #fff;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0 1cm;
    }
    
    .section {
        padding: 1cm 0;
        page-break-inside: avoid;
    }
    
    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        font-weight: normal;
    }
}
