* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==== Header Overrides: shrink logo and adjust top spacing ==== */
header .logo img {
    height: 56px !important;
    width: auto !important;
    max-height: 56px !important;
    transition: height 200ms ease;
}

/* Make sure page content is offset correctly for the fixed header */
body {
    padding-top: 100px !important;
}

@media (max-width: 768px) {
    header .logo img {
        height: 48px !important;
        max-height: 48px !important;
    }
    body {
        padding-top: 90px !important;
    }
    /* reduce nav gaps on small screens to avoid wrapping */
    .nav-links {
        gap: 0.75rem !important;
    }
}

/* End header overrides */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #FAF8F5;
    color: #3E3E3E;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

    .nav-links {
        display: flex;
        list-style: none;
        gap: 2.5rem;
        flex: 1; /* allow nav links to take available space */
        justify-content: center; /* center links between logo and header-right */
        align-items: center;
        min-width: 0;
    }
    pointer-events: none;
    z-index: -1;
    filter: blur(40px);
    opacity: 0.9;
}

body::before {
    top: -20%;
    left: -10%;
    width: 70vw;
    height: 70vh;
    background: radial-gradient(circle at 30% 30%, rgba(212,165,116,0.08) 0%, rgba(255,255,255,0.6) 30%, rgba(255,255,255,0) 60%);
    transform: translate3d(0,0,0);
    animation: floatSlow 20s ease-in-out infinite;
}

body::after {
    bottom: -20%;
    right: -10%;
    width: 60vw;
    height: 60vh;
    background: radial-gradient(circle at 70% 70%, rgba(60,60,60,0.03) 0%, rgba(255,255,255,0.7) 35%, rgba(255,255,255,0) 65%);
    transform: translate3d(0,0,0);
    animation: floatSlowReverse 28s ease-in-out infinite;
}

@keyframes floatSlow {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(2deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

@keyframes floatSlowReverse {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(25px) rotate(-2deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

/* Disable animated background in dark mode to preserve contrast */
body.dark-mode::before,
body.dark-mode::after {
    opacity: 0 !important;
    display: none !important;
}

/* Header & Navigation */
header {
    background: #FFFFFF;
    box-shadow: 0 6px 22px rgba(0,0,0,0.08);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1100;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Ensure page content doesn't sit under the fixed header */
body {
    padding-top: 110px; /* header height + some breathing room */
}

/* Reduce top padding on smaller screens so content doesn't get pushed too far */
@media (max-width: 768px) {
    body {
        padding-top: 90px;
    }
    /* Slightly reduce spacing between nav links for narrow viewports */
    .nav-links {
        gap: 1rem;
    }
    .header-right {
        margin-left: 0.5rem;
        gap: 1rem;
    }
}

.header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6B6B6B;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s;
}

.header-contact:hover {
    color: #D4A574;
}

.header-social {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.header-social a {
    color: #6B6B6B;
    font-size: 1.3rem;
    transition: color 0.3s;
}

.header-social a:hover {
    color: #D4A574;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: #D4A574;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-links a {
    color: #6B6B6B;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #D4A574;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: #D4A574;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    color:#D4A574;
    text-align: center;
    padding: 8rem 2rem;
    overflow: hidden;
}

/* Hero slideshow container (covers hero area) */
.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    background-size: cover;
    background-position: center;
}

.hero-slide.active {
    opacity: 1;
}

/* Ken Burns effect on active slide */
.hero-slide.active {
    animation: kenburns 12s ease-in-out infinite;
    transform-origin: center center;
}

@keyframes kenburns {
    0% { transform: scale(1) translateY(0); }
    50% { transform: scale(1.06) translateY(-10px); }
    100% { transform: scale(1) translateY(0); }
}

/* subtle dark overlay so text is readable */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(0,0,0,0.25) 80%);
    pointer-events: none;
    z-index: 0;
}

/* Slide controls (arrows) */
.hero-prev, .hero-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.85);
    border: none;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    cursor: pointer;
    z-index: 5;
}

.hero-prev { left: 18px; }
.hero-next { right: 18px; }

.hero-prev i, .hero-next i { color: #3E3E3E; font-size: 18px; }

.hero-prev:hover, .hero-next:hover { transform: translateY(-50%) scale(1.05); }

/* Dots */
.hero-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 6;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.9);
    background: rgba(255,255,255,0.35);
    cursor: pointer;
    padding: 0;
}

.hero-dot.active {
    background: #D4A574;
    border-color: #D4A574;
}

/* Ensure hero content stays above overlays */
.hero-content { z-index: 7; position: relative; }

.hero-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 300;
    letter-spacing: 2px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
    opacity: 0.95;
}

.cta-button {
    background: white;
    color: #D4A574;
    padding: 1rem 3rem;
    text-decoration: none;
    border-radius: 2px;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s;
    letter-spacing: 1px;
}

.cta-button:hover {
    background: #3E3E3E;
    color: white;
}

/* Sections */
section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

h2 {
    font-size: 2.8rem;
    color: #D4A574;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 300;
    letter-spacing: 2px;
}

.section-subtitle {
    text-align: center;
    color: #6B6B6B;
    margin-bottom: 4rem;
    font-size: 1.1rem;
    font-weight: 300;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.service-card {
    background: white;
    border-radius: 0;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(212, 165, 116, 0.15);
}

.service-icon {
    width: 100%;
    height: 250px;
    background: #F5F0EB;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #9B9B9B;
    font-weight: 400;
    overflow: hidden;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-content {
    padding: 2rem;
}

.service-card h3 {
    color: #D4A574;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 500;
}

.service-card p {
    color: #6B6B6B;
    font-weight: 300;
    line-height: 1.8;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.project-card {
    background: white;
    border-radius: 0;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(212, 165, 116, 0.15);
}

/* Splide carousel customization for reviews */
.splide {
    margin: 0;
}

.splide__track {
    padding: 1rem 0;
}

.splide__slide {
    padding: 0.5rem;
}

/* Ensure Splide slides and project cards have consistent sizing */
.splide__slide {
    padding: 0.5rem;
    display: flex;
    align-items: stretch;
}

.review-card {
    background: white;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 420px; /* approximate project-card height to match visuals */
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(212, 165, 116, 0.15);
}

/* Make project-card content stretch so review cards have consistent internal layout */
.splide__slide .project-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-image {
    width: 100%;
    height: 300px;
    background: #F5F0EB;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #9B9B9B;
    font-weight: 400;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-info {
    padding: 2rem;
}

.project-info h3 {
    color: #D4A574;
    margin-bottom: 0.8rem;
    font-weight: 500;
    font-size: 1.4rem;
}

.project-info p {
    color: #6B6B6B;
    font-weight: 300;
    line-height: 1.8;
}

/* About Section */
.about-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    line-height: 2;
    color: #6B6B6B;
    font-weight: 300;
    font-size: 1.1rem;
}

/* Contact Form */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.contact-info h3 {
    color: #D4A574;
    margin-bottom: 2rem;
    font-weight: 500;
    font-size: 1.8rem;
}
    color: #6B6B6B;
    font-weight: 300;
    /* ensure testimonial text takes space so cards align */
    min-height: 90px;
    margin-bottom: 2rem;

.star-rating { margin-left: auto; }
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.contact-item span {
    font-size: 1.5rem;
}

.contact-item strong {
    display: block;
    color: #3E3E3E;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.contact-item div {
    color: #6B6B6B;
    font-weight: 300;
}

form {
    background: white;
    padding: 3rem;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 2rem;
}

label {
    display: block;
    margin-bottom: 0.8rem;
    color: #3E3E3E;
    font-weight: 500;
}

input, textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #E5E5E5;
    border-radius: 0;
    font-family: inherit;
    transition: border-color 0.3s;
    color: #3E3E3E;
    font-weight: 300;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #D4A574;
}

textarea {
    resize: vertical;
    min-height: 150px;
}

button[type="submit"] {
    background: #D4A574;
    color: white;
    padding: 1rem 3rem;
    border: none;
    border-radius: 0;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    letter-spacing: 1px;
}

button[type="submit"]:hover {
    background: #3E3E3E;
}

/* Footer */
footer {
    background: #3E3E3E;
    color: #E5E5E5;
    text-align: center;
    padding: 3rem 2rem;
    margin-top: 5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-social a {
    color: #E5E5E5;
    font-size: 1.8rem;
    transition: color 0.3s;
}

.footer-social a:hover {
    color: #D4A574;
}

.footer-contact {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-contact a {
    color: #E5E5E5;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 300;
}

.footer-contact a:hover {
    color: #D4A574;
}

footer p {
    margin: 0.5rem 0;
    font-weight: 300;
    letter-spacing: 1px;
}

/* Dark Mode Styles */
body.dark-mode {
    background: #1a1a1a;
    color: #e0e0e0;
}

body.dark-mode header {
    background: #0d0d0d;
    box-shadow: 0 2px 10px rgba(212, 165, 116, 0.1);
}

body.dark-mode .nav-links a,
body.dark-mode .header-contact {
    color: #b8b8b8;
}

body.dark-mode .nav-links a:hover,
body.dark-mode .header-contact:hover {
    color: #D4A574;
}

body.dark-mode section {
    background: #1a1a1a;
}

body.dark-mode .section-subtitle {
    color: #b8b8b8;
}

body.dark-mode .about-content {
    color: #b8b8b8;
}

body.dark-mode .service-card,
body.dark-mode .project-card,
body.dark-mode .contact-info,
body.dark-mode form {
    background: #262626;
    color: #e0e0e0;
}

body.dark-mode .service-icon,
body.dark-mode .project-image {
    background: #1a1a1a;
}

body.dark-mode input,
body.dark-mode textarea {
    background: #333333;
    color: #e0e0e0;
    border-color: #444444;
}

body.dark-mode input:focus,
body.dark-mode textarea:focus {
    border-color: #D4A574;
}

body.dark-mode footer {
    background: #0d0d0d;
}

.dark-mode-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #D4A574;
    color: white;
    border: none;
    padding: 0.8rem 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.3);
    transition: all 0.3s;
    z-index: 999;
}

.dark-mode-toggle:hover {
    background: #3E3E3E;
    transform: scale(1.05);
}

/* Animated Statistics Section */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding: 4rem 2rem;
    background: #F5F0EB;
    margin: 3rem 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

body.dark-mode .stats-section {
    background: #262626;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

body.dark-mode .stat-card {
    background: #333333;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(212, 165, 116, 0.15);
}

.stat-number {
    font-size: 3rem;
    color: #D4A574;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: #6B6B6B;
    font-size: 1.1rem;
    font-weight: 300;
}

body.dark-mode .stat-card p {
    color: #b8b8b8;
}

/* Image Lightbox Gallery */
.glightbox-container {
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
}

.glightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
}

.glightbox-prev,
.glightbox-next {
    color: #D4A574;
    font-size: 2rem;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.glightbox-prev:hover,
.glightbox-next:hover {
    opacity: 1;
}

.glightbox-close {
    color: #D4A574;
    font-size: 2rem;
}

/* Blog Section */
.blog-section {
    background: #FAF8F5;
    padding: 4rem 2rem;
    margin: 3rem 0;
}

body.dark-mode .blog-section {
    background: #1a1a1a;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.blog-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: all 0.3s;
    cursor: pointer;
}

body.dark-mode .blog-card {
    background: #262626;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(212, 165, 116, 0.15);
}

.blog-image {
    width: 100%;
    height: 200px;
    background: #F5F0EB;
    overflow: hidden;
}

body.dark-mode .blog-image {
    background: #1a1a1a;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-content {
    padding: 1.5rem;
}

.blog-category {
    color: #D4A574;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.blog-card h3 {
    color: #3E3E3E;
    margin: 0.5rem 0;
    font-size: 1.3rem;
}

body.dark-mode .blog-card h3 {
    color: #e0e0e0;
}

.blog-date {
    color: #999;
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

body.dark-mode .blog-date {
    color: #888;
}

.blog-excerpt {
    color: #6B6B6B;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 1rem 0;
}

body.dark-mode .blog-excerpt {
    color: #b8b8b8;
}

.read-more {
    color: #D4A574;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.read-more:hover {
    color: #3E3E3E;
}

/* Testimonials/Reviews Section */
.testimonials-section {
    background: transparent; /* removed boxed background so only cards show */
    /* Use same alignment as Projects/Services via inherited section defaults */
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

body.dark-mode .testimonials-section {
    background: transparent;
}

.testimonial-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.testimonial-card {
    background: transparent; /* card background removed to show only review text */
    padding: 1.25rem 0; /* reduce vertical padding to match surrounding flow */
    border-radius: 0;
    box-shadow: none;
    transition: none;
}

body.dark-mode .testimonial-card {
    background: transparent;
    box-shadow: none;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-text {
    font-size: 1rem;
    color: #3E3E3E;
    line-height: 1.8;
    margin-bottom: 1rem;
    font-style: italic;
}

body.dark-mode .testimonial-text {
    color: #e0e0e0;
}

.testimonial-author {
    font-weight: 600;
    color: #D4A574;
    margin-bottom: 0.5rem;
}

.testimonial-role {
    font-size: 0.9rem;
    color: #6B6B6B;
    margin-bottom: 1rem;
}

body.dark-mode .testimonial-role {
    color: #b8b8b8;
}

.star-rating {
    color: #D4A574;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

/* Align testimonials with other sections: use a responsive grid that fills the section width */
.testimonials-grid {
    display: grid;
    /* rely on the parent `section` (which is already max-width:1200px and centered)
       so the grid aligns exactly like Projects/Services */
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem; /* same gap as .projects-grid */
    margin-top: 3rem;
    width: 100%;
}

/* Let each card fill its grid cell; visual styling is defined earlier for .testimonial-card */
.testimonial-card {
    width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-right {
        display: none;
    }

    nav {
        padding: 1rem 2rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        gap: 1.5rem;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    h2 {
        font-size: 2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-contact {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Review-specific star layout: place stars above the person name and center them */
.review-stars {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 0.6rem;
    color: #D4A574;
    font-size: 1.05rem;
}

.review-stars i {
    color: #D4A574;
}

/* Slight spacing adjustment for review name when stars present */
.project-info h3 {
    margin-top: 0;
}
