*, *::before, *::after {
    box-sizing: border-box;
}

@font-face {
    font-family: "Google Sans Flex";
    src: url("fonts/GoogleSansFlex-Variable.ttf") format("truetype");
    font-weight: 100 1000;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Pally";
    src: url("fonts/Pally-Variable.ttf") format("truetype");
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "GeneralSans";
    src: url("fonts/GeneralSans-Variable.ttf") format("truetype");
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Departure Mono";
    src: url("fonts/DepartureMono-Regular.otf") format("opentype");
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}
/* ===== COLOR VARIABLES ===== */
:root {
    /* new color variables */
    --bg-pri: #0F0F13;
    --bg-sec: #1A1A2A;
    --bg-ter: #232B4A;
    --txt-n: #E9EBF4;
    --txt-n2: #dde0f0;
    --txt-m: #BCC7DE;
    --txt-mm: #a6b1ca;
    --brdr-1: #49506E;
    --initial-top-spacer-height: 90px;
    --initial-bottom-spacer-height: 100px;

    --clr-o: #E59C58;
    --clr-g: #9FC387;
    --clr-b: #6892C1;

    --fnt-h: "Google Sans Flex", sans-serif;
    --fnt-j: "Jetbrains Mono", monospace;
    --fnt-p: "Pally", sans-serif;
    --fnt-g: "GeneralSans", sans-serif;
    --fnt-d: "Departure Mono", monospace;

    /* old dumb color variables */
    /* --color-bg-dark: #0F0F13;
    --color-bg-card: #1A1A2A; */
    --color-bg-card-alt: #15171d;
    /* --color-text-primary: #ffffff; */
    --color-text-secondary: #C7D0EF;
    --color-text-tertiary: #c5cee0;
    --color-text-light: #E0E0FF;
    --color-text-muted: #cde6ff;
    --color-text-meta: #9aa3ad;
    --color-text-dim: #d5e1e5;
    
    --color-accent-blue: #3392ff;
    --color-accent-blue-alt: #2048be;
    --color-accent-blue-lighter: #2b56d5;
    --color-accent-blue-darker: #23234a;
    --color-accent-light-blue: #7dbaff;
    --color-accent-light-blue-2: #60a7ff;
    --color-accent-light-blue-3: #6993c2;
    
    --color-discord: #7662c9;
    --color-youtube-red: #ff6262;
    --color-youtube-pink: #ff8cb4;
    --color-instagram: #df87ff;
    --color-facebook: #60a7ff;
    --color-tiktok: #7acaff;
    --color-plane: #be5750;
    
    --color-border: #343355;
    --color-border-secondary: #49506e;
    --color-border-tertiary: #4f5776;
    --color-border-quaternary: #364250;
    --color-border-light: #52636f;
    
    --color-retro-green: #9fc387;
    --color-retro-orange: #e59c58;
    --color-retro-red: #d7614c;
    --color-retro-blue: #6993c2;
    --color-retro-yellow: #e8c64c;
    
    --color-neutral-gray: #7a8899;
    --color-neutral-blue: #5d678a;
    --color-neutral-blue-2: #3D3DFF;
    --color-brown-dark: #322b23;
    --color-brown-accent: #c99267;
    --color-brown-hover: #482e21;
    --color-brown-card: #3d3531;
    
    --color-modal-bg: #15171d;
    
    --color-text-white: #ffffff;
    --color-text-light-link: #d8e3f9;
    --color-text-pure-white: #fff;
    --color-text-pure-black: #000000;
    --color-neutral-beige: #ebeef6;
    --color-button-shadow-orange: #cf5915;
    --color-button-shadow-orange-dark: #9c3e07;
    --color-border-gray-primary: #3f455f;
    --color-border-blue-dark: #234b73;
    --color-button-orange-special: #d26704;
}

* {
    -webkit-tap-highlight-color: transparent;
}

/* ===== GLOBAL STYLES ===== */
html {
    scroll-behavior: smooth;
    overflow: hidden;
    height: 100%;
}

body {
    font-family: 'JetBrains Mono', monospace;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: var(--bg-pri);
    color: var(--txt-n);
    overflow: hidden;
    height: 100%;
}

.page-wrapper {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
    animation: pageEnter 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.content-wrapper {
    flex-shrink: 0;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
}

@keyframes pageEnter {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== FONT DEFINITIONS ===== */
@font-face {
    font-family: "GeneralSans";
    src: url("fonts/GeneralSans-Variable.ttf") format("truetype");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "JetBrains Mono";
    src: url("fonts/JetBrainsMono-VariableFont_wght") format("truetype");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* ===== HEADER & NAVIGATION ===== */
header {
    text-align: center;
    padding: 1em;
    background: var(--bg-pri);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    box-sizing: border-box;
}

.top-spacer, .bottom-spacer {
    /* transition: height 0.15s cubic-bezier(0.175, 0.885, 0.32, 2.275); */
    transition: height 0.2s ease-out;
    flex-shrink: 0;
    width: 100%;
}

nav {
    padding-bottom: 0em;
    width: 100%;
}

nav a {
    margin: 0 0.5em;
    text-decoration: none;
    color: var(--color-text-tertiary);
    font-weight: 400;
    transition: color 0.3s ease, transform 0.2s ease;
    padding: 5px 0;
    display: inline-block;
    font-size: 1.1em;
}

nav a:hover {
    color: var(--color-accent-blue);
    transform: translateY(-2px);
    text-decoration: none;
}

/* ===== TYPOGRAPHY & LINKS ===== */
a {
    color: var(--color-text-light-link);
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

hr {
    border: none;
    border-top: 2px dashed var(--color-border-gray-primary);
    margin: 20px 0;
}

button.mod-cta {
  background-color: var(--h2-color);
  border-radius: 8px;
  box-shadow: 0px 4px 0px 2px var(--color-button-shadow-orange) !important;
  transform: translatey(-4px);
  transition: 0.3s all ease;
  text-align: center;
  font-weight: 600;
}

button {
  transition: 0.3s all ease;
}

.mod-cta:hover,
.mod-cta:hover {
   transform: translatey(2px);
   box-shadow: 0px 0px 0px 0px var(--color-button-shadow-orange-dark) !important;
   transition: 0.3s all ease;
}

.mod-cta:active {
   box-shadow: 0px -4px 0px 0px var(--h2-color) !important;
   transform: translatey(8px);
}

.intro-title {
    font-size: 1.5em;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--color-text-secondary);
    font-family: var(--fnt-h);
}

.aidah-name {
    color: var(--color-accent-blue);
}

.checkoutprojects {
    margin-bottom: 10px;
    font-size: 1.8em; 
    /* font-family: 'GeneralSans', sans-serif; */
    font-family: var(--fnt-g);
    letter-spacing: 0.03em;
    font-weight: 500;
    text-align: center;
    padding-bottom: 10px;
    padding-top: -30px;
}
.alltut {
    font-size: 2.5em;
    font-family: var(--fnt-h);
    font-weight: 900;
    color: var(--color-text-light);
    margin-top: -20px !important;
    margin-bottom: 0.2em;
    text-shadow: 0 0 10px rgba(51, 146, 255, 0.5);
    margin-top: 0;
    transition: all 0.3s ease;
    display: block;
}

/* .alltut:hover {
    text-shadow: 0 0 10px rgba(128, 161, 198, 0.5);
    transform: scale(1.15);
} */

.by-me {
    font-size: 1.5em;
    color: var(--color-text-light);
    margin-bottom: 0.5em;
    font-weight: 300;
    text-align: center;
    margin-top: -12px;
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
    margin-bottom: 28px;
}

.by-me::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    border-bottom: 2px dashed var(--color-accent-blue);
    background-repeat: repeat-x;
    background-size: 10px 2px;
    background-position: 0 100%;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.by-me:hover {
    font-weight: 600;
}

.by-me:hover::after {
    opacity: 1;
    transform: translateY(0);
    animation: dashMove 1s linear infinite;
}

@keyframes dashMove {
    from { background-position: 0 100%; }
    to { background-position: 10px 100%; }
}

.Aidah {
    color: var(--color-text-pure-white);
    font-weight: 600;
}

.by-me .Aidah:hover {
    color: var(--color-accent-blue);
    font-weight: 900;
}

.tut-count {
    font-size: 1em;
    color: var(--color-text-tertiary);
    margin-bottom: 1.5em;
    display: block;
}

.no-tut {
    font-weight: 600;
    color: var(--color-text-light);
}

.contentheh {
    text-align: center;
    color: var(--color-text-tertiary);
    margin-top: 20px;
}

.i-am {
    font-size: 20px;
    font-family: var(--fnt-p) !important;
}

.aidah-highlight {
    font-family: var(--fnt-p) !important;
    font-weight: 600;
    letter-spacing: 0.03em;
    background-color: #2048be70;
    border-radius: 8px;
    padding: 0px 4px;
}

/* ===== CONTAINERS ===== */
.intro-bubblebody {
    background: var(--bg-sec);
    width: 80%;
    max-width: 900px;
    margin: 0 auto 1.5em;
    padding: 20px;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    margin-top: 0px !important;
    position: relative;
    z-index: 1;
}

/* Rounded corners between intro and project cards */
.intro-bubblebody::before,
.intro-bubblebody::after {
    content: "";
    position: absolute;
    bottom: calc(50px - 1.5em);
    width: 25px;
    height: 60px;
    background-color: var(--bg-sec);
    mask-image: url('data:image/svg+xml;utf8,<svg width="49" height="64" viewBox="0 0 49 64" fill="none" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg"><path d="M49 0C49 0 49.0004 0.0743808 49 0.217301V64H0C0 64 29.3748 55.6629 39.5 42C48.679 29.6139 48.9919 2.89411 49 0.217301V0Z" fill="black"/></svg>');
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg width="49" height="64" viewBox="0 0 49 64" fill="none" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg"><path d="M49 0C49 0 49.0004 0.0743808 49 0.217301V64H0C0 64 29.3748 55.6629 39.5 42C48.679 29.6139 48.9919 2.89411 49 0.217301V0Z" fill="black"/></svg>');
    mask-size: 100% 100%;
    -webkit-mask-size: 100% 100%;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    pointer-events: none;
}

.intro-bubblebody::before {
    left: 0;
    transform: translateX(-100%);
}

.intro-bubblebody::after {
    right: 0;
    transform: translateX(100%) scaleX(-1);
}

.wider-bubblebody {
    background: var(--bg-sec);
    width: 90%;
    max-width: 1000px; /* Wider */
    margin: -50px auto 1.5em;
    padding: 20px;
    border-radius: 30px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 5;
}

.bubblebody {
    background: var(--bg-sec);
    width: 80%;
    max-width: 900px;
    margin: 0 auto 1.5em;
    padding: 10px 40px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    margin-top: 0px !important;
}

.bubblebody::-webkit-scrollbar {
    width: 8px;
}

.bubblebody::-webkit-scrollbar-track {
    background: var(--bg-sec);
    border-radius: 10px;
}

.bubblebody::-webkit-scrollbar-thumb {
    background-color: var(--color-accent-blue);
    border-radius: 10px;
    border: 2px solid var(--bg-sec);
}

@media screen and (min-width: 700px) and (max-width: 900px) {
    .intro-bubblebody::before,
    .intro-bubblebody::after {
    bottom: calc(40px - 1.4em);
}
}

/* ===== INTRO SECTION ===== */
.intro {
    display: flex;
    gap: 1.5em;
    margin-bottom: 2em;
    color: var(--color-text-secondary);
    align-items: center;
    position: relative;
}

.intro-image {
    /* min-width: 300px;
    height: 300px;
    min-height: 300px; */

    width: 100%;
    height: 100%;
    min-width: 230px;
    min-height: 250px;
    background: var(--color-neutral-blue-2);
    border-radius: 9px;
    background-image: url('images/pfp.png');
    background-size: cover;
    background-position: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.intro-text {
    margin-top: 0px !important;
    padding-top: 0px;
    padding-left: 10px;
    transition: all 0.3s ease;
    padding-right: 20px;
}

.intro-icons {
    display: flex;
    gap: 16px;
    margin-top: 14px;
    align-items: center;
    padding-left: 10px; 
    justify-content: flex-start; /* left-align icons */
    transition: all 0.3s ease;
}

.intro-text-container {
    background-color: none;
    background: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* height: stretch; */
    box-sizing: border-box;
    padding-left: 10px;
    padding-right: 10px;
    overflow: auto; 
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    scrollbar-width: none;
    transition: all 0.3s ease;
}

.intro-text-container::-webkit-scrollbar { 
    display: none; 
    height: 0; 
    width: 0; 
}
/* 
.intro-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    height: 44px;
    border-radius: 20%;
    color: var(--color-text-muted);
    background: var(--bg-pri);
    text-decoration: none;
    box-shadow: 0 3px 8px rgba(0,0,0,0.4);
    border: 3px solid var(--color-border-gray-primary);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    font-size: 1.1em;
    position: relative;
}

.intro-icon i { 
    pointer-events: none; 
}

.intro-icon:hover {
    transform: translateY(-0.5em) scale(1.04);
    box-shadow: 0 6px 14px rgba(51,146,255,0.18);
    background: linear-gradient(0deg, var(--color-border-gray-primary), var(--bg-sec));
    color: var(--color-text-pure-white);
    border: 4px solid var(--color-accent-blue);
    text-decoration: none;
}

.intro-icon.service-icon {
    width: 88px;
    height: 44px;
    border-radius: 12px; 
    padding: 0 10px;
    font-size: 0.95em;
    font-weight: 700;
    justify-content: center;
    letter-spacing: 0.02em;
    background: var(--bg-pri);
    color: var(--color-text-muted);
    font-family: 'Jetbrains Mono', monospace;
}

.intro-icon.service-icon:hover {
    transform: translateY(-0.5em) scale(1.02);
    box-shadow: 0 6px 14px rgba(51,146,255,0.18);
    background: linear-gradient(0deg, var(--color-border-gray-primary), var(--bg-sec));
    color: var(--color-text-pure-white);
    border: 4px solid var(--color-accent-blue);
} */



.intro-icon {
    background-color: none;
    background: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #677099;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 2.275), box-shadow 0.18s ease, background 0.18s ease;
    font-size: 1.7em;
    position: relative;
}
.intro-icon:hover {
    transform: scale(1.1);
    color: var(--txt-m);
}
.intro-icon:active {
    transform: scale(0.8);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: var(--txt-m);
}

.intro-hr {
    border: 2px solid #6770997b;
    border-radius: 8px;
    margin: 8px;
    width: 80px;
    margin-top: 2px;
}


.commission-btn .btn-icon { display: inline-block; }
.commission-btn .btn-text { display: inline-block; }

.custom-tooltip {
    visibility: hidden;
    opacity: 0;
    background: var(--color-accent-blue-darker);
    color: var(--color-text-pure-white);
    text-align: center;
    border-radius: 12px;
    padding: 4px 12px;
    position: absolute;
    z-index: 100;
    left: 50%;
    top: -130%;
    margin-left: 2px;
    transform: translateX(-50%) scale(0.95);
    font-size: 14px;
    font-family: 'JetBrains Mono', monospace;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    transition: opacity 0.18s, visibility 0.18s, transform 0.18s;
    white-space: nowrap;
    z-index: 1001 !important;
}

.intro-icon .custom-tooltip {
    font-size: 14px;
}

.intro-icon:hover .custom-tooltip,
.intro-icon:focus .custom-tooltip {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) scale(1);
    transition-delay: 0.08s;
}




.intro-icon.github:hover {
    color: #65d286 !important;
}
.intro-icon.email:hover {
    color: #3d5bb6 !important;
}
.intro-icon.yt:hover {
    color: #a23434 !important;
}

/* ===== HEADINGS ===== */
.heading-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: -6px;
    margin-left: 10px;
    margin-right: 10px;
    margin-top: -15px;
}

.heading-container h2 {
    font-size: 1.8em;
    margin: 0;
    color: var(--color-text-secondary);
    font-weight: 900;
}

.heading-container hr { 
    border: none;
    border-top: 5px dashed var(--color-border-secondary);
    flex-grow: 1; /* line fill the remaining space 0o0 */
    margin: 0;
}

h2 {
    font-size: 1.8em;
    margin-bottom: 0.8em;
    color: var(--color-text-light);
    padding-top: 10px;
    margin-top: -25px;
    display: flex;
    align-items: center;
    gap: 10px;
    /* padding-left: 20px; */
}

h2.h2comm-me {
    text-align: center;
    margin-bottom: 1em;
    margin-top: -15px;
    justify-content: center;
    padding-left: 0;
}

/* ===== PROJECT CARDS ===== */
.cardies {
    padding: 0;
}

.project-cards {
    display: flex;
    flex-direction: column; /* Stack vertically */
    gap: 1em;
    justify-content: center;
    position: relative;
}

.project-card {
    position: relative;
    flex: 1 1 100%;
    height: 120px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.671), 0 1.5px 8px rgba(0, 0, 0, 0.18);
    background-size: cover;
    background-position: center;
    background-color: var(--color-border-gray-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: bolder;
    transition: transform 0.18s cubic-bezier(0.175, 0.885, 0.32, 2.275), box-shadow 0.18s;
    border: 2.5px solid var(--color-border-secondary);
}

.project-card:hover {
    transform: scale(1.035) translateY(-4px);
    box-shadow: 0 8px 10px rgba(51,146,255,0.25), 0 8px 12px rgba(0,0,0,0.22);
    border: 4px solid var(--color-accent-blue);
    z-index: 2;
}

.project-card:active {
    font-size: 0.9em;
    transform: scale(0.985) translateY(0px);
    box-shadow: 0 8px 10px rgba(51,146,255,0.25), 0 8px 12px rgba(0,0,0,0.22);
    border: 4px solid var(--color-accent-blue);
    z-index: 2;
    /* filter: brightness(1.6); */
}

.project-card-overlay {
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 19, 0.1);
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 10%;
    z-index: 1;
    opacity: 1;
    pointer-events: none;
}

.project-card .project-card-overlay {
    background-blend-mode: multiply;
    background: linear-gradient(
        0deg,
        rgba(15, 15, 19, 0.496) 50%,
        rgba(15, 15, 19, 0.416) 70%,
        rgba(15, 15, 19, 0.244) 90%,
        rgba(15, 15, 19, 0) 100%
    );
    transition: background 0.3s ease;
}

.project-card:hover .project-card-overlay {
    background: linear-gradient(
        0deg,
        rgba(15, 15, 19, 0.732) 50%,
        rgba(15, 15, 19, 0.449) 100%
    );
}

.project-card-title {
    font-family: var(--fnt-h);
    font-size: 1.32em;
    font-weight: 500;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.2em;
    text-shadow: 0 2px 5px black;
    width: 100%;
    text-align: center;
    margin-bottom: 0;
    color: #e1e5f0;
    transition: all 0.2s ease;
}

.project-card:hover .project-card-title {
    font-size: 1.5em;
    letter-spacing: 0.01em;
    font-weight: 700;
    color: var(--color-text-pure-white);
    text-shadow: 0 2px 2px var(--color-text-pure-black);
    transition: all 0.3s ease, font-size 0.3s cubic-bezier(0.175, 0.885, 0.32, 2.275);
}


/* green - #76c88e */
.project-card.green:hover {
    border: 4px solid #76c88e;
    box-shadow: 0 8px 10px rgba(0, 255, 55, 0.299);
}

.project-card.green:hover .project-card-title {
    color: #76c88e;
}

.project-card.green:hover .project-card-overlay {
    background: linear-gradient(
        0deg,
        rgba(24, 41, 20, 0.732) 50%,
        rgba(108, 187, 122, 0.449) 100%
    );
}

/* orange */
.project-card.orange:hover{
    filter: saturate(1.2);
    border: 4px solid rgb(216, 165, 110);
    box-shadow: 0 8px 10px rgba(255, 204, 0, 0.299);
}

.project-card.orange:hover .project-card-title {
    color: rgb(216, 165, 110);
}

.project-card.orange:hover .project-card-overlay {
    background: linear-gradient(
        0deg,
        rgba(41, 33, 20, 0.732) 50%,
        rgba(187, 149, 108, 0.449) 100%
    );
}

/* blue */
.project-card.blue:hover {
    border: 4px solid rgb(121, 188, 219);
    box-shadow: 0 8px 10px rgba(41, 140, 186, 0.498);
}

.project-card.blue:hover .project-card-title {
    color: rgb(121, 188, 219);
}

.project-card.blue:hover .project-card-overlay {
    background: linear-gradient(
        0deg,
        rgba(19, 46, 53, 0.732) 50%,
        rgba(114, 173, 221, 0.449) 100%
    );
}



/* ===== VIDEO GRID ===== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    padding: 0px 0px 20px 0;
    justify-content: center;
}

.video {
    background-color: var(--bg-pri);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    border: 3px solid var(--color-border);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0px 0px var(--color-border);  
}

.video:hover {
    transform: translateY(-12px) scale(1.04);
    border: 5px solid var(--color-accent-blue);
    transition: all 0.3s ease border 0.1s ease;
    box-shadow: 
        0 4px 0px var(--color-accent-blue), 
        0 8px 15px rgba(51, 146, 255, 0.4);
}


.video:active {
    border-color: var(--color-accent-blue);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transform: translateY(0px) scale(1.0);
}

.video-thumbnail-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 6px 6px 0 0;
}

.video p {
    padding: 6px 10px;
    font-size: 0.9em;
    /* min-height: 4em; */
    display: block;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--color-text-light);
    word-wrap: break-word;
}

mark {
    background-color: hsla(29, 100%, 70%, 0.277);
    color: #ffe19c;
    border: 2px solid hsla(29, 100%, 70%, 0.589);
    padding: 2px 6px;
    border-radius: 8px;
    box-decoration-break: clone;
}

und {
    color: #ffe19c;
    padding: 0 2px;
    box-decoration-break: clone;

    text-decoration: underline;
    text-decoration-color: hsla(29, 100%, 70%, 0.589);
    text-decoration-thickness: 1.6px;
    text-underline-offset: 5px;

}


.highlight {
    background-color: hsla(29, 100%, 70%, 0.277);
    color: #ffe19c;
    border: 2px solid hsla(29, 100%, 70%, 0.589);
    padding: 2px 6px;
    border-radius: 8px;
    box-decoration-break: clone;
}

/* ===== PAGINATION ===== */
.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 4px 0 10px;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 6px 14px;
    border-radius: 8px;
    cursor: pointer;
    background: var(--bg-sec);
    color: var(--txt-m);
    border: 2px solid var(--brdr-1);
    font-family: var(--fnt-j);
    font-size: 0.82em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.15s;
}

.pagination-btn:hover:not(:disabled) {
    border-color: var(--color-accent-blue);
    color: var(--txt-n);
    background: var(--bg-ter);
}

.pagination-btn.active {
    background: var(--bg-ter);
    color: var(--color-accent-light-blue);
    border: 3px solid var(--color-accent-blue);
    font-weight: 600;
}

.pagination-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

/* ===== SEARCH & FILTERS ===== */
.global-search-container {
    padding: 5px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background-color: var(--bg-pri);
    border-top: 2px dashed var(--color-border);
    position: relative;
    width: 100%;
    box-sizing: border-box;
    margin: 0px; /* HEADER LENGTHENING */
}

.search-input-wrapper {
    position: relative;
    flex-grow: 1;
    max-width: 500px;
    padding-top: 12px; /* SPACE ABOVE SEARCH */
}

.global-search-input {
    width: 100%;
    padding: 12px 15px 12px 40px;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    background-color: var(--bg-pri);
    color: var(--color-text-tertiary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    height: 44px;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    outline: none;
}

@media(max-width: 700px) {
    .global-search-input {
        font-size: 0.9em;
        border-top-left-radius: 12px;
        border-bottom-left-radius: 8px;
        border-top-right-radius: 12px;
    }

    .filter-toggle-btn {
        height: 38px;
        padding: 10px 12px;
        font-size: 0.85em;
        border-bottom-left-radius: 16px !important;
        border-bottom-right-radius: 16px !important;
    }
}

.global-search-input:focus {
    outline: none;
    border-color: var(--color-accent-blue);
    box-shadow: 0 0 8px rgba(51, 146, 255, 0.5);
}

.global-search-input::placeholder {
    color: var(--color-neutral-blue);
}

input:-internal-autofill-selected { 
    appearance: menulist-button;
    background-image: none !important;
    background-color: var(--bg-sec) !important;
    color: var(--color-text-light) !important;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #8c95a9;
    cursor: pointer;
    font-size: 1.1em;
    transition: color 0.3s ease, transform 0.3s ease;
    padding-top: 12px;
}

.search-input-wrapper:focus-within .search-icon {
    color: var(--color-text-tertiary);
}


.search-icon.clear-icon:hover {
    color: #ec4242;
    transform: translateY(-50%) scale(1.1);
}

.search-icon:not(.clear-icon):hover {
    color: var(--color-accent-blue);
    transform: translateY(-50%) scale(1.1);
}

.filter-toggle-btn {
    padding: 12px 15px;
    margin-top: 10px;
    border-radius: 8px;
    border: 2px solid var(--color-border-gray-primary);
    background-color: var(--bg-sec);
    color: var(--color-text-tertiary);
    cursor: pointer;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    flex-shrink: 0;
    height: 44px;
    /* border-top-right-radius: 20px;
    border-bottom-right-radius: 20px; */
}

.filter-toggle-btn:hover {
    /* background-color: var(--bg-pri); */
    /* border-color: var(--color-accent-blue);
    color: var(--color-accent-blue); */
    background-color: #341111;
    border-color: var(--color-retro-red);
    color: var(--color-retro-red);
}

.filter-toggle-btn i {
    color: inherit;
}

.filter-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    /* right: 20px; */
    width: 85%;
    justify-content: center;
    background-color: var(--bg-pri);
    border: 2px solid var(--color-border-gray-primary);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    padding: 15px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 70vh;
    overflow-y: auto;
}

.filter-dropdown.show {
    opacity: 1;
    visibility: visible;
}

.filter-dropdown h2 {
    font-size: 1.2em;
    color: var(--color-text-light);
    margin-bottom: 10px;
    padding-left: 0;
    margin-top: 0;
    text-align: center;
    border-bottom: 1px solid var(--color-border-gray-primary);
    padding-bottom: 5px;
}

.filter-dropdown .filter-group-section {
    border: none;
    padding: 0;
    margin-bottom: 0;
}

.filter-group-section {
    margin-bottom: 8px;
    padding: 8px;
    border: 3px solid var(--color-border-gray-primary);
    border-radius: 8px;
    background-color: transparent;
}

.filter-group-section:last-child {
    margin-bottom: 0;
}

.filter-group-section h1, .filter-group-section h2 {
    font-size: 1.2em;
    color: var(--color-text-light);
    margin-bottom: 5px;
    padding-left: 0;
    margin-top: 0;
    display: block;
    text-align: center;
}

.filter-btn-container, .app-filter-btn-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    padding-top: 8px;
}

.filter-btn {
    padding: 8px 15px;
    border-radius: 12px;
    cursor: pointer;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9em;
    font-weight: 700;
    transition: all 0.2s ease-in-out;
    border: 2px solid;
    background-color: transparent;
    white-space: nowrap;
    background-color: var(--bg-sec);
}

.filter-btn[data-filter="Alight Motion"] { border-color: #00ff95; color: #00ff95; }
.filter-btn[data-filter="Moho Pro"] { border-color: #c40000; color: #c40000; }
.filter-btn[data-filter="IbisPaint X"] { border-color: var(--color-border-blue-dark); color: var(--color-text-light-link); }
.filter-btn[data-filter="Other Apps"] { border-color: #935f35; color: #935f35; }
.filter-btn[data-filter="Live2D Cubism"] { border-color: #d26704; color: #d26704; }
.filter-btn[data-filter="All Tutorials"] { border-color: #c5cee0; color: #c5cee0; }

.filter-btn-container .filter-btn {
    border-color: var(--color-border-secondary);
    color: var(--color-text-tertiary);
}

.filter-btn.active {
    background-color: #191929;
    color: var(--color-accent-blue);
    border-color: var(--color-accent-blue);
    font-weight: 900;
}

.filter-btn[data-filter="Alight Motion"].active { background-color: #00ff95; color: var(--bg-sec); border-color: #00ff95; }
.filter-btn[data-filter="Moho Pro"].active { background-color: #c40000; color: #ffffff; border-color: #c40000; }
.filter-btn[data-filter="IbisPaint X"].active { background-color: var(--color-border-blue-dark); color: #ffffff; border-color: var(--color-border-blue-dark); }
.filter-btn[data-filter="Other Apps"].active { background-color: #935f35; color: #ffffff; border-color: #935f35; }
.filter-btn[data-filter="Live2D Cubism"].active { background-color: #d26704; color: #ffffff; border-color: #d26704; }
.filter-btn[data-filter="All Tutorials"].active { background-color: #c5cee0; color: #1A1A2A; border-color: #c5cee0; }


.filter-btn:not(.active):hover {
    background-color: var(--bg-pri);
    transform: translateY(0px) scale(1.05);
}

.section-divider {
    border: none;
    border-top: 2px dashed var(--color-border-gray-primary);
    margin: 30px 0;
}

/* ===== MODALS ===== */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-backdrop.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-content {
    background-color: var(--bg-sec);
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    border: 3px solid var(--color-border-secondary);
    position: relative;
    max-width: 85%;
    max-height: 85%;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: scale(0.8);
    opacity: 0;
    transform: translateY(50px) rotate(2deg);
    transition: transform 0.3s ease, opacity 0.3s ease;
}


.filters-modal .modal-content {
    background-color: var(--bg-sec);
    border-color: var(--color-border-quaternary);
    align-items: stretch;
    height: 800px;
}

.filters-modal .modal-body {
    overflow-y: auto;
    height: 800px;
}

/* Custom scrollbars */
html { scrollbar-color: var(--color-border-quaternary) var(--bg-pri); scrollbar-width: thin; }

html::-webkit-scrollbar { width: 10px; height: 10px; }
html::-webkit-scrollbar-track { background: var(--bg-pri); }
html::-webkit-scrollbar-thumb { background: var(--color-border-quaternary); border-radius: 10px; border: 2px solid var(--bg-pri); }

.filters-modal .modal-body { scrollbar-color: var(--color-border-quaternary) var(--bg-sec); scrollbar-width: thin; }
.filters-modal .modal-body::-webkit-scrollbar { width: 10px; }
.filters-modal .modal-body::-webkit-scrollbar-track { background: var(--bg-sec); border-radius: 8px; }
.filters-modal .modal-body::-webkit-scrollbar-thumb { background: var(--color-border-quaternary); border-radius: 8px; border: 2px solid var(--bg-sec); }

.filter-btn { transition: transform 0.12s ease; }

.filters-modal .modal-header h2 { color: var(--color-text-muted); }

.filters-modal .filter-btn {
    border-radius: 999px; 
}

.filters-modal .modal-footer .filter-action-btn {
    padding: 10px 14px;
    border-radius: 10px;
    border: 2px solid #364250;
    background: transparent;
    color: #cde6ff;
    cursor: pointer;
    font-weight: 700;
}

.filters-modal .modal-footer .apply-filters-btn {
    background: var(--color-accent-blue);
    color: #ffffff;
    border-color: var(--color-accent-blue);
}

.filters-modal .modal-footer .clear-filters-btn {
    background: transparent;
    color: #cde6ff;
    border-color: #49506e;
}

.filters-modal .filter-btn { padding: 8px 12px; }

.modal-backdrop.show .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2em;
    color: var(--color-text-pure-white);
    cursor: pointer;
    padding: 5px 5px;
    width: 50px;
    height: 50px;
    line-height: 1;
    transition: color 0.2s ease, transform 0.2s ease;
    background-color: var(--bg-sec);
    border-radius: 6px;
}

.modal-close-button:hover {
    color: var(--color-retro-red);
    transform: rotate(90deg);
}

.modal-image {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    border-radius: 8px;
    object-fit: contain;
}

.modal-image-title {
    color: var(--color-text-tertiary);
    margin-top: 10px;
    font-size: 1.1em;
    text-align: center;
    word-wrap: break-word;
    white-space: normal;
    display: block;
}

.loading-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loading-modal-backdrop.show {
    opacity: 1;
    visibility: visible;
}

.loading-modal-content {
    background-color: var(--bg-sec);
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    color: var(--color-text-light);
    font-size: 1.5em;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.loading-modal-backdrop.show .loading-modal-content {
    transform: scale(1);
}

.iframe-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.iframe-backdrop.show { display: flex; }
.iframe-modal {
    width: 92%;
    max-width: 1100px;
    height: 88vh;
    background: var(--bg-pri);
    border-radius: 12px;
    border: 3px solid var(--color-border-secondary);
    box-shadow: 0 8px 30px rgba(0,0,0,0.6);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.iframe-modal iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
.iframe-modal .modal-close-button {
    position: absolute;
    top: 10px;
    right: 14px;
    z-index: 10;
    background-color: var(--bg-sec);
    border-radius: 6px;
    width: 44px;
    height: 44px;
    font-size: 20px;
    color: var(--color-text-pure-white);
    border: none;
    cursor: pointer;
}
.iframe-modal .modal-close-button:hover { color: var(--color-accent-blue); }

.loading-spinner {
    border: 5px solid var(--color-border-gray-primary);
    border-top: 5px solid var(--color-accent-blue);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== TUTORIAL OPTIONS ===== */
.tutorial-options { 
    display:flex; 
    gap:18px; 
    flex-direction:row; 
    align-items:center; 
    justify-content:center; 
    margin-top:18px; 
}

.tutorial-option {
    position: relative;
    width: 260px;
    min-width: 200px;
    height: 160px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--color-text-muted);
    border: 2px solid var(--color-border-secondary);
    box-shadow: 0 8px 22px rgba(20, 17, 27, 0.888);
    transition: all 0.3s ease;
    background-size: cover;
    background-position: center center;
}

.tutorial-option:focus, .tutorial-option:hover { 
    transform: translateY(-6px); 
    box-shadow: 0 12px 30px rgba(0, 136, 255, 0.65); 
    border-color: var(--color-accent-blue); 
    outline: none; 
    border: 4px solid var(--color-accent-blue);
}

.tutorial-option:hover .card-title,
.tutorial-option:focus .card-title {
    color: var(--color-text-pure-white) !important;
    text-shadow: 0 3px 10px rgba(0,0,0,0.7);
}

.tutorial-option:hover .tutorial-icon,
.tutorial-option:focus .tutorial-icon {
    color: var(--color-text-pure-white) !important;
    filter: drop-shadow(0 6px 10px rgba(0,0,0,0.7));
}

.tutorial-option:hover::before, .tutorial-option:focus::before {
    background: linear-gradient(180deg, rgb(24, 26, 37) 0%, rgb(43, 55, 88) 100%);  
    /* TUT OPTION BRIGHTNESS */
}

.tutorial-option:hover .tutorial-icon,
.tutorial-option:focus .tutorial-icon {
    color: #fff !important;
    filter: drop-shadow(0 0 8px var(--color-retro-blue));
}

.tutorial-option:active { 
    transform: scale(0.92) translateY(6px);
    box-shadow: 0 6px 18px rgba(0, 136, 255, 0.45);
    border-color: var(--color-accent-blue);
    border: 2px solid var(--color-accent-blue);
    z-index: 2;
}

.tutorial-option::before {
    content: '';
    position: absolute;
    left: 0; right: 0; top: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.732) 0%, rgb(24, 25, 54) 100%); 
    /* TUT OPTION DARKNESS */
    pointer-events: none;
    transition: background 0.3s ease;
}

#seeYouTubePlaylists.tutorial-option::before {
    background: linear-gradient(180deg, rgba(143, 64, 64, 0.186) 0%, rgba(118, 36, 36, 0.3) 100%);
}

.tutorial-option-overlay {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    text-align: center;
    font-weight: 700;
    font-family: var(--fnt-h);
    letter-spacing: 0.01em;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.tutorial-icon { 
    font-size: 28px; 
    color: currentColor; 
    filter: drop-shadow(0 6px 10px rgba(0,0,0,0.55)); 
}

.tutorial-option .card-title { 
    font-size: 1.0em; 
    color: inherit; 
    text-shadow: 0 3px 10px rgba(0,0,0,0.6); 
}

.tutorial-option .card-title.card-title--large { 
    font-size: 1.12em; 
    font-weight: 600; 
}

.tutorial-option .card-title.card-title--normal { 
    font-size: 1.02em; 
    font-weight: 600; 
    line-height: 1.2 !important;
}

/* ===== PROJECTS OPTIONS (Artworks, Lore, Commissions) ===== */
.artworks-options, .lore-options, .commission-options, .projects-options { 
    display:flex; 
    gap:18px; 
    flex-direction:row; 
    align-items:center; 
    justify-content:center; 
    margin-top:18px; 
}

.artworks-option, .lore-option, .commission-option, .projects-option {
    position: relative;
    width: 260px;
    min-width: 200px;
    height: 130px !important;
    padding-top: 4px !important;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--color-text-muted);
    border: 2px solid var(--color-border-secondary);
    box-shadow: 0 8px 22px rgba(20, 17, 27, 0.888);
    transition: all 0.3s ease;
    background-size: cover;
    background-position: center center;
    background-color: var(--bg-sec);
}

.artworks-option:focus, .artworks-option:hover,
.lore-option:focus, .lore-option:hover,
.commission-option:focus, .commission-option:hover,
.projects-option:focus, .projects-option:hover { 
    transform: translateY(-6px); 
    box-shadow: 0 12px 30px rgba(0, 136, 255, 0.65); 
    border-color: var(--color-accent-blue); 
    outline: none; 
    border: 4px solid var(--color-accent-blue);
}

.artworks-option:hover .card-title,
.artworks-option:focus .card-title,
.lore-option:hover .card-title,
.lore-option:focus .card-title,
.commission-option:hover .card-title,
.commission-option:focus .card-title,
.projects-option:hover .card-title,
.projects-option:focus .card-title {
    color: var(--color-text-pure-white) !important;
    text-shadow: 0 3px 10px rgba(0,0,0,0.7);
}

.artworks-option:hover .tutorial-icon,
.artworks-option:focus .tutorial-icon,
.lore-option:hover .tutorial-icon,
.lore-option:focus .tutorial-icon,
.commission-option:hover .tutorial-icon,
.commission-option:focus .tutorial-icon,
.projects-option:hover .tutorial-icon,
.projects-option:focus .tutorial-icon {
    color: #fff !important;
    filter: drop-shadow(0 6px 10px rgba(0,0,0,0.7));
}

.artworks-option:hover::before, .artworks-option:focus::before,
.lore-option:hover::before, .lore-option:focus::before,
.commission-option:hover::before, .commission-option:focus::before,
.projects-option:hover::before, .projects-option:focus::before,
.tutorials-option:focus::before, .tutorials-option:hover::before {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.181) 0%, rgba(119, 119, 119, 0.30) 100%);
}

.artworks-option:active,
.lore-option:active,
.commission-option:active,
.projects-option:active { 
    transform: scale(0.92) translateY(6px);
    box-shadow: 0 6px 18px rgba(0, 136, 255, 0.45);
    border-color: var(--color-accent-blue);
    border: 2px solid var(--color-accent-blue);
    z-index: 2;
}

.artworks-option::before,
.lore-option::before,
.commission-option::before,
.projects-option::before {
    content: '';
    position: absolute;
    left: 0; right: 0; top: 0; bottom: 0;
    pointer-events: none;
    transition: background 0.3s ease;
}

.artworks-option .card-title,
.lore-option .card-title,
.commission-option .card-title,
.projects-option .card-title { 
    font-size: 1.0em; 
    color: inherit; 
    text-shadow: 0 3px 10px rgba(0,0,0,0.6); 
}

.artworks-option .card-title.card-title--large,
.lore-option .card-title.card-title--large,
.commission-option .card-title.card-title--large,
.projects-option .card-title.card-title--large { 
    font-size: 1.12em; 
    font-weight: 600; 
}

.artworks-option .card-title.card-title--normal,
.lore-option .card-title.card-title--normal,
.commission-option .card-title.card-title--normal,
.projects-option .card-title.card-title--normal { 
    font-size: 1.02em; 
    font-weight: 600; 
}

/* ===== PROJECTS-OPTION RETRO COLORS ===== */
/* Coding Projects - Blue */
#codingProjectsBtn {
    border-color: var(--color-retro-blue);
    background-color: rgba(51, 129, 217, 0.08);
}

#codingProjectsBtn .tutorial-icon {
    color: var(--color-retro-blue);
}

#codingProjectsBtn .card-title {
    color: var(--color-retro-blue);
}

#codingProjectsBtn:hover,
#codingProjectsBtn:focus {
    border-color: var(--color-retro-blue);
    box-shadow: 0 12px 30px rgba(105, 147, 194, 0.5);
    background-color: rgba(105, 147, 194, 0.18);
}

#codingProjectsBtn:hover .tutorial-icon,
#codingProjectsBtn:focus .tutorial-icon {
    color: #fff !important;
    filter: drop-shadow(0 0 8px var(--color-retro-blue));
}

#codingProjectsBtn:hover .card-title,
#codingProjectsBtn:focus .card-title {
    color: #fff !important;
}

/* Lorepage - Green */
#lorepageBtn {
    border-color: var(--color-retro-green);
    background-color: rgba(159, 195, 135, 0.08);
}

#lorepageBtn .tutorial-icon {
    color: var(--color-retro-green);
}

#lorepageBtn .card-title {
    color: var(--color-retro-green);
}

#lorepageBtn:hover,
#lorepageBtn:focus {
    border-color: var(--color-retro-green);
    box-shadow: 0 12px 30px rgba(155, 211, 118, 0.641);
    background-color: rgba(159, 195, 135, 0.18);
}

#lorepageBtn:hover .tutorial-icon,
#lorepageBtn:focus .tutorial-icon {
    color: #fff !important;
    filter: drop-shadow(0 0 8px var(--color-retro-green));
}

#lorepageBtn:hover .card-title,
#lorepageBtn:focus .card-title {
    color: #fff !important;
}

/* Artworks - Orange/Brown */
#artworksBtn {
    border-color: var(--color-retro-orange);
    background-color: rgba(229, 156, 88, 0.08);
}

#artworksBtn .tutorial-icon {
    color: var(--color-retro-orange);
}

#artworksBtn .card-title {
    color: var(--color-retro-orange);
}

#artworksBtn:hover,
#artworksBtn:focus {
    border-color: var(--color-retro-orange);
    box-shadow: 0 12px 30px rgba(229, 156, 88, 0.5);
    background-color: rgba(229, 156, 88, 0.18);
}

#artworksBtn:hover .tutorial-icon,
#artworksBtn:focus .tutorial-icon {
    color: #fff !important;
    filter: drop-shadow(0 0 8px var(--color-retro-orange));
}

#artworksBtn:hover .card-title,
#artworksBtn:focus .card-title {
    color: #fff !important;
}

/* ===== TUTORIAL OPTIONS RETRO COLORS ===== */
/* See YouTube Playlists */
#seeYouTubePlaylists {
    border-color: var(--color-retro-red);
    background-color: rgba(215, 97, 76, 0.08);
        filter:grayscale(0.3);
}

#seeYouTubePlaylists:hover {
    border-color: var(--color-retro-red);
    background-color: rgba(215, 97, 76, 0.08);
    filter: grayscale(0.0);
    box-shadow: 0 12px 30px rgba(215, 97, 76, 0.5);
}

#seeYouTubePlaylists .tutorial-icon {
    color: var(--color-retro-red);
}

#seeYouTubePlaylists .card-title {
    color: var(--color-retro-red);
}

/* #seeYouTubePlaylists:hover,
#seeYouTubePlaylists:focus {
    border-color: var(--color-retro-red);
    box-shadow: 0 12px 30px rgba(215, 97, 76, 0.5);
    background-color: rgba(255, 38, 0, 0.18);
    transition: all 0.3s ease;
} */

#seeYouTubePlaylists:hover .tutorial-icon,
#seeYouTubePlaylists:focus .tutorial-icon {
    color: #fff !important;
    filter: drop-shadow(0 0 8px var(--color-retro-red));
}

#seeYouTubePlaylists:hover .card-title,
#seeYouTubePlaylists:focus .card-title {
    color: #fff !important;
}

#seeYouTubePlaylists::before {
    content: '';
    position: absolute;
    left: 0; right: 0; top: 0; bottom: 0;
    pointer-events: none;
    transition: background 0.3s ease;
}

#seeYouTubePlaylists:hover::before,
#seeYouTubePlaylists:focus::before {
    background: linear-gradient(180deg, rgba(111, 52, 52, 0.378) 0%, rgba(162, 68, 68, 0.556) 100%);
}

/* Search All Tutorials - Retro Yellow */

#searchAllTutorials.tutorial-option::before {
    background: linear-gradient(180deg, rgb(91, 79, 0) 0%, rgba(144, 65, 0, 0.847) 100%);
}

#searchAllTutorials {
    border-color: var(--color-retro-yellow);
    background-color: rgba(232, 198, 76, 0.08);
    filter: grayscale(0.3);
}

#searchAllTutorials:hover {
    border-color: var(--color-retro-yellow);
    background-color: rgb(255, 200, 0);
    filter: grayscale(0.0);
    box-shadow: 0 12px 30px rgba(232, 198, 76, 0.5);
}

#searchAllTutorials .tutorial-icon {
    color: var(--color-retro-yellow);
}

#searchAllTutorials .card-title {
    color: var(--color-retro-yellow);
}

#searchAllTutorials:hover .tutorial-icon,
#searchAllTutorials:focus .tutorial-icon {
    color: var(--color-text-pure-white) !important;
    filter: drop-shadow(0 0 8px var(--color-retro-yellow));
}

#searchAllTutorials:hover .card-title,
#searchAllTutorials:focus .card-title {
    color: var(--color-text-pure-white) !important;
}

#searchAllTutorials::before {
    content: '';
    position: absolute;
    left: 0; right: 0; top: 0; bottom: 0;
    pointer-events: none;
    transition: background 0.3s ease;
}

#searchAllTutorials:hover::before,
#searchAllTutorials:focus::before {
    background: linear-gradient(180deg, rgb(91, 79, 0) 0%, rgba(216, 106, 15, 0.847) 100%);
    transition: background 0.3s ease;
}

/* ===== YOUTUBE & DISCORD ELEMENTS ===== */
.yt-list { 
    display:flex; 
    gap:14px; 
    flex-direction:column; 
    align-items:center; 
}

.yt-channel {
    display:flex;
    align-items:center;
    gap:12px;
    padding:14px 18px;
    border-radius:12px;
    background:var(--bg-pri);
    border: 2px solid var(--color-border-secondary);
    cursor:pointer;
    width:stretch;
    min-width:300px;
    box-sizing:border-box;
    transition: all 0.2s ease;
}

.yt-channel:hover { 
    box-shadow:0 6px 12px var(--color-accent-blue-lighter); 
    transform:translateY(-3px); 
    border: 4px solid var(--color-accent-blue); 
}

.yt-avatar { 
    width:56px;
    height:56px;
    border-radius:10px;
    object-fit:cover;
    border:2px solid rgba(255,255,255,0.03); 
    margin-left: -3px; 
}

.yt-meta { 
    color: var(--color-text-muted); 
}

.yt-name { 
    font-weight:700;
    font-family:'GeneralSans',sans-serif; 
}

.yt-subs { 
    font-size:0.9em;
    color: #9fb2d9; 
}

.discord-action { 
    background:var(--color-accent-blue-darker);
    color:var(--color-text-pure-white);
    padding:10px 12px;
    border-radius:8px;
    border:2px solid var(--color-border-gray-primary);
    text-align:center;
    cursor:pointer;
    text-decoration:none;
    transition: all 0.3s ease; 
}

.discord-action:hover { 
    background: var(--bg-pri); 
    border:2px solid var(--color-accent-blue-lighter); 
}

/* ===== FOOTER ===== */
.footer {
    display: flex;
    justify-content: center;
    padding: 50px 40px 100px 40px;
    background: var(--bg-pri);
    color: var(--txt-n);
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
    transition: margin 0.2s ease;
}

.footer-section {
    flex: 1;
    min-width: 300px;
    padding: 0;
    margin-right: 10px;
}

.footer-section h3 {
    font-size: 1.4em;
    margin-bottom: 0.8em;
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--fnt-h);
}

.footer-section p {
    line-height: 1.5;
    margin-bottom: 0.5em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    width: 100%;
    align-items: start;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-list,
.socials-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: var(--color-text-muted);
}

.contact-list li a,
.socials-list li a {
    color: var(--color-text-muted);
    text-decoration: none;
}

.contact-list li a:hover, 
.socials-list li a:hover {
    color: #60a7ff;
    text-decoration: underline;
}

.contact-list li i,
.socials-list li i,
.footer-section h3 i {
    color: var(--color-accent-blue);
    width: 20px;
    text-align: center;
}

.footer-section.socials {
    text-align: right;
}

.intro-bubblebody + .wider-bubblebody + footer,
.wider-bubblebody + footer {
    margin-top: 14px;
}

/* ===== ARROWS ===== */
.intro-arrow-left,
.intro-arrow-right {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.intro-arrow-left.visible,
.intro-arrow-right.visible {
    opacity: 1;
    pointer-events: auto;
}

.intro-arrow {
    display: none;
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    padding: 3px 0 0 0;
    background: var(--color-accent-blue-alt);
    color: var(--color-text-muted);
    border: none;
    border-radius: 30px;
    width: 40px;
    height: 40px;
    font-size: 1.8em;
    box-shadow: 1px 7px 4px 0px rgba(20, 0, 107, 0);
    z-index: 10;
    cursor: pointer;
    transition: background 0.2s;
}

.intro-arrow:hover {
    background: var(--color-accent-blue-lighter);
    transform: scale(1.05) translateY(-50%);
    box-shadow: 1px 3px 4px 0px rgba(20, 0, 107, 0.312);
}

.intro-arrow:active {
    background: var(--color-accent-blue-darker);
}

.intro-arrow.visible { 
    display: block !important; 
}

.intro-arrow-left { 
    left: 10px; 
    right: auto; 
}

/* ===== TOAST ===== */
#toastContainer .toast { 
    background:var(--color-accent-blue-darker);
    color:var(--color-text-pure-white);
    padding:10px 16px;
    border-radius:10px;
    margin-top:8px;
    box-shadow:0 6px 16px rgba(0,0,0,0.35);
    opacity:0;
    transform:translateY(6px) scale(0.98);
    transition:all .18s ease;
    pointer-events:auto; 
}

#toastContainer .toast.visible { 
    opacity:1;
    transform:translateY(0) scale(1); 
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 950px) {
    .commission-btn {
        width: 44px !important;
        min-width: 44px !important;
        padding: 0 !important;
        border-radius: 12px;
        font-family: 'Jetbrains Mono';
    }
    .commission-btn .btn-text { display: none !important; }
    .commission-btn .btn-icon { margin: 0 !important; }
    
    .intro-image {
        width: auto;
        min-width: 275px;
    }

    .intro-text-container {
        margin-left: -10px;
    }
    
    .comm-me-ct {
        display: none;
    }

    .tutorial-options { flex-direction: column; gap:12px; }
    .tutorial-option { min-width: 95%; height: 120px;  }
    
    .artworks-options, .lore-options, .commission-options, .projects-options { flex-direction: column; gap:12px; }
    .artworks-option, .lore-option, .commission-option, .projects-option { min-width: 95%; height: 120px;  }
}

@media (min-width: 950px) {
    /* .intro-text-container {
        padding-top: 30px;
    } */
    .custom-tooltip {
        top: -42px;
    }
}

@media (max-width: 700px) {
    .intro-bubblebody::before,
    .intro-bubblebody::after {
        display: none;
    }

    .intro-bubblebody {
        border-top-left-radius: 30px !important;
        border-top-right-radius: 30px !important;
    }
    .intro {
        border-radius: 20px !important;
    }

    .intro {
        display: flex;
        flex-direction: row;
        align-items: stretch;
        gap: 8px;
        height: 320px;
        margin-bottom: 1.5em;
        width: 100%;
        box-sizing: border-box;
        /* Re-added overflow: hidden and added border-radius as requested */
        border-radius: 23px;
        overflow: hidden;
        position: relative;
    }

    /* "?" icon overlay for mobile collapsed state */
    .intro::after {
        content: "\2b";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        position: absolute;
        top: 50%;
        right: 7.5%;
        transform: translate(50%, -50%);
        font-size: 1.5em;
        /* color: var(--color-text-secondary); */
         color: #677099;
        opacity: 1;
        transition: opacity 0.2s ease;
        pointer-events: none;
        z-index: 10;
    }

    .intro.is-swiped::after {
        opacity: 0;
    }

    .intro-image {
        width: calc(85% - 4px);
        flex: 0 0 calc(85% - 4px);
        min-width: 0;
        height: 100%;
        margin: 0 !important;
        border-radius: 23px; 
        transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
        cursor: pointer;
        display: block !important;
        opacity: 1;
        object-fit: cover;
    }

    .intro-text-container {
        width: calc(15% - 4px);
        flex: 0 0 calc(15% - 4px);
        min-width: 0;
        height: 100%;
        margin: 0 !important;
        padding: 10px;
        background-color: var(--bg-ter);
        border-radius: 23px;
        opacity: 0.5;
        overflow: hidden;
        transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        text-align: left;
        box-sizing: border-box;
    }

    .intro-text-container * {
        transition: opacity 0.4s ease;
        opacity: 0;
        pointer-events: none;
    }

    /* Swiped state (Text Expanded) */
    .intro.is-swiped .intro-image {
        width: calc(15% - 4px);
        flex: 0 0 calc(15% - 4px);
        opacity: 0.5;
    }

    .intro.is-swiped .intro-text-container {
        width: calc(85% - 4px);
        flex: 0 0 calc(85% - 4px);
        opacity: 1;
        padding: 20px;
    }

    .intro.is-swiped .intro-text-container * {
        opacity: 1;
        pointer-events: auto;
    }

    /* important - swiped to unswiped animation */
    .intro:not(.is-swiped) .intro-text-container {
        width: calc(85% - 4px);
        flex: 0 0 calc(85% - 4px);
        opacity: 1;
        padding: 20px;
    }

    .intro-text {
        margin-top: 0 !important;
        padding: 0 !important;
        /* font-size: 0.9em; */
        line-height: 1.4;
    }

    /* .intro-title {
        font-size: 1.2em;
    } */

    .intro-icons {
        margin-top: 10px;
        padding-left: 0;
        gap: 16px;
    }

    .intro-hr {
        margin-left: 0px !important;
    }

    /* .intro-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9em;
    } */

    .heading-container h2 {
        font-size: 1.5em;
        text-align: center;
        margin-left: 10px;
    }

    .bubblebody, .wider-bubblebody, .intro-bubblebody {
        width: 90%;
        padding: 20px;
    }
    
    .project-cards {
        flex-direction: column;
        align-items: stretch;
        height: 250px; /* VERTICAL HEIGHT */
        gap: 2px;
    }
    
    .project-card {
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        height: 180px;
        margin: 0 0 1em 0;
        box-sizing: border-box;
        border: 3px solid #49506e;
    }
    
    /* Overriding the broken state from lines 2345-2351 to allow swiping to work */
    /* .intro:is(.is-swiped) .intro-text-container {
        width: calc(15% - 4px) !important;
        flex: 0 0 calc(15% - 4px) !important;
        opacity: 0.5 !important;
        padding: 10px !important;
    } */
    
    .project-card .project-card-overlay {
        background: linear-gradient(
            0deg,
            rgba(15, 15, 19, 0.932) 0%,
            rgba(25, 25, 42, 0.627) 100%
        );
    }
    
    .footer-section.socials {
        text-align: left;
    }
    
    .footer-section h3, .footer-section p {
        justify-content: left;
    }
    
    .footer-section {
        min-width: 100%;
        text-align: left;
    }
    
    .gallery-item {
        width: unset;
    }
    
    .nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        transform: scale(0.90em);
    }
    
    .header {
        transform: scale(0.30em);
    }
    
    .yt-list { justify-content: center; }
    .yt-channel { min-width: 80%; max-width: 92%; }
    
    /* Always stack other proj cards vertically */
    #otherProjectsModal .tutorial-options {
    flex-direction: column !important;
    align-items: center;
    justify-content: flex-start;
    }

    #otherProjectsModal .tutorial-option {
    width: 250px;
    height: 120px;
    }
    
    .footer { 
        padding: 28px 22px 40px 22px; 
    }
    
    .footer-grid { 
        grid-template-columns: 1fr; 
    }
    
    .footer-section h3 { 
        font-size: 1.1em; 
    }
    
    .intro-icons { 
        padding-left: 0; 
        justify-content: flex-start; 
    }
    
    .comm-me-ct {
        display: visible;
        font-family: 'Jetbrains Mono';
        font-size: 1em;
    }
    
    /* h2:not(.h2comm-me) {
        justify-content: center;
        padding-left: 0;
    } */
    
    h2 {
        font-size: 1.5em;
    }
    
    .footer {
        padding: 2.5em 8%;
        padding-bottom: 4em;
    }
    
    .global-search-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-input-wrapper {
        width: 100%;
    }
    
    .filter-toggle-btn {
        width: 100%;
        justify-content: center;
        margin-top: 0px;
    }
    
    nav a {
        margin: 0 0.3em;
        font-size: 1.1em;
    }
}

@media (max-width: 600px) {
    .global-search-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-input-wrapper {
        width: 100%;
    }
    
    .filter-toggle-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 450px) {
    nav a {
        margin: 0 0.3em;
        font-size: 0.9em !important;
    }
    
    .filter-dropdown {
        width: calc(100% - 20px);
        transform: translateX(-50%);
    }
    
    .filter-btn {
        font-size: 0.75em;
        padding: 5px 8px;
    }
    
    .nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        transform: scale(0.80em);
    }
    .alltut {
        font-size: 2.1em !important;
    }
    .by-me {
        font-size: 1.2em !important;
    }
}


@media (max-width: 700px) {
    .project-cards {
        margin-right: 10px;
    }
}

@media (min-width: 700px) {
    .project-cards {
        flex-direction: row; /* Stacks cards horizontally */
        flex-wrap: nowrap;
    }
    
    .project-card {
        height: 150px;
    }
}


@media (max-width: 900px) {
    header {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .bubblebody {
        width: 85%;
        padding: 15px;
        margin-top: 1.5em;
    }
    
    .global-search-container {
        padding: 10px 15px;
        gap: 10px;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .search-input-wrapper {
        flex-grow: 1;
        max-width: none;
    }
    
    .filter-dropdown {
        top: calc(100% + 10px);
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 40px);
        right: auto;
    }
}

/* ===== INTRO PANE ANIMATIONS ===== */
.intro-pane { 
    will-change: transform, opacity; 
    backface-visibility: hidden; 
    transform: translateZ(0); 
}

.intro--animating { 
    will-change: height; 
}

/* ===== ACCORDION STUFF ===== */
.accordion-container {
    width: 100%;
    max-width: 2000px;
    margin: 2em auto;
    background-color: #0F0F13;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    overflow: hidden;
    transition: all 0.3s ease-out;
    border: 2px solid transparent;
}

.accordion-container:hover {
    border: 2px solid var(--color-accent-blue);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.accordion-item {
    border-radius: 6px;
    overflow: visible;
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    background-color: #0F0F13;
    color: #E0E0FF;
    cursor: pointer;
    padding: 1em 1.5em;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 6px;
}

.accordion-header:hover {
    color: var(--color-accent-blue);
}

.accordion-header .arrow {
    font-size: 0.8em;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.accordion-header.active .arrow {
    transform: rotate(90deg);
}

.accordion-content {
    background-color: #1A1A2A;
    max-height: 0;
    overflow: hidden;
    padding: 0 1.5em;
    color: #c5cee0;
    border-radius: 6px;
    margin: 0px;
    transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out, margin 0.3s ease-in-out;
        margin: 0 10px;
}

.accordion-content.show {
    padding-top: 1em;
    padding-bottom: 1em;
    margin: 10px;
}

.accordion-content a {
    display: flex;
    align-items: center;
    color: #c5cee0;
    padding-top: 4px;
    padding-bottom: 10px;
    text-decoration: none;
    transition: color 0.2s ease-out;
    padding-left: 40px;
}

.accordion-content a i {
    margin-right: 15px;
    flex-shrink: 0;
}

.accordion-content a:hover {
    color: var(--color-accent-blue);
}

.nested-accordion-item .accordion-header {
    background-color: #1A1A2A;
    padding-left: 2.5em;
    background-color: #0F0F13;
    margin: 4px;
    border-radius: 6px;
}

.accordion-content p.accordion-text-item {
    color: #c5cee0;
    padding-top: 4px;
    padding-bottom: 10px;
    padding-left: 40px;
    line-height: 1.5;
}

.accordion-content p.accordion-text-item-with-icon i {
    display: inline-block;
    vertical-align: center;
    margin-right: 5px;
    flex-shrink: 0;
    bottom: -8px;
}

.accordion-content p.accordion-text-item a {
    display: inline;
    padding: 0;
    margin: 0;
    text-decoration: underline;
    color: var(--color-accent-blue);
    transition: color 0.2s ease-out;
}

.accordion-content p.accordion-text-item a:hover {
    color: #d8e3f9;
}

@media (max-width: 600px) {
    .accordion-content a,
    .accordion-content p.accordion-text-item {
    padding-left: 20px;
    }
    .accordion-content a i {
    margin-right: 20px;
    }
    .accordion-header {
        justify-content: flex-start;
        padding-left: 1em;
        padding-right: 1.5em;
    }
    .accordion-header i {
        margin-right: 15px;
        flex-shrink: 0;
    }
    .accordion-header .arrow {
        margin-left: auto;
    }

    .nested-accordion-item .accordion-header {
        padding-left: 1em;
    }
    .nested-accordion-item .accordion-header i {
        margin-right: 15px;
    }
}

@media (max-width: 450px) {
    .accordion-content a,
    .accordion-content p.accordion-text-item {
    padding-left: 5px;
    width: 110%;
    word-wrap: break-word;
    font-size: 0.95em;
    }
    .accordion-content a i,
    .accordion-content p.accordion-text-item-with-icon i {
        margin-right: 9px;
    }
    .accordion-header {
        padding-left: 0.8em;
        font-size: 0.95em;
    }
    .accordion-header i {
        margin-right: 10px;
    }
    .nested-accordion-item .accordion-header {
        padding-left: 0.8em;
    }
    .nested-accordion-item .accordion-header i {
        margin-right: 10px;
    }
}


@media (min-width: 700px) {
    .footer {
        margin-left: 30px !important;
    }
}

@media (min-width: 900px) {
    .footer {
        margin-left: 100px !important;
    }
}


/* ===== PAGE TRANSITIONS ===== */
body.page-exiting .page-wrapper {
    animation: none;
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity 0.22s ease, transform 0.22s ease;
    pointer-events: none;
}

/* ===== CAROUSEL ===== */
  .carousel {
    position: relative;
    background: #0F0F13;
    border: 1px solid #49506e;
    border-radius: 10px;
    overflow: hidden;
    padding: 6px;
    margin-bottom: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.45);
    transition: all 0.3s ease;
  }
  .carousel img {
    width: 100%;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    cursor: zoom-in;
  }
  .carousel-viewport { border-radius: 6px; overflow: hidden; }

  /* ===== CAROUSEL ARROWS ===== */
  .carousel-controls {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
  }
  .carousel-controls .carousel-btn { pointer-events: auto; }
  .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: #1a1a2a40;
    backdrop-filter: blur(2px);
    color: #c5cee0;
    border: 1px solid #49506e;
    border-radius: 20px;
    width: 34px;
    height: 44px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 240ms ease, transform 240ms ease, background-color 240ms ease;
  }
  .carousel-btn { opacity: 1; visibility: visible; }
  .carousel-btn:hover { background-color: #49506e40; transform: translateY(-50%) scale(1.05); }
  .carousel-btn:active { transform: translateY(-50%) scale(0.9); }
  .carousel-btn.prev { left: 16px; }
  .carousel-btn.next { right: 16px; }
  .carousel-btn i { pointer-events: none; font-size: 1.1rem; }

  /* ===== CAROUSEL RESPONSIVE ===== */
  .carousel { padding: 10px;
    --carousel-height: 280px;
}

  .carousel .carousel-viewport { overflow: hidden; }
  .carousel .carousel-track { 
    display: flex; 
    gap: 12px; 
    align-items: stretch; 
    height: var(--carousel-height); 
    transition: transform 360ms cubic-bezier(.2,.9,.2,1); 
    will-change: transform; 
}

  @media (min-width:600px) {
    .carousel { --carousel-height: 300px; transition: all 0.3s ease; }
  }
  @media (min-width:900px) {
    .carousel { --carousel-height: 300px; transition: all 0.3s ease; }
  }
  @media (min-width:1200px) {
    .carousel { --carousel-height: 320px; transition: all 0.3s ease; }
  }
  
  /* ===== CAROUSEL ANIMATIONS ===== */
  .carousel img {
    transition: opacity 500ms cubic-bezier(.2,.9,.2,1), transform 500ms cubic-bezier(.2,.9,.2,1);
    opacity: 0;
    transform: translateY(8px) scale(0.95) translateX(2px);
    height: 100%;
    width: auto;
    object-fit: cover;
    display: block;
    flex: 0 0 auto;
  }
  .carousel img.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
  }


