/*
Theme Name: SamJobs Futuristic
Author: SamJobs
Version: 6.0
Description: Premium Futuristic Global Job Portal Theme
Text Domain: samjobs
*/

/* ==========================================
   ROOT VARIABLES
========================================== */

:root{

    --bg:#020617;
    --bg-secondary:#07111f;

    --card:rgba(255,255,255,.05);

    --glass:rgba(255,255,255,.06);

    --border:rgba(255,255,255,.08);

    --text:#ffffff;

    --muted:#a8b3cf;

    --orange:#ff7b29;

    --orange2:#ffb347;

    --blue:#2563eb;

    --blue2:#60a5fa;

    --shadow:
    0 20px 50px rgba(0,0,0,.45);

    --radius:24px;

    --transition:.35s ease;
}

/* ==========================================
   LIGHT MODE
========================================== */

body.light-mode{

    --bg:#f5f8ff;

    --bg-secondary:#ffffff;

    --card:rgba(255,255,255,.88);

    --glass:rgba(255,255,255,.78);

    --border:rgba(0,0,0,.08);

    --text:#08111d;

    --muted:#5c667a;

    background:
    linear-gradient(
        180deg,
        #f5f8ff 0%,
        #ffffff 100%
    );
}

body.light-mode .hero-section{

    background:transparent;
}

body.light-mode .hero-section p{

    color:#475569 !important;
}

body.light-mode .footer-inner p{

    color:#475569 !important;
}

body.light-mode .theme-toggle{

    background:#ffffff;

    color:#08111d;

    box-shadow:
    0 10px 25px rgba(0,0,0,.08);
}

/* ==========================================
   RESET
========================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

html,
body{
    width:100%;
    overflow-x:hidden;
}

body{

    font-family:'Inter',sans-serif;

    background:var(--bg);

    color:var(--text);

    transition:.4s ease;
}

/* ==========================================
   WORDPRESS FIXES
========================================== */

img{
    max-width:100%;
    height:auto;
}

a{
    text-decoration:none;
}

ul{
    list-style:none;
}

.admin-bar .samjobs-header{
    top:32px;
}

/* ==========================================
   PREMIUM LOADER
========================================== */

#samjobs-loader{

    position:fixed;
    inset:0;

    background:#01040d;

    z-index:999999;

    display:flex;

    align-items:center;

    justify-content:center;

    flex-direction:column;

    gap:25px;

    transition:.8s;
}

#samjobs-loader.hide{

    opacity:0;

    visibility:hidden;
}

.loader-ring{

    width:95px;
    height:95px;

    border-radius:50%;

    border:4px solid rgba(255,255,255,.08);

    border-top:4px solid var(--orange);

    animation:spin 1s linear infinite;
}

.loader-logo{

    font-size:34px;

    font-weight:900;

    letter-spacing:6px;

    color:#fff;
}

@keyframes spin{

    to{
        transform:rotate(360deg);
    }
}

/* ==========================================
   PARTICLES CANVAS
========================================== */

#particles{

    position:fixed;

    inset:0;

    width:100%;
    height:100%;

    z-index:-15;
}

/* ==========================================
   BACKGROUND
========================================== */

body::before{

    content:'';

    position:fixed;

    inset:0;

    z-index:-20;

    background:

    radial-gradient(
        circle at top left,
        rgba(255,123,41,.18),
        transparent 30%
    ),

    radial-gradient(
        circle at top right,
        rgba(37,99,235,.18),
        transparent 30%
    ),

    linear-gradient(
        180deg,
        #020617,
        #01030a
    );
}

/* ==========================================
   FLOATING BOOKMARKS
========================================== */

.ai-people-background{

    position:fixed;

    inset:0;

    overflow:hidden;

    z-index:-5;

    pointer-events:none;
}

.floating-bookmark{

    position:absolute;

    width:220px;
    height:300px;

    border-radius:26px;

    background:

    linear-gradient(
        145deg,
        rgba(255,255,255,.08),
        rgba(255,255,255,.03)
    );

    border:1px solid rgba(255,255,255,.08);

    backdrop-filter:blur(15px);

    box-shadow:
    0 0 50px rgba(37,99,235,.12);

    animation:
    bookmarkFloat 10s ease-in-out infinite;

    transform-style:preserve-3d;
}

.floating-bookmark::before{

    content:'';

    position:absolute;

    bottom:-38px;

    left:50%;

    transform:translateX(-50%);

    border-left:34px solid transparent;

    border-right:34px solid transparent;

    border-top:48px solid rgba(255,255,255,.08);
}

.bookmark-1{
    top:18%;
    left:5%;
}

.bookmark-2{
    top:26%;
    right:7%;
}

.bookmark-3{
    bottom:8%;
    left:15%;
}

.bookmark-4{
    bottom:5%;
    right:10%;
}

@keyframes bookmarkFloat{

    0%,100%{

        transform:
        translateY(0)
        rotateY(0deg);
    }

    50%{

        transform:
        translateY(-35px)
        rotateY(12deg);
    }
}

/* ==========================================
   HEADER
========================================== */

.samjobs-header{

    position:fixed;

    top:0;
    left:0;

    width:100%;

    z-index:9999;

    backdrop-filter:blur(18px);

    background:
    rgba(3,8,25,.45);

    border-bottom:
    1px solid rgba(255,255,255,.05);

    transition:var(--transition);
}

body.light-mode .samjobs-header{

    background:
    rgba(255,255,255,.90);

    border-bottom:
    1px solid rgba(0,0,0,.06);

    box-shadow:
    0 10px 30px rgba(0,0,0,.05);
}

.header-container{

    max-width:1450px;

    margin:auto;

    display:grid;

    grid-template-columns:1fr auto 1fr;

    align-items:center;

    padding:14px 28px;
}

/* ==========================================
   LOGO
========================================== */

.logo-center{

    text-align:center;
}

.logo-center img{

    height:90px;

    background:none;

    filter:
    drop-shadow(0 0 25px rgba(255,123,41,.8))
    drop-shadow(0 0 60px rgba(255,123,41,.5))
    drop-shadow(0 0 100px rgba(37,99,235,.3));
}

@keyframes logoPulse{

    0%,100%{
        transform:scale(1);
    }

    50%{
        transform:scale(1.04);
    }
}

/* ==========================================
   NAVIGATION
========================================== */

.samjobs-nav{

    display:flex;

    align-items:center;
}

.primary-menu{

    display:flex;

    align-items:center;

    gap:34px;
}

.primary-menu a{

    color:var(--text);

    font-weight:600;

    position:relative;

    transition:.3s;
}

.primary-menu a::after{

    content:'';

    position:absolute;

    left:0;

    bottom:-10px;

    width:0;

    height:2px;

    background:var(--orange);

    transition:.3s;
}

.primary-menu a:hover::after{

    width:100%;
}

/* ==========================================
   ACTIONS
========================================== */

.header-actions{

    display:flex;

    justify-content:flex-end;
}

.theme-toggle{

    width:62px;
    height:62px;

    border-radius:50%;

    border:2px solid var(--orange);

    background:rgba(255,255,255,.05);

    backdrop-filter:blur(15px);

    transition:.4s ease;
}

.theme-toggle:hover{

    transform:
    rotate(180deg)
    scale(1.08);
}

/* ==========================================
   MAIN SPACING
========================================== */

.site-main{

    padding-top:150px;
}

/* ==========================================
   HERO SECTION
========================================== */

.hero-section{

    max-width:1300px;

    margin:auto;

    text-align:center;

    padding:
    70px 20px
    60px;
}

.hero-badge{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    padding:16px 34px;

    border-radius:999px;

    border:1px solid var(--border);

    background:var(--glass);

    backdrop-filter:blur(20px);

    margin-bottom:40px;

    font-weight:600;
}

.hero-section h1{

    font-size:92px;

    line-height:1;

    font-weight:900;

    margin-bottom:30px;

    background:

    linear-gradient(
        135deg,
        #ff7b29,
        #ffb347,
        #7c8cff,
        #60a5fa
    );

    -webkit-background-clip:text;

    -webkit-text-fill-color:transparent;
}

.hero-section p{

    max-width:900px;

    margin:auto;

    font-size:24px;

    line-height:1.8;

    color:var(--muted);
}

/* ==========================================
   HERO BUTTONS
========================================== */

.hero-buttons{

    margin-top:50px;

    display:flex;

    justify-content:center;

    align-items:center;

    gap:22px;

    flex-wrap:wrap;
}

.hero-btn{

    min-width:240px;

    padding:20px 34px;

    border-radius:20px;

    display:inline-flex;

    align-items:center;

    justify-content:center;

    gap:12px;

    font-weight:700;

    font-size:18px;

    transition:.4s ease;

    position:relative;

    overflow:hidden;
}

.hero-btn::before{

    content:'';

    position:absolute;

    inset:0;

    background:

    linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,.15),
        transparent
    );

    transform:translateX(-100%);

    transition:.6s;
}

.hero-btn:hover::before{

    transform:translateX(100%);
}

.primary-btn{

    color:#fff;

    background:

    linear-gradient(
        135deg,
        #ff7b29,
        #ffb347
    );

    box-shadow:
    0 20px 45px rgba(255,123,41,.35);
}

.secondary-btn{

    color:var(--text);

    border:1px solid var(--border);

    background:var(--glass);

    backdrop-filter:blur(15px);
}

.hero-btn:hover{

    transform:
    translateY(-6px)
    scale(1.03);
}

/* ==========================================
   JOBS GRID
========================================== */

.jobs-grid{

    max-width:1400px;

    margin:auto;

    padding:50px 20px 90px;

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(420px,1fr));

    gap:40px;
}

/* ==========================================
   PREMIUM GLASS CARDS
========================================== */

.job-card{

    position:relative;

    overflow:hidden;

    border-radius:32px;

    padding:42px;

    background:var(--glass);

    border:1px solid var(--border);

    backdrop-filter:blur(20px);

    box-shadow:var(--shadow);

    transition:.45s ease;

    transform-style:preserve-3d;
}

.job-card::before{

    content:'';

    position:absolute;

    inset:0;

    background:

    linear-gradient(
        145deg,
        rgba(255,255,255,.05),
        transparent
    );

    pointer-events:none;
}

.job-card:hover{

    transform:

    perspective(1200px)

    translateY(-15px)

    rotateX(8deg)

    rotateY(-8deg)

    scale(1.02);

    border-color:
    rgba(255,123,41,.35);
}

/* ==========================================
   CARD GLOWS
========================================== */

.card-glow{

    position:absolute;

    width:280px;
    height:280px;

    border-radius:50%;

    filter:blur(90px);

    z-index:-1;
}

.orange-glow{

    top:-100px;
    left:-100px;

    background:
    rgba(255,123,41,.25);
}

.blue-glow{

    top:-100px;
    right:-100px;

    background:
    rgba(37,99,235,.25);
}

/* ==========================================
   CARD LOGO
========================================== */

.job-logo{

    text-align:center;

    margin-bottom:28px;
}

.job-logo img{

    height:90px;

    filter:
    drop-shadow(0 0 20px rgba(255,123,41,.35));
}

/* ==========================================
   CARD TITLE
========================================== */

.job-card h2{

    text-align:center;

    font-size:42px;

    margin-bottom:25px;

    font-weight:800;
}

/* ==========================================
   JOB TAGS
========================================== */

.job-tags{

    display:flex;

    justify-content:center;

    flex-wrap:wrap;

    gap:12px;

    margin-bottom:25px;
}

.job-tags span{

    padding:12px 18px;

    border-radius:999px;

    background:
    rgba(255,255,255,.05);

    border:1px solid var(--border);

    font-size:14px;

    font-weight:600;
}

/* ==========================================
   CARD CONTENT
========================================== */

.job-content{

    text-align:center;

    color:var(--muted);

    font-size:18px;

    line-height:2;
}

/* ==========================================
   EXPLORE BUTTON
========================================== */

.explore-btn{

    margin-top:30px;

    width:100%;

    display:flex;

    align-items:center;

    justify-content:center;

    gap:12px;

    padding:20px;

    border-radius:18px;

    color:#fff;

    font-weight:700;

    transition:.4s ease;
}

.orange-btn{

    background:

    linear-gradient(
        135deg,
        #ff7b29,
        #ffb347
    );
}

.blue-btn{

    background:

    linear-gradient(
        135deg,
        #2563eb,
        #60a5fa
    );
}

.explore-btn:hover{

    transform:
    translateY(-5px);
}

/* ==========================================
   BOTTOM STRIP
========================================== */

.bottom-strip{

    width:max-content;

    max-width:95%;

    margin:0 auto 90px;

    padding:18px 30px;

    border-radius:999px;

    background:var(--glass);

    border:1px solid var(--border);

    backdrop-filter:blur(15px);

    color:var(--muted);

    text-align:center;
}

/* ==========================================
   FOOTER
========================================== */

.samjobs-footer{

    padding:80px 20px;

    border-top:1px solid var(--border);
}

.footer-inner{

    max-width:1000px;

    margin:auto;

    text-align:center;
}

.footer-inner h3{

    font-size:48px;

    margin-bottom:20px;

    font-weight:900;
}

.footer-inner p{

    color:var(--muted);

    line-height:1.9;

    font-size:18px;
}

.social-links{

    display:flex;

    justify-content:center;

    gap:18px;

    margin:35px 0;
}

.social-links a{

    width:58px;
    height:58px;

    border-radius:50%;

    display:flex;

    align-items:center;

    justify-content:center;

    background:var(--glass);

    border:1px solid var(--border);

    color:var(--text);

    transition:.35s ease;
}

.social-links a:hover{

    background:var(--orange);

    color:#fff;

    transform:
    translateY(-6px);
}

.footer-copy{

    color:var(--muted);
}

/* ==========================================
   SCROLL REVEAL
========================================== */

.reveal{

    opacity:0;

    transform:
    translateY(60px);

    transition:1s ease;
}

.reveal.active{

    opacity:1;

    transform:
    translateY(0);
}

/* ==========================================
   MOBILE MENU BUTTON
========================================== */

.menu-toggle{

    display:none;

    flex-direction:column;

    gap:6px;

    background:none;

    border:none;

    cursor:pointer;
}

.menu-toggle span{

    width:30px;

    height:3px;

    border-radius:10px;

    background:#fff;

    transition:.3s;
}

body.light-mode .menu-toggle span{

    background:#08111d;
}

/* ==========================================
   RESPONSIVE NAVIGATION
========================================== */

@media(max-width:991px){

    .header-container{

        grid-template-columns:
        auto 1fr auto;

        gap:20px;
    }

    .menu-toggle{

        display:flex;

        z-index:10001;
    }

    .samjobs-nav{

        position:fixed;

        top:0;
        left:-100%;

        width:300px;

        height:100vh;

        background:
        rgba(2,6,23,.96);

        backdrop-filter:blur(25px);

        border-right:
        1px solid rgba(255,255,255,.08);

        padding:120px 35px;

        transition:.45s ease;

        z-index:10000;
    }

    body.light-mode .samjobs-nav{

        background:
        rgba(255,255,255,.96);
    }

    .samjobs-nav.active{

        left:0;
    }

    .primary-menu{

        flex-direction:column;

        align-items:flex-start;

        gap:28px;

        width:100%;
    }

    .primary-menu li{

        width:100%;
    }

    .primary-menu a{

        display:block;

        width:100%;

        font-size:18px;

        padding:10px 0;
    }

    .logo-center img{

        height:85px;
    }

    .hero-section h1{

        font-size:68px;
    }

    .hero-section p{

        font-size:20px;
    }

    .jobs-grid{

        grid-template-columns:1fr;
    }
}

/* ==========================================
   MOBILE DEVICES
========================================== */

@media(max-width:768px){

    .site-main{

        padding-top:120px;
    }

    .hero-section{

        padding:
        40px 18px
        50px;
    }

    .hero-badge{

        font-size:14px;

        padding:14px 22px;
    }

    .hero-section h1{

        font-size:52px;

        line-height:1.05;
    }

    .hero-section p{

        font-size:17px;

        line-height:1.7;
    }

    .hero-buttons{

        flex-direction:column;

        gap:16px;
    }

    .hero-btn{

        width:100%;

        max-width:340px;
    }

    .job-card{

        padding:30px;
    }

    .job-card h2{

        font-size:32px;
    }

    .job-content{

        font-size:16px;
    }

    .bottom-strip{

        width:95%;

        border-radius:18px;
    }

    .footer-inner h3{

        font-size:36px;
    }

    .floating-bookmark{

        width:140px;
        height:200px;
    }

    .bookmark-3,
    .bookmark-4{

        display:none;
    }
}

/* ==========================================
   SMALL MOBILE
========================================== */

@media(max-width:480px){

    .header-container{

        padding:12px 16px;
    }

    .logo-center img{

        height:68px;
    }

    .theme-toggle{

        width:48px;
        height:48px;
    }

    .hero-section h1{

        font-size:42px;
    }

    .hero-section p{

        font-size:15px;
    }

    .job-card{

        padding:24px;
    }

    .job-card h2{

        font-size:28px;
    }

    .job-logo img{

        height:70px;
    }

    .job-tags span{

        font-size:12px;

        padding:10px 14px;
    }

    .explore-btn{

        padding:16px;
    }
}

/* ==========================================
   LIGHT MODE REFINEMENTS
========================================== */

body.light-mode::before{

    background:

    radial-gradient(
        circle at top left,
        rgba(255,123,41,.10),
        transparent 35%
    ),

    radial-gradient(
        circle at top right,
        rgba(37,99,235,.10),
        transparent 35%
    ),

    linear-gradient(
        180deg,
        #f5f8ff,
        #ffffff
    );
}


body.light-mode{

    background:
    linear-gradient(
        180deg,
        #eef4ff,
        #ffffff
    );
}

body.light-mode .hero-badge{

    background:
    rgba(255,255,255,.95);

    color:#08111d;

    border:
    1px solid rgba(0,0,0,.08);

    box-shadow:
    0 10px 25px rgba(0,0,0,.06);
}

body.light-mode .hero-section h1{

    background:

    linear-gradient(
        135deg,
        #ff7b29,
        #ff9d4d,
        #2563eb,
        #60a5fa
    );

    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

body.light-mode .job-card{

    box-shadow:
    0 20px 40px rgba(0,0,0,.08);
}

body.light-mode .floating-bookmark{

    border:
    1px solid rgba(0,0,0,.05);
}

body.light-mode .social-links a:hover{

    box-shadow:
    0 10px 25px rgba(255,123,41,.25);
}

body.light-mode .job-card{

    background:
    rgba(255,255,255,.92);

    border:
    1px solid rgba(0,0,0,.06);

    box-shadow:
    0 20px 40px rgba(0,0,0,.08);
}

body.light-mode .secondary-btn{

    background:#ffffff;

    color:#08111d;

    border:
    1px solid rgba(0,0,0,.08);

    box-shadow:
    0 10px 20px rgba(0,0,0,.05);
}

body.light-mode .job-content,
body.light-mode p{

    color:#475569;
}

/* ==========================================
   CUSTOM SCROLLBAR
========================================== */

::-webkit-scrollbar{

    width:10px;
}

::-webkit-scrollbar-track{

    background:#020617;
}

::-webkit-scrollbar-thumb{

    background:
    linear-gradient(
        180deg,
        #ff7b29,
        #2563eb
    );

    border-radius:999px;
}

body.light-mode ::-webkit-scrollbar-track{

    background:#eef4ff;
}

/* ==========================================
   PREMIUM ANIMATIONS
========================================== */

@keyframes floatY{

    0%,100%{

        transform:
        translateY(0);
    }

    50%{

        transform:
        translateY(-10px);
    }
}

.float{

    animation:
    floatY 4s ease-in-out infinite;
}

.glow{

    box-shadow:

    0 0 20px rgba(255,123,41,.35),

    0 0 50px rgba(37,99,235,.25);
}

/* ==========================================
   ACCESSIBILITY
========================================== */

button:focus,
a:focus{

    outline:
    2px solid var(--orange);

    outline-offset:3px;
}

/* ==========================================
   PERFORMANCE
========================================== */

.job-card,
.hero-btn,
.theme-toggle,
.social-links a,
.logo-center img{

    will-change:
    transform;
}

/* ==========================================
   FINAL POLISH
========================================== */

.hero-section,
.jobs-grid,
.bottom-strip,
.samjobs-footer{

    position:relative;

    z-index:5;
}

.site-main{

    min-height:100vh;
}

body{

    text-rendering:
    optimizeLegibility;

    -webkit-font-smoothing:
    antialiased;

    -moz-osx-font-smoothing:
    grayscale;
}
/* ============================================================
   3D / WATERMARK FX LAYER  (added v6.1)
   Drives off body vars --mx / --my (-1..1) and --sy set in theme.js
   ============================================================ */

:root{
  --fx-line:rgba(255,255,255,.06);
  --fx-grain:.06;
}
body.light-mode{
  --fx-line:rgba(37,99,235,.12);
  --fx-grain:.035;
}

.fx-aurora,.fx-grid,.fx-watermark,.fx-orbs,.fx-grain{pointer-events:none}

/* 1. AURORA GLOW */
.fx-aurora{
  position:fixed; inset:-30%; z-index:-18;
  filter:blur(40px); opacity:.7;
  background:
    radial-gradient(40% 40% at 20% 28%, rgba(255,123,41,.38), transparent 60%),
    radial-gradient(42% 42% at 82% 18%, rgba(37,99,235,.38), transparent 60%),
    radial-gradient(46% 46% at 60% 82%, rgba(124,140,255,.30), transparent 62%);
  animation:fxAurora 20s ease-in-out infinite alternate;
}
@keyframes fxAurora{
  0%  {transform:translate3d(0,0,0) scale(1)}
  50% {transform:translate3d(-3%,2%,0) scale(1.08)}
  100%{transform:translate3d(3%,-2%,0) scale(1.05)}
}

/* 2. 3D PERSPECTIVE GRID FLOOR */
.fx-grid{
  position:fixed; left:50%; bottom:-12%;
  width:230vw; height:130vh; z-index:-16; opacity:.55;
  transform:translateX(-50%) perspective(420px) rotateX(63deg);
  transform-origin:bottom center;
  background-image:
    linear-gradient(var(--fx-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--fx-line) 1px, transparent 1px);
  background-size:64px 64px;
  -webkit-mask-image:linear-gradient(to top,#000 8%, transparent 68%);
          mask-image:linear-gradient(to top,#000 8%, transparent 68%);
  animation:fxGrid 9s linear infinite;
}
@keyframes fxGrid{ to{ background-position:0 64px, 64px 0; } }

/* 3. LOGO WATERMARK (parallax + breathe). --wm-img set inline in header.php */
.fx-watermark{
  position:fixed; inset:0; z-index:-8;
  background-image:var(--wm-img);
  background-repeat:no-repeat;
  background-position:center 46%;
  background-size:min(72vw,760px);
  filter:grayscale(.15) drop-shadow(0 0 50px rgba(255,123,41,.35));
  opacity:.06;
  transform:translate3d(calc(var(--mx,0) * -20px),
                        calc(var(--my,0) * -20px + var(--sy,0px)), 0);
  transition:transform .25s ease-out;
  animation:fxBreathe 14s ease-in-out infinite;
}
@keyframes fxBreathe{ 0%,100%{opacity:.045} 50%{opacity:.085} }
body.light-mode .fx-watermark{ opacity:.07; filter:grayscale(0) }
.fx-watermark.tiled{
  background-size:180px; background-position:0 0;
  background-repeat:repeat; opacity:.025; filter:grayscale(.6); animation:none;
}

/* 4. REALISTIC FLOATING GLASS ORBS */
.fx-orbs{ position:fixed; inset:0; z-index:-6; overflow:hidden }
.orb{
  position:absolute; border-radius:50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,.95), rgba(255,255,255,.18) 16%, transparent 38%),
    radial-gradient(circle at 72% 78%, var(--c2), transparent 60%),
    radial-gradient(circle at 50% 50%, var(--c1), var(--c1d) 80%);
  box-shadow:
    inset -22px -26px 46px rgba(0,0,0,.45),
    inset 14px 16px 30px rgba(255,255,255,.18),
    0 40px 70px rgba(0,0,0,.5),
    0 0 70px var(--glow);
  translate: calc(var(--mx,0) * var(--depth)) calc(var(--my,0) * var(--depth));
  animation:fxOrb var(--dur,13s) ease-in-out infinite;
  will-change:transform,translate;
}
@keyframes fxOrb{ 0%,100%{transform:translateY(0)} 50%{transform:translateY(-42px)} }
.orb1{ width:200px;height:200px; top:14%; left:6%;
  --c1:#ff9b4d; --c1d:#c75412; --c2:#ffd9a8; --glow:rgba(255,123,41,.4); --depth:34px; --dur:14s }
.orb2{ width:150px;height:150px; top:24%; right:9%;
  --c1:#5b8dff; --c1d:#1e3aa8; --c2:#bcd2ff; --glow:rgba(37,99,235,.4); --depth:22px; --dur:11s; animation-delay:-3s }
.orb3{ width:96px;height:96px; bottom:14%; left:18%;
  --c1:#9aa6ff; --c1d:#4b4fd6; --c2:#e3e7ff; --glow:rgba(124,140,255,.4); --depth:46px; --dur:16s; animation-delay:-6s }
.orb4{ width:120px;height:120px; bottom:10%; right:13%;
  --c1:#ffbb6b; --c1d:#b9610f; --c2:#ffe6c2; --glow:rgba(255,160,60,.35); --depth:28px; --dur:12s; animation-delay:-2s }

/* 5. FILM GRAIN */
.fx-grain{
  position:fixed; inset:0; z-index:-2; opacity:var(--fx-grain);
  mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body.light-mode .fx-grain{ mix-blend-mode:multiply }

/* 6. ENHANCED 3D JOB CARDS (sheen + depth) */
.job-card{
  box-shadow:0 34px 60px rgba(0,0,0,.55), 0 12px 22px rgba(0,0,0,.35) !important;
}
.job-card::after{
  content:''; position:absolute; inset:0; border-radius:inherit; pointer-events:none;
  background:linear-gradient(115deg,transparent 30%,rgba(255,255,255,.12) 50%,transparent 70%);
  transform:translateX(-130%); transition:transform .8s ease;
}
.job-card:hover::after{ transform:translateX(130%) }
.job-card:hover{
  box-shadow:0 50px 90px rgba(0,0,0,.6), 0 0 0 1px rgba(255,123,41,.35), 0 0 60px rgba(255,123,41,.18) !important;
}
body.light-mode .job-card{ box-shadow:0 28px 50px rgba(0,0,0,.1) !important }
.logo-center img{ animation:logoPulse 6s ease-in-out infinite }

/* 7. MOBILE TRIMS */
@media(max-width:768px){
  .fx-grid{ opacity:.35 }
  .orb3,.orb4{ display:none }
  .orb1{ width:130px;height:130px }
  .orb2{ width:100px;height:100px }
  .fx-watermark{ background-size:88vw }
}

/* 8. REDUCED MOTION */
@media(prefers-reduced-motion:reduce){
  .fx-aurora,.fx-grid,.fx-watermark,.orb,.logo-center img{ animation:none !important }
  .job-card::after{ transition:none }
}

/* ============================================================
   LOADER FAILSAFE (added v6.1) — auto-hide the loader after 4s
   even if JavaScript fails to run, so the page can never get
   stuck behind the spinner. Normal JS hide (~1.2s) still wins.
   ============================================================ */
#samjobs-loader{
  animation: loaderFailsafe .8s ease 4s forwards;
}
@keyframes loaderFailsafe{
  to{ opacity:0; visibility:hidden; }
}