/* =========================================================
   RXL Design - Clean Sci-Fi Portfolio CSS
   ---------------------------------------------------------
   Structure:
   01. Reset & Design Tokens
   02. Global Base / Background / Typography
   03. Utilities / Motion / Particles
   04. Navbar
   05. Buttons
   06. Hero
   07. About
   08. Section Headings / Dividers
   09. Portfolio Cards / Grid
   10. Project Detail Pages
   11. 3D Model Viewer
   12. Contact
   13. Legal Page
   14. Footer
   15. Responsive / Mobile Controls
   ========================================================= */


/* =========================================================
   01. RESET & DESIGN TOKENS
   ========================================================= */

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

:root{
    /* Core colors */
    --bg:#07080d;
    --panel:#10121a;
    --panel-dark:rgba(8,9,14,.92);
    --panel-light:rgba(18,20,30,.92);

    /* Sci-Fi Accent */
    --orange:#ff9b3d;
    --orange-soft:rgba(255,155,61,.22);
    --orange-line:rgba(255,155,61,.16);
    --orange-glow:rgba(255,155,61,.22);

    /* Text */
    --text:#f5f5f5;
    --muted:#9ca3af;
    --body-text:#b0b0b0;

    /* Layout */
    --page-padding-x:60px;
    --section-padding-y:100px;
    --radius-card:24px;
    --radius-panel:28px;

    /* Desktop text sizes */
    --brand-size:1.4rem;
    --nav-size:1rem;
    --body-size:1.1rem;
    --card-text-size:1.15rem;
    --project-text-size:1.2rem;
    --about-text-size:1.15rem;
    --button-size:1rem;

    /* Mobile text sizes - easy to edit */
    --mobile-brand-size:1.65rem;
    --mobile-nav-size:1.1rem;
    --mobile-body-size:1.2rem;
    --mobile-card-text-size:1.25rem;
    --mobile-project-text-size:1.25rem;
    --mobile-about-text-size:1.25rem;
    --mobile-button-size:1.1rem;
}


/* =========================================================
   02. GLOBAL BASE / BACKGROUND / TYPOGRAPHY
   ========================================================= */

html,
body{
    min-height:100%;
    scroll-behavior:smooth;
}

body{
    background:
        radial-gradient(circle at 20% 10%, rgba(255,155,61,.10), transparent 30%),
        radial-gradient(circle at 80% 20%, rgba(80,120,255,.06), transparent 30%),
        var(--bg);
    color:var(--text);
    font-family:'Rajdhani', Arial, sans-serif;
    overflow-x:hidden;
}

body::before{
    content:'';
    position:fixed;
    inset:0;
    background:
        radial-gradient(circle at 20% 20%, rgba(255,155,61,.05), transparent 28%),
        radial-gradient(circle at 80% 30%, rgba(64,120,255,.04), transparent 28%);
    animation:ambientMove 30s ease-in-out infinite alternate;
    pointer-events:none;
    z-index:-1;
    opacity:.7;
}

h1,
h2,
h3,
.brand,
.section-label{
    font-family:'Orbitron', sans-serif;
    letter-spacing:.04em;
}

p{
    color:var(--body-text);
    line-height:1.8;
}

a{
    color:inherit;
}


/* Keeps content above background particle layer */
.navbar,
.hero,
.about-section,
.section-heading,
.portfolio-grid,
.portfolio-more,
.portfolio-page-header,
.project-hero,
.contact-page,
.legal-page,
.footer{
    position:relative;
    z-index:1;
}


/* =========================================================
   03. UTILITIES / MOTION / PARTICLES
   ========================================================= */

@keyframes ambientMove{
    0%{
        transform:translate3d(0,0,0) scale(1);
    }

    100%{
        transform:translate3d(-40px,-30px,0) scale(1.08);
    }
}

.bg-particles{
    position:fixed;
    inset:0;
    overflow:hidden;
    pointer-events:none;
    z-index:0;
}

.bg-particles::before,
.bg-particles::after{
    content:'';
    position:absolute;
    inset:-20%;
    background-image:
        radial-gradient(rgba(255,155,61,.16) 1px, transparent 1px),
        radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
    background-size:
        180px 180px,
        240px 240px;
    animation:particlesFloat 30s linear infinite;
    opacity:.35;
}

.bg-particles::after{
    animation-duration:45s;
    opacity:.18;
    transform:scale(1.2);
}

@keyframes particlesFloat{
    from{
        transform:translateY(0);
    }

    to{
        transform:translateY(-120px);
    }
}

.fade-up{
    opacity:0;
    transform:translateY(30px);
    animation:fadeUp .9s ease forwards;
}

.fade-delay-1{
    animation-delay:.12s;
}

.fade-delay-2{
    animation-delay:.24s;
}

.fade-delay-3{
    animation-delay:.36s;
}

@keyframes fadeUp{
    to{
        opacity:1;
        transform:translateY(0);
    }
}

.section-label{
    color:var(--orange);
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:2px;
    font-size:.8rem;
}

.card-link{
    display:block;
    width:fit-content;
    max-width:100%;
    color:inherit;
    text-decoration:none;
}


/* Shared sci-fi panels */
.about-content,
.project-panel,
.contact-card,
.card{
    background:linear-gradient(145deg, var(--panel-light), var(--panel-dark));
    border:1px solid var(--orange-line);
    box-shadow:
        0 0 30px rgba(255,155,61,.08),
        inset 0 0 20px rgba(255,255,255,.02);
    backdrop-filter:blur(12px);
}

.card::before,
.project-panel::before{
    content:'';
    position:absolute;
    inset:0;
    background:linear-gradient(135deg, rgba(255,255,255,.04), transparent 35%);
    opacity:0;
    transition:opacity .35s ease;
    pointer-events:none;
}

.card:hover::before,
.project-panel:hover::before{
    opacity:1;
}

.project-panel::after,
.card::after,
.model-viewer::after{
    content:'';
    position:absolute;
    inset:0;
    background:
        repeating-linear-gradient(
            0deg,
            rgba(255,255,255,.015) 0px,
            rgba(255,255,255,.015) 1px,
            transparent 1px,
            transparent 3px
        );
    opacity:.18;
    pointer-events:none;
    mix-blend-mode:soft-light;
}


/* =========================================================
   04. NAVBAR
   ========================================================= */

.navbar{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    padding:24px 60px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    z-index:100;
    background:rgba(7,8,13,.72);
    backdrop-filter:blur(18px);
    border-bottom:1px solid var(--orange-line);
}

.brand{
    color:var(--orange);
    font-size:var(--brand-size);
    font-weight:800;
    font-family:'Orbitron', sans-serif;
    letter-spacing:.04em;
    text-decoration:none;
}

.brand:hover,
.brand:visited,
.brand:active{
    color:var(--orange);
    text-decoration:none;
}

.nav-links{
    display:flex;
    gap:30px;
}

.nav-links a{
    color:var(--text);
    text-decoration:none;
    font-size:var(--nav-size);
    transition:color .25s ease;
}

.nav-links a:hover{
    color:var(--orange);
}


/* =========================================================
   05. BUTTONS
   ========================================================= */

.btn,
.project-back-btn{
    position:relative;
    overflow:hidden;
}

.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:14px 24px;
    border-radius:999px;
    text-decoration:none;
    font-size:var(--button-size);
    font-weight:700;
    transition:
        transform .35s ease,
        box-shadow .35s ease,
        border-color .35s ease,
        background .35s ease;
}

.btn.primary{
    background:var(--orange);
    color:#0b0b0f;
}

.btn.secondary{
    border:1px solid rgba(255,155,61,.4);
    color:var(--text);
}

.btn:hover{
    transform:translateY(-2px) scale(1.02);
}

.btn::before,
.project-back-btn::before{
    content:'';
    position:absolute;
    top:0;
    left:-120%;
    width:80%;
    height:100%;
    background:linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,.28),
        transparent
    );
    transform:skewX(-20deg);
    transition:.55s;
}

.btn:hover::before,
.project-back-btn:hover::before{
    left:140%;
}


/* =========================================================
   06. HERO
   ========================================================= */

.hero{
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;
    padding:120px 40px 40px;
    overflow:hidden;
}

.hero-video{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
    z-index:0;
}

.hero-overlay{
    position:absolute;
    inset:0;
    background:linear-gradient(rgba(11,11,15,.65), rgba(11,11,15,.88));
    z-index:1;
}

.hero::after{
    content:'';
    position:absolute;
    left:0;
    bottom:0;
    width:100%;
    height:220px;
    background:
        linear-gradient(
            to bottom,
            rgba(11,11,15,0),
            rgba(11,11,15,.45),
            var(--bg)
        );
    z-index:1;
}

.hero-content{
    position:relative;
    z-index:2;
    max-width:900px;
}

.hero-logo{
    width:250px;
    max-width:90%;
    user-select:none;
    filter:drop-shadow(0 0 25px rgba(255,155,61,.22));
}

.subtitle{
    margin-top:20px;
    color:var(--muted);
    font-size:1.25rem;
    line-height:1.6;
}

.hero-buttons{
    margin-top:35px;
    display:flex;
    justify-content:center;
    gap:20px;
}


/* =========================================================
   07. ABOUT
   ========================================================= */

.about-section{
    background:transparent;
    padding:100px 60px;
}

.about-section::before{
    content:'';
    display:block;
    width:720px;
    max-width:90%;
    height:2px;
    margin:0 auto 80px;
    background:linear-gradient(90deg, transparent, rgba(255,155,61,.9), transparent);
    box-shadow:0 0 20px rgba(255,155,61,.35);
}

.about-content{
    max-width:900px;
    margin:0 auto;
    border-radius:var(--radius-panel);
    padding:50px;
        transition:
        transform .35s ease,
        box-shadow .35s ease,
        border-color .35s ease;
}
.about-content{
    transition:
        transform .35s ease,
        box-shadow .35s ease,
        border-color .35s ease;
}

.about-content:hover{
    border-color:var(--orange);
    box-shadow:
        0 0 40px rgba(255,155,61,.22),
        inset 0 0 20px rgba(255,255,255,.03),
        0 20px 60px rgba(0,0,0,.45);

    transform:translateY(-4px);
}
.about-content h2{
    margin-top:18px;
    font-size:2.5rem;
    line-height:1.2;
}

.about-content p{
    margin-top:22px;
    color:var(--body-text);
    font-size:var(--about-text-size);
    line-height:1.9;
}


/* Optional future character layout */
.about-header{
    text-align:center;
    margin-bottom:50px;
}

.about-layout{
    display:grid;
    grid-template-columns:1.2fr .8fr;
    gap:50px;
    align-items:center;
}

.about-character{
    display:flex;
    justify-content:center;
    align-items:center;
}

.about-character img{
    max-width:360px;
    width:100%;
    height:auto;
    filter:
        drop-shadow(0 0 28px rgba(255,155,61,.25))
        drop-shadow(0 25px 50px rgba(0,0,0,.45));
}


/* =========================================================
   08. SECTION HEADINGS / DIVIDERS
   ========================================================= */

.section-heading{
    background:transparent;
    text-align:center;
    padding:80px 40px 20px;
}

.section-heading h2{
    margin-top:16px;
    font-size:3rem;
}

.section-heading p{
    margin:18px auto 0;
    max-width:700px;
    color:var(--muted);
    line-height:1.7;
    font-size:var(--body-size);
}

.section-divider{
    position:relative;
    width:100%;
    height:100px;
    overflow:hidden;
}

.section-divider::before{
    content:'';
    position:absolute;
    left:50%;
    top:50%;
    width:70%;
    height:1px;
    transform:translate(-50%, -50%);
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,155,61,.75),
            transparent
        );
}

.section-divider::after{
    content:'';
    position:absolute;
    left:50%;
    top:50%;
    width:10px;
    height:10px;
    transform:translate(-50%, -50%) rotate(45deg);
    background:var(--orange);
}


/* =========================================================
   09. PORTFOLIO CARDS / GRID
   ========================================================= */

.portfolio-page-header{
    padding:180px 40px 80px;
    text-align:center;
    background:transparent;
}

.portfolio-page-header h1{
    font-size:4rem;
    color:var(--orange);
    text-shadow:
        0 0 24px rgba(255,155,61,.25),
        0 0 70px rgba(255,155,61,.12);
}

.portfolio-page-header p{
    margin:24px auto 0;
    max-width:800px;
    color:var(--muted);
    line-height:1.8;
    font-size:var(--body-size);
}

.portfolio-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(600px, 600px));
    justify-content:center;
    gap:40px;
    padding:80px;
    background:transparent;
}

.card{
    border-radius:var(--radius-card);
    overflow:hidden;
    width:100%;
    max-width: 500px;
    padding:24px;
    cursor:pointer;
    position:relative;
    will-change:transform;
    transition:
        transform .35s ease,
        border-color .35s ease,
        box-shadow .35s ease,
        background .35s ease;
}

.card:hover{
    transform:translateY(-10px) scale(1.01);
    border-color:var(--orange);
    box-shadow:
        0 0 40px rgba(255,155,61,.22),
        inset 0 0 20px rgba(255,255,255,.03),
        0 20px 60px rgba(0,0,0,.45);
}

.card-badge{
    display:inline-block;
    margin-bottom:20px;
    padding:6px 12px;
    border-radius:999px;
    background:rgba(255,155,61,.12);
    color:var(--orange);
    font-size:.8rem;
    font-weight:800;
    text-transform:uppercase;
}

.card h2{
    color:var(--orange);
}

.card-top h2{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    margin-bottom:18px;
}

.card-meta{
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    color:#6b7280;
    font-size:.8rem;
    white-space:nowrap;
}

.card-description{
    display:block;
    margin-top:36px;
    padding-top:24px;
    border-top:1px solid rgba(255,255,255,.06);
    color:var(--body-text);
    font-size:var(--card-text-size);
    line-height:1.9;
    text-decoration:none;
}

.card p{
    color:var(--body-text);
    line-height:1.8;
}

.card-video{
    width:100%;
    height: 500px;
    aspect-ratio:16/9;
    border-radius:18px;
    background:#000;
    object-fit:cover;
    border:1px solid rgba(255,155,61,.08);
    box-shadow:0 0 30px rgba(255,155,61,.05);
}
.card-image{
    width:100%;
    height:auto;
    max-height:500px;
    object-fit:contain;
    display:block;
}
.project-media-logo{
    object-fit:contain !important;
    background:transparent !important;
    border:none !important;
    border-radius:0 !important;
    box-shadow:none !important;
    padding:40px;
}
.card-image-logo{
    object-fit:contain !important;
    background:transparent !important;
    border:none !important;
    border-radius:0 !important;
    box-shadow:none !important;
    padding:30px;
}
.card-video.small{
    max-height:220px;
}

.card-video.medium{
    max-height:420px;
}

.card-video.large{
    aspect-ratio:21/9;
    max-height:920px;
}

.card-video.fullscreen{
    height:80vh;
    aspect-ratio:21/9;
}

.portfolio-more{
    width:100%;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:40px 0 120px;
    background:transparent;
}

.portfolio-more .btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
}
/* =========================================================
   21. PORTFOLIO FILTER
   ========================================================= */

.portfolio-filter{
    position:relative;
    z-index:20;

    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    gap:14px;
    padding:0 40px 20px;
}

.portfolio-filter-btn{
    position:relative;
    z-index:21;
    pointer-events:auto;

    border:1px solid rgba(255,155,61,.35);
    background:rgba(0,0,0,.35);
    color:var(--text);
    border-radius:999px;
    padding:10px 18px;
    cursor:pointer;
    font-family:'Orbitron', sans-serif;
    font-size:.8rem;
    font-weight:700;
    letter-spacing:.06em;
    text-transform:uppercase;
    transition:.25s ease;
}

.portfolio-filter-btn:hover,
.portfolio-filter-btn.active{
    background:rgba(255,155,61,.85);
    color:#0b0b0f;
    box-shadow:0 0 22px rgba(255,155,61,.32);
}
.portfolio-grid-home{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(320px, 420px));
    justify-content:center;
    gap:32px;
    padding:80px;
}

.portfolio-grid-home .card-link{
    width:100%;
    max-width:420px;
}

.portfolio-grid-home .card{
    width:100%;
    max-width:none;
    height:100%;
}

.portfolio-grid-list{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:50px;
    padding:80px;
}

.portfolio-grid-list .card-link{
    width:100%;
    max-width:900px;
}

.portfolio-grid-list .card{
    max-width:none;
    width:100%;
}
/* =========================================================
   10. PROJECT DETAIL PAGES
   ========================================================= */

.project-hero{
    min-height:100vh;
    padding:180px 60px 120px;
    background:
        linear-gradient(rgba(7,8,13,.70), rgba(7,8,13,.88)),
        repeating-linear-gradient(
            90deg,
            rgba(255,255,255,.025) 0,
            rgba(255,255,255,.025) 1px,
            transparent 1px,
            transparent 90px
        ),
        repeating-linear-gradient(
            0deg,
            rgba(255,255,255,.018) 0,
            rgba(255,255,255,.018) 1px,
            transparent 1px,
            transparent 90px
        );
}

.project-content{
    position:relative;
    max-width:1200px;
    margin:0 auto;
}

.project-content::before{
    content:'';
    position:absolute;
    top:80px;
    left:50%;
    width:520px;
    height:520px;
    transform:translateX(-50%);
    background:radial-gradient(circle, rgba(255,155,61,.14), transparent 65%);
    filter:blur(20px);
    pointer-events:none;
    z-index:0;
}

.project-content > *{
    position:relative;
    z-index:1;
}

.project-content h1,
.contact-info h1{
    font-size:4rem;
    color:var(--orange);
    text-shadow:
        0 0 24px rgba(255,155,61,.25),
        0 0 70px rgba(255,155,61,.12);
}

.project-topbar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    margin-bottom:40px;
}

.project-back-btn{
    display:inline-flex;
    align-items:center;
    gap:10px;
    padding:14px 22px;
    border-radius:18px;
    text-decoration:none;
    color:var(--text);
    background:rgba(18,20,30,.82);
    border:1px solid var(--orange-line);
    backdrop-filter:blur(10px);
    font-weight:700;
    transition:
        transform .35s ease,
        box-shadow .35s ease,
        border-color .35s ease,
        background .35s ease;
}

.project-back-btn:hover{
    border-color:var(--orange);
    box-shadow:0 0 25px rgba(255,155,61,.18);
    transform:translateY(-2px) scale(1.02);
}

.project-type-pill{
    padding:10px 18px;
    border-radius:999px;
    background:rgba(255,155,61,.12);
    border:1px solid rgba(255,155,61,.2);
    color:var(--orange);
    font-size:.82rem;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.08em;
    box-shadow:0 0 18px rgba(255,155,61,.12);
    transition:box-shadow .35s ease, transform .35s ease;
}

.project-type-pill:hover{
    box-shadow:0 0 30px rgba(255,155,61,.28);
}

.project-meta{
    margin-top:18px;
    color:#6b7280;
    font-size:.9rem;
}

.project-description{
    margin-top:24px;
    max-width:900px;
    color:var(--body-text);
    line-height:1.9;
    font-size:var(--project-text-size);
}

.project-media{
    width:100%;
    margin-top:50px;
    border-radius:24px;
    aspect-ratio:16/9;
    background:#000;
    object-fit:cover;
    transition:
        transform .45s ease,
        box-shadow .45s ease,
        border-color .45s ease;
    border:1px solid rgba(255,155,61,.08);
    box-shadow:0 0 30px rgba(255,155,61,.05);
}

.project-media:hover{
    transform:scale(1.01);
    border-color:rgba(255,155,61,.28);
    box-shadow:
        0 0 45px rgba(255,155,61,.18),
        0 20px 60px rgba(0,0,0,.45);
}

.project-panel{
    margin-top:50px;
    border-radius:var(--radius-panel);
    padding:40px;
    position:relative;
    overflow:hidden;
    transition:
        transform .35s ease,
        box-shadow .35s ease,
        border-color .35s ease,
        background .35s ease;
}

.project-panel:hover{
    transform:translateY(-4px);
    border-color:var(--orange);
    box-shadow:
        0 0 40px rgba(255,155,61,.22),
        inset 0 0 20px rgba(255,255,255,.03),
        0 20px 60px rgba(0,0,0,.45);
}

.project-panel h2,
.project-block h2{
    color:var(--orange);
}

.project-panel p{
    color:var(--body-text);
    line-height:1.8;
}

.project-blocks{
    margin-top:80px;
}

.project-block{
    margin-top:40px;
}
.project-block-footer{
    margin-top:28px;
    padding-top:20px;
    border-top:1px solid rgba(255,255,255,.06);
    display:flex;
    justify-content:flex-end;
}
.model-placeholder{
    width:100%;
    aspect-ratio:16/9;
    border-radius:16px;
    margin-bottom:22px;
    background:linear-gradient(135deg,#15151c,#09090b);
    border:1px solid rgba(255,155,61,.2);
    display:flex;
    align-items:center;
    justify-content:center;
    color:var(--orange);
    font-weight:800;
}
/* =========================================================
   16. PROJECT GALLERY
   ========================================================= */

.gallery-slider{
    position:relative;
    overflow:hidden;
}

.gallery-image{
    display:none;
    cursor:pointer;
}

.gallery-image.active{
    display:block;
}

.gallery-arrow{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:54px;
    height:54px;
    border:none;
    border-radius:50%;
    background:rgba(0,0,0,.55);
    color:white;
    font-size:1.5rem;
    cursor:pointer;
    z-index:5;
    backdrop-filter:blur(8px);

    transition:
        transform .25s ease,
        background .25s ease,
        box-shadow .25s ease;
}

.gallery-arrow:hover{
    background:rgba(255,155,61,.85);
    transform:translateY(-50%) scale(1.08);
    box-shadow:0 0 20px rgba(255,155,61,.4);
}

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

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

/* =========================================================
   11. 3D MODEL VIEWER
   ========================================================= */

.model-viewer{
    width:100%;
    height:500px;
    border-radius:24px;
    overflow:hidden;
    background:#050505;
    margin-top:50px;
    position:relative;
    box-shadow:
        0 0 35px rgba(255,155,61,.12),
        inset 0 0 40px rgba(255,255,255,.02);
}

.model-viewer canvas{
    position:relative;
    z-index:1;
    display:block;
}

.model-viewer::before{
    content:'';
    position:absolute;
    inset:0;
    background:linear-gradient(135deg, rgba(255,255,255,.05), transparent 25%);
    pointer-events:none;
    z-index:2;
}

.viewer-toolbar{
    position:absolute !important;
    top:18px !important;
    left:18px !important;
    z-index:99999 !important;
    display:flex !important;
    visibility:visible !important;
    opacity:1 !important;
}

.viewer-btn{
    border:1px solid rgba(255,155,61,.35);
    background:rgba(0,0,0,.55);
    color:white;
    border-radius:999px;
    padding:8px 14px;
    cursor:pointer;
    backdrop-filter:blur(8px);
    font-size:.8rem;
    font-weight:700;
    letter-spacing:.04em;
    text-transform:uppercase;
}

.viewer-btn:hover,
.viewer-btn.active{
    background:rgba(255,155,61,.85);
    box-shadow:0 0 18px rgba(255,155,61,.35);
}

.model-block .model-viewer{
    margin-top:24px;
}

.model-description{
    margin-top:24px;
    color:var(--muted);
    line-height:1.8;
}

.viewer-loading{
    position:absolute;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    color:white;
    font-size:18px;
    font-weight:600;
    background:rgba(0,0,0,.35);
    backdrop-filter:blur(4px);
    z-index:30;
}

.viewer-loading::after{
    content:'';
    width:34px;
    height:34px;
    margin-left:16px;
    border-radius:50%;
   
}
.viewer-toolbar{
    position:absolute !important;
    top:18px !important;
    left:18px !important;
    z-index:99999 !important;
    display:flex !important;
    visibility:visible !important;
    opacity:1 !important;
}
@keyframes spin{
    to{
        transform:rotate(360deg);
    }
}

/* =========================================================
   12. CONTACT
   ========================================================= */

.contact-page{
    min-height:100vh;
    padding:180px 60px 120px;
    background:transparent;
}

.contact-layout{
    max-width:1200px;
    margin:0 auto;
    display:grid;
    grid-template-columns:1fr 1.2fr;
    gap:60px;
    align-items:start;
}

.contact-info p{
    margin-top:24px;
    color:var(--body-text);
    line-height:1.8;
    font-size:var(--body-size);
}

.contact-card{
    border-radius:var(--radius-panel);
    padding:40px;
       transition:
        transform .35s ease,
        box-shadow .35s ease,
        border-color .35s ease;
}
.contact-card:hover{
        border-color:var(--orange);
    box-shadow:
        0 0 40px rgba(255,155,61,.22),
        inset 0 0 20px rgba(255,255,255,.03),
        0 20px 60px rgba(0,0,0,.45);

    transform:translateY(-4px);
}
.contact-card label{
    display:block;
    margin-bottom:8px;
    color:var(--text);
    font-weight:700;
}

.contact-card input,
.contact-card textarea{
    width:100%;
    margin-bottom:22px;
    padding:14px 16px;
    border-radius:14px;
    border:1px solid rgba(255,255,255,.08);
    background:#0b0b0f;
    color:var(--text);
    outline:none;
}

.contact-card textarea{
    min-height:180px;
    resize:vertical;
}

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

.flash-success{
    margin-bottom:24px;
    padding:14px 16px;
    border-radius:14px;
    background:rgba(34,197,94,.12);
    color:#86efac;
    border:1px solid rgba(34,197,94,.25);
}


/* =========================================================
   13. LEGAL PAGE
   ========================================================= */

.legal-page{
    min-height:100vh;
    padding:240px 40px 120px;
}

.legal-container{
    max-width:950px;
    margin:0 auto;
}

.legal-container h1{
    margin-top:18px;
    margin-bottom:20px;
    font-size:4rem;
    color:var(--orange);
    text-shadow:0 0 25px rgba(255,155,61,.18);
}

.legal-intro{
    color:var(--muted);
    margin-bottom:50px;
    line-height:1.8;
    max-width:700px;
    font-size:var(--body-size);
}

.legal-terminal-bar{
    display:flex;
    gap:10px;
    margin-bottom:28px;
}

.legal-terminal-bar span{
    width:12px;
    height:12px;
    border-radius:50%;
    background:rgba(255,155,61,.6);
    box-shadow:0 0 12px rgba(255,155,61,.45);
}

.legal-content{
    display:flex;
    flex-direction:column;
    gap:18px;
}

.legal-content p{
    color:var(--body-text);
    line-height:1.8;
}


/* =========================================================
   14. FOOTER
   ========================================================= */

.footer{
    background:#07070a;
    border-top:1px solid var(--orange-line);
    padding:40px 60px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    color:var(--muted);
}

.footer-links,
.footer .nav-links{
    display:flex;
    gap:24px;
}

.footer-links a,
.footer .nav-links a{
    color:var(--text);
    text-decoration:none;
}

.footer-links a:hover,
.footer .nav-links a:hover{
    color:var(--orange);
}
/* =========================================================
   17. GALLERY LIGHTBOX
   ========================================================= */

.gallery-lightbox{
    position:fixed;
    inset:0;
    z-index:9999;
    display:none;
    align-items:center;
    justify-content:center;
    background:rgba(0,0,0,.92);
    backdrop-filter:blur(10px);
}

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

.gallery-lightbox img{
    max-width:92vw;
    max-height:86vh;
    border-radius:22px;
    object-fit:contain;
    box-shadow:
        0 0 55px rgba(255,155,61,.22),
        0 30px 90px rgba(0,0,0,.65);
}

.gallery-lightbox-close,
.gallery-lightbox-arrow{
    position:absolute;
    border:none;
    cursor:pointer;
    color:white;
    background:rgba(0,0,0,.55);
    backdrop-filter:blur(8px);
    transition:.25s ease;
}

.gallery-lightbox-close{
    top:28px;
    right:28px;
    width:52px;
    height:52px;
    border-radius:50%;
    font-size:1.5rem;
}

.gallery-lightbox-arrow{
    top:50%;
    transform:translateY(-50%);
    width:58px;
    height:58px;
    border-radius:50%;
    font-size:1.7rem;
}

.gallery-lightbox-arrow.left{
    left:28px;
}

.gallery-lightbox-arrow.right{
    right:28px;
}

.gallery-lightbox-close:hover,
.gallery-lightbox-arrow:hover{
    background:rgba(255,155,61,.85);
    box-shadow:0 0 24px rgba(255,155,61,.45);
}

@media (max-width:900px){
    .gallery-lightbox img{
        max-width:94vw;
        max-height:78vh;
        border-radius:16px;
    }

    .gallery-lightbox-close{
        top:18px;
        right:18px;
    }

    .gallery-lightbox-arrow{
        width:48px;
        height:48px;
        font-size:1.2rem;
    }

    .gallery-lightbox-arrow.left{
        left:14px;
    }

    .gallery-lightbox-arrow.right{
        right:14px;
    }
}
/* =========================================================
   19. MODEL INFO SECTIONS
   ========================================================= */

.model-info-section{
    margin-top:60px;
    padding-top:32px;
    border-top:1px solid rgba(255,155,61,.12);
}

.model-info-section h3{
    color:var(--orange);
    font-family:'Orbitron', sans-serif;
    font-size:1rem;
    margin-bottom:14px;
    text-transform:uppercase;
    letter-spacing:.08em;
}

.model-info-section p{
    color:var(--body-text);
    line-height:1.9;
    font-size:var(--project-text-size);
    margin-top:12px;
    margin-bottom:10px;
}

.model-info-section .profile-tags{
    margin-top:0;
}
/* =========================================================
   18. PROFILE PAGE
   ========================================================= */

.profile-page{
    min-height:100vh;
    padding:180px 60px 120px;
}

.profile-layout{
    max-width:1300px;
    margin:0 auto;
    display:grid;
    grid-template-columns:1.45fr 320px;
    gap:32px;
    align-items:start;
}

.profile-main{
    display:flex;
    flex-direction:column;
    gap:32px;
}

.profile-main-card{
    min-height:520px;
}

.profile-sidebar{
    display:flex;
    flex-direction:column;
    gap:24px;
}

.profile-small-card{
    min-height:180px;
}

.profile-image{
    width:100%;
    max-height:320px;
    object-fit:cover;
    border-radius:22px;
    display:block;
}

.profile-tags{
    display:flex;
    flex-wrap:wrap;
    gap:14px;
    margin-top:18px;
}

.profile-certificates{
    margin-top:20px;
}

.profile-cert-card{
    margin-top:24px;
}

.certificate-item{
    display:grid;
    grid-template-columns:180px 1fr;
    gap:24px;
    align-items:center;
    padding:24px 0;
    border-bottom:1px solid rgba(255,255,255,.06);
}

.certificate-item:last-child{
    border-bottom:none;
}

.certificate-item img{
    width:100%;
    border-radius:18px;
    object-fit:cover;
    display:block;
}

.certificate-item h2{
    margin-bottom:12px;
}

.profile-main-card .section-divider{
    margin:38px 0;
}
.profile-richtext{
    line-height:1.9;
}

.profile-richtext p{
    margin-bottom:18px;
}

.profile-richtext ul,
.profile-richtext ol{
    margin:18px 0;
    padding-left:24px;
}

.profile-richtext a{
    color:var(--orange);
    text-decoration:none;
}

.profile-richtext a:hover{
    text-decoration:underline;
}

.profile-richtext strong{
    font-weight:700;
}

.profile-richtext h1,
.profile-richtext h2,
.profile-richtext h3{
    margin:20px 0 12px;
}

@media (max-width:1100px){

    .profile-page{
        padding:150px 28px 80px;
    }

    .profile-layout{
        grid-template-columns:1fr;
    }

    .profile-sidebar{
        order:-1;
    }

    .profile-image{
        max-height:420px;
    }

    .certificate-item{
        grid-template-columns:1fr;
    }
    

}
/* =========================================================
   20. SUPPORT PAGE
   ========================================================= */

.support-card{
    margin-top:28px;
    padding-top:24px;
    border-top:1px solid rgba(255,255,255,.06);
}

.support-card:first-of-type{
    border-top:none;
    padding-top:0;
}

.support-card h3{
    color:var(--orange);
    font-family:'Orbitron', sans-serif;
    font-size:1rem;
    margin-bottom:12px;
    text-transform:uppercase;
    letter-spacing:.08em;
}

.support-card p{
    margin-bottom:18px;
    line-height:1.8;
}

.support-progress{
    width:100%;
    height:16px;
    margin-top:28px;
    border-radius:999px;
    background:rgba(255,255,255,.08);
    overflow:hidden;
    border:1px solid rgba(255,155,61,.16);
}

.support-progress-fill{
    height:100%;
    border-radius:999px;
    background:linear-gradient(
        90deg,
        rgba(255,155,61,.55),
        var(--orange)
    );
    box-shadow:0 0 24px rgba(255,155,61,.35);
}
/* =========================================================
   15. RESPONSIVE / MOBILE CONTROLS
   ---------------------------------------------------------
   Edit these values first when mobile feels too small:
   - --mobile-brand-size
   - --mobile-nav-size
   - --mobile-card-text-size
   - --mobile-project-text-size
   - --mobile-about-text-size
   - --mobile-button-size
   ========================================================= */

@media (max-width:900px){

    :root{
        --page-padding-x:24px;

        /* Main mobile tuning */
        --mobile-brand-size:1.65rem;
        --mobile-nav-size:2.5rem;
        --mobile-body-size:1.18rem;
        --mobile-card-text-size:2.8rem;
        --mobile-project-text-size:2.8rem;
        --mobile-about-text-size:1.8rem;
        --mobile-button-size:2rem;
    }

    body{
        font-size:var(--mobile-body-size);
    }

    .navbar{
        padding:18px 24px;
        flex-direction:column;
        gap:16px;
    }

    .brand{
        font-size:var(--mobile-brand-size);
    }

    .nav-links{
        flex-wrap:wrap;
        justify-content:center;
        gap:18px;
    }

    .nav-links a{
        font-size:var(--mobile-nav-size);
    }

    .btn{
        padding:18px 28px;
        font-size:var(--mobile-button-size);
    }

    .hero{
        padding:150px 24px 70px;
    }

    .hero-logo{
        width:190px;
    }

    .subtitle{
        font-size:1.3rem;
    }

    .hero-buttons{
        flex-direction:column;
        align-items:center;
    }

    .about-section,
    .project-hero,
    .contact-page{
        padding:150px 24px 80px;
    }

    .about-content,
    .project-panel,
    .contact-card{
        padding:28px;
    }

    .about-content h2{
        font-size:2rem;
    }

    .about-content p{
        font-size:var(--mobile-about-text-size);
        line-height:1.9;
    }

    .about-layout{
        grid-template-columns:1fr;
    }
    
    .about-character{
        order:-1;
    }

    .about-character img{
        max-width:260px;
    }

    .section-heading{
        padding:70px 24px 20px;
    }

    .section-heading h2{
        font-size:2.35rem;
    }

    .section-heading p{
        font-size:var(--mobile-body-size);
    }

    .portfolio-page-header{
        padding:160px 24px 70px;
    }

    .portfolio-grid{
        display:grid;
        grid-template-columns:repeat(auto-fit, minmax(250px, 280px));
        justify-content:center;
        gap:40px;
    }

    .card{
        padding:24px;
    }

    .card h2,
    .project-panel h2{
        font-size:2rem;
    }

    .card-description{
        font-size:var(--mobile-card-text-size);
        line-height:1.9;
    }

    .project-content h1,
    .contact-info h1,
    .portfolio-page-header h1,
    .legal-container h1{
        font-size:2.5rem;
    }

    .project-topbar{
        flex-direction:column;
        align-items:flex-start;
    }

    .project-back-btn{
        font-size:1rem;
        padding:16px 22px;
    }

    .project-description{
        font-size:var(--mobile-project-text-size);
        line-height:1.9;
    }

    .project-media{
        margin-top:36px;
        border-radius:18px;
    }

    .model-viewer{
        height:360px;
        border-radius:18px;
    }

    .contact-layout{
        grid-template-columns:1fr;
    }

    .contact-info p,
    .legal-intro,
    .legal-content p{
        font-size:var(--mobile-body-size);
    }

    .legal-page{
        padding:170px 24px 80px;
    }

    .footer{
        flex-direction:column;
        gap:20px;
        text-align:center;
        padding:36px 24px;
    }

    .footer .nav-links,
    .footer-links{
        justify-content:center;
        flex-wrap:wrap;
    }
        .gallery-arrow{
        width:48px;
        height:48px;
        font-size:1.2rem;
    }
    .model-info-section p{
        font-size:var(--mobile-project-text-size);
    }

}

@media (max-width:520px){

    :root{
        --mobile-brand-size:1.45rem;
        --mobile-nav-size:1rem;
        --mobile-card-text-size:1.15rem;
        --mobile-project-text-size:1.15rem;
        --mobile-about-text-size:1.15rem;
        --mobile-button-size:1rem;
    }

    .navbar{
        padding:16px 18px;
    }

    .nav-links{
        gap:14px;
    }

    .hero{
        padding:145px 18px 60px;
    }

    .portfolio-grid{
        padding:34px 18px;
    }

    .about-section,
    .project-hero,
    .contact-page{
        padding-left:18px;
        padding-right:18px;
    }

    .card,
    .about-content,
    .project-panel,
    .contact-card{
        padding:22px;
    }

    .project-content h1,
    .contact-info h1,
    .portfolio-page-header h1,
    .legal-container h1{
        font-size:2.1rem;
    }

    .card h2,
    .project-panel h2{
        font-size:1.75rem;
    }

    .model-viewer{
        height:320px;
    }
        .gallery-arrow{
        width:48px;
        height:48px;
        font-size:1.2rem;
    }
    .model-info-section p{
        font-size:var(--mobile-project-text-size);
    }

}
@media (max-width:1200px){

    .portfolio-grid-home{
        grid-template-columns:repeat(auto-fit, minmax(300px, 420px));
    }

}

@media (max-width:700px){

    .portfolio-grid-home{
        grid-template-columns:minmax(280px, 420px);
        justify-content:center;
        padding:40px 20px;
    }

    .portfolio-grid-list{
        padding:40px 20px;
    }

}