/* General Styles */
:root {
    --primary-color: #333;
    --secondary-color: #fff;
    --background-color: #f4f4f4;
    --text-color: rgb(80, 80, 80);
    --heading-color: rgb(40, 40, 40);
}

body {
    font-family: 'Assistant', 'Helvetica', 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
}

/* Logo Styles */
.logo {
    text-align: center;
    padding: 20px 0; /* Equal space above and below the logo */
}

.logo img {
    max-width: 60%; /* Ensure the logo scales with the container */
    height: auto; /* Maintain aspect ratio */
}

main {
    max-width: 800px;
    margin: 20px auto;
    text-align: justify;  /* Justifying the text */
    padding: 20px 20px 80px; /* Add padding at the bottom to prevent overlap with the footer */
    color: var(--text-color);
}

h1 {
    color: var(--heading-color);
    font-size: 2em;
    margin-bottom: 20px;
    text-align: left;
}

.home-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-right: 20px;
}

/* Header Styles */
header {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 20px 0;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

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

header nav ul li {
    margin: 0 15px;
}

header nav ul li a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 16px;
}

/* Hamburger Menu */
.hamburger {
    display: none; /* Hide by default */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger-box {
    width: 30px;
    height: 24px;
    display: inline-block;
    position: relative;
}

.hamburger-inner {
    width: 100%;
    height: 3px;
    background-color: var(--secondary-color);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: background-color 0.2s ease-in-out;
}

.hamburger-inner::before,
.hamburger-inner::after {
    content: '';
    width: 100%;
    height: 3px;
    background-color: var(--secondary-color);
    position: absolute;
    left: 0;
    transition: transform 0.2s ease-in-out;
}

.hamburger-inner::before {
    top: -8px;
}

.hamburger-inner::after {
    top: 8px;
}

/* Close Button (X) */
.close-menu {
    display: none; /* Hide by default */
    text-align: right;
    border-bottom: none; /* Remove divider for the close button */
}

.close-button {
    background: none;
    border: none;
    color: var(--secondary-color);
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
}

.close-button:hover {
    color: #ccc;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .logo img {
        max-width: 300px; /* Adjust this value to fit your design */
    }

    .close-menu {
        display: block; /* Show close button on mobile */
    }

    .hamburger {
        display: block; /* Show hamburger menu on mobile */
    }

    .nav-links {
        display: none; /* Hide navigation links by default on mobile */
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0; /* Cover the full width */
        right: 0;
        background-color: var(--primary-color);
        padding: 20px;
        z-index: 1000;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Shadow for depth */
        max-height: 90vh; /* Limit height to 90% of the viewport */
        overflow-y: auto; /* Add scroll if the content exceeds the height */
    }

    .nav-links.active {
        display: flex; /* Show navigation links when menu is open */
    }

    .nav-links li {
        margin: 10px 0;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Divider bar */
        width: 100%; /* Ensure divider spans the full width */
        text-align: right; /* Align text to the right */
    }

    .nav-links li:last-child {
        border-bottom: none; /* Remove divider for the last item */
    }

    .nav-links a {
        font-size: 18px;
        color: var(--secondary-color);
        display: block; /* Ensure links take up full width */
    }
}

.image-container {
    max-width: 200px; /* Limit the width */
    padding: 0px;
    height: auto; /* Maintains aspect ratio */
    display: block; /* Avoids extra spacing issues */
    border-radius: 5px;
}


/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 500px; /* Adjust height as needed */
    overflow: hidden; /* Hide overflow to control the visible portion of the image */
}

.hero-image img {
    position: absolute;
    width: 100%;
    top: -100px; /* Shift image upward by 100px */
    left: 0;
    height: auto;
    /* object-fit: cover;  Ensure the image covers the area without distortion */
     /* object-position: center 30%; Adjust this to control the visible portion of the image */
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--secondary-color);
    background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent background for better readability */
    padding: 20px;
    border-radius: 10px;
}

.hero-text h2 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.hero-text p {
    font-size: 1.2em;
}

/* CSS for Image/Video and Text Box Overlap */
.service-media .service-video {
    width: 50%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

/* Footer Styles */
footer {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    text-align: center;
    padding: 10px 0;
    position: fixed;
    width: 100%;
    bottom: 0;
}

a {
    color: inherit;  /* Makes the link the same color as the surrounding text */
    text-decoration: underline;
}

a:hover {
    color: inherit;
    text-decoration: none; /* Keeps the underline */
}

/* Carousel Container */
.carousel-container {
    display: none;
}

.carousel {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    background: #0f0f0f;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

/* Carousel Inner (Holds All Items) */
.carousel-inner {
    display: flex;
    height: 100%;
    transition: transform 0.45s ease-in-out; /* Smooth transition */
}

/* Carousel Item (Each Image + Description) */
.carousel-item {
    min-width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    padding: 12px 12px 22px;
}

.carousel-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0b0b0b;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.carousel img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #0b0b0b;
    border-radius: 10px;
    cursor: zoom-in;
}

.image-description {
    margin: 0;
    font-size: 16px;
    color: #fff;
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 14px;
    border-radius: 10px;
    max-width: 90%;
    line-height: 1.4;
}

/* Carousel Buttons */
.carousel-buttons {
    position: absolute;
    top: 50%;
    left: 24px;
    right: 24px;
    padding: 0;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
}

.carousel-buttons button {
    background: rgba(0, 0, 0, 0.55); 
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0;
    cursor: pointer;
    font-size: 28px;
    border-radius: 14px;
    height: 68px;
    width: 56px;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-buttons button:hover {
    background: rgba(0, 0, 0, 0.85);
    transform: scale(1.05);
}

@media (max-width: 640px) {
    .carousel-buttons button {
        height: 56px;
        width: 48px;
        font-size: 22px;
        border-radius: 12px;
    }
}

/* Category Navigation Styles */
.category-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.category-nav button {
    background: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    transition: background 0.2s ease, transform 0.1s ease;
}

.category-nav button:hover {
    background: #555;
    transform: translateY(-1px);
}

.category-nav button.active {
    background: #000;
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px;
    z-index: 1200;
}

.lightbox.visible {
    display: flex;
}

.lightbox img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    background: #0b0b0b;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.lightbox-caption {
    margin-top: 12px;
    color: #fff;
    text-align: center;
    max-width: 800px;
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 20px;
    cursor: pointer;
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.85);
}

body.no-scroll {
    overflow: hidden;
}
  
/* Contact Form Styles */
.contact-form {
    background-color: #e8e8e8;
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    border-radius: 0px;
    text-align: left;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    font-size: 16px;
    box-sizing: border-box;
}

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

.contact-form button {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    border-radius: 0px;
    font-size: 16px;
    cursor: pointer;
}

.contact-form button:hover {
    background-color: #555;
}

@font-face {
    font-family: Assistant;
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    src: url("/fonts/assistant_n.woff2") format("woff");
}

@font-face {
    font-family: Assistant;
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    src: url("/fonts/assistant_n.woff2") format("woff");
}
