* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Fallback if JS fails */
}

body {
    width: 100%;
    overflow-x: hidden;
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* Hero Section Styles */
.top-cont {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
    color: white;
    height: calc(100vh - 80px);
    min-height: 500px;
    overflow: hidden;
    background-color: #000;
}

.top-cont::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.6) 100%
    );
    z-index: 1;
}

.top-cont img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    animation: subtle-zoom 20s infinite alternate ease-in-out;
}

@keyframes subtle-zoom {
    from { transform: scale(1.1); }
    to { transform: scale(1.2); }
}

.text-top {
    position: relative;
    z-index: 2;
    color: white;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    max-width: 90%;
    margin: 0 auto;
    padding: 0 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fade-up 1s forwards ease-out;
}

@keyframes fade-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    opacity: 0;
    animation: fade-in 1s forwards ease-out 1s;
}

.scroll-indicator::before {
    content: '';
    width: 30px;
    height: 50px;
    border: 2px solid white;
    border-radius: 15px;
    position: relative;
    display: block;
    margin: 0 auto 10px;
}

.scroll-indicator::after {
    content: '';
    width: 4px;
    height: 8px;
    background-color: white;
    border-radius: 2px;
    position: absolute;
    left: 50%;
    top: 10px;
    transform: translateX(-50%);
    animation: scroll-bounce 2s infinite;
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

@keyframes fade-in {
    to { opacity: 1; }
}

/* Modern Navigation Styles */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(9, 4, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: env(safe-area-inset-top) 0 0 0; /* Only top padding for iPhone notch/cameras */
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.nav-brand {
    flex: 0 0 auto;
    z-index: 1001;
}

.nav-logo {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
}

/* Navigation Menu */
.nav-menu {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    position: relative;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-links a {
    color: #eee;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background-color: #F0720C;
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #F0720C;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Navigation Contact Elements */
.nav-contact {
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 1001;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-contact > * {
    margin: 0;
    padding: 0;
}

.phone-link {
    display: flex;
    align-items: center;
    color: #eee;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    margin-right: 20px;
}

.phone-link:hover {
    color: #F0720C;
    transform: scale(1.05);
}

.cta-button {
    display: inline-block;
    background-color: #F0720C;
    color: white;
    border: 2px solid #F0720C;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-decoration: none;
    text-align: center;
}

.cta-button:hover {
    background-color: transparent;
    color: #F0720C;
    transform: translateY(-2px);
}

/* Add a subtle pulse animation to make the CTA more noticeable */
@keyframes subtle-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.nav-contact .cta-button {
    animation: subtle-pulse 2s infinite;
}

.nav-contact .cta-button:hover {
    animation: none;
    transform: translateY(-2px);
}

/* Contact Section Styles */
.h2-contact-us {
    text-align: center;
    padding: 4rem 0 2rem;
    background: #f8f9fa;
}

.h2-contact-us h2 {
    font-size: 2.5rem;
    color: #333;
    margin: 0;
}

.contact-us {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 2rem 5% 4rem;
    max-width: 1400px;
    margin: 0 auto;
    background: #f8f9fa;
}

.company-info {
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.company-info h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 2rem;
}

.info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info span {
    font-weight: 600;
    color: #666;
    margin-right: 1rem;
    min-width: 60px;
    display: inline-block;
}

.info a {
    color: #F0720C;
    text-decoration: none;
    transition: color 0.3s ease;
}

.info a:hover {
    color: #d65f00;
}

.contact-form {
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-form h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-row input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-row input:focus {
    outline: none;
    border-color: #F0720C;
}

textarea {
    width: 100%;
    height: 150px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    margin-bottom: 1rem;
    resize: vertical;
    transition: border-color 0.3s ease;
}

textarea:focus {
    outline: none;
    border-color: #F0720C;
}

.contact-form button {
    background: #F0720C;
    color: white;
    border: 2px solid #F0720C;
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: auto;
    min-width: 150px;
}

.contact-form button:hover {
    background: transparent;
    color: #F0720C;
    transform: translateY(-2px);
}

/* Footer Styles */
.main-footer {
    background: #1a1a1a;
    color: #fff;
    padding: 1rem 5% 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 1rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-logo img {
    height: 150px;
    width: auto;
    margin-bottom: 0.75rem;
    transition: transform 0.3s ease;
}

.footer-logo img:hover {
    transform: scale(1.05);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
}

.social-icon img {
    width: 32px;
    height: 32px;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #F0720C;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-nav a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #F0720C;
}

.contact-info p {
    margin-bottom: 0.8rem;
}

.contact-info a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #F0720C;
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: #888;
    font-size: 0.9rem;
    margin: 0;
    padding: 0;
}

/* Service Categories and Images */
.mid-cont {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 columns for 5 services */
    gap: 1.5rem;
    padding: 2rem 5%;
    max-width: 1800px; /* Increased to accommodate all cards */
    margin: 0 auto;
    height: fit-content;
}

.cat-service {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.cat-service:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.cat-photo {
    position: relative;
    width: 100%;
    padding-top: 66.67%; /* 3:2 aspect ratio */
    overflow: hidden;
}

.cat-photo img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cat-service:hover .cat-photo img {
    transform: scale(1.05);
}

.cat-h3 {
    padding: 1rem;
    text-align: center;
}

.cat-h3 h3 {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: #333;
    margin: 0;
}

.cat-text {
    padding: 0 1rem 1rem;
    flex-grow: 1;
    text-align: center;
}

.cat-text p {
    margin: 0;
    color: #666;
    line-height: 1.6;
    font-size: clamp(0.875rem, 1vw, 1rem);
}

/* Services Section Header */
.service-title {
    text-align: center;
    padding: 1.5rem 5% 0.75rem;
    background: linear-gradient(to right, transparent, rgba(240, 114, 12, 0.1), transparent);
}

.service-title h2 {
    font-size: clamp(2rem, 3vw, 2.5rem);
    color: #333;
    position: relative;
    display: inline-block;
    margin: 0 auto;
    padding-bottom: 15px;
}

.service-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #F0720C;
    border-radius: 2px;
}

/* Projects Section Title */
.projects-title {
    text-align: center;
    padding: 1.5rem 5% 0.75rem;
    background: linear-gradient(to right, transparent, rgba(240, 114, 12, 0.1), transparent);
}

.projects-title h2 {
    font-size: clamp(2rem, 3vw, 2.5rem);
    color: #333;
    position: relative;
    display: inline-block;
    margin: 0 auto;
    padding-bottom: 15px;
}

.projects-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #F0720C;
    border-radius: 2px;
}

@media screen and (max-width: 430px) {
    .projects-title h2,
    .h2-about-us h2 {
        color: #333 !important;
    }

    .nav-contact {
        gap: 12px;
    }

    .mobile-phone {
        font-size: 13px;
    }

    .cta-button {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* About Us Section Header */
.h2-about-us {
    text-align: center;
    padding: 1.5rem 5% 0.75rem;
    background: linear-gradient(to right, transparent, rgba(240, 114, 12, 0.1), transparent);
}

.h2-about-us h2 {
    font-size: clamp(2rem, 3vw, 2.5rem);
    color: #333;
    position: relative;
    display: inline-block;
    margin: 0 auto;
    padding-bottom: 15px;
}

.h2-about-us h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #F0720C;
    border-radius: 2px;
}

/* About Us Content Layout */
.about-us {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 2rem 5% 4rem;
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
}

.lf-about-us {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 aspect ratio */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.lf-about-us img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.5s ease;
}

.lf-about-us:hover img {
    transform: scale(1.05);
}

.rh-about-us {
    padding: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.rh-about-us p {
    margin-bottom: 1.5rem;
    color: #333;
}

/* Mobile Styles */
@media screen and (max-width: 430px) {
    .about-us {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1rem;
    }

    .lf-about-us {
        padding-top: 60%;
    }

    .rh-about-us {
        padding: 1rem;
        font-size: 1rem;
        line-height: 1.6;
        text-align: left;
        color: #333 !important;
    }

    .rh-about-us p {
        margin-bottom: 1rem;
        color: #333 !important;
        padding: 0 0.5rem;
    }
}

/* Override any other mobile styles */
@media screen and (max-width: 390px) {
    .rh-about-us,
    .rh-about-us p {
        color: #333 !important;
    }
}

/* Modern Back to Top Button */
#backToTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #F0720C;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 12px;
}

#backToTopBtn:hover {
    background-color: #d86100;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

#backToTopBtn svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#backToTopBtn.show {
    display: flex;
    animation: fadeInUp 0.3s ease;
}

/* Modern Hamburger Menu */
.mobile-menu-toggle {
    display: none;
    width: 30px;
    height: 30px;
    position: relative;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #fff;
    border-radius: 4px;
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.mobile-menu-toggle span:nth-child(1) {
    top: 6px;
    transform-origin: center;
}

.mobile-menu-toggle span:nth-child(2) {
    top: 14px;
    transform-origin: center;
}

.mobile-menu-toggle span:nth-child(3) {
    top: 22px;
    transform-origin: center;
}

/* Animated X state */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
        margin-left: 1rem;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: rgba(9, 4, 0, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        transform: translateY(-150%);
        transition: transform 0.4s ease;
        z-index: 999;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        margin-top: 80px; /* Height of the header */
        padding-top: env(safe-area-inset-top);
    }

    .nav-menu.active {
        transform: translateY(0);
        height: calc(100vh - 80px); /* Full height minus header */
    }

    .nav-links {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
        padding: 2rem 0;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        font-size: 1.2rem;
        padding: 1rem 2rem;
        display: block;
        width: 100%;
        transition: background-color 0.3s ease;
    }

    .nav-links a:hover {
        background-color: rgba(240, 114, 12, 0.1);
    }

    /* Adjust navigation layout */
    .navbar {
        justify-content: space-between;
        padding: 1rem 5%;
    }    .nav-contact {
        width: 100%;
        display: flex;
        justify-content: space-around;
        align-items: center;
    }

    .mobile-phone {
        display: flex;
        align-items: center;
        color: #fff;
        text-decoration: none;
        font-size: 14px;
        white-space: nowrap;
        transition: color 0.3s ease;
    }

    .mobile-phone:hover {
        color: #F0720C;
    }

    .mobile-menu-toggle {
        margin-left: auto;
    }

    /* Hide desktop phone number */
    .phone-link {
        display: none;
    }
}

@media (max-width: 480px) {
    .mobile-menu-toggle {
        width: 26px;
        height: 26px;
    }

    .mobile-menu-toggle span:nth-child(1) { top: 5px; }
    .mobile-menu-toggle span:nth-child(2) { top: 12px; }
    .mobile-menu-toggle span:nth-child(3) { top: 19px; }

    .nav-menu {
        top: 70px;
    }

    .nav-links a {
        font-size: 1.1rem;
        padding: 0.8rem 1.5rem;
    }
}

/* iPhone 15/Pro (390px) and iPhone 15 Pro Max/Plus (430px) */
@media screen and (max-width: 430px) {
    /* Header and Navigation */
    .main-header {
        height: auto;
        padding-top: env(safe-area-inset-top, 15px);
    }

    .navbar {
        display: flex;
        flex-direction: column;
        padding: 10px 15px;
        gap: 10px;
    }

    /* First row - Logo */
    .text-top {
        font-size: clamp(1.5rem, 5vw, 2rem);
        padding: 0 15px;
        color: white;
    }

    .scroll-indicator {
        bottom: 70px; /* Adjusted for bottom nav bar */
    }

    /* Services Section */
    .mid-cont {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    .cat-service {
        margin-bottom: 1rem;
    }

    .cat-h3 h3 {
        font-size: 1.2rem;
    }

    .cat-text p {
        font-size: 0.9rem;
        padding: 0 10px;
    }

    /* Projects/Gallery Section */
    .projects-section {
        padding: 2rem 1rem;
    }

    .swiper-container {
        padding: 0;
    }

    .comparison-slider {
        height: 300px;
    }

    /* About Us Section */
    .about-us {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1rem;
    }

    .lf-about-us {
        padding-top: 60%;
    }

    .rh-about-us {
        padding: 1rem;
        font-size: 1rem;
        line-height: 1.6;
        text-align: left;
        color: #333 !important;
    }

    .rh-about-us p {
        margin-bottom: 1rem;
        color: #333 !important;
        padding: 0 0.5rem;
    }

    /* Improve readability */
    .rh-about-us br {
        display: block;
        content: "";
        margin: 0.5rem 0;
    }

    /* Contact Form Section */
    .contact-us {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1rem;
    }

    .company-info,
    .contact-form {
        padding: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* Footer */    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem;
    }

    .footer-section {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }    .footer-bottom {
        margin-top: 1.5rem;
        padding: 1rem 0 1.5rem;
    }

    /* Back to Top Button */
    #backToTopBtn {
        bottom: 80px; /* Adjusted for bottom nav */
        right: 20px;
        width: 40px;
        height: 40px;
    }

    /* Section Headers */
    .service-title,
    .h2-about-us,
    .h2-contact-us {
        padding: 2rem 1rem 1rem;
    }

    .service-title h2,
    .h2-about-us h2,
    .h2-contact-us h2 {
        font-size: 1.8rem;
    }

    /* Navigation */
    .nav-links a {
        color: #eee;
    }

    .nav-links a:hover {
        color: #F0720C;
    }

    .mobile-menu-toggle span {
        background-color: #fff;
    }

    .nav-contact .cta-button {
        background-color: #F0720C;
        color: white;
        border: 2px solid #F0720C;
    }

    .nav-contact .cta-button:hover {
        background-color: transparent;
        color: #F0720C;
    }

    /* Services */
    .cat-service {
        background: #fff;
    }

    .cat-h3 h3 {
        color: #333;
    }

    .cat-text p {
        color: #666;
    }

    /* About Us */
    .h2-about-us h2 {
        color: #ffffff;
    }

    .rh-about-us {
        color: #ffffff;
    }

    .rh-about-us p {
        color: #ffffff;
    }

    /* Projects */
    .projects-title h2 {
        color: #ffffff;
    }

    /* Contact Section */
    .contact-form {
        background: white;
    }

    .company-info {
        background: white;
    }

    .form-row input,
    textarea {
        border: 1px solid #ddd;
        color: #333;
    }

    .contact-form button {
        background: #F0720C;
        color: white;
        border: 2px solid #F0720C;
    }

    .contact-form button:hover {
        background: transparent;
        color: #F0720C;
    }

    /* Footer */
    .footer-section h4 {
        color: #F0720C;
    }

    .footer-nav a {
        color: #ccc;
    }

    .footer-nav a:hover {
        color: #F0720C;
    }

    .contact-info a {
        color: #ccc;
    }

    .contact-info a:hover {
        color: #F0720C;
    }
}

@media screen and (max-width: 390px) {
    .text-top {
        font-size: clamp(1.3rem, 4vw, 1.8rem);
    }

    .cat-h3 h3 {
        font-size: 1.1rem;
    }

    .rh-about-us {
        font-size: 0.95rem;
    }
}

/* iPhone X Specific Fixes (375px) */
@media screen and (max-width: 375px) {
    /* Navigation Fixes */    .navbar {
        display: grid;
        grid-template-rows: auto auto;
        padding: 5px;
        gap: 10px;
    }

    .nav-brand {
        grid-row: 1;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .nav-logo {
        height: 45px;
    }    .nav-actions {
        grid-row: 2;
        position: relative; /* Add positioning context */
        width: 100%;
        padding: 0 15px;
    }

    .mobile-menu-toggle {
        position: absolute; /* Position absolutely within nav-actions */
        right: 15px; /* Align to right edge with padding */
        top: 50%; /* Center vertically */
        transform: translateY(-50%);
    }

    .nav-contact {
        position: static;
        padding: 0;
        background: transparent;
        display: flex;
        justify-content: flex-start; /* Align button to the left */
    }

    .nav-contact .cta-button {
        font-size: 0.9rem;
        padding: 8px 12px;
        white-space: nowrap;
    }

    /* Contact Section Fixes */
    .contact-us {
        padding: 1rem 10px;
    }

    .company-info,
    .contact-form {
        padding: 15px;
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }

    .info span {
        display: block;
        margin-bottom: 5px;
    }

    .info a {
        display: block;
        word-break: break-all;
        font-size: 0.9rem;
    }

    .form-row input,
    textarea {
        padding: 10px;
        font-size: 0.9rem;
    }

    /* Footer Fixes */
    .footer-content {
        padding: 1rem 10px;
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }

    .footer-section {
        padding: 10px;
    }

    .footer-logo img {
        height: 50px;
    }

    .contact-info a {
        word-break: break-all;
        font-size: 0.9rem;
    }

    .footer-nav a {
        font-size: 0.9rem;
    }
}

/* Fixed bottom navigation for iPhone X */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    padding: 10px;
    display: flex;
    justify-content: center;
    z-index: 1000;
}

/* Adjust main header height for the new layout */
.main-header {
    height: auto;
    min-height: 70px;
    padding-bottom: 0;
}

/* Adjust container padding for fixed bottom nav */
.container {
    padding-bottom: 60px;
}

/* Style adjustments for the CTA button */
.nav-contact .cta-button {
    font-size: 0.9rem;
    padding: 8px 15px;
    margin: 0;
}

/* Additional mobile navigation styles */
@media screen and (max-width: 375px) {
    .nav-contact .cta-button {
        font-size: 0.9rem;
        padding: 8px 15px;
        margin-right: 10px;
    }

    .mobile-menu-toggle {
        width: 28px;
        height: 28px;
    }

    .mobile-menu-toggle span:nth-child(1) { top: 4px; }
    .mobile-menu-toggle span:nth-child(2) { top: 12px; }
    .mobile-menu-toggle span:nth-child(3) { top: 20px; }

    /* Keep phone link in the slide menu on mobile */
    .phone-link {
        display: none;
    }

    /* Add phone link to mobile menu */
    .nav-links .phone-link {
        display: flex;
        justify-content: center;
        margin-top: 15px;
    }

    /* iPhone X and newer specific styles */
    @media screen and (max-width: 375px) {
        .navbar {
            display: flex;
            flex-direction: column;
            padding: 15px 15px 10px 15px;
            gap: 15px;
        }

        .nav-brand {
            width: 100%;
            text-align: center;
            padding-top: env(safe-area-inset-top); /* Safe area for notch */
        }

        .nav-logo {
            height: 45px;
            display: block;
            margin: 0 auto;
        }

        .nav-actions {
            width: 100%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0;
        }

        .nav-contact {
            flex: initial;
            padding: 0;
        }

        .nav-contact .cta-button {
            margin: 0;
            padding: 8px 15px;
            font-size: 0.9rem;
        }

        .mobile-menu-toggle {
            padding: 0;
            margin: 0;
            width: 28px;
            height: 28px;
        }

        /* Adjust container padding for notch */
        .container {
            padding-top: calc(80px + env(safe-area-inset-top));
        }
    }
}

/* Mobile Optimizations */
@media screen and (max-width: 430px) {
    /* Header and Navigation */
    .main-header {
        height: auto;
        padding-top: env(safe-area-inset-top, 15px);
    }

    .navbar {
        flex-wrap: wrap;
        padding: 10px 15px;
        gap: 10px;
    }

    .nav-brand {
        width: 100%;
        display: flex;
        justify-content: center;
        order: 1;
    }

    .nav-logo {
        height: 40px;
        width: auto;
    }

    .nav-actions {
        width: 100%;
        order: 2;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 5px 0;
    }

    .nav-contact {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .cta-button {
        padding: 8px 15px;
        font-size: 14px;
    }

    .mobile-menu-toggle {
        margin-left: 10px;
    }

    /* Top Content Section */
    .top-cont {
        height: 60vh;
        min-height: 400px;
        max-height: 500px;
        position: relative;
    }

    .top-cont img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .top-cont::before {
        background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.5) 0%,
            rgba(0, 0, 0, 0.7) 100%
        );
    }

    .text-top {
        font-size: clamp(24px, 5vw, 32px);
        padding: 0 20px;
        max-width: 100%;
    }

    .scroll-indicator {
        bottom: 20px;
    }

    /* Navigation Menu for Mobile */
    .nav-menu.active {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .nav-links {
        padding: 0 15px;
    }

    .nav-links a {
        padding: 12px 0;
        display: block;
        text-align: center;
        font-size: 16px;
    }
}

/* iPhone 15 Pro Specific (393px) */
@media screen and (width: 393px) {
    .navbar {
        padding: 8px 12px;
    }

    .nav-logo {
        height: 35px;
    }

    .cta-button {
        padding: 7px 12px;
        font-size: 13px;
    }

    .top-cont {
        height: 55vh;
        min-height: 380px;
    }

    .text-top {
        font-size: clamp(22px, 4.5vw, 28px);
        padding: 0 15px;
    }
}

/* Top Content Mobile Optimizations */
@media screen and (max-width: 430px) {
    .top-cont {
        height: 60vh;
        min-height: 400px;
        max-height: 500px;
    }

    .top-cont::before {
        background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.5) 0%,
            rgba(0, 0, 0, 0.7) 100%
        );
    }

    .text-top {
        font-size: clamp(24px, 5vw, 32px);
        padding: 0 20px;
        max-width: 100%;
    }

    .scroll-indicator {
        bottom: 20px;
    }
}

/* iPhone 15 Pro Specific (393px) */
@media screen and (width: 393px) {
    .top-cont {
        height: 55vh;
        min-height: 380px;
    }

    .text-top {
        font-size: clamp(22px, 4.5vw, 28px);
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2rem 1rem;
    }    .footer-logo img {
        height: 85px;
        margin-bottom: 0.5rem;
    }

    .footer-section {
        text-align: center;
        padding: 0.5rem;
    }

    /* Show mobile phone, hide desktop phone */
    .phone-link {
        display: none;
    }
    
    .mobile-phone {
        display: flex;
    }
}

@media (min-width: 769px) {
    /* Show desktop phone, hide mobile phone */
    .phone-link {
        display: flex;
    }
    
    .mobile-phone {
        display: none;
    }
}

