* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Oswald', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    background-color: #ffffff; /* White background */
    color: white; /* Blue main font */
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.5rem;
    background-color: #001f3f; /* Navy blue navbar */
    color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    flex-wrap: wrap;
    transition: transform 0.3s ease-in-out;
}

.navbar-hidden {
    transform: translateY(-100%);
}

nav .logo {
    display: flex;
    align-items: center;
}

nav .logo img {
    width: 50px;
    height: 50px;
    margin-right: 15px;
}

.logo span {
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 700;
    color: #ffaa00; /* Orange for brand name */
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1rem;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.nav-links li {
    white-space: nowrap;
}

nav .nav-links a {
    color: #ffffff;
    padding: 0.75rem 0.5rem;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    text-transform: uppercase;
}

nav .nav-links a:hover {
    color: #ffaa00; /* Orange hover effect */
}

nav .dropdown {
    position: absolute;
    top: 100%;
    left: auto;
    right: 0;
    background-color: #002a5c; /* Darker navy blue dropdown */
    padding: 0.75rem 0;
    min-width: 220px;
    border-radius: 6px;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border: 1px solid #003087; /* Slightly lighter navy border */
}

nav .dropdown li a {
    display: block;
    padding: 0.5rem 1rem;
    color: #ffffff !important;
    transition: all 0.3s ease;
}

nav .dropdown li a:hover {
    background-color: #003087; /* Navy blue hover */
    color: #ffffff !important;
    padding-left: 1.2rem;
}

nav .services-menu:hover .dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 31, 63, 0.7), rgba(0, 31, 63, 0.7)), url('hero-image.jpg') center/cover no-repeat;
    color: #ffffff;
    text-align: center;
    padding: 4rem 1rem;
    background-color: #003087; /* Navy blue fallback */
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px #000000;
}

.hero p {
    font-size: 1.2rem;
    color: #ffaa00; /* Orange for emphasis */
}

/* Sections */
section {
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: auto;
    width: 100%;
    box-sizing: border-box;
}

.about-owner, .experience {
    background-color: #002a5c; /* Navy blue sections */
    margin-bottom: 2rem;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    border: 1px solid #003087; /* Navy blue border */
}

.services h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #ffaa00; /* Orange heading */
    text-transform: uppercase;
}

/* Service Sections */
.service-section {
    display: flex;
    flex-direction: column;
    background-color: #002a5c; /* Navy blue */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    margin-bottom: 2rem;
    scroll-margin-top: 80px;
    padding-top: 30px;
    margin-top: -30px;
    transition: all 0.3s ease;
    border: 1px solid #003087; /* Navy blue border */
}

.service-image,
.service-image-single {
    width: 90%;
    max-width: 500px;
    margin: 1rem auto;
    border-radius: 8px;
    background: #333333;
    padding: 0;
}

.image-carousel img,
.image-carousel video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
    object-fit: contain;
    border: 2px solid #003087; /* Navy blue border */
}

.image-carousel img:hover,
.image-carousel video:hover {
    transform: scale(1.05);
    border-color: #ffaa00; /* Orange hover */
}

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

.service-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #ffaa00; /* Orange */
    text-transform: uppercase;
}

.service-content p {
    margin-bottom: 1.5rem;
    color: #b3c6ff; /* Light blue for text */
    line-height: 1.7;
}

.inquire-btn {
    align-self: flex-start;
    padding: 0.8rem 1.5rem;
    background-color: #ff6c18; /* Navy blue button */
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    min-height: 44px;
    min-width: 44px;
    text-transform: uppercase;
}

.inquire-btn:hover {
    background-color: #ffaa00; /* Orange hover */
    color: #000000;
    transform: translateY(-2px);
}

/* Image Carousel */
.image-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    touch-action: pan-y;
    pointer-events: auto;
    -webkit-user-select: none;
    user-select: none;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    touch-action: none;
    pointer-events: none;
}

.carousel-item {
    flex: 0 0 100%;
    scroll-snap-align: center;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.carousel-nav .nav-dot {
    width: 10px;
    height: 10px;
    background-color: #b3c6ff; /* Light blue */
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
    pointer-events: auto;
}

.carousel-nav .nav-dot.active {
    background-color: #ffaa00; /* Orange active dot */
}

/* Gallery Section */
.gallery {
    background-color: #002a5c; /* Navy blue */
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    border: 1px solid white; /* Navy blue border */
}

.gallery h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    color: #ffaa00; /* Orange */
    text-transform: uppercase;
}

.gallery-category {
    margin-bottom: 3rem;
}

.gallery-category h3 {
    font-size: 1.5rem;
    color: #ffaa00; /* Orange */
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid white; /* Navy blue underline */
}

.image-carousel .carousel-item img,
.image-carousel .carousel-item video {
    width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
    cursor: pointer;
}

/* Footer */
.site-footer {
    background-color: #001f3f; /* Dark blue footer */
    color: #b3c6ff; /* Light blue */
    padding: 40px 0 20px;
    font-family: 'Oswald', sans-serif;
    width: 100%;
    margin-top: 30px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 30px;
}

.footer-logo {
    flex: 1;
    min-width: 250px;
    text-align: center;
}

.footer-logo img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: contain;
    background-color: white;
    padding: 5px;
    margin-bottom: 15px;
}

.footer-logo h3 {
    margin: 10px 0 5px;
    font-size: 24px;
    color: #ffaa00; /* Orange */
    font-weight: 600;
}

.footer-logo p {
    color: #b3c6ff; /* Light blue */
    font-size: 15px;
}

.footer-contact {
    flex: 1;
    min-width: 250px;
}

.footer-contact h4 {
    color: #ffaa00; /* Orange */
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-contact p {
    margin: 12px 0;
    color: #b3c6ff; /* Light blue */
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
}

.footer-contact i {
    width: 24px;
    text-align: center;
    color: #ffaa00; /* Orange icons */
}

.footer-social {
    flex: 1;
    min-width: 250px;
}

.footer-social h4 {
    color: #ffaa00; /* Orange */
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 600;
}

.social-icons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: #333333;
    border-radius: 50%;
    color: #ffaa00; /* Orange */
    font-size: 20px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: #ffaa00; /* Orange */
    color: #000000;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #003087; /* Navy blue */
    color: #b3c6ff; /* Light blue */
    font-size: 14px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }
    
    .footer-logo, 
    .footer-contact, 
    .footer-social {
        width: 100%;
        max-width: 350px;
    }
    
    .footer-contact p {
        justify-content: center;
    }
    
    .social-icons {
        justify-content: center;
    }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #ff6200; /* Orange menu button */
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    min-height: 44px;
    min-width: 44px;
}

/* Responsive Design */
@media (max-width: 991px) {
    .services-menu .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        padding-left: 1rem;
    }
    
    .services-menu:hover .dropdown,
    .services-menu:focus-within .dropdown {
        display: block;
    }
}

@media (max-width: 992px) {
    nav.navbar {
        padding: 0.8rem 1rem;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem 0;
    }
    
    .nav-links.show {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: #002a5c; /* Navy blue */
        padding: 1rem;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .services-menu .dropdown {
        position: static;
        width: 100%;
    }
    
    nav .logo img {
        width: 40px;
        height: 40px;
    }
    
    nav .logo span {
        font-size: 1.2rem;
    }
}

@media (max-width: 599px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: #002a5c; /* Navy blue */
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        padding-bottom: 20px;
    }
    
    .hero {
        padding: 3rem 1rem;
    }
    
    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .service-section {
        margin: 1rem 0;
    }
    
    .image-carousel .carousel-item img,
    .image-carousel .carousel-item video {
        max-height: 180px;
    }
}

@media (min-width: 600px) and (max-width: 767px) {
    .service-section {
        flex-direction: row;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .service-section {
        flex-direction: row;
    }
}

@media (min-width: 769px) {
    .service-section {
        flex-direction: row;
        align-items: center;
    }
    
    .service-image,
    .service-image-single {
        flex: 1;
        margin-right: 2rem;
    }
    
    .service-content {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .service-image,
    .service-image-single {
        width: 100%;
        border-radius: 0;
    }
}

#gallery-section,
#rcc-breaker, 
#rcc-wall-cutting, 
#core-cutting, 
#rebaring, 
#slab-cutting {
    scroll-margin-top: 80px;
}

.about-owner {
    margin-top: 3rem;
}

html {
    scroll-behavior: smooth;
}

a, button {
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Adjust logo text for mobile */
@media (max-width: 599px) {
    .logo span {
        max-width: 200px;
        font-size: 1.1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    nav .logo img {
        width: 35px;
        height: 35px;
        margin-right: 10px;
    }

    .navbar {
        padding: 0.6rem 0.8rem;
    }

    .logo {
        flex: 1;
        max-width: calc(100% - 60px);
    }
}

/* Ensure logo text is fully visible on slightly larger mobile screens */
@media (min-width: 600px) and (max-width: 767px) {
    .logo span {
        max-width: 250px;
        font-size: 1.2rem;
    }

    nav .logo img {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 599px) {
    .gallery {
        margin: 1rem 0;
        padding: 1rem;
        padding-top: 30px;
        margin-top: -30px;
        scroll-margin-top: 80px;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.5);
        border: 1px solid #003087; /* Navy blue border */
    }

    .gallery .image-carousel .carousel-item img,
    .gallery .image-carousel .carousel-item video {
        max-height: 180px;
        width: 100%;
        border-radius: 0;
        object-fit: contain;
        box-shadow: 0 4px 8px rgba(0,0,0,0.5);
    }

    .gallery .image-carousel {
        width: 100%;
        max-width: 500px;
        margin: 1rem auto;
        border-radius: 0;
    }

    .gallery-category {
        margin-bottom: 1.5rem;
    }

    .gallery-category h3 {
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
    }
}

.gallery-content {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.gallery-content p {
    margin-bottom: 1.5rem;
    color: #b3c6ff;
    line-height: 1.7;
}

