:root {
  /* Heritage-inspired palette */
  --color-primary: #ffdd5b;
  --color-primary-soft: #5F9D7E;
  --color-accent: #C98B2D;
  --color-accent-soft: #E6C87A;

  /* Surfaces */
  --bg-page: #07110E;
  --bg-surface: #111C19;
  --bg-card: var(--bg-surface);
  --bg-hover: #172621;
  --border: #263731;

  /* Text */
  --text-primary: #F4F1E8;
  --text-secondary: #C8D1C5;
  --text-muted: #97A297;

  /* Gradients */
  --gradient-1: linear-gradient(135deg, #ffdd5b 0%, #554403 100%);
  --gradient-2: linear-gradient(135deg, #d0b343 0%, #75612e 100%);

  --focus: #F0DD9A;

  --primary: var(--color-primary);
  --primary-soft: var(--color-primary-soft);
  --accent: var(--color-accent);
  --accent-soft: var(--color-accent-soft);
  --cyan: #77C4B0;
  --purple: #9B8A62;
  --bg-darker: #07110E;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 6px 12px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 14px 28px rgba(0, 0, 0, 0.35);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 30px rgba(47, 107, 87, 0.22);

  --layout-shell-max: 1400px;
  --layout-shell-gutter: 2rem;

  --font-primary: 'Tajawal', sans-serif;
  --font-code: 'Fira Code', monospace;
  --font-display: 'Cinzel', serif;
  --transition: 0.3s ease;
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.4s ease;
}

[data-theme="light"] {
  --bg-page: #f8f5ec;
  --bg-surface: #fffdf7;
  --bg-card: #ffffff;
  --bg-hover: #f3ede1;
  --border: #e8dcc7;
  --text-primary: #1e2a25;
  --text-secondary: #52605a;
  --text-muted: #728078;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  font-weight: 500;
  background:
    radial-gradient(circle at top left, rgba(201, 139, 45, 0.12), transparent 30%),
    radial-gradient(circle at top right, rgba(95, 157, 126, 0.14), transparent 28%),
    var(--bg-page);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background var(--transition-fast), color var(--transition-fast);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

h1, h2, h3, h4, h5, h6 { font-weight: 700; }
.hero-name, .section-title, .project-title, .category-title { font-weight: 800; }

.project-title {
  color: #F6E9C8;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 800;
  font-family: var(--font-display), var(--font-primary);
  text-shadow: 0 4px 12px rgba(0,0,0,0.45);
  font-size: 1.05rem;
}

.creator-photo-wrap {
  width: 140px; height: 140px; margin: 0 auto; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; background: #111;
}
.creator-photo { width: 100%; height: 100%; object-fit: cover; object-position: center center; transform-origin: center center; display: block; transition: transform 0.35s cubic-bezier(.2,.9,.2,1); }
.creator-photo-wrap:hover .creator-photo, .creator-card:focus-within .creator-photo { transform: scale(1.18); }
.creator-card { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.creator-card:hover { transform: translateY(-6px); }

.ex-demo .container {
  height: auto; width: 100%; max-width: 1100px; display: flex; flex-direction: row; flex-wrap: nowrap; gap: 40px; justify-content: center; align-items: center; margin: 0 auto; padding: 36px 0; grid-column: 1 / -1; 
}
.ex-demo .border { height: 100%; width: 100%; background: transparent; border-radius: 10px; transition: border 1s; position: absolute; inset: 0; }
.ex-demo .border:hover { border: 1px solid rgba(95, 157, 126, 0.8); }

/* PERFECT PROPORTIONS FIX FOR TEAM CARDS */
.ex-demo .card {
  width: 100%; 
  max-width: 300px; 
  height: 420px !important;
  background-color: #07110e;
  background-image: var(--card-bg, none), linear-gradient(180deg, rgba(17, 28, 25, 0.18), rgba(7, 17, 14, 0.82));
  background-position: center 15%, center center !important; 
  background-repeat: no-repeat, no-repeat; 
  background-size: cover, cover !important;
  border-radius: 10px; transition: transform 0.25s ease, border-color 0.25s ease; overflow: hidden; box-shadow: 0 70px 63px -60px rgba(0,0,0,0.6); display: flex; justify-content: center; align-items: center; position: relative; content-visibility: auto; will-change: transform;
}
.ex-demo .card0 { --card-accent: rgba(95, 157, 126, 0.18); }
.ex-demo .card1 { --card-accent: rgba(201, 139, 45, 0.18); }
.ex-demo .card2 { --card-accent: rgba(155, 138, 98, 0.18); }
.ex-demo .card3 { --card-accent: rgba(72, 117, 92, 0.18); }

.ex-demo .card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), color-mix(in srgb, var(--card-accent, rgba(47, 107, 87, 0.14)) 42%, transparent)); pointer-events: none; }
.ex-demo .card:hover { transform: translate3d(0, -8px, 0); }
.ex-demo h2 { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; color: white; margin: 20px; opacity: 0; transition: opacity 1s; }
.ex-demo .fa { opacity: 0; transition: opacity 1s; }
.ex-demo .icons { position: absolute; fill: #fff; color: #fff; height: 130px; top: 226px; width: 50px; display: flex; flex-direction: column; align-items: center; justify-content: space-around; }
.ex-demo .icons.roles { width: auto; height: auto; top: auto; bottom: 20px; padding: 0 15px; display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 8px; }
.ex-demo .icons.roles p { margin: 0; font-size: 0.9rem; color: #fff; opacity: 0; transition: opacity 1s; line-height: 1.2; text-align: center; position: relative; padding: 0.15rem 0.4rem; }
.ex-demo .icons.roles p::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0.75)); border-radius: 8px; opacity: 1; z-index: -1; }
.ex-demo .card:hover h2, .ex-demo .card:hover .fa { opacity: 1; }
.ex-demo .card:hover .roles p { opacity: 1; }

* { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; height: auto; }

.main-header {
  position: fixed; top: 1rem; left: 50%; transform: translateX(-50%); width: calc(100% - 2rem); max-width: var(--layout-shell-max); margin: 0; background: rgba(10, 16, 13, 0.45); backdrop-filter: blur(22px) saturate(1.2); border: 1px solid rgba(230, 200, 122, 0.12); border-radius: 22px; box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25); transition: background var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth), top var(--transition-smooth); z-index: 1300;
}
.main-header.scrolled { background: rgba(8, 14, 11, 0.78); border-color: rgba(230, 200, 122, 0.18); box-shadow: 0 24px 55px rgba(0, 0, 0, 0.42); }
.nav-container { width: 100%; max-width: var(--layout-shell-max); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.95rem var(--layout-shell-gutter); }
.nav-brand { display: flex; align-items: center; }
.brand-logo { font-family: var(--font-code); font-size: 1.5rem; font-weight: 700; color: var(--color-primary); display: flex; align-items: center; gap: 0.3rem; letter-spacing: 0.08em; }
.logo-text { background: var(--gradient-1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.nav-menu { display: flex; gap: 2rem; align-items: center; }
.nav-link { display: flex; align-items: center; justify-content: center; gap: 0.5rem; color: var(--text-secondary); text-decoration: none; font-size: 0.95rem; line-height: 1; font-weight: 700; padding: 0.72rem 1.05rem; min-width: 7rem; border-radius: 999px; transition: all var(--transition-fast); position: relative; }
.nav-text { font-size: 0.95rem; line-height: 1; white-space: nowrap; }
.nav-link::before { content: ""; position: absolute; bottom: -0.1rem; left: 50%; transform: translateX(-50%); width: 0; height: 2px; background: var(--gradient-2); transition: width var(--transition), opacity var(--transition); opacity: 0; }
.nav-link:hover, .nav-link.active { color: var(--color-accent); background: rgba(201, 139, 45, 0.08); }
.nav-link.active::before { width: 80%; opacity: 1; }
.nav-link i { font-size: 1rem; }
.nav-controls { display: flex; gap: 1rem; align-items: center; }

.lang-toggle, .theme-toggle, .menu-toggle { background: rgba(17, 28, 25, 0.72); border: 1px solid rgba(230, 200, 122, 0.12); color: var(--text-primary); padding: 0.6rem 1rem; border-radius: 999px; cursor: pointer; transition: all var(--transition); display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; }
.lang-toggle:hover, .theme-toggle:hover { background: rgba(23, 38, 33, 0.88); border-color: var(--primary); color: var(--primary); box-shadow: 0 10px 24px rgba(47, 107, 87, 0.15); }
.menu-toggle { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 4px; width: 44px; height: 44px; padding: 0; border-radius: 14px; position: relative; }
.menu-toggle span { width: 24px; height: 2px; background: var(--text-primary); transition: all var(--transition); }
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }

.main-content { position: relative; z-index: 1; margin-top: 0; }
.hero-section { min-height: 100svh; display: flex; align-items: center; position: relative; overflow: hidden; isolation: isolate; padding: 12rem 0 4rem; }
.hero-leaves { position: absolute; left: 0; right: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.hero-leaves-image { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; filter: drop-shadow(0 -8px 20px rgba(0, 0, 0, 0.18)); }
.blossom-container { position: absolute; inset: 0; z-index: 0; contain: layout paint size; }
.blossom-scene { position: absolute; top: 0; left: 0; width: 100%; height: 100%; transform-style: preserve-3d; }
.blossom-container::before { content: ""; position: absolute; width: 100%; height: 100%; inset: 0; background: radial-gradient(circle at 20% 18%, rgba(255, 210, 225, 0.14), transparent 18%), radial-gradient(circle at 80% 10%, rgba(255, 244, 229, 0.1), transparent 22%), linear-gradient(180deg, rgba(6, 17, 14, 0.1), rgba(6, 17, 14, 0.28) 45%, rgba(6, 17, 14, 0.55)); opacity: 0.95; }
.particle { display: none; }
.petal { background: url("https://talktofill.surge.sh/cherry-blossom.png") no-repeat; position: absolute; backface-visibility: visible; will-change: transform; filter: hue-rotate(110deg) saturate(1.5) brightness(0.9); }
.petal.petal-style1 { width: 45px; height: 20px; background-position: -31px 0; }
.petal.petal-style2 { width: 42px; height: 22px; background-position: 0 -23px; }
.petal.petal-style3 { width: 37px; height: 24px; background-position: 0 -50px; }
.petal.petal-style4 { width: 26px; height: 34px; background-position: -49px -35px; }

.hero-container { max-width: 2400px; margin: 0 auto; padding: 0 2rem; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(2rem, 4vw, 5rem); align-items: center; position: relative; z-index: 1; }
.hero-content { z-index: 1; max-width: 720px; }
.hero-greeting { font-family: var(--font-code); font-size: 0.95rem; color: var(--primary); margin-bottom: 1.25rem; min-height: 1.5em; display: flex; align-items: center; gap: 0.5rem; letter-spacing: 0.18em; text-transform: uppercase; }
.greeting-cursor { animation: blink 1s infinite; color: var(--primary); }
@keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }

.hero-name { font-family: var(--font-code); font-size: clamp(3.4rem, 6vw, 5.6rem); font-weight: 700; margin-bottom: 1.5rem; line-height: 0.95; }
.name-prefix { color: var(--color-accent); }
.name-operator { color: var(--color-primary-soft); margin: 0 0.5rem; }
.name-value { background: var(--gradient-1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.name-suffix { color: var(--color-primary); }

.hero-title { font-family: var(--font-code); font-size: clamp(1rem, 1.9vw, 1.5rem); color: var(--color-accent-soft); margin-bottom: 1.5rem; min-height: 1.8em; letter-spacing: 0.05em; }
.title-prefix { color: var(--text-muted); margin-inline-end: 0.5rem; }
.hero-description { font-size: 1.03rem; color: var(--text-secondary); margin-bottom: 2.4rem; line-height: 1.9; max-width: 620px; height: 6.9em; overflow: hidden; }
.hero-buttons { display: flex; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 1rem 1.7rem; border-radius: 999px; font-weight: 700; text-decoration: none; transition: all var(--transition); border: 2px solid transparent; cursor: pointer; font-size: 1rem; backdrop-filter: blur(10px); }
.btn-primary { background: var(--gradient-2); color: white; border-color: transparent; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(201, 139, 45, 0.24); }
.btn-secondary { background: rgba(17, 28, 25, 0.58); color: var(--color-accent-soft); border-color: rgba(230, 200, 122, 0.2); }
.btn-secondary:hover { background: rgba(201, 139, 45, 0.12); color: white; transform: translateY(-3px); box-shadow: 0 18px 40px rgba(47, 107, 87, 0.16); }

.hero-social { display: flex; gap: 2rem; }
.social-icon { width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; color: var(--text-secondary); text-decoration: none; transition: all var(--transition-fast); }
.social-icon:hover { background: var(--bg-hover); border-color: var(--color-accent); color: var(--color-accent); transform: translateY(-3px); box-shadow: 0 5px 15px rgba(201, 139, 45, 0.22); }

.hero-image-wrapper { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-image-container { position: relative; width: min(760px, 100%); aspect-ratio: 3 / 4; }
.profile-image-glow { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 126%; height: 126%; background: radial-gradient(circle, rgba(201, 139, 45, 0.18) 0%, transparent 70%); border-radius: 50%; animation: pulse 3s ease-in-out infinite; pointer-events: none; }
.profile-image-frame { position: relative; width: 100%; height: 100%; overflow: visible; pointer-events: auto; }
.profile-image { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: clamp(0.5rem, 1.6vw, 1.25rem); background: transparent; will-change: transform; }
.profile-model { width: 100%; height: 100%; display: block; background: transparent; transform: none; pointer-events: auto; }
@keyframes pulse { 0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; } 50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; } }

.scroll-indicator { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 0.5rem; color: var(--text-secondary); font-size: 0.9rem; letter-spacing: 0.12em; text-transform: uppercase; margin: 0; }
.scroll-mouse { width: 30px; height: 50px; border: 2px solid var(--border); border-radius: 15px; display: flex; justify-content: center; padding-top: 8px; }
.scroll-wheel { width: 4px; height: 10px; background: var(--primary); border-radius: 2px; animation: scrollWheel 2s infinite; }
@keyframes scrollWheel { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(20px); opacity: 0; } }

.section { padding: 7rem 0; position: relative; scroll-margin-top: 80px; opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s ease; }
.section.visible { opacity: 1; transform: translateY(0); }
.section:nth-of-type(even) { background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0.02)); }
.section::before { content: ""; position: absolute; left: 50%; top: 0; width: min(1200px, calc(100% - 2rem)); height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, rgba(230, 200, 122, 0.35), transparent); }

.section-container { width: 100%; max-width: var(--layout-shell-max); margin: 0 auto; padding: 0 var(--layout-shell-gutter); }
.section-header { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 3.5rem; }
.section-title { font-family: var(--font-code); font-size: clamp(2rem, 3vw, 3.1rem); font-weight: 700; display: flex; align-items: center; gap: 0.5rem; letter-spacing: 0.04em; }
.title-text { background: var(--gradient-1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.section-line { flex: 1; height: 2px; background: var(--gradient-1); margin-inline-start: 2rem; box-shadow: 0 0 18px rgba(47, 107, 87, 0.18); }
.section-header.centered { display: flex; align-items: center; gap: 1rem; justify-content: center; }
.section-header.centered .section-line { flex: 1 1 0; height: 2px; margin: 0; }
.section-header.centered .section-title { margin: 0 0.75rem; }

/* =========================================================================
   GAME SHOWCASE SECTION (BASE / 1440px DESKTOP)
   ========================================================================= */
.showcase-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    background: linear-gradient(180deg, rgba(17, 28, 25, 0.88), rgba(7, 17, 14, 0.94));
    border: 1px solid rgba(230, 200, 122, 0.08);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.26);
}

.showcase-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

.showcase-main-image-wrap {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid rgba(201, 139, 45, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(201, 139, 45, 0.08);
    aspect-ratio: 16 / 9;
    background: var(--bg-surface);
}

.showcase-main-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.25s ease;
}

.showcase-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start; 
}

.showcase-zone-title {
    font-family: var(--font-code);
    color: #F6E9C8;
    font-size: 1.6rem;
    margin-bottom: 0.7rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.showcase-description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.showcase-btn {
    align-self: flex-start;
    padding: 0.8rem 1.5rem;
}

/* Wrapper centers everything perfectly on desktop screens */
.showcase-thumbnails-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 1.5rem;
    gap: 1.5rem; 
}

/* The Desktop Carousel: Hugs the cards exactly so they never clip */
.showcase-thumbnails {
    position: relative !important;
    display: flex;
    gap: 1.2rem;
    overflow-x: auto; 
    scroll-behavior: smooth;
    flex: 0 1 max-content; 
    max-width: calc(100% - 130px); 
    padding: 20px 5px !important; 
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.showcase-thumbnails::-webkit-scrollbar {
    display: none;
}

.showcase-thumb {
    flex: 0 0 160px; /* Fixed width */
    min-width: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    transition: transform var(--transition-fast);
    scroll-snap-align: center; 
}

.showcase-thumb:hover {
    transform: translateY(-4px);
}

.showcase-thumb-img-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent; 
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.showcase-thumb.active .showcase-thumb-img-wrap {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(255, 221, 91, 0.45);
}

.showcase-thumb-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.showcase-thumb span {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-family: var(--font-code);
    font-weight: 600;
    text-align: center;
    transition: color var(--transition-fast);
}

.showcase-thumb.active span {
    color: var(--primary);
}

/* Arrows are static and flex-shrink-proof */
.showcase-thumbnails-wrapper .carousel-arrow {
    position: static !important; 
    transform: none !important; 
    margin: 0 !important;
    background: rgba(17, 28, 25, 0.9);
    border: 2px solid var(--primary);
    color: var(--primary);
    width: 44px !important;
    height: 44px !important;
    flex: 0 0 44px !important; 
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 12px rgba(0,0,0,0.5); 
    z-index: 10;
}

.showcase-thumbnails-wrapper .carousel-arrow:hover {
    background: var(--primary);
    color: var(--bg-darker);
    transform: scale(1.1) !important;
}

/* =========================================================================
   TEAM SECTION
   ========================================================================= */
.about-content { max-width: 1400px; margin: 0 auto; display: flex; flex-direction: column; gap: 2rem; }
.creators-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.75rem; }

.team-brief { padding: 1.6rem 1.7rem; 
    border: 1px solid rgba(230, 200, 122, 0.08); 
    border-radius: 22px; 
    background: linear-gradient(180deg, rgba(17, 28, 25, 0.88), rgba(7, 17, 14, 0.94)); 
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.26); 
    position: relative; 
    overflow: hidden; 
    /* Add this new transition line: */
    transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
   }
/* Add this new hover rule! */
.team-brief:hover, .team-brief:focus-visible { 
    border-color: rgba(230, 200, 122, 0.26); 
    transform: translate3d(0, -8px, 0); 
    box-shadow: 0 32px 60px rgba(0, 0, 0, 0.35); 
    outline: none; 
}
.team-brief::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(201, 139, 45, 0.08), transparent 35%, rgba(95, 157, 126, 0.08)); pointer-events: none; }
.team-brief-title { font-family: var(--font-code); color: #F6E9C8; margin-bottom: 0.75rem; font-size: 2rem; letter-spacing: 0.05em; }
.team-brief-text { color: var(--text-secondary); line-height: 1.8; position: relative; z-index: 1; }

.game-card { display: grid; grid-template-columns: 1fr 380px; gap: 1.5rem; align-items: center; }
.game-desc { padding-right: 0.5rem; }
.game-image-wrap { width: 100%; height: 0; padding-bottom: 100%; position: relative; overflow: hidden; border-radius: 18px; border: 1px solid rgba(230, 200, 122, 0.08); background: linear-gradient(180deg, rgba(17, 28, 25, 0.88), rgba(7, 17, 14, 0.94)); }
.game-image-wrap .game-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

.client-card { display: grid; grid-template-columns: 1.3fr 1fr; align-items: stretch; gap: 1rem; background: linear-gradient(180deg, rgba(17, 28, 25, 0.94), rgba(7, 17, 14, 0.96)); border: 1px solid rgba(230, 200, 122, 0.08); border-radius: 24px; padding: 1.1rem; cursor: pointer; transition: transform var(--transition-smooth), border-color var(--transition-smooth), opacity var(--transition-smooth); position: relative; overflow: hidden; box-shadow: 0 24px 55px rgba(0, 0, 0, 0.26); content-visibility: auto; contain-intrinsic-size: 28rem 18rem; contain: layout paint style; }
.client-card:hover, .client-card:focus-visible { border-color: rgba(230, 200, 122, 0.26); transform: translate3d(0, -8px, 0); box-shadow: 0 32px 60px rgba(0, 0, 0, 0.35); outline: none; }
.client-info { padding: 0.6rem 0.8rem; display: flex; flex-direction: column; justify-content: center; }
.client-title { font-family: var(--font-code); color: #F6E9C8; font-size: 1.45rem; margin-bottom: 0.7rem; letter-spacing: 0.05em; }
.client-description { color: var(--text-secondary); line-height: 1.8; }
.client-photo-wrap { border-radius: 18px; overflow: hidden; border: 1px solid rgba(230, 200, 122, 0.08); min-height: 230px; background: linear-gradient(180deg, rgba(17, 28, 25, 0.88), rgba(7, 17, 14, 0.94)); }
.client-photo { width: 100%; height: 100%; object-fit: cover; }

.sdg-grid { display: flex; justify-content: center; gap: 4rem; flex-wrap: wrap; }
.sdg-item { width: 220px; height: 220px; border-radius: 50%; overflow: hidden; border: 2px solid rgba(230, 200, 122, 0.2); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22); background: var(--bg-surface); transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth); }
.sdg-item:hover { transform: translateY(-8px); border-color: var(--primary); box-shadow: 0 24px 50px rgba(201, 139, 45, 0.25); }
.sdg-circle-img { width: 100%; height: 100%; object-fit: contain; transform: scale(1.15); }

.skills-grid { display: grid; grid-template-columns: repeat(4, minmax(180px, 1fr)); gap: 1.5rem; align-items: stretch; }
.skill-circle-card { background: linear-gradient(180deg, rgba(17, 28, 25, 0.9), rgba(7, 17, 14, 0.94)); border: 1px solid rgba(230, 200, 122, 0.08); border-radius: 24px; padding: 1.5rem 1rem 1.75rem; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 1rem; cursor: pointer; transition: transform var(--transition-smooth), border-color var(--transition-smooth), opacity var(--transition-smooth); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22); content-visibility: auto; contain-intrinsic-size: 14rem 18rem; contain: layout paint style; }
.skill-circle-card:hover, .skill-circle-card:focus-visible { transform: translate3d(0, -8px, 0); border-color: rgba(230, 200, 122, 0.22); box-shadow: 0 28px 55px rgba(0, 0, 0, 0.34); outline: none; }
.skill-circle-media { width: 130px; height: 130px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(230, 200, 122, 0.16), rgba(47, 93, 58, 0.1)); border: 1px solid rgba(230, 200, 122, 0.08); padding: 0.8rem; display: flex; align-items: center; justify-content: center; transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth); }
.skill-circle-card:hover .skill-circle-media, .skill-circle-card:focus-visible .skill-circle-media { transform: scale(1.06); border-color: var(--accent); box-shadow: 0 0 0 6px rgba(230, 200, 122, 0.08); }
.skill-circle-image { width: 100%; height: 100%; object-fit: contain; will-change: transform; }
.skill-circle-name { font-family: var(--font-code); font-size: 1rem; color: #F6E9C8; margin-bottom: 0; font-weight: 700; text-align: center; letter-spacing: 0.04em; }

/* =========================================================================
   RESTORED FEEDBACK SECTION 
   ========================================================================= */
.feedback-section { padding-bottom: 5rem; }
.feedback-actions { width: 100%; display: flex; justify-content: center; margin-top: 1.75rem; }
.feedback-actions .btn { background: var(--gradient-2) !important; color: #fff !important; border-color: transparent !important; min-width: min(260px, 100%); padding: 0.7rem 1.05rem; font-size: 0.9rem; text-align: center; justify-content: center; }
.feedback-actions .btn:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(201, 139, 45, 0.24); }
.feedback-section-header { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 1.5rem; }
.feedback-section-title { flex: 0 0 auto; text-align: center; margin: 0; }
.feedback-section-line { margin-inline-start: 0; }
.feedback-section-intro { max-width: 760px; margin: 0 auto 1.5rem; color: var(--text-secondary); font-size: 1rem; text-align: center; }

.feedback-grid { 
    display: flex; 
    flex-direction: column; 
    justify-content: flex-start; 
    align-items: stretch; 
    gap: 1.2rem; 
    max-height: 500px; 
    overflow-y: auto; 
    padding: 1.5rem; 
    background: linear-gradient(180deg, rgba(17, 28, 25, 0.4), rgba(7, 17, 14, 0.6)); 
    border: 1px solid rgba(230, 200, 122, 0.1); 
    border-radius: 16px; 
}

.feedback-card { 
    border: 1px solid rgba(230, 200, 122, 0.15); 
    border-radius: 12px; 
    padding: 1.5rem; 
    background: linear-gradient(180deg, rgba(17, 28, 25, 0.8), rgba(7, 17, 14, 0.95)); 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); 
    margin: 0; 
    transition: transform 0.2s ease, border-color 0.2s ease; 
}
.feedback-card:hover { 
    transform: translateY(-3px); 
    border-color: rgba(230, 200, 122, 0.4); 
}

.feedback-card-top { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; margin-bottom: 0.55rem; }
.feedback-card-name { font-weight: 800; color: var(--color-primary); font-size: 1.1rem; margin-bottom: 0.2rem; line-height: 1.2; }
.feedback-card-date { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 0.8rem; display: block; }
.feedback-card-message { color: var(--text-secondary); line-height: 1.6; white-space: pre-wrap; margin: 0; font-size: 0.95rem; }

.feedback-grid.is-empty { min-height: 180px; justify-content: center; align-items: center; }
.feedback-grid.is-empty .feedback-home-empty { display: flex !important; flex-direction: column; align-items: center; justify-content: center; text-align: center; width: 100%; min-height: 180px; }
.feedback-grid.is-empty .feedback-home-empty i { margin-bottom: 0.6rem; }
.feedback-grid.is-empty .feedback-home-empty p, .feedback-grid.is-empty .feedback-home-empty small { max-width: 480px; }
.feedback-grid::-webkit-scrollbar { width: 10px; }
.feedback-grid::-webkit-scrollbar-thumb { background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)); border-radius: 8px; border: 1px solid rgba(255,255,255,0.02); }
.feedback-home-empty { margin-top: 1.25rem; max-width: 520px; margin-left: auto; margin-right: auto; text-align: center; }

/* ========================================================================= */

.form-group { position: relative; }
.form-input { 
    width: 100%; 
    padding: 1.1rem; 
    background: rgba(17, 28, 25, 0.6); 
    border: 1px solid rgba(230, 200, 122, 0.15); 
    border-radius: 12px; 
    color: var(--text-primary); 
    font-family: var(--font-primary); 
    font-size: 1rem; 
    transition: all var(--transition); 
}
.form-input::placeholder { color: var(--text-muted); }
.form-input:focus { outline: none; background: var(--bg-surface); border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(201, 139, 45, 0.15); }
.form-textarea { resize: vertical; min-height: 150px; }

.form-privacy { margin-top: 0.25rem; margin-bottom: 0.5rem; }
.privacy-label { display: flex; align-items: center; gap: 0.75rem; color: var(--text-secondary); font-size: 0.95rem; cursor: pointer; }
.privacy-link { color: var(--color-accent-soft); text-decoration: none; font-weight: 600; transition: color var(--transition-fast); }
.privacy-link:hover { color: var(--color-primary); text-decoration: underline; }

.main-footer { background: linear-gradient(180deg, rgba(7, 17, 14, 0.35), rgba(7, 17, 14, 1)); border-top: 1px solid rgba(230, 200, 122, 0.08); padding: 4rem 0; margin-top: 5rem; }
.footer-container { max-width: 1400px; margin: 0 auto; padding: 0 2rem; }
.footer-content { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; }
.footer-text-wrapper { display: flex; flex-direction: column; gap: 0.8rem; }
.footer-text { color: var(--text-secondary); font-size: 0.95rem; display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; line-height: 1.6; letter-spacing: 0.04em; }
.footer-copyright { color: var(--text-primary); font-weight: 600; }
.footer-divider { color: var(--text-muted); margin: 0 0.3rem; }
.footer-built { color: var(--text-secondary); }

.fade-in { opacity: 0; transform: translateY(50px); content-visibility: auto; contain-intrinsic-size: 18rem 26rem; contain: layout paint style; transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translate3d(0, -8px, 0) scale(1.01); }

/* =========================================================================
   BULLETPROOF MODAL HIDING
   ========================================================================= */
.feedback-modal-backdrop, .modal-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: rgba(3, 7, 5, 0.8) !important;
  backdrop-filter: blur(4px) !important;
  display: none !important;
  z-index: 9999 !important;
  align-items: center !important;
  justify-content: center !important;
}

.feedback-modal-backdrop.is-open, .modal-overlay.open {
  display: flex !important;
}

#projectModal .feedback-modal-card { width: min(820px, 100%) !important; padding: var(--modal-padding, 1.75rem) !important; border-radius: 14px !important; }
#feedbackModal .feedback-modal-card {
   width: min(560px, 100%) !important;
    padding: 2.5rem !important; /* Restore comfortable padding */
    border-radius: 24px !important;
    background: var(--bg-surface) !important;
    position: relative !important;
}
/* Ensure the close button is positioned correctly at the top right */
#feedbackModal .feedback-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.25rem;
    transition: color 0.2s;
}
#feedbackModal .feedback-modal-close:hover {
    color: var(--text-primary);
}

/* Style the form title and text */
#feedbackModal h3 {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2rem;
    font-family: var(--font-code);
    margin-bottom: 0.25rem;
    font-weight: 800;
}

#feedbackModal p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 0;
}

.feedback-modal-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

#projectModal .feedback-modal-card .modal-inner { display: flex !important; gap: 1.5rem !important; align-items: stretch !important; }
#projectModal .feedback-modal-card .modal-title-box .project-title { color: #F6E9C8 !important; border: none !important; background: transparent !important; box-shadow: none !important; padding: 0 !important; }
#projectModal .feedback-modal-card .modal-desc-box { min-height: 220px; box-sizing: border-box; overflow: auto; border: none !important; background: transparent !important; padding: 0 !important; }
#projectModal .feedback-modal-card .modal-left, #projectModal .feedback-modal-card .modal-right { border: none !important; }
#projectModal .modal-left { overflow: hidden; border-radius: 10px; isolation: isolate; }
#projectModal .modal-model { display: block; overflow: hidden; contain: paint; }

.success-popup, .error-popup { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.9); z-index: 9999; pointer-events: none; opacity: 0; transition: opacity var(--transition), transform var(--transition); }
.success-popup.is-visible, .error-popup.is-visible { pointer-events: auto; opacity: 1; transform: translate(-50%, -50%) scale(1); }
.success-popup-content, .error-popup-content { background: var(--bg-surface); border-radius: 12px; padding: 2rem; box-shadow: var(--shadow-xl); border: 1px solid var(--border); text-align: center; min-width: 300px; max-width: 400px; }
.success-popup-icon { font-size: 3rem; color: #4CAF50; margin-bottom: 1rem; animation: successPulse 0.6s ease-out; }
.error-popup-icon { font-size: 3rem; color: #F44336; margin-bottom: 1rem; animation: errorShake 0.4s ease-out; }
.success-popup-title, .error-popup-title { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 0.5rem; color: var(--text-primary); }
.success-popup-message, .error-popup-message { color: var(--text-secondary); font-size: 1rem; line-height: 1.5; }

@keyframes successPulse { 0% { transform: scale(0); opacity: 0; } 50% { transform: scale(1.1); } 100% { transform: scale(1); opacity: 1; } }
@keyframes errorShake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

/* =========================================================================
   PATCH NOTES / UPDATE LOGS SECTION
   ========================================================================= */
.patch-notes-section {
    padding-bottom: 3rem; /* Provides breathing room before the Feedback section */
}

.patch-notes-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 860px; /* Keeps the reading width comfortable */
    margin: 0 auto;
    max-height: 700px; /* Locks the height */
    overflow-y: auto; /* Enables vertical scrolling */
    padding: 15px 15px 15px 5px; /* The 15px padding prevents the hover glow/transform from being clipped! */
}

/* Custom Heritage Scrollbar for Patch Notes */
.patch-notes-container::-webkit-scrollbar {
    width: 8px;
}
.patch-notes-container::-webkit-scrollbar-track {
    background: rgba(17, 28, 25, 0.4);
    border-radius: 8px;
}
.patch-notes-container::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(230, 200, 122, 0.2), rgba(201, 139, 45, 0.2));
    border-radius: 8px;
    border: 1px solid rgba(230, 200, 122, 0.1);
}
.patch-notes-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(230, 200, 122, 0.4), rgba(201, 139, 45, 0.4));
}

.patch-card {
    background: linear-gradient(180deg, rgba(17, 28, 25, 0.8), rgba(7, 17, 14, 0.95));
    border: 1px solid rgba(230, 200, 122, 0.15);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.patch-card:hover {
    transform: translateY(-3px);
    border-color: rgba(230, 200, 122, 0.4); /* Golden glow on hover */
}

.patch-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(230, 200, 122, 0.1);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.patch-version {
    font-family: var(--font-code);
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: 0.03em;
}

.patch-date {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-family: var(--font-code);
}

/* Base Image Style (Cropped) */
.patch-image {
    width: 100%;
    max-height: 280px; /* Prevents images from taking over the screen */
    object-fit: cover; /* Crops nicely without squishing */
    object-position: center 15%; /* Keeps faces/focal points in view */
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(230, 200, 122, 0.15);
    transition: transform var(--transition-fast), filter var(--transition-fast);
    cursor: zoom-in; /* Let users know they can click to expand */
}

.patch-image:hover {
    filter: brightness(1.1); /* Slight highlight on hover to show interactivity */
}

.patch-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.patch-list li {
    color: var(--text-secondary);
    font-size: 1.15rem; /* INCREASED FROM 0.98rem */
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

/* Update Tag Badges */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: var(--font-code);
    line-height: 1;
    margin-top: 0.2rem; /* Aligns badge perfectly with the text */
    min-width: 80px; /* Keeps tags uniform in width */
}

.badge-added {
    background: rgba(95, 157, 126, 0.15);
    color: #77C4B0;
    border: 1px solid rgba(95, 157, 126, 0.3);
}

.badge-changed {
    background: rgba(201, 139, 45, 0.15);
    color: var(--color-primary);
    border: 1px solid rgba(201, 139, 45, 0.3);
}

.badge-fixed {
    background: rgba(155, 138, 98, 0.15);
    color: #E6C87A;
    border: 1px solid rgba(155, 138, 98, 0.3);
}

/* =========================================================================
   IMAGE LIGHTBOX
   ========================================================================= */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(3, 7, 5, 0.92);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.lightbox-overlay.is-active .lightbox-img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2.5rem;
    background: rgba(17, 28, 25, 0.6);
    border: 1px solid rgba(230, 200, 122, 0.2);
    color: var(--text-primary);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: all 0.2s ease;
}

.lightbox-close:hover {
    background: var(--primary);
    color: var(--bg-darker);
    transform: scale(1.1);
}

/* =========================================================================
   RESPONSIVE DESIGN (Media Queries)
   ========================================================================= */

@media (max-width: 1200px) {
  .nav-menu { gap: 1rem; }
  .hero-container { gap: 2.5rem; }
  .hero-image-container { width: min(640px, 100%); }
  .modal-box, .feedback-modal-card { width: calc(100% - 2rem); }
}

/* =========================================================================
   FIX: 1024px LAPTOPS
   ========================================================================= */
@media (max-width: 1024px) {
  .main-header { width: min(100%, var(--layout-shell-max)); }
  .menu-toggle { display: flex !important; }
  
  .nav-menu {
    position: fixed !important;
    top: 70px !important;
    left: -100% !important;
    width: min(88vw, 340px) !important;
    height: calc(100dvh - 70px) !important;
    background: linear-gradient(180deg, rgba(10, 18, 15, 0.98), rgba(7, 14, 11, 0.98)) !important;
    backdrop-filter: blur(20px) saturate(1.1) !important;
    flex-direction: column !important;
    padding: 1.5rem 1rem !important;
    border-top: 1px solid rgba(230, 200, 122, 0.08) !important;
    border-right: 1px solid rgba(230, 200, 122, 0.08) !important;
    border-top-right-radius: 18px !important;
    border-bottom-right-radius: 18px !important;
    box-shadow: 24px 0 40px rgba(0, 0, 0, 0.35) !important;
    transition: left var(--transition) !important;
    z-index: 999 !important;
    overflow-y: auto !important;
  }
  .nav-menu.active { left: 0 !important; }
  .nav-link { width: 100%; justify-content: flex-start; padding: 1rem; border-radius: 10px; margin-bottom: 0.5rem; }
  .nav-menu .nav-link::before { bottom: 0.35rem; left: 1rem; transform: none; width: calc(100% - 2rem); height: 2px; }
  .nav-menu .nav-link.active::before { width: calc(100% - 2rem); opacity: 1; }

  /* Hero Section Stacks Safely */
  .hero-section { min-height: 100svh; height: auto; padding: 8rem 0 2rem; display: flex; flex-direction: column; justify-content: flex-start; }
  .hero-container { grid-template-columns: 1fr; text-align: center; gap: 2rem; width: 100%; }
  .hero-content { align-items: center; display: flex; flex-direction: column; }
  .hero-buttons, .hero-social { flex-wrap: wrap; justify-content: center; }
  .hero-image-wrapper { order: -1; }
  
  /* OVERLAP FIX: Pushes scroll indicator naturally below the buttons */
  .scroll-indicator {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    margin: 3rem auto 2rem !important; 
    width: 100%;
  }

  /* GAME SHOWCASE CAROUSEL: Mirrored exactly from 768px layout */
  .showcase-thumbnails-wrapper .carousel-arrow { 
      flex: 0 0 38px !important; 
      width: 38px !important; 
      height: 38px !important; 
      font-size: 1rem; 
  }
  .showcase-thumbnails { 
      flex: 1 1 auto;
      max-width: calc(100% - 96px) !important; 
      padding: 20px calc(50% - 70px) !important; 
  }
  .showcase-thumb { 
      flex: 0 0 140px !important; 
      min-width: 140px !important; 
  }
  .showcase-thumbnails::before,
  .showcase-thumbnails::after {
      display: none !important; /* Removes any conflicting spacers */
  }

  .about-content { gap: 1.5rem; }
  .creators-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .client-card { grid-template-columns: 1fr; }
  .client-photo-wrap { order: -1; min-height: 240px; }
  .skills-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 992px) {
  .showcase-main { grid-template-columns: 1fr; gap: 1.5rem; }
  
  /* Centers Text on Tablet/Mobile */
  .showcase-info { align-items: center !important; text-align: center !important; }
  .showcase-info > div { margin: 0 auto 1.2rem auto !important; } 
  .showcase-zone-title { text-align: center !important; width: 100%; }
  .showcase-description { text-align: center !important; }
  .showcase-btn { align-self: center !important; width: auto !important; text-align: center; padding: 0.8rem 2rem !important; }

  /* Smooth padding centering */
  .showcase-thumbnails { padding: 20px calc(50% - 70px) !important; } 
  .showcase-thumb { flex: 0 0 140px !important; min-width: 140px !important; }
  
  .game-card { grid-template-columns: 1fr !important; gap: 1.5rem; }
  .game-image-wrap { padding-bottom: 60%; }
  .modal-inner { flex-direction: column; }
  .modal-left, .modal-right { min-width: 0; }
  .modal-model { height: 45vh; }
  .feedback-modal-card { max-width: 720px; }
}

/* =========================================================================
   FIX: 768px TABLETS
   ========================================================================= */
@media (max-width: 768px) {
  .main-header { top: 0.5rem; width: min(100%, var(--layout-shell-max)); border-radius: 18px; }
  .nav-container { padding: 0.8rem 1rem; }
  .nav-brand { flex: 1; }
  .nav-controls { gap: 0.5rem; }

  .menu-toggle span:nth-child(1) { transform-origin: center; }
  .menu-toggle span:nth-child(2) { width: 14px; margin-left: 4px; }
  .menu-toggle span:nth-child(3) { transform-origin: center; }
  .menu-toggle.active span:nth-child(2) { width: 18px; margin-left: 0; }
  .menu-toggle.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-toggle.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .main-content { margin-top: 60px; }
  .hero-section { min-height: auto; padding: 2rem 0 1.5rem; display: flex; flex-direction: column; }
  .hero-leaves { height: clamp(180px, 26vh, 300px); }
  .hero-leaves-image { height: 100%; }
  .hero-container { padding: 0 1rem; gap: 2rem; }
  .hero-name { font-size: 2rem; margin-bottom: 1rem; }
  .hero-title { font-size: 1.2rem; margin-bottom: 1rem; }
  .hero-description { font-size: 1rem; margin-bottom: 2rem; height: auto; }
  .hero-image-container { width: min(360px, 78vw); aspect-ratio: 4 / 5; }
  .profile-image { padding: 0.35rem; }

  .about-content { gap: 1.4rem; }
  .ex-demo .container { flex-direction: column; flex-wrap: nowrap; gap: 1rem; padding: 0; max-width: 100%; }
  
  .ex-demo .card { 
      width: 100%; 
      max-width: 320px; 
      height: 420px !important; 
      background-position: center 15%, center center !important; 
      background-size: cover, cover !important; 
      margin: 0 auto;
  }
  .ex-demo h2, .ex-demo .icons.roles p { opacity: 1; }

  .game-image-wrap { padding-bottom: 74%; }
  .game-image-wrap .game-image { object-position: center 28%; }
  .client-photo-wrap { min-height: 200px; }
  .hero-buttons { margin-bottom: 2rem; }
  .btn { width: 100%; justify-content: center; padding: 0.9rem 1.5rem; }
  .hero-social { justify-content: center; flex-wrap: wrap; gap: 1rem; }

  .social-icon { width: 45px; height: 45px; }
  .section { padding: 2rem 0; }
  .section-container { padding: 0 1rem; }
  .section-header { flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
  .section-title { font-size: 1.8rem; flex-wrap: wrap; }
  .section-line { width: 100%; margin-inline-start: 0; margin-top: 0.5rem; }
  
  .showcase-layout { padding: 1.5rem; }

  .showcase-info { align-items: center !important; text-align: center !important; }
  .showcase-info div { margin: 0 auto 1.2rem auto !important; } 
  .showcase-zone-title { text-align: center !important; width: 100%; }
  .showcase-description { text-align: center !important; }
  .showcase-btn { align-self: center !important; width: auto !important; text-align: center; padding: 0.8rem 2rem !important; }

  .showcase-thumbnails-wrapper .carousel-arrow { flex: 0 0 38px !important; width: 38px !important; height: 38px !important; font-size: 1rem; }
  .showcase-thumbnails { padding: 20px calc(50% - 70px) !important; }
  .showcase-thumb { flex: 0 0 140px !important; min-width: 140px !important; }
  
  .team-brief, .client-card, .skill-circle-card { border-radius: 18px; }
  .team-brief, .client-card { padding: 1.5rem; }
  
  .skills-grid { grid-template-columns: repeat(2, minmax(140px, 1fr)); gap: 2rem; }
  .skill-circle-media { width: 108px; height: 108px; }
  .form-input { padding: 0.9rem; font-size: 0.95rem; }
  .footer-container { padding: 0 1rem; }
  .footer-content { flex-direction: column; gap: 1.5rem; text-align: center; }
  .footer-text-wrapper { text-align: center; }
}

@media (max-width: 576px) {
  .hero-container { padding: 0 0.75rem; }
  .hero-name { font-size: clamp(1.8rem, 8vw, 2.2rem); }
  .hero-image-container { width: min(100%, 340px); }
  .profile-image-glow { width: 112%; height: 112%; }
  .creator-photo-wrap, .client-photo-wrap { min-height: 180px; }
  .form-input { padding: 0.85rem; font-size: 0.95rem; }
  .btn { width: 100%; justify-content: center; }
  .patch-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .patch-list li {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .badge {
        margin-top: 0;
        min-width: auto;
    }
}

@media (max-width: 480px) { 
  html { font-size: 14px; }
  .main-header { top: 0.5rem; left: 1rem; right: 1rem; width: auto; margin: 0; border-radius: 16px; transform: none; }
  .nav-container { padding: 0.7rem 0.8rem; }
  .brand-logo { font-size: 1.1rem; }
  .lang-toggle, .theme-toggle { padding: 0.5rem 0.75rem; font-size: 0.8rem; }
  .hero-container, .section-container { padding-inline: 0.65rem; }
  .hero-section { padding-bottom: 2.5rem; }
  .hero-container { gap: 1.4rem; }
  .hero-description { height: auto; }
  .hero-image-container { width: min(100%, 280px); aspect-ratio: 4 / 5; }
  .profile-image-glow { width: 108%; height: 108%; }
  .section { padding: 3.5rem 0; }
  .section-title { font-size: clamp(1.35rem, 6vw, 1.6rem); }
  .skill-circle-media { width: 92px; height: 92px; }
  .team-brief, .client-card { padding: 0.9rem; }
  .modal-box, .feedback-modal-card { width: calc(100% - 0.5rem); padding: 1rem; }
  .modal-title-box .project-title, .project-title { font-size: 1rem; letter-spacing: 0.04em; }
  .success-popup-content, .error-popup-content { width: calc(100vw - 1rem); }

  .showcase-thumbnails-wrapper .carousel-arrow { flex: 0 0 38px !important; width: 38px !important; height: 38px !important; font-size: 1rem; }
  .showcase-thumbnails { padding: 20px calc(50% - 70px) !important; }
  .showcase-thumb { flex: 0 0 140px !important; min-width: 140px !important; }
}

@media (max-width: 360px) {
  html { font-size: 13px; width: min(100%, var(--layout-shell-max)); }
  .hero-container { gap: 1.1rem; }
  .hero-name { font-size: clamp(1.55rem, 8vw, 1.9rem); text-align: center; }
  .hero-title { font-size: 0.95rem; text-align: center; }
  .hero-description { text-align: center; }
  .hero-buttons { justify-content: center; }
  .section-title { font-size: clamp(1.2rem, 5.5vw, 1.35rem); }

  .showcase-info { align-items: center !important; text-align: center !important; }
  .showcase-info > div { margin-left: auto !important; margin-right: auto !important; }
  .showcase-zone-title { text-align: center !important; width: 100%; }
  .showcase-description { text-align: center !important; }
  .showcase-btn { align-self: center !important; width: auto !important; text-align: center; padding: 0.8rem 2rem !important;}
  
  .showcase-thumbnails-wrapper .carousel-arrow { flex: 0 0 34px !important; width: 34px !important; height: 34px !important; font-size: 1rem; }
  .showcase-thumbnails { padding: 20px calc(50% - 65px) !important; }
  .showcase-thumb { flex: 0 0 130px !important; min-width: 130px !important;}

  .game-image-wrap { padding-bottom: 80%; }
  .profile-image-glow { width: 108%; height: 108%; }
}

@media (hover: none) and (pointer: coarse) {
  .creator-card:hover, .creator-card:focus-visible, .social-icon:hover, .btn:hover, .nav-link:hover, .carousel-arrow:hover, .skill-circle-card:hover, .skill-circle-card:focus-visible {
    transform: none;
    box-shadow: inherit;
    border-color: inherit;
  }
}