/* Global Reset and Common Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Poppins;
}

/* Hide Scrollbar Across Browsers */
html::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
    width: 0;
}

body {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    overflow-y: scroll;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

body::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
    width: 0;
}

body, html {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    overflow-x: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
/* Navbar Styles */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 0 2rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
}

/* Logo Section Styles */
.logo-section {
    position: absolute;
    left: 2rem;
    display: flex;
    align-items: center;
    gap: 15px;
    animation: slideLogo 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 0.5s;
    opacity: 0;
}

.logo {
    height: 85px;
    display: flex;
    align-items: center;
}

.logo img {
    height: 100%;
    border-radius: 8px;
    padding: 2px;
    width: auto;
    object-fit: contain;
}

/* Brand Text Styles */
.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-name {
    font-size: 32px;
    font-weight: 700;
    font-family: serif;
    line-height: 1;
    color: #000000;
}

.brand-tagline {
    font-size: 18px;
    font-family: sans-serif;
    font-weight: 700;
    color: #000000;
    margin-top: 2px;
}

/* Navigation Links */
nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    padding: 0;
    margin: 0;
    justify-content: center;
}

nav a {
    text-decoration: none;
    color: rgb(0, 0, 0);
    font-weight: bold;
    padding: 10px 10px 10px;
    border-radius: 4px;
    font-size: 19px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: ease .2s;
}

nav a:hover {
    background: white;
    font-weight: 600;
    color: black;
    border-radius: 5px;
}

/* Special styling for last navigation item */
nav ul li:last-child a {
    background-color: #e2dccc;
    color: #000000;
    padding: 8px 20px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

nav ul li:last-child a:hover {
    color: whitesmoke;
    background-color: #232323;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none; /* Hidden by default, shown in media queries */
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
}

/* Navigation State Classes */
nav.hidden {
    transform: translateY(-100%);
}

.logo-animate {
    animation: slideLogo 0.5s ease-out forwards;
}

/* Home Section Styles */
.home {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Video Background */
.home video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay Text */
.home .overlay-text {
    position: absolute;
    bottom: 4rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    z-index: 2;
}

/* Explore Button */
.home .explore-btn {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border: none;
    background: #333;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 2;
}

.home .explore-btn:hover {
    background: #555;
    transform: translateX(-50%) scale(1.05);
}

/* Section Headings Common Styles */
.about h1,
.services h1,
.gallery h1,
.contact h1 {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.about h1::after,
.services h1::after,
.gallery h1::after,
.contact h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: #333;
}

/* Basic Section Styles */
.about {
    padding: 4rem 2rem;
    text-align: center;
    background-color: #e2dccc;
}

.gallery {
    padding: 4rem 2rem;
    text-align: center;
    background-color: #e2dccc6e;
}

.contact,
.services {
    padding: 4rem 2rem;
    text-align: center;
}

/* About Section Styles */
.about {
    padding: 6rem 2rem;
    background-color: #e2dccc;
    min-height: 10vh;
    display: flex;
    align-items: center;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* About Content */
.about-content {
    text-align: center;
    position: relative;
    padding-bottom: 80px; /* Space for the button */
}

.about-content h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.about-content h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #333;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Read More Button */
.read-more-btn {
    padding: 12px 30px;
    font-size: 1.1rem;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.read-more-btn:hover {
    background-color: #444;
    transform: translateX(-50%) translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Expanded Content */
.expanded-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    margin-top: 2rem;
}

.expanded-content.active {
    max-height: 2000px; /* Adjust based on content */
    transition: max-height 0.5s ease-in;
}

/* Image Container */
.image-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.expanded-image {
    flex: 0 1 calc(50% - 1rem);
    max-width: 500px;
}

.expanded-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.expanded-image img:hover {
    transform: scale(1.02);
}

/* Responsive Design for About Section */
@media screen and (max-width: 768px) {
    .about {
        padding: 4rem 1.5rem;
    }

    .about-content h1 {
        font-size: 2.5rem;
    }

    .expanded-image {
        flex: 0 1 100%;
    }
}

@media screen and (max-width: 480px) {
    .about {
        padding: 3rem 1rem;
    }

    .about-content h1 {
        font-size: 2rem;
    }
}

/* Services Section Styles */
.services {
    padding: 4rem 1rem;
    width: 100%;
    background: #e2dccc8f;
}

.services h1 {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #333;
}

/* Service Cards Container */
.service-cards-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

/* Service Card Wrapper */
.service-card-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

/* Service Card Base */
.service-card {
    width: 100%;
    aspect-ratio: 4/3;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.415);
    transition: transform 0.3s ease;
}

/* Service Card Background */
.service-card-bg {
    width: 100%;
    height: 100%;
    position: absolute;
    object-fit: cover;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

/* Service Card Content */
.service-card-content {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.396);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

/* Service Card Typography */
.service-card h2 {
    font-size: 1.5rem;
    margin: 0;
    transition: transform 0.3s ease;
    position: relative;
    transform: translateY(0);
}

.service-card p {
    font-size: 1rem;
    opacity: 0;
    position: absolute;
    transform: translateY(20px);
    transition: all 0.3s ease;
    padding: 0 1rem;
    width: 100%;
    color: #d4c5b9;
    line-height: 1.6;
    font-weight: 400;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Inquiry Button */
.inquiry-btn {
    position: absolute;
    bottom: -3rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.8rem 2rem;
    background: #875842;
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    opacity: 0;
    transition: all 0.3s ease;
    cursor: pointer;
    width: auto;
    min-width: 140px;
}

/* Hover Effects for Desktop */
@media (hover: hover) {
    .service-card-wrapper:hover .service-card-content h2 {
        transform: translateY(-60px);
    }

    .service-card-wrapper:hover .service-card-content p {
        opacity: 1;
        transform: translateY(10px);
    }
    
    .service-card-wrapper:hover .service-card {
        transform: translateY(-10px);
    }

    .service-card-wrapper:hover .service-card-bg {
        transform: scale(1.1);
    }

    .service-card-wrapper:hover .service-card-content {
        background: rgba(59, 45, 38, 0.934);
    }

    .service-card-wrapper:hover p {
        opacity: 1;
        transform: translateY(0);
        color: #e2dccc;
    }

    .service-card-wrapper:hover .inquiry-btn {
        opacity: 1;
        transform: translateX(-50%) translateY(-10px);
    }
}

/* Touch Device Styles */
@media (hover: none) {

    .service-card-content.active {
        background: rgba(59, 45, 38, 0.934);
    }
    .service-card-content.active h2 {
        transform: translateY(-60px);
    }

    .service-card-content.active p {
        opacity: 1;
        transform: translateY(10px);
    }
    .service-card-content.active .inquiry-btn {
        opacity: 1;
        transform: translateX(-50%) translateY(-10px);
    }
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .services {
        padding: 3rem 1.5rem;
    }

    .service-card {
        flex: 1 1 250px;
    }

    .service-cards-container {
        width: 95%;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .service-card-wrapper:hover .service-card-content {
        background: rgba(59, 45, 38, 0.934);
    }
}

@media screen and (max-width: 480px) {
    .services h1 {
        font-size: 2rem;
    }

    .service-cards-container {
        width: 100%;
        grid-template-columns: 1fr;
        padding: 0.5rem;
    }

    .service-card-wrapper {
        margin-bottom: 3rem;
    }

    .service-card h2 {
        font-size: 1.3rem;
        margin-bottom: 2rem;
    }
    .service-card-wrapper:hover .service-card-content {
        background: rgba(59, 45, 38, 0.934);
    }

    .service-card-wrapper:hover .service-card-content p {
        opacity: 1;
        transform: translateY(10px);
    }
}
@media screen and (max-width: 780px) {
    .services h1 {
        font-size: 2rem;
    }

    .service-cards-container {
        width: 100%;
        grid-template-columns: 1fr;
        padding: 0.5rem;
    }

    .service-card-wrapper {
        margin-bottom: 3rem;
    }

    .service-card h2 {
        font-size: 1.3rem;
        margin-bottom: 2rem;
    }
    .service-card-wrapper:hover .service-card-content {
        background: rgba(59, 45, 38, 0.934);
    }

    .service-card-wrapper:hover .service-card-content p {
        opacity: 1;
        transform: translateY(10px);
    }
}

/* Gallery Section Styles */
.gallery {
    padding: 4rem 2rem;
    text-align: center;
    background-color: #e2dccc6e;
}

/* Gallery Sub Sections */
.gallery .sub-section {
    margin-bottom: 2rem;
}

.gallery .sub-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Gallery Cards */
.gallery .card {
    display: inline-block;
    width: 300px;
    height: 200px;
    margin: 1rem;
    background: #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s;
    cursor: pointer;
}

.gallery .card:hover {
    transform: scale(1.1);
}

.gallery .card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card.active {
    transform: scale(1.5) !important;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 999999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    margin: auto;
    display: block;
    animation: zoom 0.6s;
}

/* Lightbox Controls */
.close-lightbox {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1000000;
}

.close-lightbox:hover {
    color: #bbb;
    text-decoration: none;
}

.lightbox-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    box-sizing: border-box;
}

.prev-btn,
.next-btn {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 16px;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    font-size: 18px;
    transition: background-color 0.3s;
}

.prev-btn:hover,
.next-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Zoom Animation */
@keyframes zoom {
    from {
        transform: scale(0)
    }
    to {
        transform: scale(1)
    }
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .gallery-card {
        width: 45%;
    }
}

@media screen and (max-width: 480px) {
    .gallery-card {
        width: 100%;
    }
}

@media only screen and (max-width: 700px) {
    .lightbox-content {
        width: 100%;
    }

    .close-lightbox {
        top: 15px;
        right: 25px;
    }
}

/* Contact Section Styles */
.contact {
    padding: 80px 20px;
    background-color: #e2dccc;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Contact Header */
.contact h1 {
    color: #8B6B61;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-desc {
    color: #766B67;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Input Groups */
.input-group {
    position: relative;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #8B6B61;
}

/* Input Fields */
.input-group input,
.input-group textarea {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 1px solid #E0D9D6;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

/* Textarea Specific Styles */
.input-group textarea {
    resize: none;
    height: 150px;
    font-family: 'Poppins', sans-serif;
}

.input-group textarea + i {
    top: 25px;
    transform: none;
}

/* Submit Button */
.submit-btn {
    background-color: #875842;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

.submit-btn:hover {
    background-color: #A66B5B;
}

/* Privacy Text */
.privacy-text {
    color: #766B67;
    font-size: 0.9rem;
}

.privacy-text a {
    color: #766B67;
    text-decoration: underline;
}

/* Popup Overlay */
#popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

#popup-overlay .popup-content {
    position: relative;
    width: 80%;
    max-width: 600px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

#popup-overlay .close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact h1 {
        font-size: 2rem;
    }
    
    .submit-btn {
        width: 100%;
    }

    .input-group textarea {
        height: 120px;
    }
}

@media (max-width: 480px) {
    .contact {
        padding: 60px 15px;
    }
}

/* Footer Styles */
.footer-container {
    background-color: #1f2937;
    color: white;
    padding: 40px 20px 0;
    font-family: Arial, sans-serif;
}

/* Footer Content Layout */
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
}

/* Title Container */
.title-container {
    position: relative;
    margin-bottom: 30px;
}

.section-title {
    font-size: 24px;
    font-weight: normal;
    margin-bottom: 15px;
}

/* Custom Underline */
.underline {
    position: absolute;
    height: 2px;
    width: 40px;
    background-color: #3b82f6;
}

/* Connect Section */
.connect-section {
    flex: 0 0 auto;
}

.connect-section .underline {
    left: 0;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #3b82f6;
}

.social-link i {
    font-size: 20px;
    width: 25px;
}

/* Location Section */
.location-section {
    flex: 0 0 auto;
    text-align: right;
}

.location-section .title-container {
    text-align: right;
}

.location-section .underline {
    right: 0;
}

.location-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.location-details p {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.phone i, 
.email i {
    color: #3b82f6;
}

/* Credits Bar */
.credits-bar {
    background-color: #1a232d;
    padding: 15px 20px;
    margin-top: 40px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.credits-text {
    color: #cbd5e1;
    font-size: 14px;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 40px;
        font-size: medium;
    }

    .location-section, 
    .location-section .title-container,
    .location-details {
        text-align: left;
    }

    .location-details p {
        justify-content: flex-start;
    }

    .location-section .underline {
        left: 0;
        right: auto;
    }
    
    .credits-text {
        font-size: 12px;
    }
}

@media screen and (max-width: 480px) {
    .footer-container {
        padding: 30px 15px 0;
        font-size: medium;
    }
    
    .credits-bar {
        padding: 12px 15px;
    }
}

/* Main Responsive Design Styles */

/* Large Screens (up to 1024px) */
@media screen and (max-width: 1024px) {
    /* Navbar Adjustments */
    nav {
        padding: 0.5rem 1rem;
    }

    .brand-name {
        font-size: 28px;
    }
    
    .brand-tagline {
        font-size: 13px;
    }

    .logo img {
        height: 70px;
    }

    nav ul {
        gap: 1.5rem;
    }

    nav a {
        font-size: 19px;
    }
}

/* Tablets (up to 768px) */
@media screen and (max-width: 768px) {
    /* Navbar Mobile Styles */
    nav {
        justify-content: flex-end;
        height: 80px;
        padding: 0 1.5rem;
    }

    .logo-section {
        left: 1.5rem;
        gap: 10px;
    }

    .logo {
        height: 70px;
    }

    .brand-name {
        font-size: 24px;
    }
    
    .brand-tagline {
        font-size: 12px;
    }

    /* Mobile Menu */
    .mobile-menu-btn {
        display: block;
    }

    nav ul {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 2rem;
        transition: 0.3s ease-in-out;
        gap: 2rem;
    }

    nav ul.active {
        left: 0;
    }

    /* Home Section Adjustments */
    .home .overlay-text {
        font-size: 1.2rem;
        width: 90%;
        bottom: 6rem;
    }

    .home .explore-btn {
        bottom: 3rem;
    }

    /* About Section */
    .about-container {
        gap: 2rem;
    }
    
    .about-content h1 {
        font-size: 2.5rem;
    }
}

/* Mobile Devices (up to 480px) */
@media screen and (max-width: 480px) {
    /* Navbar Adjustments */
    nav {
        height: 70px;
        padding: 0 1rem;
    }

    .logo-section {
        left: 1rem;
        gap: 8px;
    }

    .logo {
        height: 60px;
    }

    .brand-name {
        font-size: 20px;
    }
    
    .brand-tagline {
        font-size: 11px;
    }

    /* Home Section */
    .home .overlay-text {
        font-size: 1rem;
        bottom: 5rem;
    }

    .home .explore-btn {
        bottom: 2rem;
        padding: 0.6rem 1.2rem;
    }

    /* Services Section */
    .services h1 {
        font-size: 2rem;
    }
}

/* Landscape Mode */
@media screen and (max-height: 500px) and (orientation: landscape) {
    nav {
        height: 60px;
    }

    nav ul {
        top: 60px;
        height: calc(100vh - 60px);
        padding-top: 1rem;
        gap: 1rem;
    }

    .home .overlay-text {
        bottom: 4rem;
    }

    .home .explore-btn {
        bottom: 1.5rem;
    }
}

/* Animation Keyframes */
@keyframes slideLogo {
    0% {
        left: -100%;
        opacity: 0;
    }
    30% {
        opacity: 0;
    }
    100% {
        left: 2rem;
        opacity: 1;
    }
}

@keyframes zoom {
    from {
        transform: scale(0)
    }
    to {
        transform: scale(1)
    }
}