/* =================== BASE VARIABLES (LIGHT THEME) =================== */
:root {
    --color-primary: #1a1a1a;
    --color-secondary: #c9a962;
    --color-background: #ffffff;
    --color-text: #1a1a1a;
    --color-text-light: #666666;
    --color-white: #ffffff;
    --color-accent: #b8963e;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 15px 40px rgba(0,0,0,0.1);
    --transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
    --radius: 12px;
    --radius-sm: 8px;
}

/* =================== RESET =================== */
*{ margin:0; padding:0; box-sizing:border-box; }
html{ scroll-behavior:smooth; font-size:16px; }
body{
    font-family:var(--font-body);
    color:var(--color-text);
    background-color:var(--color-background);
    line-height:1.6;
    overflow-x:hidden;
    -webkit-font-smoothing:antialiased;
}
a{ text-decoration:none; color:inherit; transition:var(--transition); }
img{ max-width:100%; height:auto; display:block; }
.container{ max-width:1200px; margin:0 auto; padding:0 24px; }
.text-center{ text-align:center; }

/* =================== HEADER (DYNAMIC - TRANSPARENT/HIDE/SHOW) =================== */
.header{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    background: transparent;
    z-index:1000;
    transition: transform 0.4s ease, background 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    border-bottom: 1px solid transparent;
}
.header.scrolled {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.header.hidden {
    transform: translateY(-100%);
}
.header .logo-text,
.header .nav-link {
    color: #ffffff;
    transition: color 0.3s ease;
}
.header .nav-link::after {
    background-color: #c9a962;
}
.header .hamburger span {
    background-color: #ffffff;
    transition: background 0.3s ease;
}
.header.scrolled .logo-text,
.header.scrolled .nav-link {
    color: #1a1a1a;
}
.header.scrolled .hamburger span {
    background-color: #1a1a1a;
}
.header.scrolled .nav-link::after {
    background-color: #c9a962;
}
.nav-item .btn-primary {
    background: #c9a962;
    border-color: #c9a962;
    color: #fff !important;
}
.nav-item .btn-primary:hover {
    background: transparent;
    color: #c9a962 !important;
}
.header .nav-link:hover {
    color: #c9a962;
}
.header.scrolled .nav-link:hover {
    color: #c9a962;
}

.navbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    height:90px;
}
.logo{
    display:flex;
    align-items:center;
    gap:10px;
    font-family:var(--font-heading);
    font-size:1.6rem;
    font-weight:700;
    flex-shrink:0;
}
.logo-img{ height:45px; width:auto; }
.logo-text{ white-space:nowrap; position:relative; }
.logo-text::after{
    content:'';
    position:absolute;
    bottom:-5px;
    left:0;
    width:30%;
    height:3px;
    background-color:var(--color-secondary);
    transition:var(--transition);
}
.logo-text:hover::after{ width:100%; }
.nav-menu{
    display:flex;
    list-style:none;
    gap:50px;
    align-items:center;
}
.nav-link{
    font-weight:500;
    font-size:0.95rem;
    position:relative;
    padding:5px 0;
}
.nav-link::after{
    content:'';
    position:absolute;
    bottom:-2px;
    left:0;
    width:0;
    height:2px;
    background-color:var(--color-secondary);
    transition:var(--transition);
}
.nav-link:hover::after{ width:100%; }
.hamburger{
    display:none;
    flex-direction:column;
    gap:6px;
    padding:5px;
    background:none;
    border:none;
    cursor:pointer;
    z-index:1001;
}
.hamburger span{
    width:28px;
    height:2px;
    border-radius:2px;
    transition:var(--transition);
}

/* =================== HERO (DARK FADE - NO GOLD) =================== */
.hero{
    position:relative;
    height:100vh;
    min-height:700px;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    margin-top:0;
}
.hero-image{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    object-fit:cover;
    z-index:-2;
    filter:brightness(0.7);
}
.hero-overlay{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    /* STANDARD DARK FADE – NO GOLD */
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.6) 100%);
    z-index:-1;
}
.hero-content{
    text-align:center;
    color:var(--color-white);
    max-width:900px;
    padding:0 30px;
    z-index:1;
    animation:fadeInUp 1s ease;
}
.hero-title{
    font-size:clamp(2.5rem,6vw,4.5rem);
    margin-bottom:1.5rem;
    font-weight:600;
    letter-spacing:2px;
    color:#ffffff;
    text-shadow:0 2px 10px rgba(0,0,0,0.5);
}
.hero-intro{
    font-size:1.25rem;
    margin-bottom:2.5rem;
    font-weight:300;
    line-height:1.8;
    color:rgba(255,255,255,0.95);
    max-width:700px;
    margin-left:auto;
    margin-right:auto;
}

/* =================== BUTTONS =================== */
.btn-primary{
    display:inline-block;
    padding:18px 40px;
    background-color:var(--color-secondary);
    color:var(--color-white);
    font-weight:500;
    border-radius:var(--radius);
    transition:var(--transition);
    border:2px solid var(--color-secondary);
    cursor:pointer;
    font-family:var(--font-body);
    font-size:0.9rem;
    text-transform:uppercase;
}
.btn-primary:hover{
    background-color:transparent;
    color:var(--color-secondary);
    transform:translateY(-3px);
    box-shadow:0 10px 30px rgba(201,169,98,0.3);
}
.btn-secondary{
    display:inline-block;
    padding:15px 35px;
    background-color:transparent;
    color:var(--color-primary);
    border:2px solid var(--color-primary);
    border-radius:var(--radius);
    transition:var(--transition);
}
.btn-secondary:hover{
    background-color:var(--color-primary);
    color:var(--color-white);
}
.nav-item .btn-primary {
    margin:0;
    padding:8px 16px;
    font-size:0.85rem;
}

/* =================== SECTION SPACING & TITLES =================== */
.section-padding { padding:120px 0; }
.section-title {
    font-family:var(--font-heading);
    font-size:2.8rem;
    font-weight:600;
    color:#1a1a1a;
    margin-bottom:35px;
    position:relative;
}
.section-title.text-center { text-align:center; }
.section-title::after {
    content:'';
    display:block;
    width:60px;
    height:3px;
    background-color:var(--color-secondary);
    margin-top:12px;
    border-radius:2px;
}
.section-title.text-center::after { margin-left:auto; margin-right:auto; }

/* =================== ABOUT =================== */
.about { background:#ffffff; }
.about .about-grid { display:grid; grid-template-columns:1fr 1fr; gap:80px; align-items:center; }
.about .about-image-wrapper { overflow:hidden; border-radius:14px; box-shadow:0 15px 50px rgba(0,0,0,0.1); transition: transform 0.6s ease, box-shadow 0.6s ease; }
.about .about-image-wrapper:hover { transform: scale(1.04); box-shadow:0 25px 60px rgba(201,169,98,0.2); }
.about .about-content h2 { font-family:'Playfair Display', serif; font-weight:600; color:#1a1a1a; font-size:2.5rem; margin-bottom:25px; position:relative; }
.about .about-content h2::after { content:''; display:block; width:60px; height:3px; background-color:#c9a962; margin-top:12px; border-radius:2px; }
.about .about-desc { font-size:1.125rem; line-height:2; color:#666666; }

/* =================== SERVICES (Numbered) =================== */
.services { background:#f8f9fa; }
.services .services-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:40px; }
.services .service-card {
    background:#ffffff;
    border:1px solid #f0f0f0;
    border-radius:14px;
    box-shadow:0 5px 20px rgba(0,0,0,0.04);
    overflow:hidden;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    padding:30px 25px;
    height:100%;
    display:flex;
    flex-direction:column;
}
.services .service-card:hover { transform: translateY(-12px) scale(1.02); box-shadow:0 30px 70px rgba(201,169,98,0.1); }
.service-card .service-number {
    font-family:var(--font-heading);
    font-size:3.5rem;
    font-weight:700;
    color:rgba(201,169,98,0.2);
    line-height:1;
    margin-bottom:-10px;
}
.service-card h3 { font-family:'Playfair Display', serif; color:#1a1a1a; font-size:1.4rem; margin-bottom:12px; }
.service-card p { color:#666666; flex-grow:1; }
.service-card img { 
    margin-bottom:15px; 
    border-radius:8px; 
    width:100%; 
    object-fit:cover; 
    aspect-ratio:16/9;
}

/* =================== PORTFOLIO =================== */
.portfolio { background:#ffffff; }
.portfolio .portfolio-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:25px; }
.portfolio-item {
    display:block;
    text-decoration:none;
    color:inherit;
    transition:transform 0.5s ease;
}
.portfolio-item:hover { transform:scale(1.02); }
.portfolio-item img {
    border-radius:12px 12px 0 0;
    width:100%;
    object-fit:cover;
    aspect-ratio:16/9;
    transition:transform 0.5s ease;
}
.portfolio-item:hover img { transform:scale(1.08); }
.portfolio-info {
    background:#ffffff;
    padding:20px 15px;
    text-align:center;
    border-radius:0 0 12px 12px;
    border:1px solid #f0f0f0;
    border-top:0;
    transition:var(--transition);
}
.portfolio-info h3 { font-family:'Playfair Display', serif; font-size:1.3rem; font-weight:600; margin-bottom:8px; color:#1a1a1a; }
.portfolio-info p { font-size:0.95rem; color:#666666; margin:0; line-height:1.5; }
.portfolio-overlay {
    position:absolute;
    inset:0;
    background:rgba(201,169,98,0.15);
    opacity:0;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:opacity 0.4s ease, backdrop-filter 0.4s ease;
    backdrop-filter:blur(3px);
    border-radius:12px 12px 0 0;
}
.portfolio-item:hover .portfolio-overlay { opacity:1; }
.portfolio-item { position:relative; overflow:hidden; border-radius:12px; cursor:pointer; }


/* =================== TESTIMONIALS =================== */
.testimonials { background:#f8f9fa; }
.testimonials .testimonials-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); gap:40px; }
.testimonials .testimonial-card {
    background:#ffffff;
    padding:50px 35px;
    border-radius:14px;
    border:1px solid #f0f0f0;
    box-shadow:0 5px 20px rgba(0,0,0,0.04);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.testimonials .testimonial-card:hover { transform:translateY(-10px); box-shadow:0 30px 70px rgba(201,169,98,0.08); }
.testimonials .testimonial-text { font-style:italic; font-size:1.05rem; color:#666666; }
.testimonials .testimonial-name { font-weight:600; margin-top:15px; color:#1a1a1a; }

/* =================== CONTACT AS PRE-FOOTER (Fading to Dark Gold - ONLY HERE) =================== */
.contact {
    background-color: #0a0a0a;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding: 100px 0 80px 0;
    margin-bottom: 0;
    color: #fff;
}
.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* DARK GOLD FADE – applied only to the pre-footer */
    background: linear-gradient(to bottom, rgba(0,0,0,0) 15%, #0a0a0a 100%);
    z-index: 1;
}
.contact .container {
    position: relative;
    z-index: 2;
}
.contact .section-title {
    color: #fff;
}
.contact .section-title::after {
    background-color: #fff;
}
.contact .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}
.contact .info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    align-items: flex-start;
}
.contact .info-item i {
    color: #fff;
    font-size: 1.8rem;
    flex-shrink: 0;
    margin-top: 3px;
}
.contact .info-item h4 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
}
.contact .info-item p {
    font-size: 1.2rem;
    line-height: 1.5;
    color: rgba(255,255,255,0.9);
}
.contact .clickable {
    color: #fff !important;
    cursor: pointer;
}
.contact label {
    color: #fff;
}
.contact input,
.contact textarea {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    margin-top: 8px;
    transition: border 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.contact input::placeholder,
.contact textarea::placeholder {
    color: rgba(255,255,255,0.7);
}
.contact input:focus,
.contact textarea:focus {
    border-color: #fff;
    box-shadow: 0 0 15px rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.25);
    outline: none;
}
.contact .btn-primary {
    background: #fff;
    color: #8B7A3C;
    border-color: #fff;
    margin-top: 20px;
}
.contact .btn-primary:hover {
    background: transparent;
    color: #fff;
    border-color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.alert {
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 14px;
    animation: slideDown 0.5s ease-out;
}
.alert-success {
    background: rgba(0,0,0,0.4);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
}
.alert-error {
    background: rgba(0,0,0,0.4);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
}
@keyframes slideDown { from { transform:translateY(-100%); opacity:0; } to { transform:translateY(0); opacity:1; } }
@keyframes slideOut { from { transform:translateY(0); opacity:1; } to { transform:translateY(-100%); opacity:0; } }

/* =================== GALLERY PAGE =================== */
.gallery-page-wrapper { padding-top:100px; background:#ffffff; color:#1a1a1a; }
.gallery-header .section-title { color:#1a1a1a; }
.gallery-description { color:#666666; }
.gallery-grid {
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
    gap:25px;
    margin-top:30px;
}
.gallery-item {
    position:relative;
    overflow:hidden;
    border-radius:12px;
    cursor:pointer;
    background:#f8f9fa;
    aspect-ratio:4/3;
    transition:transform 0.3s ease, box-shadow 0.3s ease;
    border:1px solid #f0f0f0;
}
.gallery-item:hover { transform:scale(1.02); box-shadow:0 10px 30px rgba(201,169,98,0.15); }
.gallery-item img { width:100%; height:100%; object-fit:cover; display:block; transition:transform 0.3s ease; }
.gallery-item:hover img { transform:scale(1.05); }
.lightbox {
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.9);
    z-index:9999;
    cursor:pointer;
    text-align:center;
}
.lightbox img {
    max-width:90%;
    max-height:90%;
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%, -50%);
    border-radius:8px;
    box-shadow:0 0 30px rgba(0,0,0,0.5);
}
.lightbox-close {
    position:absolute;
    top:20px;
    right:35px;
    font-size:40px;
    color:white;
    cursor:pointer;
    font-weight:bold;
}

/* =================== BACK TO TOP =================== */
.back-to-top {
    position:fixed;
    bottom:30px;
    right:30px;
    width:50px;
    height:50px;
    background-color:#c9a962;
    color:white;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    opacity:0;
    visibility:hidden;
    transition:all 0.3s ease;
    z-index:999;
    box-shadow:0 2px 10px rgba(0,0,0,0.2);
    border:none;
    font-size:24px;
}
.back-to-top:hover { background-color:#1a1a1a; color:#c9a962; transform:translateY(-3px); }
.back-to-top.show { opacity:1; visibility:visible; }

/* =================== CHAT WIDGET =================== */
.chat-widget {
    position:fixed;
    bottom:100px;
    right:30px;
    background:#c9a962;
    color:#fff;
    padding:14px 20px;
    border-radius:50px;
    box-shadow:0 4px 20px rgba(201,169,98,0.4);
    display:flex;
    align-items:center;
    gap:10px;
    cursor:pointer;
    z-index:999;
    font-family:var(--font-body);
    transition:all 0.3s ease;
}
.chat-widget:hover { transform:scale(1.05); background:#b8963e; }

/* =================== FOOTER (Dark) =================== */
.footer {
    background-color:#0a0a0a;
    color:#faf9f6;
    padding:80px 0 40px 0;
    font-family:var(--font-body);
}
.footer a { color:#c9a962; transition:var(--transition); }
.footer a:hover { color:#ffffff; }
.footer-content {
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:30px;
    margin-bottom:40px;
}
.footer-brand h3 {
    font-family:var(--font-heading);
    font-size:1.75rem;
    font-weight:700;
    color:#ffffff;
    margin-bottom:12px;
    position:relative;
}
.footer-brand h3::after {
    content:'';
    display:block;
    width:50px;
    height:3px;
    background-color:#c9a962;
    margin-top:8px;
    border-radius:2px;
}
.footer-brand p { font-size:0.95rem; color:#dddddd; margin-top:15px; line-height:1.8; }
.footer-links h4, .footer-social h4, .footer-contact-info h4 {
    font-family:var(--font-heading);
    font-weight:600;
    margin-bottom:15px;
    color:#ffffff;
}
.footer-links ul { list-style:none; padding:0; }
.footer-links ul li { margin-bottom:10px; }
.footer-links ul li a { font-size:0.95rem; }
.footer-social .social-icons { display:flex; gap:15px; flex-wrap:wrap; }
.footer-social .social-icons a {
    display:flex;
    align-items:center;
    justify-content:center;
    width:38px;
    height:38px;
    border-radius:50%;
    background-color:rgba(201,169,98,0.15);
    color:#c9a962;
    transition:all 0.3s ease;
}
.footer-social .social-icons a:hover { background-color:#c9a962; color:#0a0a0a; transform:translateY(-3px); }
.footer-bottom { border-top:1px solid rgba(255,255,255,0.1); padding-top:20px; text-align:center; font-size:0.85rem; color:#aaaaaa; }
.footer-contact-info .contact-details { list-style:none; padding-left:0; margin:0; }
.footer-contact-info .contact-details li {
    display:flex;
    gap:12px;
    margin-bottom:15px;
    align-items:flex-start;
}
.footer-contact-info .contact-details i { color:#c9a962; flex-shrink:0; margin-top:2px; }
.footer-contact-info .contact-details a { color:#faf9f6; text-decoration:none; font-size:0.95rem; transition:var(--transition); }
.footer-contact-info .contact-details a:hover { color:#c9a962; }

/* =================== FOOTER POPUP TOAST =================== */
.footer-popup {
    position:fixed;
    bottom:30px;
    left:50%;
    transform:translateX(-50%) scale(0.9);
    background-color:#1e2a36;
    color:#f0f3fa;
    padding:0.85rem 1.8rem;
    border-radius:60px;
    font-weight:500;
    font-size:0.95rem;
    letter-spacing:0.3px;
    box-shadow:0 15px 30px -10px rgba(0,0,0,0.3);
    backdrop-filter:blur(6px);
    z-index:1000;
    opacity:0;
    visibility:hidden;
    transition:opacity 0.2s ease, visibility 0s 0.3s, transform 0.2s ease;
    white-space:nowrap;
    pointer-events:none;
    font-family:monospace;
}
.footer-popup.show { opacity:1; visibility:visible; transform:translateX(-50%) scale(1); transition:opacity 0.2s ease, transform 0.2s ease; }

/* =================== FADE IN =================== */
.about .fade-in, .services .fade-in, .portfolio .fade-in, .testimonials .fade-in, .contact .fade-in { opacity:0; transform:translateY(40px); animation: fadeInUp 1s forwards; }
@keyframes fadeInUp { from {opacity:0; transform:translateY(40px);} to {opacity:1; transform:translateY(0);} }

/* =================== RESPONSIVE =================== */
@media(max-width:900px){
    .about .about-grid, .contact .contact-grid { grid-template-columns:1fr; gap:40px; }
    .about h2, .services h2, .portfolio h2, .testimonials h2, .contact h2 { font-size:2rem; }
    .navbar { height:70px; }
    .logo { font-size:1.2rem; gap:8px; }
    .logo-img { height:40px; }
    .nav-menu {
        position:fixed;
        top:70px;
        left:-100%;
        width:100%;
        height:calc(100vh - 70px);
        background:#ffffff;
        flex-direction:column;
        justify-content:flex-start;
        align-items:center;
        gap:30px;
        padding-top:40px;
        transition:0.4s ease;
        box-shadow:0 20px 40px rgba(0,0,0,0.08);
    }
    .nav-menu.active { left:0; }
    .hamburger { display:flex; }
    .section-title { font-size:2rem; }
    .contact .info-item h4 { font-size:1.4rem; }
    .contact .info-item p { font-size:1rem; }
    .contact .info-item i { font-size:1.5rem; }
    .nav-item .btn-primary { padding:10px 20px; font-size:1rem; }
    .footer-content { grid-template-columns:1fr; text-align:center; gap:30px; }
    .footer-links ul li { display:inline-block; margin:0 10px 10px 0; }
    .footer-social { justify-content:center; }
    .footer-contact-info { text-align:center; }
    .footer-contact-info .contact-details li { justify-content:center; }
    .chat-widget { bottom:80px; right:20px; padding:10px 16px; font-size:0.85rem; }
    .back-to-top { bottom:20px; right:20px; width:40px; height:40px; font-size:20px; }
    .gallery-grid { grid-template-columns:repeat(auto-fill,minmax(160px,1fr)); gap:15px; }
    .gallery-description { font-size:1rem; }
    .gallery-page-wrapper { padding-top:80px; }
    .section-padding { padding:80px 0; }
    .about-grid, .contact-grid { gap:60px; }
    .services-grid, .portfolio-grid, .testimonials-grid { gap:30px; }
    .section-title { margin-bottom:25px; }
    .footer-popup { font-size:0.8rem; padding:0.7rem 1.4rem; white-space:nowrap; }
    .nav-menu .nav-link { color:#1a1a1a !important; }
    .nav-menu .nav-link:hover { color:#c9a962 !important; }
    .nav-menu .btn-primary { color:#fff !important; }
}

/* =================== CAROUSEL =================== */
.carousel-wrapper {
    position: relative;
    overflow: hidden;
    margin: 0 -10px;
    padding: 10px 0;
}

.carousel-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% / 1) - 20px);
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 0 10px;
    scrollbar-width: none; /* Firefox */
}
.carousel-track::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

.carousel-slide {
    scroll-snap-align: start;
    width: 100%;
}

@media (min-width: 768px) {
    .carousel-track {
        grid-auto-columns: calc((100% / 2) - 20px);
    }
}

@media (min-width: 1024px) {
    .carousel-track {
        grid-auto-columns: calc((100% / 3) - 20px);
    }
}

@media (min-width: 1400px) {
    .carousel-track {
        grid-auto-columns: calc((100% / 4) - 20px);
    }
}

/* Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.carousel-btn:hover {
    background: rgba(0,0,0,0.85);
}
.carousel-btn.prev {
    left: 10px;
}
.carousel-btn.next {
    right: 10px;
}
.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}
.carousel-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s;
}
.carousel-dots span:hover {
    transform: scale(1.2);
}
.carousel-dots span.active {
    background: #c9a962;
    transform: scale(1.2);
}

/* Ensure service cards and portfolio cards fit inside slides */
.carousel-slide .service-card,
.carousel-slide .portfolio-card {
    width: 100%;
    margin: 0;
}
.carousel-slide .service-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
}
/* =================== PORTFOLIO CARDS (OVERLAY STYLE) =================== */
.portfolio-card {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    background: #1a1a1a;
    aspect-ratio: 4 / 5;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.portfolio-card:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.portfolio-image-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.portfolio-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.portfolio-card:hover .portfolio-image-wrapper img {
    transform: scale(1.08);
}

/* Status Badge - Top Left */
.portfolio-status-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #c9a962; /* gold */
    color: #1a1a1a;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 20px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    pointer-events: none; /* clicks pass through */
}

/* Bottom Overlay */
.portfolio-overlay-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 20px 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
    pointer-events: none;
}
.portfolio-meta {
    font-size: 0.7rem;
    opacity: 0.85;
    margin: 0;
    letter-spacing: 0.3px;
    color: rgba(255,255,255,0.9);
    text-transform: uppercase;
}
.portfolio-title {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: 1.4rem;
    font-weight: 600;
    margin: 6px 0 0 0;
    color: #fff;
    line-height: 1.2;
}

@media (max-width: 480px) { .footer-popup { font-size:0.7rem; padding:0.6rem 1.2rem; white-space:nowrap; } }