/* --- 1. COLOR VARIABLES & GLOBAL RESET --- */
:root {
    /* Define Orange Palette */
    --color-primary-orange: #FF6600;
    --color-accent-light: #FF8C40;
    --color-dark-orange: #E65C00;

    /* Define Neutral Palette */
    --color-white: #FFFFFF;
    --color-dark: #333333;
    --color-light-grey: #F5F5F5;
    --color-soft-text: #666666;
    --color-dark-grey: #444444;

    /* Typography */
    --font-heading: 'Arial', sans-serif;
    --font-body: 'Helvetica', sans-serif;

    /* --- CAROUSEL VARIABLES --- */
    --card-width: 800px;
    --card-height: 580px;
    --card-spacing: 70px;

    /* --- STACKING PORTFOLIO VARIABLES --- */
    --sticky-card-height: 60vh;
    --stacking-offset: 0px;
    --scroll-gap: 350px;
    --card-count: 5;
    --header-height: 0px;
    --mobile-card-height: 62vh;
}

/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--color-dark);
    line-height: 1.6;

    transition: background-color 0.3s, color 0.3s;
    overflow-x: hidden;
}

/* ============================
   DAY MODE SKY BACKGROUND
   ============================ */
body.day-mode {
    background: linear-gradient(
            /* Change the direction to 'to bottom' to span from top-to-bottom */
            to bottom,
            #c2ecfa,
            /* Start Color (Orangeish) - Top of the page/content */

            #7adeff
            /* End Color (Blueish) - Bottom of the page/content */
        );
    transition: background-color 0.5s ease;
    /* top → bottom sky gradient */
    overflow-x: hidden;
}

/* CLOUD CONTAINER */
#cloud-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 120vw;
    height: 120vh;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
    /* ⭐ bring clouds IN FRONT of sky */
}



/* INDIVIDUAL CLOUD */
.cloud {
    position: absolute;
    width: 500px;
    height: auto;
    pointer-events: none;
    opacity: 1;
    transition: filter 0.5s ease-out;
    animation-timing-function: linear;

    /* ★ CRITICAL FIX: The initial horizontal position will be set by JS */
    /* Remove 'left: 0;' if it was implicitly used, and let JS define 'left' */

    animation-name: cloudDrift;
    animation-iteration-count: infinite;

}

@keyframes cloudDrift {

    /* Cloud starts completely off-screen left */
    from {
        transform: translateX(-100%);
    }

    /* Cloud ends completely off-screen right (100vw + cloud width) */
    to {
        transform: translateX(100vw);
    }
}

.cloud-pause-fix {
    animation-play-state: paused !important;
}


/* ==========================================================
   ★ NIGHT MODE STAR BACKGROUND (TWINKLING SKY)
   ========================================================== */
.dark-mode {
    background: radial-gradient(circle at center, #0a0d1a 0%, #000814 100%);
}

/* ===============================
   ★ STARFIELD LAYERS
   =============================== */

#starfield,
#starfield2,
#starfield3 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;

    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0;
    transition: opacity 1s ease;
}

/* Show only in dark mode */
.dark-mode #starfield,
.dark-mode #starfield2,
.dark-mode #starfield3 {
    opacity: 1;
}

/* Star style */
.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0.6;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.8));
    animation: twinkle 2s infinite ease-in-out;
}

/* Twinkle animation */
@keyframes twinkle {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.6);
    }
}

/* ============================================
   ★ FINAL: Sharp head + short tapered thin trail
   - RIGHT edge of the element is the star head
   - rotation is fixed via transform; animation uses left/top
   ============================================ */

.shooting-star {
    position: fixed;
    width: 22px;
    /* << trail length (short) - tweak below */
    height: 2px;
    /* << trail thickness - tweak below */
    pointer-events: none;
    z-index: 999;
    transform-origin: 100% 50%;
    /* rotate around head */
    will-change: transform, left, top, opacity;
}

/* Tail: thick near head -> thin -> transparent */
.shooting-star::after {
    content: "";
    position: absolute;
    right: 0;
    /* anchor to head side */
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 100%;
    border-radius: 50px;
    /* Tapered gradient: bright near head -> thin -> transparent */
    background: linear-gradient(90deg,
            rgba(220, 240, 255, 0.95) 0%,
            /* bright at star head */
            rgba(190, 210, 255, 0.45) 25%,
            /* fast fade */
            rgba(160, 190, 255, 0.10) 55%,
            /* almost gone */
            rgba(140, 170, 255, 0.0) 100%
            /* fully invisible */
        );
    filter: blur(1.2px);
    /* airy look */
    box-shadow: 0 0 6px rgba(150, 200, 255, 0.12);
}

/* Sharp star head (always visible & twinkling brighter) */
.shooting-star::before {
    content: "✶";
    /* sharp star glyph */
    position: absolute;
    right: -10px;
    /* place head slightly outside tail */
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    /* head size (tweak if needed) */
    color: #ffffff;
    filter:
        drop-shadow(0 0 10px rgba(180, 220, 255, 0.95)) drop-shadow(0 0 22px rgba(120, 180, 255, 0.65));
    text-shadow: 0 0 8px rgba(200, 230, 255, 0.7);
    will-change: transform, opacity;
    /* Stronger twinkle for the shooting star head */
    animation: shootingHeadTwinkle 700ms ease-in-out infinite alternate;
}

/* Strong, visible twinkle for the head */
@keyframes shootingHeadTwinkle {
    0% {
        transform: translateY(-50%) scale(0.95);
        opacity: 0.85;
        filter: drop-shadow(0 0 8px rgba(150, 200, 255, 0.9));
    }

    100% {
        transform: translateY(-50%) scale(1.25);
        opacity: 1;
        filter: drop-shadow(0 0 18px rgba(180, 230, 255, 1));
    }
}

#dark-mode-toggle {
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    pointer-events: auto;
}

#dark-mode-toggle .mode-icon i {
    font-size: 1.5rem;
    /* Make the icon bigger */
}

/* --- 2. LAYOUT UTILITIES --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    padding: 80px 0;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    margin-bottom: 20px;
}

h1 {
    font-size: 3em;
}

h2 {
    font-size: 2em;
    text-align: center;
}

/* --- 3. HEADER & NAVIGATION STYLES --- */
#main-header {

    padding: 15px 0;
    position: relative;
    z-index: 1000;
}

#main-header nav {
    display: flex;
    align-items: center;
    position: relative;
    /* IMPORTANT */
}

.logo {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--color-primary-orange);
}

#main-header nav ul {
    position: absolute;
    /* removes it from flex flow */
    left: 50%;
    transform: translateX(-50%);

    display: flex;
    gap: 32px;

    list-style: none;
    margin: 0;
    padding: 0;
}

#dark-mode-toggle {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

#main-header nav ul li a {
    text-decoration: none;
    color: var(--color-dark);
    padding: 0 15px;
    font-weight: 500;
    transition: color 0.3s;
}

#main-header nav ul li a:hover {
    color: var(--color-primary-orange);
}

/* === RESTORED: DARK MODE TOGGLE BUTTON (Icon Only + Tooltip) === */
#theme-toggle {
    background: transparent;
    border: none;
    box-shadow: none;
    cursor: pointer;
    font-size: 1.5em;
    padding: 5px 10px;
    color: var(--color-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    /* Anchor for tooltip */
    transition: transform 0.3s ease, color 0.3s ease;
}

/* Hide any text inside the button if it exists (to show only icon) */
#theme-toggle span {
    display: none;
}

#theme-toggle:hover {
    transform: scale(1.1);
    color: var(--color-primary-orange);
}

/* THE TOOLTIP BOX */
#theme-toggle::after {
    content: "Night mode";
    /* Default text */
    position: absolute;
    top: 140%;
    /* Position below button */
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-family: var(--font-body);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
    /* Let clicks pass through */
    z-index: 2000;
}

/* Show tooltip on hover */
#theme-toggle:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dark Mode Specifics for Button */
.dark-mode #theme-toggle {
    color: var(--color-white);
}

.dark-mode #theme-toggle:hover {
    color: var(--color-primary-orange);
}

/* Change Tooltip text/style in Dark Mode */
.dark-mode #theme-toggle::after {
    content: "Day mode";
    background: rgba(255, 255, 255, 0.9);
    color: #000;
}

/* CTA button */
.cta-button {
    display: inline-block;
    padding: 12px 25px;
    margin-top: 20px;
    background: var(--color-primary-orange);
    color: var(--color-white);
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color .3s, transform .2s;
    border: 2px solid var(--color-primary-orange);
}

.cta-button:hover {
    background: var(--color-accent-light);
    transform: translateY(-2px);
}

/* --- HERO & DARK MODE etc --- */
#hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
    background-color: transparent !important;
    backdrop-filter: none !important;
    padding: 100px 0;
    overflow: hidden;
    z-index: 0 !important;
}

#hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.greeting {
    font-size: 1.2em;
    font-weight: 500;
    color: var(--color-primary-orange);
    margin-bottom: 5px;
}

#hero h1 {
    font-size: 4.5em;
    font-weight: 900;
    line-height: 1.1;
    color: var(--color-dark);
    margin-bottom: 15px;
    max-width: 900px;
}

#hero h1 strong {
    color: var(--color-primary-orange);
    z-index: 0;
}

#hero h2 {
    font-size: 1.5em;
    font-weight: 400;
    color: #666;
    max-width: 700px;
    margin-bottom: 30px;
    z-index: 0;
}

#hero .cta-button {
    padding: 15px 35px;
    font-size: 1.1em;
    border-radius: 8px;
}

/* Dark mode variables */
.dark-mode {
    --color-dark: #FFFFFF;
    --color-white: #1A1A1A;
    --color-light-grey: #262626;
    --color-soft-text: #AAAAAA;
    --color-dark-grey: #333333;
    --color-grey-shade-dark: #333;
}

.dark-mode body {
    background-color: var(--color-white);
    color: var(--color-dark);
}


/* =========================================================
   ABOUT SECTION (CLEAN – NO ID CARD)
========================================================= */

#about {
    min-height: 85vh;
    padding: 100px 0;
    position: relative;
    z-index: 50;
}

.about-content-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* =========================================================
   ABOUT INTRO STAGE
========================================================= */

.about-intro-stage {
    width: 100%;
    min-height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}


/* =========================================================
   📱 IPHONE MODE (MOBILE ONLY)
========================================================= */
@media (max-width: 768px) {

    /* Kill desktop monitor parts */
    .monitor-stand,
    .monitor-controls,
    .screen-power-btn {
        display: none !important;
    }

    /* Phone body */
    .monitor-bezel {
        padding: 10px;
        border-radius: 42px;
        background: #0f0f10;
        box-shadow:
            0 30px 80px rgba(0, 0, 0, .55),
            inset 0 0 0 2px #1c1c1e;
    }

    /* Phone screen */
    .monitor-screen {
        aspect-ratio: 9 / 19.5;
        border-radius: 32px;
        overflow: hidden;
        background: #000;
    }

    /* Remove center mask artifacts */
    .monitor-screen::before {
        display: none;
    }

    /* Apple background always fills */
    .apple-bg {
        border-radius: 28px;
    }

    /* Hide ALL Windows-related layers */
    .login-screen,
    .login-xp,
    .login-win7,
    .login-bg,
    .monitor-bg {
        display: none !important;
    }
}

@media (max-width: 768px) {

    .iphone-buttons {
        position: absolute;
        inset: 0;
        pointer-events: none;
        z-index: 80;
    }

    /* Shared metallic finish */
    .iphone-buttons span {
        background: linear-gradient(to bottom,
                #0c0c0d,
                #1a1a1c,
                #0c0c0d);
        box-shadow:
            inset 0 0 0.5px rgba(255, 255, 255, .25),
            0 0 2px rgba(0, 0, 0, .6);
    }

    /* Mute switch (very slim) */
    .iphone-mute {
        position: absolute;
        left: -1.5px;
        top: 72px;
        width: 2px;
        height: 22px;
        border-radius: 1px;
    }

    /* Volume buttons */
    .iphone-volume {
        position: absolute;
        left: -1.5px;
        width: 2.5px;
        height: 34px;
        border-radius: 1.5px;
    }

    .iphone-volume.up {
        top: 120px;
    }

    .iphone-volume.down {
        top: 162px;
    }

    /* Power button */
    .iphone-power {
        position: absolute;
        right: -1.5px;
        top: 132px;
        width: 2.5px;
        height: 48px;
        border-radius: 1.5px;
    }


}

@media (max-width: 768px) {

    .monitor-bg::before,
    .monitor-bg::after {
        display: none !important;
        content: none !important;
    }
}


/* =========================================================
   MONITOR (APPLE STYLE)
========================================================= */

.monitor {
    width: 100%;
    max-width: 960px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.monitor-bezel {
    width: 100%;
    position: relative;
    background: linear-gradient(to bottom, #4d4c4c, #3a3939);
    border-radius: 30px;
    padding: 20px;
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 -1px 0 rgba(0, 0, 0, 0.35);
}


.monitor-screen {
    width: 100%;
    aspect-ratio: 16 / 9;
    /* ← THIS WAS LOST */
    background: #000;
    position: relative;
    overflow: hidden;
}

.monitor-screen.is-on {
    background: #f7f7f7;
}

/* 🔒 FORCE BLACK WHEN OFF */
.monitor-screen.is-off {
    background: #000 !important;
}

/* Green power button should NEVER sit on white */
.monitor-screen.is-off::before {
    opacity: 1;
    transform: scaleY(1);
}


.monitor-screen::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #000;
    z-index: 20;
    pointer-events: none;
    opacity: 1;
    transform: scaleY(1);
    transition: opacity 0.2s ease;
}

/* 🔥 WHEN SCREEN IS ON → MASK IS GONE */
.monitor-screen.is-on::before,
.monitor-screen.show-intro::before,
.monitor-screen.show-content::before {
    opacity: 0;
    transform: scaleY(0);
}

.monitor-screen.is-powering-on::before {
    animation: screenOnReveal 1.2s ease forwards;
}

@keyframes screenOnReveal {
    0% {
        opacity: 1;
        transform: scaleY(1);
    }

    40% {
        transform: scaleY(0.05);
    }

    100% {
        opacity: 0;
        transform: scaleY(0);
    }
}

.screen-power-flare {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    background: #fff;
    opacity: 0;
    z-index: 21;
    transform: translateY(-50%);
}

.monitor-screen.power-on::before {
    animation: screenRevealSplit 1.2s ease forwards 0.4s;
}

.monitor-screen.power-on .screen-power-flare {
    animation: lineAppear 0.3s ease forwards,
        lineSplit 1.2s ease forwards 0.3s;
}

@keyframes lineAppear {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes lineSplit {
    from {
        height: 2px;
    }

    to {
        height: 200%;
    }
}

@keyframes screenRevealSplit {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes powerLineFlash {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes powerExpand {
    from {
        height: 2px;
    }

    to {
        height: 200%;
    }
}



/* Stand */
.monitor-stand {
    width: 180px;
    height: 14px;
    margin-top: 12px;
    background: linear-gradient(#d9d9d9, #bfbfbf);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}



/* -------------------------
   BOOT VIDEO
------------------------- */
.boot-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;

    opacity: 0;
    pointer-events: none;
    z-index: 25;
    transition: opacity 0.4s ease;
}

.boot-video.active {
    opacity: 1;
}

/* -------------------------
   BOOTING STATE
------------------------- */
.monitor-screen.booting {
    background: #000 !important;
}

.monitor-screen.booting::before {
    opacity: 0;
    transform: scaleY(0);
}

/* =========================================================
   LOGIN SCREEN (FINAL, STABLE)
========================================================= */

/* -------------------------
   BASE LOGIN LAYER
------------------------- */
.login-screen {
    position: absolute;
    inset: 0;
    z-index: 15;

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.login-screen.active {
    opacity: 1;
    pointer-events: auto;
}

/* =========================
   APPLE MOBILE MODE
========================= */

.apple-bg {
    position: absolute;
    inset: 0;

    background-image: url("Images/Background/Monitor/Apple_bg.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    opacity: 0;
    pointer-events: none;

    z-index: 4;
    /* IMPORTANT */
    transition: opacity 0.6s ease;
}

/* =========================
   APPLE MODE – HARD OVERRIDE
========================= */

.monitor-screen.apple-on .login-screen,
.monitor-screen.apple-on .login-bg,
.monitor-screen.apple-on .login-xp,
.monitor-screen.apple-on .login-win7 {
    display: none !important;
}

.monitor-screen.apple-on .monitor-bg {
    opacity: 0 !important;
}

.monitor-screen.apple-on .apple-bg {
    opacity: 1;
    z-index: 6;
}


/* -------------------------
   BACKGROUNDS (CRITICAL RESET)
------------------------- */
.login-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* correct for both XP & Win7 */
    user-select: none;
    display: none;
    /* 🔥 RESET EVERYTHING */
}

/* XP background ONLY */
body.day-mode .login-bg-xp {
    display: block;
}

/* Win7 background ONLY */
body.dark-mode .login-bg-win7 {
    display: block;
}

/* -------------------------
   CENTER CONTAINER
------------------------- */
.login-center {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

/* =========================================================
   LOGIN LAYOUT VISIBILITY (RESET)
========================================================= */
.login-xp,
.login-win7 {
    display: none;
    /* 🔥 IMPORTANT */
}

/* XP layout */
body.day-mode .login-xp {
    display: block;
}

/* Win7 layout */
body.dark-mode .login-win7 {
    display: flex;
}



/* =========================================================
   WINDOWS XP LOGIN
========================================================= */
body.day-mode .login-xp {
    position: relative;
    text-align: center;
}

body.day-mode .login-text {
    font-family: Tahoma, Verdana, sans-serif;
    font-size: 34px;
    font-style: italic;
    font-weight: normal;
    color: #ffffff;

    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
    user-select: none;
}

/* =========================================================
   XP BACKGROUND GLOW (SUBTLE, BEHIND IMAGE)
========================================================= */

body.day-mode .login-bg-xp {
    animation: xpGlowPulse 4s ease-in-out infinite;
}

/* Soft light breathing effect */
@keyframes xpGlowPulse {
    0% {
        filter: brightness(1) drop-shadow(0 0 0 rgba(255, 255, 255, 0));
    }

    50% {
        filter: brightness(1.04) drop-shadow(0 0 28px rgba(255, 255, 255, 0.18));
    }

    100% {
        filter: brightness(1) drop-shadow(0 0 0 rgba(255, 255, 255, 0));
    }
}

@keyframes xpBarMove {
    from {
        background-position: -160px 0;
    }

    to {
        background-position: 160px 0;
    }
}

/* =========================================================
   WINDOWS 7 LOGIN (PIXEL-TUNED)
========================================================= */
body.dark-mode .login-win7 {
    align-items: center;
    gap: 10px;
}

/* Spinner */
body.dark-mode .login-win7 .login-loader {
    width: 24px;
    height: 24px;

    background: url("Images/Background/Monitor/spinner.svg") center / contain no-repeat;

    animation: win7Spin 1s linear infinite;
}

/* Text */
body.dark-mode .login-win7 .login-text {
    font-family: "Segoe UI", "Segoe UI Variable", Arial, sans-serif;
    font-size: 25px;
    font-weight: 400;
    line-height: 1;

    color: #ffffff;

    text-shadow:
        0 1px 1px rgba(0, 0, 0, 0.55),
        0 0 2px rgba(255, 255, 255, 0.15);

    transform: translateY(1px);
    user-select: none;
}

@keyframes win7Spin {
    to {
        transform: rotate(360deg);
    }
}


/* =========================
   MONITOR BACKGROUND PICTURE
========================= */

.monitor-bg {
    position: absolute;
    inset: 0;
    z-index: 1;

    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;

    opacity: 0;
    transition: opacity 0.4s ease;
}

/* When typing/content is active */
.monitor-screen.show-content .monitor-bg {
    opacity: 1;
}

/* Day mode background */
body.day-mode .monitor-screen.show-content .monitor-bg {
    background-image: url("Images/Background/Monitor/Monitor_BG_Day.jpg");
}

/* Night mode background */
body.dark-mode .monitor-screen.show-content .monitor-bg {
    background-image: url("Images/Background/Monitor/Monitor_BG_Night.jpg");
}



/* =========================================================
   Monitor Buttons (FINAL – MICRO POLISHED)
========================================================= */

.monitor-controls {
    position: absolute;
    left: 50%;
    bottom: 6px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 9px;
    z-index: 30;

    margin-left: 8px;
    margin-bottom: -4px;
}

/* spacing around power LED */
.ctrl.volume,
.ctrl.minus,
.ctrl.plus {
    margin-right: 12px;
}

.ctrl.power,
.ctrl.menu,
.ctrl.exit {
    margin-left: 12px;
}

/* =========================================================
   PROFILE ICON (TOP RIGHT)
========================================================= */

.profile-btn {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.06);
    border: none;
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 35;
}

.profile-btn svg {
    width: 16px;
    height: 16px;
    fill: #333;
}

.profile-btn:hover {
    background: rgba(0, 0, 0, 0.12);
}

/* =========================================================
   SCREEN POWER BUTTONS
========================================================= */

.screen-power-btn {
    position: absolute;
    background: none;
    border: none;
    padding: 0;
    margin: 0;

    width: 56px;
    height: 56px;

    display: none;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    cursor: pointer;
    z-index: 60;
}

.screen-power-btn img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    pointer-events: none;
    transition: filter 0.25s ease, transform 0.25s ease;
}

/* Power OFF → red glow */
.screen-power-btn.bottom-left:hover img {
    filter:
        drop-shadow(0 0 6px rgba(255, 60, 60, 0.9)) drop-shadow(0 0 12px rgba(255, 60, 60, 0.6));
    transform: scale(1.08);
}

/* Power ON → green glow */
.screen-power-btn.center:hover img {
    filter:
        drop-shadow(0 0 6px rgba(0, 255, 106, 0.9)) drop-shadow(0 0 12px rgba(0, 255, 106, 0.6));
    transform: scale(1.08);
}

.screen-power-btn.bottom-left {
    left: 24px;
    bottom: 12px;
}

.screen-power-btn.center {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}



/* =========================================================
   SCREEN STATES
========================================================= */

.monitor-screen {
    background: #000;
    position: relative;
    overflow: hidden;
}

/* black mask */
.monitor-screen::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #000;
    z-index: 20;
    opacity: 1;
    transform: scaleY(1);
    pointer-events: none;
}


.monitor-screen.is-on,
.monitor-screen.power-on,
.monitor-screen.show-intro,
.monitor-screen.show-content {
    background: #f7f7f7;
}

/* ================= POWER ON ================= */

.monitor-screen.is-powering-on::before {
    animation: screenOn 1.2s ease forwards;
}

@keyframes screenOn {
    0% {
        opacity: 1;
        transform: scaleY(1);
    }

    40% {
        transform: scaleY(0.05);
    }

    100% {
        opacity: 0;
        transform: scaleY(0);
    }
}

.monitor-screen.is-on {
    background: #f7f7f7;
}

/* ================= POWER OFF ================= */

.monitor-screen.is-powering-off::before {
    animation: screenOff 1.2s ease forwards;
}

@keyframes screenOff {
    0% {
        opacity: 0;
        transform: scaleY(0);
    }

    40% {
        opacity: 1;
        transform: scaleY(0.05);
    }

    100% {
        opacity: 1;
        transform: scaleY(1);
    }
}

/* ================= BUTTON VISIBILITY ================= */

.screen-power-btn {
    display: none;
}




/* =========================================================
   PROFILE OVERLAY (INSIDE MONITOR)
========================================================= */

.profile-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    border-radius: 0px;
    overflow: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease;
    z-index: 40;
}

.profile-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.profile-image {
    max-width: 75%;
    max-height: 80%;
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}


/* Close button */
.profile-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    cursor: pointer;
}

/* =========================================================
   PROFILE AVATAR BUTTON (TOP RIGHT)
========================================================= */

.profile-btn.avatar {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    padding: 0;
    cursor: pointer;
    pointer-events: auto !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    box-shadow:
        0 0 0 2px rgb(243, 111, 3),
        0 6px 14px rgba(0, 0, 0, 0.25);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.profile-btn.avatar:hover {
    transform: scale(1.06);
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.9),
        0 10px 24px rgba(0, 0, 0, 0.35);
}

/* =========================================================
   Base Button (slightly smaller)
========================================================= */

.ctrl {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(#555, #2f2f2f);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.6);
}

/* uniform subtle glow */
.ctrl>*,
.ctrl::before,
.ctrl::after {
    color: #fff;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.45));
}

/* =========================================================
   VOLUME
========================================================= */

.ctrl.volume::before {
    content: "🔊";
    font-size: 10px;
    line-height: 1;
}

/* =========================================================
   PLUS (true center)
========================================================= */

.ctrl.plus {
    position: relative;
}

.ctrl.plus::before,
.ctrl.plus::after {
    content: "";
    position: absolute;
    background: #fff;
    border-radius: 1px;
}

/* Horizontal bar */
.ctrl.plus::before {
    width: 8px;
    height: 2px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* Vertical bar */
.ctrl.plus::after {
    width: 2px;
    height: 8px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* =========================================================
   MINUS (true center)
========================================================= */

.ctrl.minus {
    position: relative;
}

.ctrl.minus::before {
    content: "";
    width: 9px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
}

/* =========================================================
   POWER (center corrected)
========================================================= */



.ctrl.power {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(#555, #2f2f2f);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.6);
    display: grid;
    place-items: center;
    overflow: hidden;
    /* safety */
}

/* Almost edge-to-edge icon */
.ctrl.power::before {
    content: "";
    width: 12px;
    /* 🔥 nearly full button */
    height: 12px;
    background-image: url("Images/Background/Monitor/Power Button.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    display: block;

    /* Optical centering */
    transform: translateY(-1px);
}

/* =========================================================
   MENU (☼ – centered optically)
========================================================= */
.ctrl.menu::before {
    content: "◐";
    color: #fff;
    font-size: 11px;
    /* visually balanced */
    line-height: 1;
    display: block;

    /* precise centering */
    transform: translateY(1px);


}

/* =========================================================
   EXIT (X)
========================================================= */

.ctrl.exit {
    position: relative;
}

.ctrl.exit::before,
.ctrl.exit::after {
    content: "";
    position: absolute;
    width: 9px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
}

.ctrl.exit::before {
    transform: rotate(45deg);
}

.ctrl.exit::after {
    transform: rotate(-45deg);
}

/* =========================================================
   Subtle hardware hover (optional)
========================================================= */

.ctrl:hover {
    background: linear-gradient(#666, #3a3a3a);
}

/* =========================================================
   SCREEN CONTENT
========================================================= */

.screen-intro {
    display: flex;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.screen-intro.visible {
    opacity: 1;
    pointer-events: auto;
}

.screen-content {
    display: none;
    /* 🔴 HARD HIDE */
    flex-direction: column;
    padding: 40px;
    gap: 16px;
    text-align: center;
    color: #111;
}

.screen-intro,
.screen-content {
    position: absolute;
    inset: 0;
    justify-content: center;
    align-items: center;
    z-index: 30;
}



.screen-content h2 {
    font-size: 2.6rem;
    /* ⬅ bigger */
    margin-bottom: 16px;
}

/* =========================
   BLURRED BACKGROUND FOR TEXT
========================= */

.blur-bg {
    padding: 16px 20px;
    border-radius: 10px;

    background: rgba(0, 0, 0, 0.25);
    /* subtle dark glass */
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.25);
}

body.dark-mode .screen-content h2 {
    color: #ffffff;
}

.about-text-content p {
    font-size: 1.2rem;
    line-height: 1.7;

    color: #f8f3f3;
    /* white text */
    text-shadow:
        0 4px 5px rgba(0, 0, 0, 0.45);

}

/* =========================================================
   ABOUT BUTTON
========================================================= */

.about-enter-btn {
    padding: 14px 36px;
    font-size: 1rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    background: var(--color-primary-orange);
    color: #fff;
}

.about-enter-btn:hover {
    box-shadow:
        0 0 0 3px rgba(255, 102, 0, 0.25),
        0 14px 32px rgba(255, 102, 0, 0.35);
}

.about-enter-btn.clicked {
    transform: scale(0.94);
}

/* =========================================================
   FAKE CURSOR (SVG ONLY — FIXED)
========================================================= */

.fake-cursor {
    position: absolute;
    left: 0;
    top: 0;
    transform: scale(0.82);
    transform-origin: top left;

    width: 40px;
    /* ⬅ bigger than SVG */
    height: 44px;

    display: block;
    opacity: 0;

    pointer-events: none;
    z-index: 40;

    overflow: visible;
    /* ⬅ THIS IS CRITICAL */
}

.fake-cursor,
.fake-cursor svg {
    overflow: visible;
}

.fake-cursor.hand {
    width: 44px;
    height: 48px;
}


/* =========================================================
   TYPING PARAGRAPH CURSOR
========================================================= */


.typing-paragraph.typing-active::after {
    opacity: 1;
    animation: blockBlink 0.65s steps(1) infinite;
}

.typing-caret {
    display: inline-block;
    width: 0.45ch;
    height: 1em;
    background: #000;
    color: #fff;

    /* KEY FIX */
    position: relative;
    top: 0.005em;
    /* lifts caret to match baseline */

    line-height: 1em;
    animation: caretBlink 0.8s steps(1) infinite;
}


@keyframes caretBlink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.screen-content.centered {
    justify-content: center;
}



/* =========================================================
   POWER LED (BOTTOM BEZEL)
========================================================= */

.power-led {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00ff6a;
    /* DEFAULT = GREEN */
    box-shadow:
        0 0 6px rgba(0, 255, 106, 0.9),
        0 0 12px rgba(0, 255, 106, 0.5);
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.power-led.is-off {
    background: #ff2a2a;
    box-shadow:
        0 0 6px rgba(255, 42, 42, 0.9),
        0 0 12px rgba(255, 42, 42, 0.4);
}

.power-led.is-on {
    background: #00ff6a;
    box-shadow:
        0 0 6px rgba(0, 255, 106, 0.9),
        0 0 12px rgba(0, 255, 106, 0.5);
}

@keyframes ledPulse {
    0% {
        opacity: 0.55;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.55;
    }
}


/* =========================================================
   📱 MOBILE FRAME (MODERN iPHONE STYLE — CLEAN)
========================================================= */
@media (max-width: 768px) {

    #about {
        padding: 60px 0;
    }

    .monitor {
        max-width: 380px;
    }

    .monitor-bezel {
        padding: 14px;
        border-radius: 32px;
        background: #0f0f10;
        box-shadow:
            0 30px 80px rgba(0, 0, 0, 0.55),
            inset 0 0 0 2px #1c1c1e;
    }

    .monitor-screen {
        aspect-ratio: 9 / 19.5;
        /* modern iPhone */
        border-radius: 26px;
        overflow: hidden;
        background: #000;
    }

    /* 🔥 REMOVE ALL LEGACY HARDWARE */
    .monitor-stand,
    .monitor-controls,
    .screen-power-btn,
    .fake-cursor {
        display: none !important;
    }

    /* Ensure NO pseudo hardware appears */
    .monitor-bezel::before,
    .monitor-bezel::after,
    .monitor-screen::before,
    .monitor-screen::after {
        content: none !important;
        display: none !important;
    }

    .profile-btn.avatar {
        left: 14px;
        right: auto;
        top: 14px;
    }

    /* Content spacing */
    .screen-content {
        padding: 28px 20px;
    }

    .screen-content h2 {
        font-size: 2rem;
    }

    .about-text-content p {
        font-size: 1rem;
    }
}


/* =========================================================
   📲 TABLET FRAME (CLEAN iPAD STYLE — NO BUTTON)
========================================================= */
@media (max-width: 1024px) and (min-width: 769px) {

    .monitor {
        max-width: 720px;
    }

    .monitor-bezel {
        border-radius: 26px;
        padding: 18px;
        background: linear-gradient(#2f2f2f, #1f1f1f);
        box-shadow:
            0 30px 70px rgba(0, 0, 0, 0.45),
            inset 0 0 0 2px #1b1b1b;
    }

    .monitor-screen {
        aspect-ratio: 3 / 4;
        border-radius: 18px;
        background: #000;
    }

    /* Kill all desktop / phone hardware */
    .monitor-stand,
    .monitor-controls,
    .screen-power-btn,
    .fake-cursor {
        display: none !important;
    }

    /* Remove ALL pseudo elements */
    .monitor-bezel::before,
    .monitor-bezel::after,
    .monitor-screen::before,
    .monitor-screen::after {
        content: none !important;
        display: none !important;
    }
}



/* --- 7. CAROUSEL/CARD STYLES --- */

#case-studies .container {
    perspective: 1500px;
    min-height: 600px;
    max-width: 1400px;

}

.case-study-card.item {
    height: 100%;
    position: absolute;
    width: var(--card-width);
    background-color: var(--color-white);
    border-radius: 10px;
    border: 1px solid var(--color-light-grey);
    overflow: hidden;
    transition: transform .5s, opacity .5s, filter .5s;
    left: calc(50% - (var(--card-width) / 2));
    top: 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    z-index: 10;
}

.dark-mode .case-study-card {
    background-color: var(--color-light-grey);
    border-color: #333;
}

.case-study-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* Card internals */
.card-header {
    padding: 15px 20px;
    background-color: var(--color-primary-orange);
    color: var(--color-white);
    text-align: center;
}

.card-header h3 {
    margin: 0;
    font-size: 1.1em;
}

.dm-card .card-content {
    display: flex;
    flex-wrap: nowrap;
    padding: 30px 40px 100px 40px;
    justify-content: space-between;
}


.case-study-card .card-content {
    display: flex;
    flex-wrap: nowrap;
    padding: 30px 40px 100px 40px;
    justify-content: space-between;
}

/* ============================= */
/* CARD IMAGE CONTAINMENT FIX */
/* ============================= */

.visual-area {
    position: relative;
    width: 100%;
    height: 100%;
    /* subtle frame */
    display: flex;
    align-items: center;
    justify-content: center;

    flex-direction: column;
    gap: 16px;

}

.visual-area img+img {
    margin-top: 16px;
    /* adjust to taste */
}

.metric-area,
.visual-area {
    width: 100%;
    padding: 10px 0;
}

/* The actual image */
.visual-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 🔥 KEY */
    display: block;
}

.metric-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* 🔥 center everything */
    text-align: center;
    min-height: 260px;
    /* locks text block height */
    justify-content: flex-start;
}

@media (min-width:500px) {
    .dm-card .metric-area {
        flex: 1;
        max-width: 35%;
        padding-right: 30px;
    }

    .dm-card .visual-area {
        flex: 2;
        max-width: 65%;
        padding-left: 30px;
        text-align: right;
    }
}

.key-metric {
    font-size: 2.5em;
    font-weight: 900;
    color: var(--color-primary-orange);
    line-height: 1;
}

.metric-label {
    font-size: 1em;
    font-weight: 600;
    color: var(--color-soft-text);
    margin-bottom: 15px;
}

/* === UPDATED: DATA LIST "SPOTLIGHT" EFFECT === */
.data-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.data-list li {
    margin-bottom: 12px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: .85em;
    color: var(--color-dark);
    font-weight: 400;
    display: inline-block;
    background: var(--color-light-grey);
    box-shadow: 0 2px 5px rgba(0, 0, 0, .05);
    /* Smooth transitions for all changing properties */
    transition: transform 0.4s ease, filter 0.4s ease, opacity 0.4s ease, background-color 0.3s, color 0.3s;
}

/* 1. When the container (.data-list) is hovered, Blur and Fade ALL items */
.data-list:hover li {
    filter: blur(2px);
    opacity: 0.5;
    transform: scale(0.95);
}

/* 2. BUT, for the specific item the mouse is on, Remove blur, Scale UP, and Highlight */
.data-list li:hover {
    filter: none;
    opacity: 1;
    transform: scale(1.1);
    background-color: var(--color-white);
    color: var(--color-primary-orange);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    z-index: 10;
    cursor: default;
}

/* Buttons inside case-study cards */
.case-study-card.item .view-case-study-btn {
    position: absolute !important;
    bottom: 3px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: auto !important;
    padding: 12px 30px !important;
    min-width: 220px !important;
    max-width: 300px !important;
    display: inline-block !important;
    margin: 0 auto !important;
    background-color: var(--color-primary-orange) !important;
    color: var(--color-white) !important;
    border: 2px solid var(--color-primary-orange) !important;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.4) !important;
}

.case-study-card.item .view-case-study-btn:hover {
    background-color: var(--color-accent-light) !important;
    border-color: var(--color-accent-light) !important;
    transform: translateX(-50%) translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.6) !important;
}

/* Carousel nav */
.carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 50;
    left: 0;
    right: 0;
    margin: 0 auto;
    max-width: 1200px;
}

.visual-area img+img {
    margin-top: 25px;

}

#prev-card,
#next-card {
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid var(--color-primary-orange);
    border-radius: 50%;
    color: var(--color-primary-orange);
    width: 55px;
    height: 55px;
    font-size: 1.5em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s;
    pointer-events: auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .1);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
}

#prev-card {
    left: 5px;
}

#next-card {
    right: 5px;
}

#prev-card:hover,
#next-card:hover {
    background-color: var(--color-primary-orange);
    color: var(--color-white);
    border-color: var(--color-primary-orange);
    box-shadow: 0 6px 15px rgba(0, 0, 0, .2);
    transform: translateY(-50%) scale(1.1);
}

/* ---------- Responsive sticky sizing strategy ---------- */
@media (min-width:601px) and (max-width:850px) {
    :root {
        --sticky-card-height: calc(var(--mobile-card-height) * 1.3);
    }
}

@media (max-width: 600px) {

    /* Stack content vertically */
    .case-study-card .card-content {
        flex-direction: column;
        padding: 20px 20px 90px 20px;
    }

    /* Images first */
    .case-study-card .visual-area {
        order: 1;
        width: 100%;
        padding: 0;
    }

    /* Text after images */
    .case-study-card .metric-area {
        order: 2;
        width: 100%;
        margin-top: 16px;
        min-height: auto;
        /* remove desktop lock */
    }

}

/* -----------------------------------------------------------------
   STICKY STACKING SYSTEM
   ----------------------------------------------------------------- */
#website-portfolio {
    min-height: 400vh;
    padding: 80px 0;
}

#sticky-cards-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(var(--card-count), var(--sticky-card-height));
    gap: var(--scroll-gap);
    padding-bottom: calc(var(--card-count) * var(--stacking-offset) * 2);
    margin-bottom: 100px;
    position: relative;
}

#sticky-cards-list::after {
    content: "";
    display: block;
    height: 10vh;
    width: 1px;
    visibility: hidden;
}

.sticky-card-item {
    position: sticky;
    top: 20vh;
    padding-top: calc(var(--index) * var(--stacking-offset));
    transition: padding-top 0.25s ease-out;
    z-index: 10;
    display: block;
}

#portfolio-card-1 {
    --index: 0;
    z-index: 10;
}

#portfolio-card-2 {
    --index: 1;
    z-index: 11;
}

#portfolio-card-3 {
    --index: 2;
    z-index: 12;
}

#portfolio-card-4 {
    --index: 3;
    z-index: 13;
}

#portfolio-card-5 {
    --index: 4;
    z-index: 14;
}

.sticky-card-item .portfolio-card {
    margin: 0 auto;
    width: 80vw;
    max-width: 1000px;
    height: var(--sticky-card-height);
    display: flex;
    flex-direction: row;
    align-items: stretch;
    border-radius: 20px;
    overflow: hidden;
}

.sticky-card-item::before {
    content: '';
    display: block;
    width: 100%;
    height: 24px;
}

.portfolio-card {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
}

/* Per-breakpoint stacking/inner-layout tweaks */
@media (min-width:601px) and (max-width:850px) {
    .portfolio-card {
        height: var(--sticky-card-height) !important;
        min-height: var(--sticky-card-height) !important;
        max-height: var(--sticky-card-height) !important;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .card-left,
    .card-right {
        flex: 1 1 auto;
        min-height: 0;
        padding: 18px !important;
        gap: 12px;
        overflow-y: auto;
    }

    #sticky-cards-list {
        gap: calc(var(--scroll-gap) * 0.75);
        grid-template-rows: repeat(var(--card-count), var(--sticky-card-height));
        padding-bottom: 70px;
    }
}

@media (max-width:600px) {

    #website-portfolio {
        padding-bottom: 140px;
    }

    .portfolio-card {
        height: var(--sticky-card-height) !important;
        min-height: var(--sticky-card-height) !important;
        max-height: var(--sticky-card-height) !important;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .card-left,
    .card-right {
        flex: 1 1 auto;
        min-height: 0;
        padding: 16px !important;
        gap: 10px;
        overflow-y: auto;
    }

    #sticky-cards-list {
        gap: calc(var(--scroll-gap) * 0.6);
        grid-template-rows: repeat(var(--card-count), var(--sticky-card-height));
        padding-bottom: 60px;
    }
}

/* --- 10. GENERIC BUTTON STYLES --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 1em;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    transition: background-color .3s ease, color .3s ease, box-shadow .3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-primary-orange);
    color: var(--color-white);
    border-color: var(--color-primary-orange);
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.4);
}

.btn-primary:hover {
    background-color: var(--color-dark-orange);
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.6);
}

.modal .btn-primary {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 30px auto 10px auto;
    padding: 15px 30px;
}

/* -----------------------------------------------------------------
   11. PORTFOLIO CARD STYLING (ORANGE THEME)
   ----------------------------------------------------------------- */
.portfolio-heading {
    text-align: center;
    margin-bottom: 10px;
    font-size: 3em;
    font-weight: 700;
    color: var(--color-dark);
}

.portfolio-intro {
    text-align: center;
    max-width: 600px;
    margin: 0px auto 50px auto;
    font-size: 1.1em;
    color: var(--color-soft-text);
}

.dark-mode .portfolio-heading {
    color: white;
}

.portfolio-card {
    position: relative;
    width: 80vw;
    max-width: 1000px;
    height: var(--sticky-card-height);
    margin: 80px auto 50px auto;
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1), 0 0 15px rgba(255, 102, 0, 0.4);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    transition: transform .4s ease;
}

.dark-mode .portfolio-card {
    background-color: rgba(30, 30, 30, 0.5);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3), 0 0 18px rgba(255, 102, 0, 0.5);
}

.card-left {
    flex: 1;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    border-right: 1px solid var(--color-light-grey);
}

.dark-mode .card-left {
    border-right-color: #333;
}

.card-right {
    flex: 1;
    padding: 60px;
    background-color: #fafafa;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dark-mode .card-right {
    background-color: #252525;
}

.project-tag {
    display: inline-block;
    padding: 6px 14px;
    background-color: rgba(255, 102, 0, 0.1);
    color: var(--color-dark-orange);
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 0.5px;

}

.dark-mode .project-tag {
    background-color: rgba(255, 102, 0, 0.2);
    color: var(--color-primary-orange);

}


.portfolio-card h3 {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 15px;
    line-height: 1.1;
}

.dark-mode .portfolio-card h3 {
    color: whitesmoke;
}

.portfolio-card p {
    font-size: 1.1em;
    color: var(--color-soft-text);
    margin-bottom: 30px;
    line-height: 1.6;
    max-width: 90%;
}

.portfolio-card .visit-btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--color-primary-orange);
    color: var(--color-white);
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s, background-color .2s;
    box-shadow: 0 4px 10px rgba(255, 102, 0, 0.3);
}

.portfolio-card .visit-btn:hover {
    transform: translateY(-2px);
    background-color: var(--color-dark-orange);
    box-shadow: 0 8px 20px rgba(255, 102, 0, 0.5);
}

.feature-box {
    background-color: var(--color-white);
    border: 1px solid var(--color-light-grey);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    transition: border-color .3s;
}

.feature-box:hover {
    border-color: rgba(255, 102, 0, 0.3);
}

.dark-mode .feature-box {
    background-color: #333;
    border-color: #444;
}

.feature-box h4 {
    font-size: 1em;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--color-dark);
}

.dark-mode .feature-box h4 {
    color: whitesmoke;
}

.feature-box p {
    font-size: 0.9em;
    margin-bottom: 0;
    color: var(--color-soft-text);
}

/* Responsive: stack vertically for non-sticky contexts */
@media (max-width:900px) {
    .portfolio-card {
        flex-direction: column;
        width: 90vw;
        height: auto;
        min-height: var(--sticky-card-height);
    }

    .card-left,
    .card-right {
        width: 100%;
        padding: 40px;
        border-right: none;
        border-bottom: 1px solid var(--color-light-grey);
    }

    .portfolio-card h3 {
        font-size: 2em;
    }
}

/* 4. BACKGROUND IMAGES ASSIGNMENTS */
#portfolio-card-1 .portfolio-card {
    background-image: url('images/wb1.png');
}

#portfolio-card-2 .portfolio-card {
    background-image: url('images/wb2.png');
}

#portfolio-card-3 .portfolio-card {
    background-image: url('images/wb3.png');
}

#portfolio-card-4 .portfolio-card {
    background-image: url('images/wb4.png');
}

#portfolio-card-5 .portfolio-card {
    background-image: url('images/wb5.png');
}

.card-left {
    background-color: rgba(255, 255, 255, 0.7);
    border-right: 1px solid rgba(0, 0, 0, 0.08);
}

.card-right {
    background-color: rgba(250, 250, 250, 0.7);
}

.dark-mode .card-left {
    background-color: rgba(30, 30, 30, 0.7);
    border-right-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .card-right {
    background-color: rgba(37, 37, 37, 0.7);
}

/* ---------- Mobile-specific inner shrink rules for <=850px ---------- */
@media (max-width:850px) {
    .container {
        width: 100%;
        padding: 0 10px;
    }

    :root {
        --card-width: 85vw;
        --card-height: 680px;
        --card-spacing: 10px;
    }

    #prev-card {
        left: 0;
        width: 50px;
        height: 50px;
    }

    #next-card {
        right: 0;
        width: 50px;
        height: 50px;
    }

    .card-grid.slider {
        height: var(--card-height);
    }

    .case-study-card.item {
        left: calc(50% - (var(--card-width) / 2));
    }

    /* === CRITICAL FIX FOR CAROUSEL MOBILE LAYOUT === */
    .dm-card .card-content {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        padding: 20px 20px 80px 20px;
        justify-content: flex-start;
        align-items: center;
        overflow-y: auto;
        height: 100%;
    }

    .dm-card .metric-area,
    .dm-card .visual-area {
        width: 100%;
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
        text-align: center;
        flex: 0 0 auto;
    }

    .dm-card .visual-area {
        order: -1;
        margin-bottom: 20px;
    }

    .dm-card .visual-area img,
    .dm-card .visual-area svg {
        max-width: 100%;
        height: auto;
    }

    /* Use computed sticky height */
    .portfolio-card {
        height: var(--sticky-card-height) !important;
        min-height: var(--sticky-card-height) !important;
        max-height: var(--sticky-card-height) !important;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .card-left,
    .card-right {
        flex: 1 1 auto;
        min-height: 0;
        padding: 18px !important;
        gap: 12px !important;
        overflow-y: auto;
    }

    .portfolio-card h3 {
        font-size: 1.45em !important;
        line-height: 1.25 !important;
    }

    .portfolio-card p {
        font-size: 0.9em !important;
        line-height: 1.35 !important;
        margin-bottom: 10px !important;
    }

    .project-tag {
        font-size: 0.75em !important;
        padding: 5px 10px !important;
        margin-bottom: 8px !important;
    }

    .visit-btn {
        padding: 10px 20px !important;
        font-size: 0.9em !important;
    }

    .feature-box {
        padding: 12px !important;
        margin-top: 10px !important;
    }

    .feature-box h4 {
        font-size: 0.9em !important;
    }

    .feature-box p {
        font-size: 0.75em !important;
        line-height: 1.3 !important;
    }
}

/* --- 9. CASE STUDY MODAL STYLES --- */

/* ============================= */
/* MODAL CHART IMAGE FIX */
/* ============================= */

.chart-container {
    display: grid;
    gap: 20px;
}

.chart-container img {
    width: 100%;
    max-height: 280px;
    object-fit: contain;
    border-radius: 10px;
    background: #f7f7f7;
    padding: 10px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: rgba(0, 0, 0, 0.7);
    padding-top: 60px;
    animation: fadeIn .3s forwards;
}

.modal-content {
    background-color: var(--color-white);
    margin: auto;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 85%;
    max-width: 900px;
    position: relative;
    animation: slideIn .3s forwards;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
}

.dark-mode .modal-content {
    background-color: var(--color-dark-grey);
    color: var(--color-dark);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
}

.close-button {
    color: var(--color-dark);
    font-size: 30px;
    font-weight: bold;
    position: absolute;
    top: 0;
    right: 10px;
    cursor: pointer;
    transition: color .3s ease;
}

.close-button:hover,
.close-button:focus {
    color: var(--color-primary-orange);
}

.modal-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.modal-header {
    width: 100%;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--color-light-grey);
    text-align: center;
}

#modalClientName {
    color: var(--color-dark);
    font-size: 2.2em;
    font-weight: 700;
    margin: 0;
}

.modal-main-content {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    padding-top: 20px;
}

.modal-section {
    margin-bottom: 30px;
}

.modal-section h3 {
    color: var(--color-primary-orange);
    font-size: 1.6em;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--color-light-grey);
    padding-bottom: 8px;
}

/* Modal responsiveness */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width:768px) {
    :root {
        --sticky-card-height: 300px !important;
    }

    .portfolio-heading {
        font-size: 1.8em;
        margin-bottom: 5px;
    }

    .portfolio-intro {
        font-size: 0.85em;
        margin-bottom: 20px;
    }

    .portfolio-card {
        width: 90vw;
        height: var(--sticky-card-height);
        flex-direction: column;
        margin: 10px auto;
    }

    .card-left,
    .card-right {
        width: 100%;
        padding: 15px;
        flex: 1;
        justify-content: center;
    }

    .card-left {
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    }

    .portfolio-card h3 {
        font-size: 1.3em;
        margin-bottom: 5px;
    }

    .portfolio-card p {
        font-size: 0.85em;
        line-height: 1.4;
        margin-bottom: 10px;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .project-tag {
        font-size: 0.65em;
        padding: 4px 8px;
        margin-bottom: 8px;
    }

    .portfolio-card .visit-btn {
        padding: 8px 20px;
        font-size: 0.9em;
    }

    .feature-box {
        padding: 10px;
        margin-top: 10px;
    }

    .feature-box h4 {
        font-size: 0.85em;
        margin-bottom: 2px;
    }

    .feature-box p {
        font-size: 0.75em;
    }

    .sticky-card-item::before {
        height: 24px;
    }

    .modal-content {
        width: 95%;
        padding: 20px;
        margin-top: 30px;
        margin-bottom: 30px;
        min-height: auto;
    }

    #modalClientName {
        font-size: 1.8em;
    }

    .modal-section h3 {
        font-size: 1.4em;
    }

    .modal-section p {
        font-size: 1em;
    }

    .outcome-grid {
        grid-template-columns: 1fr;
    }
}

/* --- AI PATCHES FOR STICKY + MOBILE CARD HEIGHT --- */
:root {
    --sticky-card-top: 5vh;
    --sticky-card-height-mobile: 78vh;
}

.sticky-card-item {
    position: sticky;
    top: var(--sticky-card-top);
}

@media (max-width: 600px) {
    :root {
        --sticky-card-top: 12vh;
    }

    .visual-area {
        max-height: 200px;
    }

    #sticky-cards-list {
        gap: calc(var(--scroll-gap) * 0.9);
    }

    .portfolio-card {
        height: var(--sticky-card-height-mobile) !important;
        min-height: var(--sticky-card-height-mobile) !important;
    }
}


/* ========================= EXPERTISE ORBIT — SUN / MOON (OPTIMIZED) ========================= */

#expertise-orbit {
    min-height: 80vh;
    position: relative;
    width: 100%;
    height: 95vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* ---------------- SUN CENTER ---------------- */
.sun-center {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    text-align: center;
    overflow: hidden;
}

/* ---------------- SUN / MOON CORE ---------------- */
.sun-bg {
    position: absolute;
    inset: 0;
    border-radius: 50%;

    background-image: url("Images/Background/Sun.png");
    background-size: 120%;
    background-position: center;
    background-repeat: no-repeat;

    /* Color tuning */
    filter: saturate(1.25) hue-rotate(-10deg);

    /* ONLY lightweight animations */
    animation:
        sun-light-shift 14s ease-in-out infinite alternate;

    z-index: 0;
}

/* ---------------- SUN LIGHTING (SPHERICAL ILLUSION) ---------------- */
.sun-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;

    background:
        radial-gradient(circle at 30% 30%,
            rgba(255, 255, 220, 0.7),
            rgba(255, 210, 80, 0.35),
            rgba(255, 170, 0, 0.15),
            transparent 65%);

    mix-blend-mode: overlay;
    animation: sun-light 12s ease-in-out infinite alternate;
}

/* ---------------- SUN GLOW ---------------- */
.sun-bg::after {
    content: "";
    position: absolute;
    inset: -6%;
    border-radius: 50%;

    background:
        radial-gradient(circle at 30% 30%,
            rgba(255, 230, 140, 0.35),
            rgba(255, 190, 60, 0.25),
            rgba(255, 150, 0, 0.12),
            transparent 65%);

    filter: blur(16px);
    opacity: 0.8;
    transform: scale(1);

    animation: sun-glow 10s ease-in-out infinite alternate;
}

/* ---------------- DARK MODE → MOON ---------------- */
.dark-mode .sun-bg {
    background-image: url("Images/Background/Moon.png");
    background-size: 105%;
    filter: grayscale(0.2) contrast(1.1);

    animation: moon-light 45s linear infinite;
}

/* Disable sun-only layers for moon */
.dark-mode .sun-bg::before,
.dark-mode .sun-bg::after {
    display: none;
}

/* ---------------- TEXT LAYER ---------------- */
.sun-center h2,
.sun-center p {
    position: relative;
    z-index: 2;
    pointer-events: none;
}

.dark-mode .sun-center h2,
.dark-mode .sun-center p {
    color: #000;
}

.sun-center h2 {
    font-size: 1.45rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.sun-center p {
    font-size: 0.9rem;
    opacity: 0.75;
}

/* ---------------- ORBIT RINGS ---------------- */
.orbit {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1.3px solid rgba(0, 0, 0, 0.08);
    animation: orbit-spin 80s linear infinite;
}

.dark-mode .orbit {
    border-color: rgba(255, 255, 255, 0.12);
}

/* Orbit sizes — these control the actual circle size AND logo positioning */
.orbit-1 {
    width: 580px;
    height: 580px;
    --radius: 290px;
}

.orbit-2 {
    width: 740px;
    height: 740px;
    --radius: 370px;
}

.orbit-3 {
    width: 900px;
    height: 900px;
    --radius: 450px;
}

.orbit-4 {
    display: none;
}

/* ---------------- LOGO POSITIONING ---------------- */

.planet {
    position: absolute;
    left: 50%;
    top: 50%;
    transform-origin: center;
}

/* PERFECT CENTERED LOGO BOX */
.planet img {
    width: 75px;
    height: 75px;
    object-fit: contain;
    display: block;

    /* ⭐ Center the logo EXACTLY on the orbit line */
    transform: translate(-50%, -50%);
    transform-origin: center center;

    animation: keep-upright 80s linear infinite;



}

/* ---------------- DISTRIBUTION ON ORBITS (MATHEMATICAL) ---------------- */

/* Orbit 1 — 3 logos */
.orbit-1 .planet:nth-child(1) {
    transform: rotate(0deg) translateY(calc(var(--radius) * -1)) rotate(0deg);
}

.orbit-1 .planet:nth-child(2) {
    transform: rotate(120deg) translateY(calc(var(--radius) * -1)) rotate(-120deg);
}

.orbit-1 .planet:nth-child(3) {
    transform: rotate(240deg) translateY(calc(var(--radius) * -1)) rotate(-240deg);
}

/* Orbit 2 — 6 logos */
.orbit-2 .planet:nth-child(1) {
    transform: rotate(30deg) translateY(calc(var(--radius) * -1)) rotate(-30deg);
}

.orbit-2 .planet:nth-child(2) {
    transform: rotate(90deg) translateY(calc(var(--radius) * -1)) rotate(-90deg);
}

.orbit-2 .planet:nth-child(3) {
    transform: rotate(150deg) translateY(calc(var(--radius) * -1)) rotate(-150deg);
}

.orbit-2 .planet:nth-child(4) {
    transform: rotate(210deg) translateY(calc(var(--radius) * -1)) rotate(-210deg);
}

.orbit-2 .planet:nth-child(5) {
    transform: rotate(270deg) translateY(calc(var(--radius) * -1)) rotate(-270deg);
}

.orbit-2 .planet:nth-child(6) {
    transform: rotate(330deg) translateY(calc(var(--radius) * -1)) rotate(-330deg);
}


/* Orbit 3 — 6 logos */
.orbit-3 .planet:nth-child(1) {
    transform: rotate(60deg) translateY(calc(var(--radius) * -1)) rotate(-60deg);
}

.orbit-3 .planet:nth-child(2) {
    transform: rotate(120deg) translateY(calc(var(--radius) * -1)) rotate(-120deg);
}

.orbit-3 .planet:nth-child(3) {
    transform: rotate(180deg) translateY(calc(var(--radius) * -1)) rotate(-180deg);
}

.orbit-3 .planet:nth-child(4) {
    transform: rotate(240deg) translateY(calc(var(--radius) * -1)) rotate(-240deg);
}

.orbit-3 .planet:nth-child(5) {
    transform: rotate(300deg) translateY(calc(var(--radius) * -1)) rotate(-300deg);
}

.orbit-3 .planet:nth-child(6) {
    transform: rotate(360deg) translateY(calc(var(--radius) * -1)) rotate(-360deg);
}


.dark-mode .sun-bg::after {
    display: none;
}

@media (prefers-reduced-motion: reduce) {

    .sun-bg,
    .sun-bg::before,
    .sun-bg::after {
        animation: none !important;
    }
}

/* ---------------- ANIMATIONS ---------------- */
@keyframes sun-light {
    0% {
        background-position: 30% 30%;
    }

    100% {
        background-position: 70% 60%;
    }
}

/* Gentle glow breathing */
@keyframes sun-glow {
    0% {
        opacity: 0.65;
        transform: scale(1);
    }

    100% {
        opacity: 1;
        transform: scale(1.04);
    }
}

/* Very subtle surface shift */
@keyframes sun-light-shift {
    from {
        background-position: 48% 50%;
    }

    to {
        background-position: 52% 50%;
    }
}

/* Moon lighting (calm, no motion illusion) */
@keyframes moon-light {
    from {
        background-position: 49% 50%;
    }

    to {
        background-position: 51% 50%;
    }
}

@keyframes orbit-spin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes keep-upright {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(-360deg);
    }
}

/* ---------------- MOBILE VIEW ---------------- */
@media (max-width: 600px) {

    .sun-center {
        width: 220px;
        height: 220px;
    }

    .sun-center h2 {
        font-size: 1rem;
        padding: 0 12px;
    }

    .sun-center p {
        font-size: 0.7rem;
    }

    /* Orbit sizes for mobile */
    .orbit-1 {
        width: 320px;
        height: 320px;
        --radius: 160px;
    }

    .orbit-2 {
        width: 440px;
        height: 440px;
        --radius: 220px;
    }

    .orbit-3 {
        width: 560px;
        height: 560px;
        --radius: 280px;

    }

    .planet img {
        width: 60px;
        height: 60px;
        transform: translate(-50%, -50%);
    }

    /* Same angles — they scale perfectly */
}

/* =========================================
   TESTIMONIALS SECTION (Final Orange Glass)
   ========================================= */

#testimonials {

    padding: 80px 0;
    overflow: hidden;
}

#testimonials .section-title {
    color: var(--color-dark);
    margin-bottom: 10px;
    position: relative;
    z-index: 5;
    text-align: center;
}

#testimonials .section-subtitle {
    text-align: center;
    color: var(--color-soft-text);
    margin-bottom: 60px;
    position: relative;
    z-index: 5;
}

/* --- Slider Container (Track) --- */
.testimonial-slider {
    display: flex;
    gap: 40px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 20px 40px 60px 40px;
    /* ← Ensure this has equal left/right padding */
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
}

.glass-card {
    /* CRITICAL FIX: Desktop - 4 perfect cards */
    flex: 0 0 calc((100% - 120px) / 4);
    /* 100% minus 3 gaps of 40px each, divided by 4 */
    min-width: calc((100% - 120px) / 4);
    /* Ensures minimum width */
    max-width: calc((100% - 120px) / 4);
    /* Ensures maximum width */
    position: relative;
    height: 380px;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(255, 102, 0, 0.15);
}

/* --- THE ORANGE LIGHT --- */
.card-glow {
    position: absolute;
    top: 10%;
    left: 5%;
    width: 90%;
    height: 70%;
    background: linear-gradient(135deg, var(--color-primary-orange), var(--color-dark-orange));
    filter: blur(45px);
    border-radius: 50%;
    opacity: 0.75;
    z-index: 0;
    animation: pulseGlow 6s infinite alternate;
}

@keyframes pulseGlow {
    0% {
        transform: scale(0.9) translate(0, 0);
    }

    100% {
        transform: scale(1.1) translate(10px, -10px);
    }
}

/* --- THE GLASS SURFACE --- */
.glass-card .card-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px 20px;
    padding-bottom: 65px;
    border-radius: 20px;
    height: 100%;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);

    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: none;
}

/* --- READ MORE BUTTON STYLE --- */
.read-more-btn {
    background-color: var(--color-primary-orange);
    color: var(--color-white);
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    margin-top: auto;
    transition: background-color 0.3s, transform 0.2s;
    font-size: 0.85em;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 4px 10px rgba(255, 102, 0, 0.4);
    z-index: 2;
}

.read-more-btn:hover {
    background-color: var(--color-dark-orange);
    transform: translateX(-50%) translateY(-2px);
}

/* --- Card Content Styling --- */
.dp-container {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin-bottom: 20px;
    margin-top: -10px;
    border: 3px solid #ffffff;
    box-shadow: 0 5px 15px rgba(255, 102, 0, 0.25);
    overflow: hidden;
}

.dp-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quote-area {
    flex-grow: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.quote-area i {
    color: var(--color-primary-orange);
    font-size: 1.4em;
    margin-bottom: 15px;
    filter: drop-shadow(0 2px 4px rgba(255, 102, 0, 0.3));
}

.quote-area p {
    font-size: 0.9em;
    font-style: italic;
    color: var(--color-dark);
    line-height: 1.6;
    margin-bottom: 0;
    max-height: 75px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

.client-info {
    margin-top: 15px;
    flex-shrink: 0;
}

.client-info h4 {
    margin: 0;
    font-size: 1em;
    font-weight: 800;
    color: var(--color-dark);
}

.client-info span {
    font-size: 0.75em;
    color: var(--color-primary-orange);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ---------------- GLASS MODAL (EXPANDED CARD) STYLES ---------------- */

/* Full screen overlay, hidden by default */
.glass-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.glass-modal-overlay.active {
    display: flex;
    opacity: 1;
}

/* Expanded Card Content - Glassmorphism Style */
.glass-modal-content {
    position: relative;
    max-width: 900px;
    width: 95%;
    min-height: 400px;
    padding: 40px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-modal-overlay.active .glass-modal-content {
    transform: scale(1);
}

/* Close Button (The 'X') */
.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2em;
    cursor: pointer;
    color: var(--color-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, transform 0.2s;
    z-index: 10;
}

.modal-close-btn:hover {
    background: var(--color-primary-orange);
    color: var(--color-white);
    transform: rotate(90deg);
}

/* Parent Layout: Stacks children vertically and centers them horizontally (for text) */
.expanded-quote-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* 🌟 DP CONTAINER (CENTERED FIX APPLIED) 🌟 */
.modal-dp-container {
    /* Set as block element with fixed width/height */
    width: 120px;
    height: 120px;

    /* CRITICAL FIX: Block-level centering using auto margins */
    display: block;
    margin-left: auto;
    margin-right: auto;

    margin-bottom: 25px;
    border-radius: 50%;
    overflow: hidden;

    /* Soft Black Shadow and Border */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 3px solid var(--color-white);
}

.modal-dp {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-quote-area {
    margin-top: 30px;
}

.modal-quote-area i {
    font-size: 3em;
    margin-bottom: 20px;
}

/* Full quote in modal */
.modal-quote-area p {
    font-size: 1.2em;
    line-height: 1.6;
    max-height: none;
    overflow: visible;
    text-overflow: unset;
    margin-bottom: 20px;
    font-style: italic;
    color: var(--color-dark-grey);
}

.modal-client-info {
    margin-top: 15px;
}

/* Name (h4) - Black and Bold */
.modal-client-info h4 {
    font-weight: 800;
    color: var(--color-dark);
    font-size: 1.3em;
    margin: 0;
}

/* Client Title (span - #testimonialClientTitle) - Black and Italic */
#testimonialClientTitle {
    color: var(--color-dark-grey);
    font-weight: 400;
    font-style: italic;
    display: block;
    margin-top: 5px;
    font-size: 1.1em;
}

/* Dark Mode Overrides */

body.dark-mode .card-glow {
    background: linear-gradient(135deg, #FF6600, #CC5200);
}

/* ==================== RESPONSIVE BREAKPOINTS ==================== */

/* TABLET: 3 cards at a time (768px to 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .testimonial-slider {
        gap: 40px;
        padding: 20px 30px 60px 30px;
    }

    .glass-card {
        /* 3 cards with 2 gaps of 30px each */
        flex: 0 0 calc((100% - 60px) / 3);
        min-width: calc((100% - 60px) / 3);
        max-width: calc((100% - 60px) / 3);
        height: 420px;
    }
}

/* LAPTOP: Still 4 cards (1024px to 1439px) */
@media (min-width: 1024px) and (max-width: 1439px) {


    .testimonial-slider {
        gap: 40px;
        padding: 20px 35px 60px 35px;
    }

    .glass-card {
        /* Still 4 cards, slightly smaller gap */
        flex: 0 0 calc((100% - 105px) / 4);
        min-width: calc((100% - 105px) / 4);
        max-width: calc((100% - 105px) / 4);
        height: 380px;
    }
}

/* DESKTOP LARGE: 4 cards (1440px and above) */
@media (min-width: 1440px) {
    .testimonial-slider {
        gap: 50px;
        padding: 20px 40px 60px 40px;
        /* Consistent 40px padding */
    }

    .glass-card {
        /* 4 cards with 3 gaps of 40px each = 120px */
        flex: 0 0 calc((100% - 120px) / 4);
        min-width: calc((100% - 120px) / 4);
        max-width: calc((100% - 120px) / 4);
        height: 380px;
    }
}

/* MOBILE: 1 card at a time */
@media (max-width: 767px) {
    #testimonials {
        padding: 30px 60;
    }

    .testimonial-slider {
        gap: 40px;
        padding: 20px 20px 60px 20px;
    }

    .glass-card {
        /* 1 full card only */
        flex: 0 0 calc(100% - 40px);
        min-width: calc(100% - 40px);
        max-width: calc(100% - 40px);
        height: 400px;
        margin: 0 20px;
    }

    /* MODAL RESPONSIVENESS */
    .glass-modal-content {
        max-width: 95%;
        width: 95%;
        padding: 25px;
    }

    .modal-dp-container {
        width: 100px;
        height: 100px;
    }

    .modal-quote-area p {
        font-size: 1em;
    }
}

/* Fix spacing above testimonial slider */
#testimonials .testimonial-slider {
    margin-top: 60px;
    /* Push down the cards */
}


/* General Pagination container */
.testimonial-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    /* Slightly reduced gap for a tighter look */
    margin-top: 25px;
}

/* Base style for all pagination controls (dots and arrows) */
.testimonial-pagination button {
    background: #fff;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 8px;
    /* Default border radius for all buttons */
    padding: 8px 16px;
    /* Padding for size and pill shape */
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
}

/* Style for the Navigation Arrows (< and >) */
.testimonial-pagination .nav-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    line-height: 40px;
    text-align: center;
    border-radius: 8px;
    /* Square/rounded box style */
}

/* Style for the Numbered Pages (Dots) */
.testimonial-pagination .dot {
    /* Keeping the same general button style for numbers */
    min-width: 40px;
    height: 40px;
    border-radius: 8px;
    /* Use 8px border-radius to match the screenshot */
}

/* Active State - Matches the orange background in your screenshot */
.testimonial-pagination .dot.active {
    background: #ff6600;
    /* Your orange color */
    color: #fff;
    border-color: #ff6600;
    box-shadow: 0 4px 10px rgba(255, 102, 0, 0.4);
}

/* Hover/Focus State */
.testimonial-pagination button:not(:disabled):hover,
.testimonial-pagination button:not(:disabled):focus {
    border-color: #ff6600;
    outline: none;
}

/* Disabled state for Prev/Next buttons */
.testimonial-pagination button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

#main-footer p {
    font-style: italic;
    font-family: sans-serif;
    font-size: 1.0em;
    text-align: center;
}



/* ===============================
   CONTACT CARD (THEME BLENDED)
================================ */

.contact-section {
    position: relative;
    z-index: 9999;
    display: flex;
    justify-content: center;
    padding: 60px 20px;
}

/* Main card */
.contact-card {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    max-width: 820px;
    width: 100%;

    border-radius: 22px;
    overflow: hidden;

    /* DAY MODE base */
    background: linear-gradient(135deg,
            #ffffff,
            #f3f9ff);

    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.25);
}

/* Left visual area */
.contact-visual {
    background:
        radial-gradient(circle at top,
            rgba(255, 255, 255, 0.8),
            rgba(200, 230, 255, 0.6));
}

/* Form side */
#ajaxContactForm {
    background: linear-gradient(180deg,
            #1b1f2a,
            #11141b);

    padding: 36px 34px;
    color: #fff;
}

#ajaxContactForm h2 {
    text-align: center;
    margin-bottom: 24px;
}

/* spacing */
.form-group {
    margin-bottom: 18px;
}

/* Inputs */
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;

    background: #1f2533;
    border: 1px solid #2b3245;

    color: #fff;
    transition: 0.25s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9aa3b7;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #ff9f45;
    box-shadow: 0 0 0 3px rgba(255, 159, 69, 0.2);
}

/* Button */
#submitBtn {
    width: 100%;
    padding: 14px;
    margin-top: 8px;

    border-radius: 14px;
    border: none;

    background: linear-gradient(135deg, #ff7a18, #ff9f45);
    color: #fff;
    font-weight: 600;

    cursor: pointer;
    box-shadow: 0 14px 32px rgba(255, 122, 24, 0.45);
}

/* SUCCESS FULL CARD MODE */
.contact-card.success-mode {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* hide left side when success */
.contact-card.success-mode .contact-visual {
    display: none;
}

/* make full width */
.contact-card.success-mode #formSuccess {
    width: 100%;
}

/* SUCCESS BOX */
.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;

    width: 100%;
    height: 100%;

    padding: 60px 20px;
    border-radius: 20px;

    transition: all 0.4s ease;
}

/* GREEN TICK CIRCLE */
.success-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;

    background: #22c55e;
    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 32px;
    font-weight: bold;

    margin-bottom: 20px;

    box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
}

/* TEXT */
.form-success p {
    font-size: 16px;
    line-height: 1.6;
    max-width: 400px;
}

/* LIGHT MODE TEXT */
body.day-mode .form-success p {
    color: #000;
}

/* DARK MODE TEXT */
body.dark-mode .form-success p {
    color: #fff;
}

/* -------------------------------
   NIGHT MODE SUPPORT
-------------------------------- */
body.dark-mode .contact-card {
    background: linear-gradient(135deg,
            #0f1118,
            #141a26);
}

body.dark-mode .contact-visual {
    background:
        radial-gradient(circle at top,
            rgba(80, 120, 200, 0.25),
            rgba(0, 0, 0, 0.6));
}

/* ============================= */
/* FOOTER */
/* ============================= */

#main-footer {
    background: none;
    color: #cfcfcf;
    padding: 40px 0;
    margin-top: 80px;
}

.social-link,
.social-link:hover,
.social-link:focus,
.social-link:active {
    text-decoration: none;
}


.footer-inner {
    position: relative;
    display: flex;
    justify-content: flex-end;
    /* icons stay on right */
    align-items: center;
    gap: 30px;
}

.footer-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    pointer-events: none;

}


.footer-brand {
    font-size: 1em;
    font-weight: 600;
    color: #3f3e3e;
    margin-bottom: 6px;
}

.footer-credit {
    font-size: 0.85em;
    color: #0e0d0d;
    line-height: 1.4;
}


.footer-right {
    display: flex;
    gap: 14px;
}

.social-link {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0c0c0c;
    font-size: 1.1em;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--color-primary-orange);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 102, 0, 0.4);
}

.dark-mode #main-footer {
    background: none;
}

.dark-mode .footer-brand {
    color: #f8f5f5;

}

.dark-mode .footer-credit {
    color: #f1eeee;

}

.dark-mode .social-link {
    color: #f8f5f5;

}

@media (max-width: 600px) {
    .footer-inner {
        flex-direction: column;
    }

    .footer-center {
        position: static;
        transform: none;
        pointer-events: auto;
        margin-bottom: 14px;
    }

    .footer-right {
        justify-content: center;
    }
}