@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Montserrat:wght@400;500&display=swap');

:root {
    --bg-color: #FDFBF6;
    --primary-text-color: #0A192F;
    --accent-color: #B8860B;
    --secondary-bg-color: #FFFFFF;
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Montserrat', sans-serif;
}

body {
    font-family: var(--body-font);
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--primary-text-color);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Header & Navigation --- */
.header {
    background-color: var(--secondary-bg-color);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo a {
    font-family: var(--heading-font);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-text-color);
    text-decoration: none;
    margin-left: -1.5rem;
}

.nav-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-links ul li {
    margin-left: 2rem;
}

.nav-links ul li a {
    color: var(--primary-text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.nav-links ul li a:hover {
    color: var(--accent-color);
}

    .hamburger {
        display: none;
        font-size: 1.8rem;
        cursor: pointer;
        color: var(--primary-text-color);
    }

    /* Hide close button by default */
    .close-btn {
        display: none;
    }

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Start off-screen */
        width: 65%; /* Slightly wider for better content display */
        height: 100vh; /* Full viewport height */
        background-color: var(--secondary-bg-color); /* Translucent white */
        flex-direction: column;
        padding: 2rem 0; /* Adjusted padding for overall look */
        box-shadow: -5px 0 15px rgba(0,0,0,0.15); /* More pronounced shadow */
        transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Smoother transition */
        z-index: 999; /* Ensure it's above other content */
        display: flex; /* Use flexbox for internal alignment */
        justify-content: flex-start; /* Align content to the start */
        align-items: center; /* Center items horizontally */
    }

    .nav-links.active {
        right: 0; /* Slide in */
    }

    .nav-links ul {
        flex-direction: column;
        align-items: center;
        width: 100%; /* Ensure ul takes full width */
        padding-top: 3rem; /* Space below close button */
    }

    .nav-links ul li {
        margin: 1rem 0;
        width: 80%;
        text-align: center;
        border-bottom: 2px solid rgba(184, 134, 11, 0.2); /* Softer accent line */
        padding-bottom: 1rem;
    }

    /* Removed :last-child border-bottom: none; to ensure Contact link also has a line */

    .nav-links ul li a {
        font-family: var(--heading-font); /* Use heading font for nav links */
        font-size: 1.5rem; /* Larger font size */
        font-weight: 700; /* Bolder */
        color: var(--primary-text-color);
        text-decoration: none;
        display: block; /* Make the whole area clickable */
        padding: 0.5rem 0;
        transition: color 0.3s ease, letter-spacing 0.3s ease;
    }

    .nav-links ul li a:hover {
        color: var(--accent-color);
        letter-spacing: 1px; /* Subtle hover effect */
    }

    .hamburger {
        display: block;
        margin-right: -1rem;
    }

    .close-btn {
        display: block;
        position: absolute;
        top: 1.5rem;
        left: 1.5rem;
        font-size: 2rem; /* Larger close button */
        cursor: pointer;
        color: var(--primary-text-color);
        transition: color 0.3s ease, transform 0.3s ease;
    }

    .close-btn:hover {
        color: var(--accent-color);
        transform: rotate(90deg); /* Subtle rotation on hover */
    }
}
/* --- Hero Section --- */
#hero {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.6);
    z-index: -1;
}

.hero-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    animation: fadeIn 2s ease-in-out;
}

.hero-content h1 {
    font-family: var(--heading-font);
    font-size: 4.5rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.3rem;
    margin: 0 auto 2.5rem auto;
    max-width: 600px;
}

.btn {
    background-color: var(--accent-color);
    color: #fff;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn:hover {
    background-color: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
}

/* --- General Section Styling --- */
section {
    padding: 6rem 0;
}

.section-title {
    font-family: var(--heading-font);
    font-size: 3rem;
    text-align: center;
    margin-bottom: 2rem;
}

.tagline {
    text-align: center;
    font-size: 1.1rem;
    color: #777;
    margin-bottom: 4rem;
}

/* --- About Section --- */
#about {
    background-color: var(--secondary-bg-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    line-height: 1.8;
    font-size: 1.1rem;
}

.about-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    box-shadow: 10px 10px 30px rgba(0,0,0,0.1);
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    text-align: center;
}

.service-card {
    background: var(--secondary-bg-color);
    padding: 3rem 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.service-card i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-family: var(--heading-font);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

/* --- Process Section --- */
#process {
    background-color: var(--secondary-bg-color);
}

.process-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.step {
    display: flex;
    align-items: center;
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
    border-left: 5px solid transparent;
}

.step:hover {
    transform: translateX(10px);
    border-left-color: var(--accent-color);
}

.step-number {
    font-family: var(--heading-font);
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-right: 2rem;
    opacity: 0.5;
}

.step-content h3 {
    font-family: var(--heading-font);
    font-size: 1.8rem;
    margin: 0 0 0.5rem 0;
}

.step-content p {
    line-height: 1.6;
}

/* --- Projects Section --- */
#projects {
    background-color: var(--secondary-bg-color);
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    min-height: 800px;
}

.project {
    position: relative;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    overflow: hidden;
    color: #fff;
    transition: transform 0.5s ease;
}

.project:hover {
    transform: scale(1.05);
}

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    transform: translateY(100%);
    transition: transform 0.5s ease;
    max-height: 150px; /* Limit height */
    box-sizing: border-box; /* Include padding in height */
}

.project:hover .project-info {
    transform: translateY(0);
}

.project-info h3 {
    font-family: var(--heading-font);
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
}

.project-info p {
    margin: 0;
    line-height: 1.4;
    font-size: 0.95rem;
    word-wrap: break-word;
    white-space: normal;
    width: 100%;
    box-sizing: border-box;
}

/* --- Project Detail Page --- */
.project-hero {
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    background-size: cover;
    background-position: center;
    position: relative;
}

.project-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.5);
}

.project-hero .hero-content {
    position: relative;
    z-index: 1;
}

.project-details {
    padding-top: 4rem;
    padding-bottom: 4rem;
    background: var(--secondary-bg-color);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 2rem;
}

.detail-item h4 {
    font-family: var(--heading-font);
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.detail-item p {
    margin: 0;
    font-size: 1.1rem;
}

.project-story h2 {
    font-family: var(--heading-font);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.project-story p {
    line-height: 1.8;
    max-width: 800px;
    margin-bottom: 2rem;
}

.project-image-gallery {
    display: grid;
    gap: 2rem;
    margin-top: 4rem;
}

.project-image-gallery img {
    width: 100%;
    border-radius: 5px;
}

.project-navigation {
    text-align: center;
    margin-top: 4rem;
}

/* --- Testimonials Section --- */
#testimonials {
    background-color: var(--bg-color);
    text-align: center;
}

blockquote {
    font-family: var(--heading-font);
    font-size: 1.8rem;
    max-width: 100%; /* Ensure blockquote does not exceed parent width */
    margin: 0 auto 1rem auto;
    line-height: 1.6;
    white-space: normal; /* Ensure text wraps */
    word-break: break-word; /* Break long words */
}

cite {
    font-style: normal;
    font-weight: 500;
    color: var(--accent-color);
}

/* --- Testimonial Carousel --- */
.testimonial-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial {
    width: 100%;
    flex-shrink: 0;
    box-sizing: border-box;
    padding: 0 3rem;
}

.carousel-controls {
    position: absolute;
    top: 40%; /* Adjusted from 50% */
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 10; /* Ensure controls are above content */
}

.carousel-controls button {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--primary-text-color);
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0 1rem;
}

.carousel-controls button:hover {
    color: var(--accent-color);
}

/* --- Contact Section --- */
#contact {
    background-color: var(--secondary-bg-color);
}

#contact form {
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

#contact input, #contact textarea {
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    font-family: var(--body-font);
    width: 100%;
    box-sizing: border-box;
}

#contact textarea {
    resize: vertical;
    min-height: 150px;
    margin-bottom: 1rem;
}

#contact .btn {
    display: block;
    width: auto;
    margin: 0 auto;
    cursor: pointer;
}

/* --- Footer --- */
footer {
    background-color: var(--primary-text-color);
    color: #A9A9A9; /* Softer color for text */
    padding: 4rem 0 0 0; /* Reduced top padding */
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding-bottom: 2rem; /* Reduced bottom padding */
}

.footer-section h2, .footer-section h3 {
    color: var(--bg-color);
    font-family: var(--heading-font);
    margin-bottom: 1.5rem;
}

.footer-section.about .logo-text {
    font-family: var(--heading-font);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--bg-color);
}

.footer-section p {
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-section .contact span {
    display: block;
    font-size: 0.95rem;
}

.footer-section .contact span i {
    color: var(--accent-color);
    margin-right: 0.5rem;
}

.footer-section.links ul {
    list-style: none;
    padding: 0;
}

.footer-section.links ul li a {
    text-decoration: none;
    color: #A9A9A9;
    transition: all 0.3s ease;
    display: block;
    margin-bottom: 1rem;
}

.footer-section.links ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-section .social-icons a {
    display: inline-block;
    width: 45px;
    height: 45px;
    line-height: 45px;
    text-align: center;
    border-radius: 50%;
    background: #2c2c2c;
    color: var(--bg-color);
    margin-right: 0.5rem;
    transition: background-color 0.3s ease;
    font-size: 1.1rem;
}

.footer-section .social-icons a:hover {
    background-color: var(--accent-color);
}

.footer-section.newsletter .newsletter-form {
    display: flex;
    margin-top: 1.5rem;
}

.footer-section.newsletter input[type="email"] {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #555;
    background: #2c2c2c;
    color: var(--bg-color);
    border-radius: 5px 0 0 5px;
    border-right: none;
    font-family: var(--body-font);
}

.footer-section.newsletter button[type="submit"] {
    padding: 0.8rem 1rem;
    border: 1px solid var(--accent-color);
    background: var(--accent-color);
    color: #fff;
    cursor: pointer;
    border-radius: 0 5px 5px 0;
    transition: background-color 0.3s ease;
}

.footer-section.newsletter button[type="submit"]:hover {
    background: #A7770A; /* A slightly darker accent color */
}

.footer-bottom {
    text-align: center;
    padding: 2rem 0;
    margin-top: 2.5rem; /* Reduced top margin */
    border-top: 1px solid #333;
    font-size: 0.9rem;
}

/* --- Animations --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .about-text {
        order: 2;
    }
    .about-image {
        order: 1;
        margin-bottom: 2rem;
    }
    .project-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    .project-gallery {
        grid-template-columns: 1fr;
    }
    .form-group {
        grid-template-columns: 1fr;
    }

    /* Testimonial Carousel adjustments for phone screens */
    .testimonial {
        padding: 0 2rem; /* Increase horizontal padding */
    }

    blockquote {
        font-size: 1.2rem; /* Smaller font size for readability */
        white-space: normal; /* Ensure text wraps */
        word-break: break-word; /* Break long words */
    }

    .carousel-controls button {
        font-size: 1.5rem; /* Smaller buttons */
        padding: 0 0.5rem; /* Reduced padding for buttons */
    }
}

/* Footer */

@media screen and (min-width: 900px) {
    .footer-section.links {
    margin-left: 2.5rem; /* Adjusted for better alignment */
} 
}

@media screen and (min-width: 1080px) {
    .footer-section.links {
    margin-left: 4.5rem; /* Adjusted for better alignment */
} 
}
