/* =========================================================
   base.css — shared by every page
   Reset · background · header/nav · section headers ·
   site footer · lightbox · accessibility helpers
   ========================================================= */

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

:root{
    --accent:#facc15;          /* overridden per page */
    --bg-dim:.45;              /* background darkness   */
    --bg-blur:2px;
    --header-h:65px;

    --main-text:#f8fafc;
    --secondary-text:#cbd5e1;
    --muted-text:#94a3b8;
    --link-color:#93c5fd;
    --glass-border:rgba(255,255,255,.25);

    --radius-ui:8px;           /* buttons, inputs, inner tiles  */
    --glass-bg:rgba(255,255,255,.06);
    --glass-blur:blur(16px);
    --glass-shadow:0 12px 35px rgba(0,0,0,.28);
    --ink-on-accent:#06121c;   /* text on a solid accent fill   */
}

html{
    scroll-behavior:smooth;
    -webkit-text-size-adjust:100%;
    text-size-adjust:100%;
}

body{
    font-family:'Poppins',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
    color:#222;
    line-height:1.6;
    font-size:14px;
    position:relative;
    overflow-x:hidden;
    background:#111;
}

body::before{
    content:"";
    position:fixed;
    inset:0;
    background:
        linear-gradient(rgba(0,0,0,var(--bg-dim)),rgba(0,0,0,var(--bg-dim))),
        url("../assets/images/background.webp") center / cover no-repeat;
    filter:blur(var(--bg-blur));
    transform:scale(1.1);
    z-index:-3;
    pointer-events:none;
}

img{
    max-width:100%;
    height:auto;
    display:block;
}

a{
    text-decoration:none;
    color:inherit;
}

button{
    font:inherit;
}

::selection{
    background:var(--accent);
    color:#111;
}

/* ---------- Accessibility helpers ---------- */

.skip-link{
    position:absolute;
    left:12px;
    top:-60px;
    z-index:10001;
    padding:8px 16px;
    border-radius:999px;
    background:#fff;
    color:#111;
    font-size:13px;
    font-weight:600;
    transition:top .2s ease;
}

.skip-link:focus{
    top:12px;
}

.sr-only{
    position:absolute;
    width:1px;
    height:1px;
    padding:0;
    margin:-1px;
    overflow:hidden;
    clip:rect(0,0,0,0);
    white-space:nowrap;
    border:0;
}

:focus-visible{
    outline:2px solid var(--accent);
    outline-offset:3px;
}

/* ---------- Header / navigation ---------- */

.site-header{
    position:sticky;
    top:0;
    z-index:1000;
    background:rgba(25,25,25,.35);
    backdrop-filter:blur(16px);
    -webkit-backdrop-filter:blur(16px);
    border-bottom:1px solid rgba(255,255,255,.3);
}

.navbar{
    max-width:1200px;
    margin:auto;
    height:var(--header-h);
    display:flex;
    align-items:center;
    justify-content:flex-end;
    padding:0 18px;
}

.nav-links{
    display:flex;
    list-style:none;
    gap:25px;
}

.nav-links a{
    font-size:16px;
    font-weight:600;
    position:relative;
    padding:4px 0;
    color:#fff;
}

.nav-links a::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-2px;
    width:0;
    height:1.5px;
    background:#fff;
    transition:width .25s ease;
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after{
    width:100%;
}

.menu-toggle{
    display:none;
    background:none;
    border:none;
    color:#fff;
    font-size:1.5rem;
    line-height:1;
    padding:4px;
    cursor:pointer;
}

/* ---------- Section headers (Profile / Portfolio / Contact) ---------- */

.section-header{
    text-align:center;
    margin-bottom:20px;
}

.section-header h1,
.section-header h2{
    font-size:1.6rem;
    font-weight:600;
    margin-bottom:8px;
    color:#fff;
}

.section-header p{
    font-size:.9rem;
    max-width:700px;
    margin:auto;
    color:#fff;
}

/* ---------- Floating back button (detail pages) ---------- */

.floating-back-btn{
    position:fixed;
    top:15px;
    right:15px;
    padding:7px 16px;
    background:#fff;
    color:#111;
    border-radius:999px;
    font-size:14px;
    font-weight:500;
    z-index:1000;
    box-shadow:0 4px 12px rgba(0,0,0,.15);
    transition:background .25s ease, color .25s ease, transform .25s ease;
}

.floating-back-btn:hover{
    background:var(--accent);
    color:#fff;
    transform:translateY(-2px);
}

/* =========================================================
   Call-to-action band — shared by every page that ends with
   a next step (replaces the per-page copies)
   ========================================================= */

.explore-services{
    position:relative;
    overflow:hidden;
    isolation:isolate;
    max-width:920px;
    margin:40px auto 50px;
    padding:35px 25px;
    text-align:center;
    background:rgba(255,255,255,.05);
    backdrop-filter:blur(14px);
    -webkit-backdrop-filter:blur(14px);
    border:1px solid rgba(255,255,255,.12);
    border:1px solid color-mix(in srgb, var(--accent) 25%, transparent);
}

.explore-services::before{
    content:"";
    position:absolute;
    z-index:-1;
    width:220px;
    height:220px;
    background:var(--accent);
    filter:blur(120px);
    opacity:.12;
    top:-90px;
    right:-90px;
    pointer-events:none;
}

.explore-services h2{
    color:#fff;
    font-size:1.35rem;
    margin:0 0 15px;
}

.explore-services p{
    color:#ddd;
    max-width:620px;
    margin:0 auto 25px;
    font-size:.85rem;
    line-height:1.7;
}

.cta-row{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:12px;
}

.explore-btn{
    display:inline-block;
    padding:12px 28px;
    color:#fff;
    border:1px solid var(--accent);
    transition:background .3s ease, color .3s ease, transform .3s ease;
}

.explore-btn:hover{
    background:var(--accent);
    color:var(--ink-on-accent);
    transform:translateY(-3px);
}

.explore-services .cta-note{
    margin:20px auto 0;
    font-size:.8rem;
}

.explore-services .cta-note a{
    color:#fff;
    text-decoration:underline;
    text-underline-offset:3px;
}

.explore-btn--solid{
    background:var(--accent);
    color:var(--ink-on-accent);
    font-weight:600;
}

/* =========================================================
   Site footer — identical on every page
   ========================================================= */

.site-footer{
    background:#0101015e;
    color:#d8d8d8;
    border-top:1px solid rgba(255,255,255,.08);
    margin-top:80px;
}

.footer-top{
    max-width:1150px;
    margin:auto;
    padding:65px 40px;
    display:grid;
    grid-template-columns:220px 1fr 1fr;
    align-items:start;
    gap:80px;
}

.footer-brand{
    display:flex;
    justify-content:flex-start;
    align-items:flex-start;
}

.footer-brand img{
    width:95px;
    height:95px;
    display:block;
}

.footer-links h2,
.footer-social h2{
    font-size:1.5rem;
    font-weight:700;
    color:#fff;
    margin-bottom:22px;
    letter-spacing:.8px;
    line-height:1.3;
}

.footer-links,
.footer-social{
    display:flex;
    flex-direction:column;
}

.footer-links a,
.footer-social a{
    display:flex;
    align-items:center;
    gap:12px;
    width:fit-content;
    color:#cfcfcf;
    font-size:1rem;
    padding:9px 0;
    transition:color .25s ease, transform .25s ease;
}

.footer-links a:hover,
.footer-social a:hover,
.footer-links a[aria-current="page"]{
    color:#fff;
}

.footer-links a:hover,
.footer-social a:hover{
    transform:translateX(6px);
}

.footer-social img{
    width:41px;
    height:41px;
    object-fit:contain;
}

.footer-bottom{
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    min-height:40px;
    padding:10px 18px;
    font-size:13px;
    color:#fff;
    letter-spacing:.3px;
}

/* =========================================================
   Lightbox — one component for every gallery on the site
   ========================================================= */

html.lb-open,
html.lb-open body{
    overflow:hidden;
}

.lightbox{
    position:fixed;
    inset:0;
    z-index:9999;
    display:flex;
    align-items:center;
    justify-content:center;
    background:rgba(0,0,0,.82);
    backdrop-filter:blur(14px);
    -webkit-backdrop-filter:blur(14px);
    opacity:0;
    visibility:hidden;
    transition:opacity .3s ease, visibility .3s ease;
    color:#fff;
    font-family:inherit;
}

.lightbox.is-open{
    opacity:1;
    visibility:visible;
}

.lb-stage{
    position:relative;
    width:100%;
    height:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:70px 90px;
    overflow:hidden;
    touch-action:pan-y pinch-zoom;
}

.lb-img{
    max-width:100%;
    max-height:100%;
    width:auto;
    height:auto;
    object-fit:contain;
    box-shadow:0 18px 45px rgba(0,0,0,.55);
    cursor:zoom-in;
    user-select:none;
    -webkit-user-select:none;
    -webkit-user-drag:none;
    transition:opacity .25s ease, transform .3s ease;
}

.lightbox.is-open .lb-img.is-ready{
    animation:lbZoomIn .35s ease;
}

.lb-img.is-loading{
    opacity:0;
}

/* Zoomed: show the image at full resolution and let the user pan */
.lightbox.is-zoomed .lb-stage{
    display:block;
    overflow:auto;
    padding:0;
    touch-action:auto;
    cursor:zoom-out;
}

.lightbox.is-zoomed .lb-img{
    max-width:none;
    max-height:none;
    margin:auto;
    cursor:zoom-out;
    box-shadow:none;
}

.lb-spinner{
    position:absolute;
    top:50%;
    left:50%;
    width:36px;
    height:36px;
    margin:-18px 0 0 -18px;
    border:3px solid rgba(255,255,255,.2);
    border-top-color:var(--accent);
    border-radius:50%;
    animation:lbSpin .8s linear infinite;
    opacity:0;
    transition:opacity .2s ease;
    pointer-events:none;
}

.lightbox.is-loading .lb-spinner{
    opacity:1;
}

.lb-btn{
    position:absolute;
    display:flex;
    align-items:center;
    justify-content:center;
    border:none;
    background:rgba(255,255,255,.08);
    color:#fff;
    cursor:pointer;
    transition:background .25s ease, color .25s ease, transform .25s ease;
    z-index:2;
}

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

.lb-close{
    top:20px;
    right:22px;
    width:45px;
    height:45px;
    font-size:32px;
    line-height:1;
}

.lb-prev,
.lb-next{
    top:50%;
    transform:translateY(-50%);
    width:55px;
    height:55px;
    font-size:26px;
}

.lb-prev{ left:25px; }
.lb-next{ right:25px; }

.lb-counter{
    position:absolute;
    top:28px;
    left:26px;
    font-size:13px;
    letter-spacing:1px;
    color:#ddd;
    z-index:2;
}

.lb-caption{
    position:absolute;
    left:50%;
    bottom:22px;
    transform:translateX(-50%);
    max-width:min(680px,90vw);
    text-align:center;
    font-size:13px;
    color:#e5e5e5;
    z-index:2;
    pointer-events:none;
}

.lb-caption:empty{
    display:none;
}

.lightbox.is-single .lb-prev,
.lightbox.is-single .lb-next,
.lightbox.is-single .lb-counter{
    display:none;
}

.lightbox.is-zoomed .lb-prev,
.lightbox.is-zoomed .lb-next,
.lightbox.is-zoomed .lb-caption{
    opacity:0;
    pointer-events:none;
}

[data-lightbox],
[data-lightbox-open]{
    cursor:zoom-in;
}

@keyframes lbZoomIn{
    from{ transform:scale(.92); opacity:0; }
    to{ transform:scale(1); opacity:1; }
}

@keyframes lbSpin{
    to{ transform:rotate(360deg); }
}

/* =========================================================
   Mobile
   ========================================================= */

@media (max-width:768px){

    :root{
        --header-h:50px;
    }

    body::before{
        background:
            linear-gradient(rgba(0,0,0,var(--bg-dim)),rgba(0,0,0,var(--bg-dim))),
            url("../assets/images/background1.webp") center / cover no-repeat;
    }

    .navbar{
        position:relative;
    }

    .menu-toggle{
        display:flex;
        align-items:center;
        justify-content:center;
    }

    .nav-links{
        display:none;
        position:absolute;
        top:55px;
        right:15px;
        flex-direction:column;
        gap:0;
        padding:10px;
        width:200px;
        background:rgba(25,25,25,.85);
        backdrop-filter:blur(18px);
        -webkit-backdrop-filter:blur(18px);
        border:1px solid rgba(255,255,255,.25);
        border-radius:12px;
        box-shadow:0 10px 30px rgba(0,0,0,.4);
    }

    .nav-links.active{
        display:flex;
        animation:menuDrop .2s ease;
    }

    .nav-links li{
        width:100%;
    }

    .nav-links a{
        display:flex;
        align-items:center;
        width:100%;
        height:45px;
        padding:0 15px;
        font-size:15px;
        color:#fff;
    }

    .nav-links a::after{
        display:none;
    }

    .nav-links a[aria-current="page"]{
        background:rgba(255,255,255,.08);
        border-radius:8px;
    }

    .section-header{
        margin-bottom:15px;
    }

    .explore-services{
        margin:30px 0 40px;
        padding:25px 18px;
    }

    .explore-services h2{
        font-size:1.15rem;
    }

    .explore-services p{
        font-size:.8rem;
    }

    .explore-btn{
        width:100%;
        text-align:center;
    }

    .section-header h1,
    .section-header h2{
        font-size:1.35rem;
    }

    .section-header p{
        font-size:.85rem;
    }

    .floating-back-btn{
        padding:6px 14px;
    }

    /* footer */

    .footer-top{
        grid-template-columns:1fr 1fr;
        gap:24px 20px;
        padding:24px 18px;
    }

    .footer-brand{
        grid-column:1 / -1;
        margin-bottom:2px;
    }

    .footer-brand img{
        width:70px;
        height:70px;
    }

    .footer-links{
        align-items:flex-start;
        padding-left:18px;
    }

    .footer-social{
        align-items:flex-start;
    }

    .footer-links h2,
    .footer-social h2{
        margin-bottom:10px;
        font-size:1.2rem;
    }

    .footer-links a,
    .footer-social a{
        padding:5px 0;
        font-size:.85rem;
    }

    .footer-social img{
        width:28px;
        height:28px;
    }

    .footer-links a:hover,
    .footer-social a:hover{
        transform:none;
    }

    .footer-bottom{
        padding:12px 18px;
        font-size:12px;
    }

    /* lightbox */

    .lb-stage{
        padding:64px 10px;
    }

    .lb-prev,
    .lb-next{
        width:42px;
        height:42px;
        font-size:20px;
    }

    .lb-prev{ left:max(5px, env(safe-area-inset-left)); }
    .lb-next{ right:max(5px, env(safe-area-inset-right)); }

    .lb-close{
        top:12px;
        right:12px;
        width:40px;
        height:40px;
        font-size:28px;
    }

    .lb-counter{
        top:22px;
        left:16px;
    }

    .lb-caption{
        bottom:16px;
        font-size:12px;
    }
}

@keyframes menuDrop{
    from{ opacity:0; transform:translateY(-6px); }
    to{ opacity:1; transform:translateY(0); }
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion:reduce){
    html{ scroll-behavior:auto; }
    *,
    *::before,
    *::after{
        animation-duration:.01ms !important;
        animation-iteration-count:1 !important;
        transition-duration:.01ms !important;
    }
}
