*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

:root{
    --bg:#ffffff;
    --surface:#ffffff;
    --surface-soft:#f7f7f3;
    --text:#111111;
    --muted:#666666;
    --border:#ececec;
    --accent:#d4af37;
    --accent-soft:#fff7d6;
    --nav:#ffffff;
    --shadow:0 18px 45px rgba(0,0,0,.08);
}

body.dark{
    --bg:#101010;
    --surface:#171717;
    --surface-soft:#202020;
    --text:#ffffff;
    --muted:#bdbdbd;
    --border:#2b2b2b;
    --nav:#151515;
    --shadow:0 18px 45px rgba(0,0,0,.35);
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Montserrat',sans-serif;
    background:var(--bg);
    color:var(--text);
    overflow-x:hidden;
    transition:background .35s ease,color .35s ease;
}

a{
    text-decoration:none;
}

.container{
    width:min(1400px,92%);
    margin:auto;
}

/* NAVBAR */

.navbar{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:110px;
    background:var(--nav);
    z-index:9999;
    border-bottom:1px solid var(--border);
    transition:.35s ease;
}

.navbar.scrolled{
    background:rgba(255,255,255,.92);
    backdrop-filter:blur(18px);
    box-shadow:0 10px 35px rgba(0,0,0,.08);
}

body.dark .navbar.scrolled{
    background:rgba(18,18,18,.92);
}

.navbar .container{
    height:110px;
    display:flex;
    align-items:center;
    justify-content:space-between;
}

.logo{
    display:flex;
    align-items:center;
}

.logo img{
    height:82px;
    width:auto;
    display:block;
}

.navigation{
    display:flex;
    align-items:center;
    gap:58px;
    margin-left:auto;
    margin-right:50px;
}

.navigation a{
    color:var(--text);
    font-size:14px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.5px;
    position:relative;
    transition:.3s ease;
}

.navigation a::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-9px;
    width:0;
    height:2px;
    background:var(--accent);
    transition:.3s ease;
}

.navigation a:hover::after,
.navigation a.active::after{
    width:100%;
}

.nav-right{
    display:flex;
    align-items:center;
    gap:18px;
}

.theme-toggle{
    width:58px;
    height:30px;
    border:none;
    border-radius:999px;
    background:#eeeeee;
    padding:4px;
    cursor:pointer;
    transition:.3s ease;
}

.toggle-circle{
    width:22px;
    height:22px;
    border-radius:50%;
    background:#111;
    display:block;
    transition:.3s ease;
}

body.dark .theme-toggle{
    background:#3a3a3a;
}

body.dark .toggle-circle{
    transform:translateX(28px);
    background:var(--accent);
}

.mobile-menu{
    display:none;
    background:none;
    border:none;
    cursor:pointer;
}

.mobile-menu span{
    display:block;
    width:28px;
    height:2px;
    background:var(--text);
    margin:6px 0;
    transition:.3s ease;
}

/* HERO */

.hero{
    position:relative;
    height:100vh;
    min-height:720px;
    overflow:hidden;
}

.hero-slider,
.slide{
    position:absolute;
    inset:0;
}

.slide{
    background-size:cover;
    background-position:center;
    opacity:0;
    transform:scale(1.04);
    transition:opacity 1.2s ease,transform 6s ease;
}

.slide.active{
    opacity:1;
    transform:scale(1);
}

.hero-overlay{
    position:absolute;
    inset:0;
    background:linear-gradient(90deg,rgba(0,0,0,.72),rgba(0,0,0,.38),rgba(0,0,0,.18));
    z-index:2;
}

.hero-content{
    position:relative;
    z-index:4;
    height:100%;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:flex-start;
    padding-top:90px;
}

.hero-subtitle{
    color:var(--accent);
    font-size:13px;
    font-weight:800;
    letter-spacing:3px;
    margin-bottom:24px;
}

.hero h1{
    color:#ffffff;
    font-size:clamp(44px,6vw,86px);
    line-height:1.02;
    max-width:820px;
    margin-bottom:28px;
}

.hero p{
    color:#f1f1f1;
    max-width:650px;
    font-size:18px;
    line-height:1.9;
    margin-bottom:42px;
}

.hero-buttons{
    display:flex;
    gap:18px;
    flex-wrap:wrap;
}

.btn-primary,
.btn-secondary{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:180px;
    height:56px;
    padding:0 30px;
    font-size:14px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.5px;
    transition:.3s ease;
}

.btn-primary{
    background:var(--accent);
    color:#111;
}

.btn-primary:hover{
    background:#111;
    color:#fff;
}

.btn-secondary{
    color:#fff;
    border:1px solid rgba(255,255,255,.7);
}

.btn-secondary:hover{
    background:#fff;
    color:#111;
}

.hero-prev,
.hero-next{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    z-index:5;
    width:54px;
    height:54px;
    border:1px solid rgba(255,255,255,.25);
    background:rgba(255,255,255,.12);
    color:#fff;
    border-radius:50%;
    font-size:22px;
    cursor:pointer;
    backdrop-filter:blur(8px);
    transition:.3s ease;
}

.hero-prev:hover,
.hero-next:hover{
    background:var(--accent);
    color:#111;
}

.hero-prev{
    left:30px;
}

.hero-next{
    right:30px;
}

.hero-dots{
    position:absolute;
    z-index:5;
    bottom:38px;
    left:50%;
    transform:translateX(-50%);
    display:flex;
    gap:12px;
}

.dot{
    width:12px;
    height:12px;
    border-radius:50%;
    background:rgba(255,255,255,.55);
    cursor:pointer;
    transition:.3s ease;
}

.dot.active{
    width:34px;
    border-radius:20px;
    background:var(--accent);
}

/* EXPERIENCE */

.experience{
    padding:95px 0;
    background:var(--bg);
}

.experience-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:24px;
}

.experience-card{
    background:var(--surface);
    border:1px solid var(--border);
    padding:42px 30px;
    text-align:center;
    box-shadow:var(--shadow);
    transition:.35s ease;
}

.experience-card:hover{
    transform:translateY(-8px);
}

.experience-icon{
    width:64px;
    height:64px;
    border-radius:50%;
    background:var(--accent-soft);
    color:#111;
    display:flex;
    align-items:center;
    justify-content:center;
    margin:0 auto 22px;
    font-size:30px;
}

body.dark .experience-icon{
    background:#28220d;
    color:var(--accent);
}

.experience-card h2{
    font-size:54px;
    color:var(--accent);
    margin-bottom:10px;
    line-height:1;
}

.experience-card p{
    color:var(--muted);
    font-weight:700;
    line-height:1.5;
}

.slide{
    will-change: opacity, transform;
    backface-visibility: hidden;
}


/* ABOUT SECTION */

.about-section{
    padding:110px 0;
    background:var(--surface-soft);
}

.about-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:70px;
    align-items:center;
}

.about-image{
    position:relative;
    min-height:560px;
    overflow:hidden;
}

.about-image::after{
    content:"";
    position:absolute;
    right:28px;
    bottom:28px;
    width:75%;
    height:75%;
    border:3px solid var(--accent);
    z-index:1;
}

.about-image img{
    position:relative;
    z-index:2;
    width:88%;
    height:560px;
    object-fit:cover;
    display:block;
    box-shadow:var(--shadow);
}

.section-label{
    display:inline-block;
    color:var(--accent);
    font-size:13px;
    font-weight:800;
    letter-spacing:2px;
    margin-bottom:18px;
}

.about-content h2{
    font-size:clamp(34px,4vw,58px);
    line-height:1.08;
    color:var(--text);
    margin-bottom:26px;
}

.about-content p{
    color:var(--muted);
    line-height:1.9;
    font-size:16px;
    margin-bottom:18px;
}

.about-points{
    display:grid;
    gap:16px;
    margin:32px 0;
}

.about-points div{
    padding:18px 20px;
    background:var(--surface);
    border-left:4px solid var(--accent);
    box-shadow:0 12px 28px rgba(0,0,0,.04);
}

.about-points strong{
    display:block;
    color:var(--text);
    font-size:17px;
    margin-bottom:6px;
}

.about-points span{
    color:var(--muted);
    font-size:14px;
}

.about-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    height:54px;
    padding:0 32px;
    background:#111;
    color:#fff;
    font-weight:800;
    text-transform:uppercase;
    font-size:14px;
    letter-spacing:.5px;
    transition:.3s ease;
}

.about-btn:hover{
    background:var(--accent);
    color:#111;
}

body.dark .about-btn{
    background:#fff;
    color:#111;
}

body.dark .about-btn:hover{
    background:var(--accent);
}

/* SERVICES SECTION */

.services-section{
    padding:110px 0;
    background:var(--bg);
}

.section-heading{
    max-width:760px;
    margin-bottom:55px;
}

.section-heading h2{
    font-size:clamp(34px,4vw,58px);
    line-height:1.08;
    color:var(--text);
    margin-bottom:18px;
}

.section-heading p{
    color:var(--muted);
    line-height:1.8;
    font-size:16px;
}

.services-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:24px;
}

.service-card{
    background:var(--surface);
    border:1px solid var(--border);
    overflow:hidden;
    box-shadow:var(--shadow);
    transition:.35s ease;
}

.service-card:hover{
    transform:translateY(-8px);
}

.service-card img{
    width:100%;
    height:280px;
    object-fit:cover;
    display:block;
    filter:saturate(.95);
    transition:.5s ease;
}

.service-card:hover img{
    transform:scale(1.05);
}

.service-content{
    padding:26px;
}

.service-content h3{
    color:var(--text);
    font-size:22px;
    margin-bottom:12px;
}

.service-content p{
    color:var(--muted);
    line-height:1.7;
    font-size:14px;
}

/* ===== HERO IMAGE IMPROVEMENT ===== */

.hero-slider{
    position:absolute;
    inset:0;
    overflow:hidden;
}

.slide{
    position:absolute;
    inset:0;
    opacity:0;
    transition:opacity 1.2s ease;
}

.slide.active{
    opacity:1;
}

.slide img{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center top;
    display:block;
    user-select:none;
    pointer-events:none;
    transform:scale(1.01);
}

@media(min-width:1700px){

.slide img{

object-position:center 8%;

}

}

@media(max-width:992px){

.slide img{

object-position:center top;

}

}


/* CLEAN DYNAMIC SECTIONS */

.inner-page{
    padding-top:110px;
}

.page-hero{
    padding:120px 0 80px;
    background:var(--surface-soft);
}

.page-hero h1{
    font-size:clamp(42px,6vw,78px);
    line-height:1.02;
    color:var(--text);
    margin:15px 0 20px;
}

.page-hero p{
    max-width:760px;
    color:var(--muted);
    line-height:1.9;
    font-size:17px;
}

.portfolio-section,
.plans-section{
    padding:110px 0;
}

.portfolio-section{
    background:var(--surface-soft);
}

.plans-section{
    background:var(--bg);
}

.portfolio-grid,
.plans-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:24px;
    margin-top:45px;
}

.portfolio-grid:empty,
.plans-grid:empty{
    display:none;
}

/* PORTFOLIO CLEAN */

.portfolio-section{
    padding:110px 0;
    background:var(--surface-soft);
}

.portfolio-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:28px;
    margin-top:45px;
}

.portfolio-grid:empty{
    display:none;
}

.portfolio-card{
    background:var(--surface);
    border:1px solid var(--border);
    box-shadow:var(--shadow);
    overflow:hidden;
}

.portfolio-card-image{
    height:390px;
    overflow:hidden;
}

.portfolio-card-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    transition:.6s ease;
}

.portfolio-card:hover img{
    transform:scale(1.06);
}

.portfolio-card-content{
    padding:26px;
}

.portfolio-card-content h3{
    color:var(--text);
    font-size:24px;
    margin-bottom:10px;
}

.portfolio-card-content p{
    color:var(--muted);
    line-height:1.7;
    margin-bottom:22px;
}

.view-project-btn{
    border:0;
    background:#111;
    color:#fff;
    padding:14px 26px;
    font-weight:800;
    cursor:pointer;
    transition:.3s ease;
}

.view-project-btn:hover{
    background:var(--accent);
    color:#111;
}

/* AMAZON STYLE PROJECT PREVIEW */

.project-preview{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.82);
    z-index:20000;
    display:none;
    align-items:center;
    justify-content:center;
    padding:30px;
}

.project-preview.active{
    display:flex;
}

.preview-box{
    width:min(1200px,96%);
    max-height:90vh;
    background:var(--surface);
    display:grid;
    grid-template-columns:1.2fr .8fr;
    overflow:hidden;
    box-shadow:0 30px 90px rgba(0,0,0,.45);
}

.preview-main{
    position:relative;
    background:#f5f5f5;
    min-height:650px;
    display:flex;
    align-items:center;
    justify-content:center;
}

body.dark .preview-main{
    background:#111;
}

.preview-main img{
    width:100%;
    height:100%;
    max-height:650px;
    object-fit:contain;
    display:block;
}

.preview-details{
    padding:34px;
    overflow-y:auto;
}

.preview-details h3{
    color:var(--text);
    font-size:32px;
    margin-bottom:15px;
}

.preview-details p{
    color:var(--muted);
    line-height:1.8;
    margin-bottom:25px;
}

.preview-thumbs{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:12px;
}

.preview-thumbs img{
    width:100%;
    height:85px;
    object-fit:cover;
    border:2px solid transparent;
    cursor:pointer;
}

.preview-thumbs img.active{
    border-color:var(--accent);
}

.preview-close{
    position:absolute;
    top:22px;
    right:28px;
    z-index:3;
    width:44px;
    height:44px;
    border:0;
    background:#fff;
    color:#111;
    font-size:28px;
    cursor:pointer;
}

.preview-arrow{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:48px;
    height:48px;
    border:0;
    background:rgba(0,0,0,.65);
    color:#fff;
    cursor:pointer;
    font-size:22px;
}

.preview-arrow.left{
    left:18px;
}

.preview-arrow.right{
    right:18px;
}

/* PLANS CLEAN */

.plans-section{
    padding:110px 0;
    background:var(--bg);
}

.plans-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:28px;
    margin-top:45px;
}

.plans-grid:empty{
    display:none;
}

.plan-card{
    background:var(--surface);
    border:1px solid var(--border);
    box-shadow:var(--shadow);
    overflow:hidden;
    transition:.35s ease;
}

.plan-card:hover{
    transform:translateY(-8px);
}

.plan-card-image{
    height:360px;
    overflow:hidden;
}

.plan-card-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    transition:.6s ease;
}

.plan-card:hover img{
    transform:scale(1.06);
}

.plan-card-content{
    padding:26px;
}

.plan-card-content span{
    display:inline-block;
    color:var(--accent);
    font-weight:800;
    font-size:13px;
    margin-bottom:10px;
}

.plan-card-content h3{
    color:var(--text);
    font-size:24px;
    margin-bottom:12px;
}

.plan-card-content p{
    color:var(--muted);
    line-height:1.7;
    margin-bottom:22px;
}

.request-plan-btn{
    border:0;
    background:#111;
    color:#fff;
    padding:14px 26px;
    font-weight:800;
    cursor:pointer;
    transition:.3s ease;
}

.request-plan-btn:hover{
    background:var(--accent);
    color:#111;
}

.plan-request-modal{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.78);
    z-index:20000;
    display:none;
    align-items:center;
    justify-content:center;
    padding:24px;
}

.plan-request-modal.active{
    display:flex;
}

.plan-modal-box{
    width:min(520px,96%);
    background:var(--surface);
    padding:36px;
    box-shadow:0 30px 90px rgba(0,0,0,.42);
}

.plan-modal-box h3{
    font-size:32px;
    color:var(--text);
    margin-bottom:10px;
}

.plan-modal-box p{
    color:var(--muted);
    line-height:1.7;
    margin-bottom:24px;
}

.plan-request-form{
    display:grid;
    gap:14px;
}

.plan-request-form input,
.plan-request-form textarea{
    width:100%;
    border:1px solid var(--border);
    background:var(--surface-soft);
    color:var(--text);
    padding:15px;
    font-family:inherit;
    outline:none;
}

.plan-request-form input:focus,
.plan-request-form textarea:focus{
    border-color:var(--accent);
}

.plan-request-form button{
    border:0;
    background:var(--accent);
    color:#111;
    height:52px;
    font-weight:900;
    cursor:pointer;
}

.plan-modal-close{
    position:absolute;
    top:22px;
    right:28px;
    width:44px;
    height:44px;
    border:0;
    background:#fff;
    color:#111;
    font-size:28px;
    cursor:pointer;
}

/* ==========================
GALLERY
========================== */

.gallery-section{

padding:110px 0;

background:var(--surface-soft);

}

.gallery-grid{

display:grid;

grid-template-columns:repeat(3,1fr);

gap:24px;

margin-top:45px;

}

.gallery-grid:empty{

display:none;

}

.gallery-card{

position:relative;

overflow:hidden;

cursor:pointer;

background:var(--surface);

box-shadow:var(--shadow);

}

.gallery-card img{

width:100%;

height:320px;

object-fit:cover;

display:block;

transition:.5s;

}

.gallery-card:hover img{

transform:scale(1.06);

}

.gallery-button{

margin-top:45px;

text-align:center;

}

/* LIGHTBOX */

.gallery-lightbox{

position:fixed;

inset:0;

background:rgba(0,0,0,.92);

display:none;

align-items:center;

justify-content:center;

z-index:30000;

}

.gallery-lightbox.active{

display:flex;

}

.gallery-lightbox img{

max-width:92%;

max-height:88vh;

object-fit:contain;

}

.gallery-close{

position:absolute;

top:25px;

right:30px;

width:45px;

height:45px;

border:0;

background:#fff;

font-size:28px;

cursor:pointer;

}

.gallery-arrow{

position:absolute;

top:50%;

transform:translateY(-50%);

width:52px;

height:52px;

border:0;

background:rgba(255,255,255,.18);

color:#fff;

font-size:22px;

cursor:pointer;

}

.gallery-arrow.left{

left:25px;

}

.gallery-arrow.right{

right:25px;

}


/* CONTACT */

.contact-section{
    padding:110px 0;
    background:var(--bg);
}

.contact-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:70px;
    align-items:start;
}

.contact-info h2{
    font-size:clamp(34px,4vw,58px);
    line-height:1.08;
    margin-bottom:30px;
    color:var(--text);
}

.contact-list{
    display:grid;
    gap:20px;
}

.contact-list div{
    padding:22px;
    background:var(--surface);
    border:1px solid var(--border);
    box-shadow:var(--shadow);
}

.contact-list strong{
    display:block;
    color:var(--accent);
    margin-bottom:8px;
}

.contact-list a,
.contact-list p{
    color:var(--text);
    line-height:1.7;
}

.contact-form{
    background:var(--surface);
    border:1px solid var(--border);
    box-shadow:var(--shadow);
    padding:34px;
    display:grid;
    gap:16px;
}

.contact-form input,
.contact-form textarea{
    width:100%;
    border:1px solid var(--border);
    background:var(--surface-soft);
    color:var(--text);
    padding:16px;
    font-family:inherit;
    outline:none;
}

.contact-form input:focus,
.contact-form textarea:focus{
    border-color:var(--accent);
}

.contact-form button{
    height:54px;
    border:0;
    background:#111;
    color:#fff;
    font-weight:900;
    cursor:pointer;
}

.contact-form button:hover{
    background:var(--accent);
    color:#111;
}

.contact-cta{
    padding:90px 0;
    background:var(--bg);
}

.contact-cta-box{
    background:var(--surface);
    border:1px solid var(--border);
    box-shadow:var(--shadow);
    padding:48px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:30px;
}

.contact-cta h2{
    font-size:clamp(30px,4vw,52px);
    color:var(--text);
    margin:12px 0;
}

.contact-cta p{
    color:var(--muted);
    line-height:1.8;
}

/* CONTACT MAP UPDATE */

.contact-map-side{
    display:grid;
    gap:22px;
}

.map-box{
    width:100%;
    height:430px;
    overflow:hidden;
    border:1px solid var(--border);
    box-shadow:var(--shadow);
    background:var(--surface);
}

.map-box iframe{
    width:100%;
    height:100%;
    border:0;
    display:block;
}

.contact-socials{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:12px;
}

.contact-socials a{
    display:flex;
    align-items:center;
    gap:12px;
    padding:15px 16px;
    background:var(--surface);
    border:1px solid var(--border);
    color:var(--text);
    font-weight:700;
    box-shadow:0 10px 25px rgba(0,0,0,.04);
    transition:.3s ease;
}

.contact-socials a:hover{
    background:var(--accent);
    color:#111;
}

.contact-socials i{
    font-size:20px;
}

/* CONTACT LAYOUT UPDATE */

.contact-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:40px;
    align-items:stretch;
}

.contact-map-side,
.contact-form{
    height:100%;
}

.map-box{
    height:500px;
}

.contact-form{
    display:flex;
    flex-direction:column;
    justify-content:center;
    min-height:500px;
}

.contact-socials{
    margin-top:20px;
}

.contact-socials a{
    height:58px;
}


/* CONTACT LAYOUT UPDATE */

.contact-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:40px;
    align-items:stretch;
}

.contact-map-side,
.contact-form{
    height:100%;
}

.map-box{
    height:500px;
}

.contact-form{
    display:flex;
    flex-direction:column;
    justify-content:center;
    min-height:500px;
}

.contact-socials{
    margin-top:20px;
}

.contact-socials a{
    height:58px;
}


/* FOOTER */

.footer{

background:#0d0d0d;

color:#dcdcdc;

margin-top:120px;

}

.footer-grid{

display:grid;

grid-template-columns:1.5fr 1fr 1fr 1fr;

gap:50px;

padding:90px 0 60px;

}

.footer-logo{

height:80px;

margin-bottom:20px;

}

.footer-column h4{

color:#fff;

margin-bottom:25px;

font-size:20px;

}

.footer-column p{

line-height:1.9;

color:#bfbfbf;

margin-bottom:14px;

}

.footer-column a{

display:block;

color:#bfbfbf;

margin-bottom:14px;

transition:.3s;

}

.footer-column a:hover{

color:var(--accent);

}

.footer-socials{

display:flex;

gap:14px;

margin-top:28px;

}

.footer-socials a{

width:46px;

height:46px;

display:flex;

align-items:center;

justify-content:center;

border:1px solid rgba(255,255,255,.12);

font-size:18px;

}

.footer-socials a:hover{

background:var(--accent);

color:#111;

}

.footer-bottom{

border-top:1px solid rgba(255,255,255,.08);

padding:24px 0;

}

.footer-bottom-content{

display:flex;

justify-content:space-between;

align-items:center;

gap:20px;

}

.footer-bottom a{

color:var(--accent);

font-weight:700;

}


.footer-column span{
    display:block;
    color:#bfbfbf;
    margin-bottom:14px;
}

.footer-logo{
    height:86px;
    width:auto;
    object-fit:contain;
    background:#fff;
    padding:8px;
}

.clients-section{
    padding:100px 0;
    background:var(--bg);
    overflow:hidden;
}

.clients-carousel{
    margin-top:45px;
    overflow:hidden;
    width:100%;
}

.clients-track{
    display:flex;
    align-items:center;
    gap:34px;
    width:max-content;
    animation:clientSlide 28s linear infinite;
}

.clients-track:empty{
    display:none;
}

.client-logo-card{
    width:190px;
    height:110px;
    background:var(--surface);
    border:1px solid var(--border);
    box-shadow:var(--shadow);
    display:flex;
    align-items:center;
    justify-content:center;
    padding:24px;
    flex:0 0 auto;
}

.client-logo-card img{
    max-width:100%;
    max-height:70px;
    object-fit:contain;
    filter:grayscale(100%);
    opacity:.85;
    transition:.3s ease;
}

.client-logo-card:hover img{
    filter:grayscale(0);
    opacity:1;
}

@keyframes clientSlide{
    from{
        transform:translateX(0);
    }
    to{
        transform:translateX(-50%);
    }
}

/* FRONTEND UPLOAD GRID: 6 PC, 4 TABLET, 2 MOBILE */

.portfolio-grid,
.plans-grid,
.gallery-grid{
    grid-template-columns:repeat(6,1fr) !important;
    gap:18px !important;
}

.portfolio-card-image,
.plan-card-image{
    height:210px !important;
}

.gallery-card img{
    height:210px !important;
}

.portfolio-card-content,
.plan-card-content{
    padding:18px !important;
}

.portfolio-card-content h3,
.plan-card-content h3{
    font-size:17px !important;
}

.portfolio-card-content p,
.plan-card-content p{
    font-size:13px !important;
    line-height:1.6;
}

.view-project-btn,
.request-plan-btn{
    padding:11px 15px !important;
    font-size:12px !important;
}

@media(max-width:1200px){
    .portfolio-grid,
    .plans-grid,
    .gallery-grid{
        grid-template-columns:repeat(4,1fr) !important;
    }
}

@media(max-width:768px){
    .portfolio-grid,
    .plans-grid,
    .gallery-grid{
        grid-template-columns:repeat(2,1fr) !important;
        gap:12px !important;
    }

    .portfolio-card-image,
    .plan-card-image,
    .gallery-card img{
        height:150px !important;
    }

    .portfolio-card-content,
    .plan-card-content{
        padding:13px !important;
    }

    .portfolio-card-content h3,
    .plan-card-content h3{
        font-size:14px !important;
    }

    .portfolio-card-content p,
    .plan-card-content p{
        display:none;
    }
}

.project-preview{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.88);
    z-index:99999;
    display:none;
    align-items:center;
    justify-content:center;
    padding:24px;
}

.project-preview.active{
    display:flex;
}

.preview-box{
    width:min(1200px,96vw);
    max-height:90vh;
    background:var(--surface);
    display:grid;
    grid-template-columns:1.2fr .8fr;
    overflow:hidden;
}

.preview-main{
    position:relative;
    background:#111;
    min-height:620px;
    display:flex;
    align-items:center;
    justify-content:center;
}

.preview-main img{
    max-width:100%;
    max-height:620px;
    object-fit:contain;
}

.preview-details{
    padding:32px;
    overflow-y:auto;
}

.preview-thumbs{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:10px;
    margin-top:20px;
}

.preview-thumbs img{
    width:100%;
    height:80px;
    object-fit:cover;
    cursor:pointer;
    border:2px solid transparent;
}

.preview-thumbs img.active{
    border-color:var(--accent);
}

.preview-close,
.preview-arrow{
    position:absolute;
    z-index:2;
    border:0;
    cursor:pointer;
}

.preview-close{
    top:18px;
    right:22px;
    width:44px;
    height:44px;
    background:#fff;
    color:#111;
    font-size:28px;
}

.preview-arrow{
    top:50%;
    transform:translateY(-50%);
    width:48px;
    height:48px;
    background:rgba(255,255,255,.2);
    color:#fff;
    font-size:22px;
}

.preview-arrow.left{left:16px}
.preview-arrow.right{right:16px}

@media(max-width:900px){
    .preview-box{
        grid-template-columns:1fr;
        overflow-y:auto;
    }

    .preview-main{
        min-height:360px;
    }

    .preview-main img{
        max-height:360px;
    }
}

/* FORCE MOBILE DEFAULT LIGHT MODE */
@media(max-width:768px){
    body:not(.dark){
        background:#ffffff !important;
        color:#111111 !important;
    }

    body:not(.dark) .navbar,
    body:not(.dark) .navigation{
        background:#ffffff !important;
    }

    body:not(.dark) .navigation a{
        color:#111111 !important;
    }

    body:not(.dark) .mobile-menu span{
        background:#111111 !important;
    }

    body:not(.dark) .theme-toggle{
        background:#efefef !important;
    }

    body:not(.dark) .toggle-circle{
        background:#111111 !important;
        transform:translateX(0) !important;
    }
}

.clients-track:empty{
    display:none !important;
}

.clients-track:hover{
    animation-play-state:paused;
}

/* ==========================================================
   TMK PORTFOLIO + GALLERY FINESSE — 2026
   Final authoritative frontend grid/lightbox layer
   ========================================================== */

.portfolio-grid,
.gallery-grid{
    display:grid !important;
    grid-template-columns:repeat(5,minmax(0,1fr)) !important;
    gap:18px !important;
    align-items:stretch;
}

.portfolio-card,
.gallery-card{
    min-width:0;
    border-radius:10px;
    overflow:hidden;
}

.portfolio-card{
    display:flex;
    flex-direction:column;
    height:100%;
}

.portfolio-card-image{
    position:relative;
    width:100%;
    height:auto !important;
    aspect-ratio:4 / 3;
    overflow:hidden;
    background:#eee;
}

.portfolio-card-image img,
.gallery-card img{
    width:100%;
    height:100% !important;
    object-fit:cover;
    display:block;
}

.portfolio-card-content{
    display:flex;
    flex-direction:column;
    flex:1;
    padding:16px !important;
}

.portfolio-card-content h3{
    font-size:17px !important;
    line-height:1.3;
}

.portfolio-card-content p{
    font-size:13px !important;
    line-height:1.55;
}

.portfolio-card-content .view-project-btn{
    margin-top:auto;
    min-height:44px;
}

.gallery-card{
    position:relative;
    aspect-ratio:4 / 3;
    cursor:pointer;
    touch-action:manipulation;
}

.gallery-card img{
    position:absolute;
    inset:0;
}

/* Project preview must sit above the complete website */
.project-preview{
    position:fixed !important;
    inset:0 !important;
    width:100% !important;
    height:100dvh !important;
    z-index:100000 !important;
    padding:20px !important;
    background:rgba(0,0,0,.92) !important;
    overscroll-behavior:contain;
}

.project-preview.active{
    display:flex !important;
}

/* Gallery fullscreen viewer */
.gallery-lightbox{
    position:fixed !important;
    inset:0 !important;
    width:100% !important;
    height:100dvh !important;
    z-index:100000 !important;
    padding:64px 76px 34px !important;
    background:rgba(0,0,0,.94) !important;
    overscroll-behavior:contain;
    touch-action:pan-y;
}

.gallery-lightbox.active{
    display:flex !important;
}

.gallery-lightbox img{
    display:block;
    width:auto;
    height:auto;
    max-width:100% !important;
    max-height:calc(100dvh - 100px) !important;
    object-fit:contain;
    user-select:none;
    -webkit-user-drag:none;
}

.gallery-close{
    position:absolute !important;
    top:18px !important;
    right:18px !important;
    width:48px !important;
    height:48px !important;
    z-index:5;
    border-radius:50%;
    display:grid;
    place-items:center;
}

.gallery-arrow{
    display:grid !important;
    place-items:center;
    width:52px !important;
    height:52px !important;
    border-radius:50%;
    z-index:5;
    touch-action:manipulation;
}

.gallery-arrow.left{
    left:18px !important;
}

.gallery-arrow.right{
    right:18px !important;
}

/* Laptop */
@media (max-width:1300px){
    .portfolio-grid,
    .gallery-grid{
        grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    }
}

/* Tablet */
@media (max-width:1000px){
    .portfolio-grid,
    .gallery-grid{
        grid-template-columns:repeat(3,minmax(0,1fr)) !important;
        gap:16px !important;
    }
}

/* Phones */
@media (max-width:700px){
    .portfolio-section,
    .gallery-section{
        padding:60px 0 !important;
    }

    .portfolio-grid,
    .gallery-grid{
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
        gap:10px !important;
        margin-top:28px !important;
    }

    .portfolio-card-image,
    .gallery-card{
        aspect-ratio:1 / 1;
    }

    .portfolio-card-content{
        padding:11px !important;
    }

    .portfolio-card-content h3{
        font-size:14px !important;
        margin-bottom:7px;
    }

    .portfolio-card-content p{
        display:none !important;
    }

    .view-project-btn{
        width:100%;
        min-height:42px;
        padding:9px 8px !important;
        font-size:12px !important;
    }

    .project-preview{
        padding:8px !important;
        align-items:stretch !important;
    }

    .preview-box{
        width:100% !important;
        max-width:none !important;
        height:calc(100dvh - 16px) !important;
        max-height:none !important;
        overflow-y:auto !important;
        grid-template-columns:1fr !important;
    }

    .preview-main{
        min-height:0 !important;
        height:55dvh !important;
    }

    .preview-main img{
        width:100%;
        height:100%;
        max-height:none !important;
        object-fit:contain;
    }

    .preview-details{
        padding:18px !important;
    }

    .gallery-lightbox{
        padding:60px 8px 22px !important;
    }

    .gallery-lightbox img{
        max-width:100% !important;
        max-height:calc(100dvh - 90px) !important;
    }

    /* Keep controls available on phones */
    .gallery-arrow{
        display:grid !important;
        width:46px !important;
        height:46px !important;
        top:auto !important;
        bottom:18px !important;
        transform:none !important;
        background:rgba(0,0,0,.65) !important;
        border:1px solid rgba(255,255,255,.35) !important;
    }

    .gallery-arrow.left{
        left:calc(50% - 58px) !important;
    }

    .gallery-arrow.right{
        right:calc(50% - 58px) !important;
    }
}

/* Very narrow devices */
@media (max-width:380px){
    .portfolio-grid,
    .gallery-grid{
        grid-template-columns:1fr !important;
    }

    .portfolio-card-image,
    .gallery-card{
        aspect-ratio:4 / 3;
    }
}

/* Touch devices should not depend on hover */
@media (hover:none){
    .portfolio-card:hover img,
    .gallery-card:hover img{
        transform:none;
    }
}



/* ==========================================================
   TMK PROFESSIONAL SECTION RHYTHM + SAFE PROJECT OVERLAYS
   ========================================================== */

/*
 * Inner-page headings should introduce content, not occupy almost
 * an entire viewport before the actual section begins.
 */
.inner-page .page-hero{
    min-height:0 !important;
    height:auto !important;
    padding-top:72px !important;
    padding-bottom:54px !important;
}

.inner-page .page-hero .container{
    min-height:0 !important;
    height:auto !important;
}

.inner-page .page-hero h1{
    margin-top:18px !important;
    margin-bottom:20px !important;
}

.inner-page .page-hero p{
    margin-top:0 !important;
    margin-bottom:0 !important;
    max-width:850px;
}

/*
 * Bring Portfolio / Gallery content naturally underneath the intro.
 */
.inner-page + .portfolio-section,
.inner-page + .gallery-section{
    padding-top:42px !important;
}

.portfolio-section,
.gallery-section{
    min-height:0 !important;
}

/*
 * The grids themselves should not introduce artificial vertical space.
 */
.portfolio-grid,
.gallery-grid{
    margin-top:30px !important;
}

/*
 * Portfolio cards:
 * overlays belong to the IMAGE only visually.
 * They must never cover or intercept the View Project CTA.
 */
.portfolio-card{
    position:relative;
    isolation:isolate;
}

.portfolio-card-image{
    position:relative;
    z-index:1;
}

.portfolio-card-content{
    position:relative;
    z-index:20;
    background:var(--surface);
}

/*
 * Both historical overlay class names are neutralised here.
 * If either script adds one, it cannot block buttons or links.
 */
.tmk-project-name-overlay,
.tmk-project-title-overlay{
    pointer-events:none !important;
    z-index:5 !important;
}

/*
 * If an overlay was appended to the entire card, constrain its visible
 * presentation to the image region rather than allowing a full-card mask.
 */
.portfolio-card > .tmk-project-name-overlay,
.portfolio-card > .tmk-project-title-overlay{
    position:absolute !important;
    top:0 !important;
    left:0 !important;
    right:0 !important;
    bottom:auto !important;
    width:100% !important;
    height:auto !important;
    aspect-ratio:4 / 3;
    display:flex !important;
    align-items:flex-end !important;
    justify-content:flex-start !important;
    padding:16px !important;
    background:linear-gradient(
        to top,
        rgba(0,0,0,.72) 0%,
        rgba(0,0,0,.22) 48%,
        rgba(0,0,0,0) 75%
    ) !important;
    box-sizing:border-box;
    overflow:hidden;
}

/*
 * Avoid a giant black title panel.
 */
.portfolio-card > .tmk-project-name-overlay span,
.portfolio-card > .tmk-project-title-overlay span{
    display:block;
    max-width:100%;
    color:#fff !important;
    font-size:16px !important;
    font-weight:800 !important;
    line-height:1.25 !important;
    text-shadow:0 2px 8px rgba(0,0,0,.45);
}

/*
 * CTA always wins the stacking context.
 */
.view-project-btn{
    position:relative !important;
    z-index:50 !important;
    pointer-events:auto !important;
}

/*
 * Desktop section proportions.
 */
@media (min-width:1201px){
    .inner-page .page-hero{
        padding-top:65px !important;
        padding-bottom:45px !important;
    }

    .inner-page .page-hero h1{
        font-size:clamp(54px,5.3vw,92px) !important;
        line-height:1.02 !important;
    }
}

/*
 * Tablet
 */
@media (max-width:1000px){
    .inner-page .page-hero{
        padding-top:55px !important;
        padding-bottom:40px !important;
    }

    .inner-page .page-hero h1{
        font-size:clamp(42px,8vw,68px) !important;
    }
}

/*
 * Phone
 */
@media (max-width:700px){
    .inner-page .page-hero{
        padding-top:40px !important;
        padding-bottom:30px !important;
    }

    .inner-page .page-hero h1{
        margin-top:12px !important;
        margin-bottom:14px !important;
        font-size:clamp(38px,12vw,54px) !important;
        line-height:1.02 !important;
    }

    .inner-page .page-hero p{
        font-size:16px !important;
        line-height:1.6 !important;
    }

    .portfolio-section,
    .gallery-section{
        padding-top:32px !important;
    }

    .portfolio-grid,
    .gallery-grid{
        margin-top:22px !important;
    }

    .portfolio-card > .tmk-project-name-overlay,
    .portfolio-card > .tmk-project-title-overlay{
        padding:10px !important;
        aspect-ratio:1 / 1;
    }

    .portfolio-card > .tmk-project-name-overlay span,
    .portfolio-card > .tmk-project-title-overlay span{
        font-size:13px !important;
    }
}



/* ==========================================================
   TMK GLOBAL COMPACT CONTENT RHYTHM
   Remove excessive dead vertical space throughout inner pages
   ========================================================== */

/* ---------- INNER PAGE INTRO / PAGE HERO ---------- */

.inner-page{
    min-height:0 !important;
}

.inner-page .page-hero,
.page-hero{
    min-height:0 !important;
    height:auto !important;
    padding-top:42px !important;
    padding-bottom:32px !important;
    margin-bottom:0 !important;
}

.page-hero .container,
.inner-page .page-hero .container{
    min-height:0 !important;
    height:auto !important;
    padding-top:0 !important;
    padding-bottom:0 !important;
}

.page-hero .section-label{
    margin-bottom:12px !important;
}

.page-hero h1{
    margin-top:0 !important;
    margin-bottom:16px !important;
    line-height:1.02 !important;
}

.page-hero p{
    margin-top:0 !important;
    margin-bottom:0 !important;
    line-height:1.6 !important;
}


/* ---------- MAIN CONTENT SECTIONS ---------- */

.portfolio-section,
.gallery-section,
.plans-section,
.services-section,
.about-section,
.contact-section{
    min-height:0 !important;
    height:auto !important;
    padding-top:38px !important;
    padding-bottom:70px !important;
}


/* ---------- SECTION HEADERS ---------- */

.section-header{
    margin-bottom:28px !important;
}

.section-header .section-label{
    margin-bottom:10px !important;
}

.section-header h1,
.section-header h2{
    margin-top:0 !important;
    margin-bottom:14px !important;
}

.section-header p{
    margin-top:0 !important;
    margin-bottom:0 !important;
}


/* ---------- GRIDS ---------- */

.portfolio-grid,
.gallery-grid,
.plans-grid,
.services-grid{
    margin-top:24px !important;
}


/*
 * Critical:
 * Some existing rules may be creating a large gap through
 * justify-content, minimum heights or oversized padding.
 */
.portfolio-section > .container,
.gallery-section > .container,
.plans-section > .container,
.services-section > .container,
.contact-section > .container{
    min-height:0 !important;
    height:auto !important;
}


/* ---------- ABOUT PAGE ---------- */

.about-section{
    padding-top:42px !important;
}

.about-section .container{
    min-height:0 !important;
}

.about-grid{
    margin-top:30px !important;
    align-items:start !important;
}


/* ---------- DESKTOP TYPOGRAPHY ---------- */

@media (min-width:1201px){

    .page-hero{
        padding-top:38px !important;
        padding-bottom:28px !important;
    }

    .page-hero h1{
        font-size:clamp(52px,5vw,82px) !important;
    }

    .portfolio-section,
    .gallery-section,
    .plans-section,
    .services-section,
    .about-section{
        padding-top:32px !important;
        padding-bottom:65px !important;
    }

    .portfolio-grid,
    .gallery-grid,
    .plans-grid,
    .services-grid{
        margin-top:22px !important;
    }
}


/* ---------- TABLET ---------- */

@media (max-width:1000px){

    .page-hero{
        padding-top:34px !important;
        padding-bottom:26px !important;
    }

    .portfolio-section,
    .gallery-section,
    .plans-section,
    .services-section,
    .about-section,
    .contact-section{
        padding-top:30px !important;
        padding-bottom:55px !important;
    }
}


/* ---------- MOBILE ---------- */

@media (max-width:700px){

    .page-hero{
        padding-top:28px !important;
        padding-bottom:22px !important;
    }

    .page-hero .section-label{
        margin-bottom:9px !important;
    }

    .page-hero h1{
        margin-bottom:12px !important;
        font-size:clamp(36px,11vw,50px) !important;
    }

    .page-hero p{
        font-size:15px !important;
        line-height:1.55 !important;
    }

    .portfolio-section,
    .gallery-section,
    .plans-section,
    .services-section,
    .about-section,
    .contact-section{
        padding-top:24px !important;
        padding-bottom:45px !important;
    }

    .portfolio-grid,
    .gallery-grid,
    .plans-grid,
    .services-grid{
        margin-top:18px !important;
    }

    .section-header{
        margin-bottom:20px !important;
    }
}

