/* ============================================
   AARON PARRY - PREMIUM PORTFOLIO
   Design System & Styles
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --bg-primary: #030206; /* Star Wars cosmic black */
  --bg-secondary: #090812; /* Star Wars nebula purple */
  --bg-card: rgba(255,255,255,0.02);
  --accent-1: #ffe81f; /* Star Wars yellow laser */
  --accent-2: #a855f7; /* Star Wars indigo purple */
  --accent-3: #2d9cdb; /* Lightsaber blue */
  --accent-gradient: linear-gradient(135deg, #ffe81f, #a855f7, #2d9cdb);
  --text-primary: #f5f6f8;
  --text-secondary: #a0a5ad;
  --text-muted: #626770;
  --border-glass: rgba(255,255,255,0.04);
  --glass-bg: rgba(255,255,255,0.02);
  --glass-blur: blur(24px);
  --radius-card: 24px;
  --radius-btn: 30px;
  --radius-sm: 12px;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: 0.4s cubic-bezier(0.15, 0.85, 0.35, 1.02);
  --transition-slow: 0.65s cubic-bezier(0.15, 0.85, 0.35, 1.02);
  --shadow-glow: 0 8px 30px rgba(255, 232, 31, 0.08);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
}

body.anaglyph-active {
  filter: url(#global-anaglyph);
}

a { color: inherit; text-decoration: none; cursor: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: none; border: none; background: none; font-family: inherit; }
input, textarea { font-family: inherit; }

::selection {
  background: var(--accent-2);
  color: #fff;
}

/* ---------- Custom Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb {
  background: var(--accent-gradient);
  border-radius: 10px;
}

/* ---------- Custom Cursor ---------- */
/* ---------- Custom Cursor (Apple Vision Pro Style) ---------- */
.cursor-dot {
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 99999;
  transition: width 0.2s, height 0.2s, background 0.2s, opacity 0.2s;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.cursor-ring {
  width: 20px;
  height: 20px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 99998;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), height 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s, background-color 0.3s, backdrop-filter 0.3s;
  transform: translate(-50%, -50%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

.cursor-dot.enlarged {
  width: 2px;
  height: 2px;
  opacity: 0.3;
}

.cursor-ring.enlarged {
  width: 56px; /* Expanded size (almost 3x default) */
  height: 56px;
  background-color: rgba(255, 255, 255, 0.22); /* More glassy background */
  border-color: rgba(255, 255, 255, 0.65); /* More visible glassy border */
  backdrop-filter: blur(8px); /* Much stronger glassy blur! */
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.3),
    inset 0 1.5px 1.5px rgba(255, 255, 255, 0.3);
}

/* ---------- Preloader ---------- */
#preloader {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  transition: opacity 0.6s, visibility 0.6s;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-content {
  text-align: center;
}

.preloader-spinner {
  width: 60px;
  height: 60px;
  border: 3px solid rgba(139, 92, 246, 0.1);
  border-top-color: var(--accent-2);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

.preloader-text {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- Navbar (Apple Mobile UI Style Capsule) ---------- */
.navbar {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1000px;
  z-index: 1000;
  padding: 12px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 40px;
  background: rgba(10, 10, 15, 0.65);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 
    0 4px 30px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(255, 255, 255, 0.02);
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar.scrolled {
  top: 12px;
  width: 85%;
  max-width: 920px;
  background: rgba(8, 8, 12, 0.85);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.6),
    0 0 25px var(--accent-1);
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
}

.nav-logo-img {
  height: 40px; /* Perfect sleek height for header/footer */
  width: auto;
  object-fit: contain;
  vertical-align: middle;
}

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
  letter-spacing: 0.5px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--accent-gradient);
  transition: width 0.3s;
  border-radius: 2px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 5px;
  z-index: 1001;
}

.hamburger span {
  width: 25px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Section Common ---------- */
section {
  padding: 120px 60px;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 80px;
}

.section-title h2 {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 16px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto;
}

.accent-line {
  width: 60px;
  height: 4px;
  background: var(--accent-gradient);
  border-radius: 4px;
  margin: 0 auto 20px;
}

/* ---------- Hero Section ---------- */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  position: relative;
  overflow: hidden;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.hero-content { z-index: 2; }

.hero-greeting {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.2);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-1);
  letter-spacing: 1.5px;
  margin-bottom: 24px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0;
  animation: fadeInUp 0.6s 0.2s forwards;
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.05);
}

.hero-name {
  font-family: var(--font-heading);
  font-size: 5rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -2px;
}

.hero-name span {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px) rotateX(90deg);
  animation: letterReveal 0.5s forwards;
}

.hero-name span.space { width: 20px; }

.hero-subtitle {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
  opacity: 0;
  animation: fadeInUp 0.6s 1s forwards;
}

.hero-description {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeInUp 0.6s 1.2s forwards;
}

.hero-cta {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeInUp 0.6s 1.4s forwards;
}

.btn-primary {
  padding: 14px 36px;
  background: var(--accent-gradient);
  color: #fff;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn-primary:hover::before { left: 100%; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3); }

.btn-outline {
  padding: 14px 36px;
  border: 2px solid var(--accent-2);
  color: var(--accent-2);
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}

.btn-outline:hover {
  background: var(--accent-2);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.hero-social {
  display: flex;
  gap: 16px;
  opacity: 0;
  animation: fadeInUp 0.6s 1.6s forwards;
}

.hero-social a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-glass);
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 1.2rem;
  transition: var(--transition);
}

.hero-social a:hover {
  border-color: var(--accent-2);
  color: var(--accent-2);
  background: rgba(131, 144, 250, 0.1);
  transform: translateY(-3px);
}

/* Expert Chips */
.expert-chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  margin-bottom: 30px;
  opacity: 0;
  animation: fadeInUp 0.6s 1.3s forwards;
}

.expert-chip {
  padding: 6px 16px;
  border-radius: 50px;
  background: rgba(138, 180, 248, 0.08);
  border: 1px solid rgba(138, 180, 248, 0.15);
  color: var(--accent-1);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: var(--transition);
}

.expert-chip:hover {
  background: var(--accent-1);
  color: var(--bg-primary);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(138, 180, 248, 0.2);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.hero-character {
  max-width: 450px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 20px 40px rgba(139, 92, 246, 0.2));
}

/* Widescreen Cinematic Portrait Frame & Space Glow */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.hero-space-glow {
  position: absolute;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, var(--accent-1) 0%, transparent 70%);
  opacity: 0.16;
  filter: blur(65px);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  animation: spacePulse 8s infinite alternate ease-in-out;
  transition: background 0.8s ease;
}

@keyframes spacePulse {
  0% { transform: scale(0.92); opacity: 0.12; }
  100% { transform: scale(1.1); opacity: 0.18; }
}

.hero-widescreen-frame {
  position: relative;
  width: 100%;
  max-width: 740px;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 
    0 25px 60px rgba(0, 0, 0, 0.7),
    0 0 30px rgba(255, 255, 255, 0.02);
  z-index: 10;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s;
  transform-style: preserve-3d;
  perspective: 1000px;
  border: 1px solid rgba(255, 255, 255, 0.1); /* Crisp solid border overlay instead of blur */
}

.hero-widescreen-frame:hover {
  transform: translateY(-5px) scale(1.015);
  box-shadow: 
    0 35px 75px rgba(0, 0, 0, 0.85),
    0 0 45px var(--accent-1);
}

.widescreen-viewport {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: inherit;
}

.widescreen-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.08) translateZ(10px);
  transition: opacity 0.5s ease-in-out, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.widescreen-img.active {
  opacity: 1;
}

.widescreen-toggles {
  position: absolute;
  bottom: 16px;
  right: 16px;
  z-index: 25;
  display: flex;
  gap: 8px;
}

.widescreen-btn {
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 6px 14px;
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s;
}

.widescreen-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.widescreen-btn.active {
  background: var(--accent-1);
  border-color: var(--accent-1);
  color: #030206;
  font-weight: 800;
  box-shadow: 0 0 10px var(--accent-1);
}

.floating-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
  z-index: 1;
}

.shape-1 {
  width: 200px; height: 200px;
  background: var(--accent-1);
  top: -20px; right: 20px;
  animation: floatShape 6s ease-in-out infinite;
}

.shape-2 {
  width: 120px; height: 120px;
  background: var(--accent-3);
  bottom: 40px; left: -20px;
  animation: floatShape 8s ease-in-out infinite reverse;
}

.shape-3 {
  width: 80px; height: 80px;
  background: var(--accent-2);
  top: 50%; right: -30px;
  border-radius: 20%;
  animation: floatShape 5s ease-in-out infinite 1s;
}

.particles-container {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  background: var(--accent-2);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0% { opacity: 0; transform: translateY(100vh) scale(0); }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  100% { opacity: 0; transform: translateY(-100px) scale(1); }
}

@keyframes floatShape {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-30px) rotate(10deg); }
}

@keyframes letterReveal {
  to { opacity: 1; transform: translateY(0) rotateX(0deg); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- About Section ---------- */
#about { background: var(--bg-secondary); }

/* Bento Grid Layout (Google Principal Style) */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.bento-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-card);
  padding: 40px;
  transition: var(--transition-slow);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.bento-card:hover {
  border-color: rgba(138, 180, 248, 0.3);
  box-shadow: var(--shadow-glow);
  transform: translateY(-5px);
}

.bento-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: -0.2px;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 10px;
}

.bento-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.bento-card.col-span-2 {
  grid-column: span 2;
}

.bento-card.col-span-3 {
  grid-column: span 3;
}

/* Bento Stats Box styling */
.bento-stats-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  height: 100%;
}

.bento-stat-box {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: var(--transition);
}

.bento-stat-box:hover {
  border-color: rgba(138, 180, 248, 0.2);
  background: rgba(255, 255, 255, 0.03);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* ---------- Experience Timeline ---------- */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--accent-2), transparent);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 20px 40px;
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition-slow);
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item:nth-child(odd) { left: 0; text-align: right; }
.timeline-item:nth-child(even) { left: 50%; }

.timeline-item::after {
  content: '';
  position: absolute;
  top: 30px;
  width: 16px; height: 16px;
  background: var(--accent-2);
  border: 3px solid var(--bg-primary);
  border-radius: 50%;
  z-index: 1;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}

.timeline-item:nth-child(odd)::after { right: -8px; }
.timeline-item:nth-child(even)::after { left: -8px; }

.timeline-content {
  background: var(--glass-bg);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-card);
  padding: 24px;
  transition: var(--transition);
}

.timeline-content:hover {
  border-color: rgba(139, 92, 246, 0.2);
  box-shadow: var(--shadow-glow);
  transform: translateY(-3px);
}

.timeline-date {
  font-size: 0.85rem;
  color: var(--accent-2);
  font-weight: 600;
  margin-bottom: 8px;
}

.timeline-content h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.timeline-content h4 {
  color: var(--accent-3);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.timeline-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.timeline-spongebob {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -60px;
  width: 80px;
  z-index: 2;
}

/* ---------- Portfolio Grid ---------- */
.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 28px;
  border: 1px solid var(--border-glass);
  border-radius: 50px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  background: var(--glass-bg);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--accent-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}

.project-card {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 4/3;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.5s cubic-bezier(0.25, 1, 0.5, 1), z-index 0s;
  transform-style: preserve-3d;
  perspective: 1000px;
  will-change: transform, box-shadow;
  z-index: 1;
}

.project-card:hover {
  transform: scale(1.1) translateY(-10px); /* Cinematic center-zoom pop out */
  z-index: 20; /* Float high above neighboring cards */
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.85),
    0 0 30px var(--accent-1); /* Dynamic theme-based glow highlight! */
}

.project-bg {
  width: 100%; height: 100%;
  position: absolute;
  top: 0; left: 0;
  pointer-events: none;
}

.project-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
}

.project-card:hover img {
  transform: scale(1.12); /* Internal cinematic zoom */
}

.project-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 30px;
  background: linear-gradient(transparent, rgba(0,0,0,0.9));
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
  pointer-events: none;
  transform-style: preserve-3d;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-overlay h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.project-overlay span {
  color: var(--accent-2);
  font-size: 0.72rem; /* Made smaller and cleaner */
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* ---------- Education & Affiliations Grid ---------- */
.education-affiliations-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 20px;
  text-align: left;
}

.edu-col h4, .aff-col h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--accent-2);
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 8px;
  font-weight: 600;
}

.edu-col ul, .aff-col ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.edu-col ul li, .aff-col ul li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  position: relative;
  padding-left: 18px;
}

.edu-col ul li::before, .aff-col ul li::before {
  content: "•";
  color: var(--accent-3);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.edu-col ul li strong, .aff-col ul li strong {
  color: var(--text-primary);
  font-weight: 600;
}

.edu-col ul li span {
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .education-affiliations-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ---------- Movie Card Inner Styling ---------- */
.project-card-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 30px;
  position: relative;
  transition: var(--transition-slow);
  z-index: 1;
}

.movie-logo-text {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 4px 12px rgba(0,0,0,0.7);
  margin-bottom: 8px;
  line-height: 1.1;
}

.movie-sub-text {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.project-card:hover .project-card-inner {
  transform: scale(1.05);
}

/* ---------- Movie Gradients ---------- */
.card-starwars {
  background: linear-gradient(135deg, #020208 0%, #1e1b4b 55%, #311042 100%);
  border: 1px solid rgba(99, 102, 241, 0.25) !important;
}
.card-starwars .movie-logo-text {
  color: #ffe81f;
  text-shadow: 0 0 12px rgba(255, 232, 31, 0.6), 0 4px 10px rgba(0,0,0,0.8);
  font-family: 'Cinzel', Georgia, serif;
}

.card-titanic {
  background: linear-gradient(135deg, #020617 0%, #0369a1 60%, #0c4a6e 100%);
  border: 1px solid rgba(14, 165, 233, 0.25) !important;
}
.card-titanic .movie-logo-text {
  font-family: Georgia, serif;
  font-weight: 300;
  letter-spacing: 6px;
}

.card-spongebob-water {
  background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 45%, #f59e0b 100%);
  border: 1px solid rgba(245, 158, 11, 0.3) !important;
}
.card-spongebob-water .movie-logo-text {
  color: #fff;
  font-weight: 900;
  text-shadow: 0 4px 0 #d97706, 0 8px 12px rgba(0,0,0,0.4);
}

.card-avengers {
  background: linear-gradient(135deg, #111827 0%, #991b1b 60%, #450a0a 100%);
  border: 1px solid rgba(239, 68, 68, 0.25) !important;
}
.card-avengers .movie-logo-text {
  font-style: italic;
  font-weight: 900;
  letter-spacing: 0px;
}

.card-jurassicworld {
  background: linear-gradient(135deg, #090d16 0%, #064e3b 50%, #022c22 100%);
  border: 1px solid rgba(16, 185, 129, 0.25) !important;
}
.card-jurassicworld .movie-logo-text {
  letter-spacing: 2px;
  font-weight: 800;
}

.card-pacificrim {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #ea580c 100%);
  border: 1px solid rgba(249, 115, 22, 0.25) !important;
}
.card-pacificrim .movie-logo-text {
  font-family: var(--font-heading);
  letter-spacing: 3px;
}

.card-greeneggs {
  background: linear-gradient(135deg, #365314 0%, #15803d 50%, #16a34a 100%);
  border: 1px solid rgba(74, 222, 128, 0.25) !important;
}
.card-greeneggs .movie-logo-text {
  color: #f7fee7;
  font-weight: 800;
}

.card-godzilla {
  background: linear-gradient(135deg, #020617 0%, #111827 50%, #15803d 100%);
  border: 1px solid rgba(34, 197, 94, 0.2) !important;
}
.card-godzilla .movie-logo-text {
  letter-spacing: 5px;
  font-weight: 900;
  color: #10b981;
  text-shadow: 0 0 15px rgba(16, 185, 129, 0.6), 0 4px 10px rgba(0,0,0,0.8);
}

.card-ironman {
  background: linear-gradient(135deg, #450a0a 0%, #991b1b 55%, #d97706 100%);
  border: 1px solid rgba(245, 158, 11, 0.3) !important;
}
.card-ironman .movie-logo-text {
  color: #f59e0b;
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.5), 0 4px 10px rgba(0,0,0,0.8);
  font-weight: 900;
}

.card-xmen {
  background: linear-gradient(135deg, #030712 0%, #1e1b4b 60%, #6b21a8 100%);
  border: 1px solid rgba(168, 85, 247, 0.25) !important;
}
.card-xmen .movie-logo-text {
  letter-spacing: 4px;
  font-weight: 800;
}

.card-barnyard {
  background: linear-gradient(135deg, #7c2d12 0%, #ca8a04 60%, #eab308 100%);
  border: 1px solid rgba(251, 191, 36, 0.3) !important;
}
.card-barnyard .movie-logo-text {
  color: #fff;
  text-shadow: 0 4px 0 #b45309, 0 6px 10px rgba(0,0,0,0.3);
}

.card-jackass {
  background: linear-gradient(135deg, #09090b 0%, #1c1917 65%, #dc2626 100%);
  border: 1px solid rgba(220, 38, 38, 0.3) !important;
}
.card-jackass .movie-logo-text {
  font-family: 'Courier New', monospace;
  color: #fff;
  font-weight: 900;
}

.project-card.hidden {
  transform: scale(0.8);
  opacity: 0;
  pointer-events: none;
  position: absolute;
}

/* ---------- Capabilities Grid (Agency Style) ---------- */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.capability-card {
  background: var(--glass-bg);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-card);
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-slow);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.capability-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at 10% 10%, rgba(129, 140, 248, 0.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.capability-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-2);
  box-shadow: var(--shadow-glow);
}

.capability-card:hover::before {
  opacity: 1;
}

.capability-num {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent-2);
  display: block;
}

.capability-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
}

.capability-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---------- Filmography Section ---------- */
.filmography-section {
  padding: 120px 60px;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-glass);
}

.filmography-container {
  max-width: 1200px;
  margin: 0 auto;
}

.film-table-wrapper {
  overflow-x: auto;
  margin-top: 40px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-glass);
  background: var(--bg-secondary);
}

.film-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.film-table th {
  padding: 20px 24px;
  background: rgba(255,255,255,0.01);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent-2);
  border-bottom: 1px solid var(--border-glass);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.film-table td {
  padding: 18px 24px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border-glass);
  color: var(--text-secondary);
  transition: var(--transition);
}

.film-table tr:last-child td {
  border-bottom: none;
}

.film-table tr {
  transition: var(--transition);
}

.film-table tr:hover {
  background: rgba(255,255,255,0.01);
}

.film-table tr:hover td {
  color: var(--text-primary);
}

.film-year {
  font-family: monospace;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-3);
}

.film-title {
  font-weight: 600;
  color: var(--text-primary);
}

.film-tag {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 50px;
  background: rgba(129, 140, 248, 0.08);
  color: var(--accent-2);
  border: 1px solid rgba(129, 140, 248, 0.15);
}

.film-tag.animation {
  background: rgba(251, 113, 133, 0.08);
  color: var(--accent-3);
  border: 1px solid rgba(251, 113, 133, 0.15);
}

.film-tag.vfx {
  background: rgba(192, 132, 252, 0.08);
  color: var(--accent-1);
  border: 1px solid rgba(192, 132, 252, 0.15);
}

/* ---------- Contact Section ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: var(--glass-bg);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-card);
  transition: var(--transition);
}

.info-card:hover {
  border-color: rgba(139, 92, 246, 0.2);
  transform: translateX(8px);
}

.info-icon {
  width: 48px; height: 48px;
  min-width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-gradient);
  border-radius: 12px;
  font-size: 1.3rem;
}

.info-card h4 {
  font-family: var(--font-heading);
  margin-bottom: 4px;
}

.info-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.contact-form { display: flex; flex-direction: column; gap: 24px; }

.form-group {
  position: relative;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px 20px;
  background: var(--glass-bg);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}

.form-group textarea { min-height: 140px; resize: vertical; }

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-2);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.1);
}

.form-group label {
  position: absolute;
  left: 20px; top: 16px;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: var(--transition);
  pointer-events: none;
  background: transparent;
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
  top: -10px;
  left: 14px;
  font-size: 0.75rem;
  color: var(--accent-2);
  background: var(--bg-primary);
  padding: 0 6px;
}

.btn-submit {
  padding: 16px 40px;
  background: var(--accent-gradient);
  color: #fff;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  align-self: flex-start;
}

.btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.contact-spongebob {
  max-width: 120px;
  margin-top: 30px;
}

.form-success {
  display: none;
  padding: 16px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: var(--radius-sm);
  color: #22c55e;
  text-align: center;
}

.form-success.show { display: block; }

/* ---------- Footer ---------- */
footer {
  padding: 60px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-glass);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover { color: var(--accent-2); }

.footer-social {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 30px;
}

.footer-social a {
  width: 42px; height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-glass);
  border-radius: 50%;
  color: var(--text-secondary);
  transition: var(--transition);
  font-size: 1.1rem;
}

.footer-social a:hover {
  background: var(--accent-gradient);
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(139, 92, 246, 0.3);
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-copy span {
  color: #ef4444;
}

/* ============================================
   SPONGEBOB CHARACTER ANIMATIONS
   ============================================ */

.spongebob-float {
  animation: sbFloat 3s ease-in-out infinite;
}

@keyframes sbFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.spongebob-bounce {
  animation: sbBounce 2s ease infinite;
}

@keyframes sbBounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-30px); }
  60% { transform: translateY(-15px); }
}

.spongebob-wiggle {
  animation: sbWiggle 0.5s ease-in-out infinite alternate;
}

@keyframes sbWiggle {
  0% { transform: rotate(-5deg); }
  100% { transform: rotate(5deg); }
}

.spongebob-wave {
  animation: sbWave 2s ease-in-out infinite;
  transform-origin: bottom center;
}

@keyframes sbWave {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(15deg); }
  75% { transform: rotate(-10deg); }
}

.spongebob-dance {
  animation: sbDance 4s ease-in-out infinite;
}

@keyframes sbDance {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  15% { transform: translateY(-15px) rotate(5deg) scale(1.05); }
  30% { transform: translateY(0) rotate(-3deg) scale(0.98); }
  45% { transform: translateY(-10px) rotate(3deg) scale(1.02); }
  60% { transform: translateY(0) rotate(-5deg) scale(1); }
  75% { transform: translateY(-20px) rotate(2deg) scale(1.03); }
}

.spongebob-peek {
  animation: sbPeek 1s ease-out forwards;
}

@keyframes sbPeek {
  0% { transform: translateX(-100%); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

.spongebob-spin-entrance {
  animation: sbSpinEntrance 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes sbSpinEntrance {
  0% { transform: scale(0) rotate(-360deg); opacity: 0; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* Speech bubble */
.speech-bubble {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  background: #fff;
  color: #1a1a2e;
  padding: 10px 18px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  z-index: 10;
  transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  pointer-events: none;
}

.speech-bubble.show {
  transform: translateX(-50%) scale(1);
}

.speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #fff;
}

/* Bubble effect near characters */
.bubble {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(139, 92, 246, 0.3);
  background: rgba(139, 92, 246, 0.05);
  pointer-events: none;
  animation: bubbleRise 2s ease-out forwards;
}

@keyframes bubbleRise {
  0% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-100px) scale(0.3); }
}

/* Dance party mode */
.dance-party .spongebob-float,
.dance-party .spongebob-bounce,
.dance-party .spongebob-wiggle,
.dance-party .spongebob-wave,
.dance-party .spongebob-dance,
.dance-party .spongebob-peek,
.dance-party img[class*="spongebob"] {
  animation: sbDanceParty 0.5s ease-in-out infinite alternate !important;
}

@keyframes sbDanceParty {
  0% { transform: translateY(-20px) rotate(-15deg) scale(1.1); }
  25% { transform: translateY(10px) rotate(10deg) scale(0.9); }
  50% { transform: translateY(-15px) rotate(-10deg) scale(1.15); }
  75% { transform: translateY(5px) rotate(15deg) scale(0.95); }
  100% { transform: translateY(-25px) rotate(-20deg) scale(1.1); }
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */

.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s, transform 0.6s;
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.6s, transform 0.6s;
}

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.6s, transform 0.6s;
}

.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s, transform 0.6s;
}

.fade-in-up.visible,
.fade-in-left.visible,
.fade-in-right.visible,
.scale-in.visible {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .hero-name { font-size: 3.5rem; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  section { padding: 80px 40px; }
}

@media (max-width: 768px) {
  body { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none; }

  .navbar {
    top: 15px;
    width: 94%;
    padding: 10px 20px;
  }
  .navbar.scrolled {
    top: 8px;
    width: 94%;
    padding: 8px 16px;
  }

  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 280px; height: 100vh;
    flex-direction: column;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: var(--glass-blur);
    padding: 100px 40px;
    gap: 24px;
    transition: right 0.4s;
    border-left: 1px solid var(--border-glass);
  }

  .nav-links.active { right: 0; }
  .hamburger { display: flex; }

  section { padding: 60px 20px; }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-name { font-size: 2.8rem; }
  .hero-description { margin: 0 auto 30px; }
  .hero-cta { justify-content: center; }
  .hero-social { justify-content: center; }

  .hero-visual { order: -1; }
  .hero-character { max-width: 280px; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-image { max-width: 280px; margin: 0 auto; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }

  .timeline::before { left: 8px; }
  .timeline-item { width: 100%; left: 0 !important; padding-left: 40px; padding-right: 0; text-align: left !important; }
  .timeline-item::after { left: 0 !important; right: auto !important; }

  .portfolio-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }

  .section-title h2 { font-size: 2.2rem; }
  .footer-links { gap: 16px; }
}

@media (max-width: 480px) {
  .hero-name { font-size: 2.2rem; }
  .hero-cta { flex-direction: column; align-items: center; }
  .btn-primary, .btn-outline { width: 100%; text-align: center; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .navbar { padding: 14px 16px; }
}

/* ---------- Awards Gallery (Material Design Style) ---------- */
.awards-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.award-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: var(--transition-slow);
  display: flex;
  flex-direction: column;
}

.award-card:hover {
  border-color: rgba(138, 180, 248, 0.3);
  box-shadow: var(--shadow-glow);
  transform: translateY(-6px);
}

.award-image-container {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
  background: #000;
  border-bottom: 1px solid var(--border-glass);
}

.award-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.award-card:hover .award-img {
  transform: scale(1.06);
}

.award-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}

.award-info h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.2px;
}

.award-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ========== Immersive 3D Depth Experience Section ========== */
.immersive-section {
  padding: 100px 0;
  background: linear-gradient(to bottom, var(--bg-secondary), var(--bg-primary));
  position: relative;
  overflow: hidden;
}

.immersive-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.immersive-selector {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 35px;
  flex-wrap: wrap;
}

.immersive-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  padding: 12px 24px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 30px;
  cursor: pointer;
  transition: all var(--transition-medium);
}

.immersive-btn:hover, .immersive-btn.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: var(--accent-1);
  box-shadow: 0 0 15px rgba(138, 180, 248, 0.2);
}

.immersive-viewport-wrapper {
  perspective: 1200px;
  margin: 0 auto;
  width: 100%;
  max-width: 1200px; /* Made 2x larger to match page container width */
}

.immersive-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  background: #000;
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
}

.immersive-viewport::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  z-index: 10;
}

.immersive-layer {
  position: absolute;
  top: -5%;
  left: -5%;
  width: 110%;
  height: 110%;
  background-size: cover;
  background-position: center;
  transition: transform 0.1s ease-out;
}

.layer-left {
  mix-blend-mode: screen;
  filter: url(#red-channel);
  z-index: 2;
}

.layer-right {
  mix-blend-mode: screen;
  filter: url(#cyan-channel);
  z-index: 3;
}

.immersive-controls {
  max-width: 600px;
  margin: 40px auto 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.control-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.control-label {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.depth-slider {
  flex-grow: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  cursor: pointer;
  position: relative;
}

.depth-slider::-webkit-slider-runnable-track {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, #ff3b30, #34c759, #007aff);
}

.depth-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--accent-1);
  box-shadow: 0 0 10px rgba(138, 180, 248, 0.8);
  cursor: pointer;
  transition: transform 0.1s ease;
}

.depth-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.depth-hint {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-top: 5px;
  opacity: 0.8;
}

.immersive-mode-selector {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 15px;
}

.mode-toggle {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 5px 10px;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-medium);
}

.mode-toggle.active {
  color: var(--accent-1);
  border-color: var(--accent-1);
}

/* Bento Grid Mobile Responsiveness */
@media (max-width: 768px) {
  .bento-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .bento-card.col-span-2, .bento-card.col-span-3 {
    grid-column: span 1 !important;
  }
}

/* ==========================================================================
   PARTNER LOGOS SECTION
   ========================================================================== */
.partner-logos-section {
  background: transparent; /* Removed strip background */
  padding: 20px 0; /* Reduced padding */
  border: none; /* Removed strip borders */
}

.partner-logos-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.partner-title {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent-1);
  opacity: 0.8;
  display: block;
  margin-bottom: 20px;
}

.partner-logos-track-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
  padding: 8px 0;
  mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
  margin-top: 10px;
}

.partner-logos-track {
  display: flex;
  width: max-content;
  gap: 70px; /* Generous gap for clean alignment */
  animation: scrollMarquee 24s linear infinite;
  align-items: center;
}

@keyframes scrollMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.partner-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 30px; /* Premium well-aligned size */
  min-width: 85px;
  opacity: 0.85; /* Subtle blend, but fully colored! */
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, filter 0.3s ease;
  filter: grayscale(0%) brightness(100%) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4)); /* Added color effect */
}

.partner-logo-item img {
  max-height: 100%;
  max-width: 95px; /* Perfect proportional size */
  object-fit: contain;
  mix-blend-mode: screen; /* Blend out black backgrounds of logo assets */
}

.partner-logo-item:hover {
  opacity: 1;
  transform: scale(1.15) translateY(-5px);
  filter: grayscale(0%) brightness(100%);
}



  transition: all var(--transition-medium);
}

.mode-toggle.active {
  color: var(--accent-1);
  border-color: var(--accent-1);
}

/* ==========================================================================
   APPLE MOBILE UI/UX SYSTEM STYLES
   ========================================================================== */
.mobile-tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: rgba(10, 8, 22, 0.45); /* Siri obsidian glass */
  backdrop-filter: blur(35px) saturate(210%) brightness(105%);
  -webkit-backdrop-filter: blur(35px) saturate(210%) brightness(105%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: none;
  justify-content: space-around;
  align-items: flex-start;
  z-index: 9999;
  padding-top: 8px;
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 -10px 40px rgba(0, 0, 0, 0.7);
}

/* Apple Home Indicator Bar Placeholder */
.mobile-tab-bar::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 134px;
  height: 5px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 100px;
  pointer-events: none;
  z-index: 10;
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  text-decoration: none;
  width: 20%;
  height: 48px;
  transition: all 0.3s cubic-bezier(0.15, 0.85, 0.35, 1.02);
}

.tab-icon {
  font-size: 1.35rem;
  margin-bottom: 3px;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.25);
}

.tab-item.active {
  color: var(--accent-1);
}

.tab-item.active .tab-icon {
  transform: scale(1.18) translateY(-2px);
  filter: drop-shadow(0 0 5px var(--accent-1));
}

.tab-item.active .tab-label {
  font-weight: 800;
  text-shadow: 0 0 8px rgba(var(--accent-1), 0.3);
}

/* iOS Bottom Sheet Modal */
.ios-bottom-sheet {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100000;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.ios-bottom-sheet.active {
  pointer-events: auto;
}

.sheet-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.ios-bottom-sheet.active .sheet-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.sheet-content {
  position: relative;
  width: 100%;
  max-height: 85%;
  background: rgba(18, 19, 26, 0.92);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-radius: 28px 28px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: none;
  transform: translateY(100%);
  transition: transform 0.55s cubic-bezier(0.175, 0.885, 0.32, 1.12);
  padding: 0 24px 40px 24px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.ios-bottom-sheet.active .sheet-content {
  transform: translateY(0);
}

.sheet-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  position: sticky;
  top: 0;
  background: transparent;
  z-index: 2;
  padding-bottom: 10px;
}

.sheet-handle {
  width: 36px;
  height: 5px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 3px;
  margin-top: 10px;
  margin-bottom: 15px;
}

.sheet-close {
  position: absolute;
  right: 0px;
  top: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s;
}

.sheet-close:hover {
  background: rgba(255, 255, 255, 0.15);
}

.sheet-body {
  overflow-y: auto;
  max-height: calc(85vh - 80px);
  padding-top: 10px;
}

.sheet-project-detail {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

.sheet-project-detail img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
}

.sheet-project-info h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}

.sheet-project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.sheet-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
}

.sheet-tag.highlight {
  background: rgba(138, 180, 248, 0.1);
  border-color: rgba(138, 180, 248, 0.2);
  color: var(--accent-1);
}

.sheet-project-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .mobile-tab-bar {
    display: flex;
  }
  
  body {
    padding-bottom: 100px !important; /* Ensure safe bottom margin for tab bar */
  }

  .navbar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .hamburger, .nav-links {
    display: none !important;
  }

  .bento-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    padding: 0 4px !important;
  }
  
  .bento-card.col-span-2, .bento-card.col-span-3 {
    grid-column: span 1 !important;
  }

  /* Clean responsive vertical grids for native app aesthetic */
  .portfolio-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important; /* 2 Columns on mobile for excellent poster grid */
    gap: 16px !important;
    padding: 0 !important;
    margin: 0 auto !important;
    overflow-x: visible !important;
  }

  .awards-gallery {
    display: grid !important;
    grid-template-columns: 1fr !important; /* 1 Column for awards for rich layout details */
    gap: 20px !important;
    padding: 0 !important;
    margin: 0 auto !important;
    overflow-x: visible !important;
  }

  .project-card {
    min-width: 0 !important;
    max-width: none !important;
    scroll-snap-align: none !important;
  }

  .award-card {
    min-width: 0 !important;
    max-width: none !important;
    scroll-snap-align: none !important;
  }
  
  .project-card:active, .award-card:active {
    transform: scale(0.97) !important;
    transition: transform 0.1s cubic-bezier(0.16, 1, 0.3, 1);
  }
  
  /* Pill Filters horizontal swipeable with safe padding margins */
  .portfolio-filters {
    display: flex !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    padding-bottom: 12px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    margin-left: -20px !important;
    margin-right: -20px !important;
    justify-content: flex-start !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-bottom: 24px !important;
  }
  
  .portfolio-filters::-webkit-scrollbar {
    display: none;
  }
}

/* ==========================================================================
   WIDESCREEN PORTRAIT & HERO GRID ALIGNMENT OVERRIDES
   ========================================================================== */
.hero-container {
  grid-template-columns: 0.9fr 1.15fr;
  gap: 80px;
}

@media (max-width: 1200px) {
  .hero-container {
    gap: 60px;
  }
  .hero-widescreen-frame {
    max-width: 620px;
  }
  .hero-space-glow {
    width: 480px;
    height: 480px;
  }
}

@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-widescreen-frame {
    max-width: 580px;
    margin: 0 auto;
  }
  .hero-space-glow {
    width: 440px;
    height: 440px;
  }
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-cta {
    justify-content: center;
  }
  .hero-social {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .hero-widescreen-frame {
    max-width: 100%;
    aspect-ratio: 16 / 9;
  }
}

/* ==========================================================================
   GLIMPSE VIDEOS SECTION
   ========================================================================== */
.glimpse-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

.glimpse-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-card);
  padding: 30px;
  box-shadow: var(--shadow-glow);
  max-width: 900px;
  margin: 0 auto;
}

.glimpse-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 25px;
}

.glimpse-tab-btn {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.glimpse-tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.glimpse-tab-btn.active {
  background: var(--accent-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.glimpse-video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  background: #000;
}

.glimpse-video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

@media (max-width: 768px) {
  .glimpse-container {
    padding: 40px 20px;
  }
  .glimpse-card {
    padding: 15px;
  }
  .glimpse-tabs {
    gap: 6px;
    margin-bottom: 15px;
  }
    .glimpse-tab-btn {
      padding: 6px 12px;
      font-size: 0.72rem;
    }
  }
}

/* ==========================================================================
   PREMIUM NAVBAR EFFECTS & THEME DOTS SELECTOR
   ========================================================================== */
.nav-theme-selector {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 15px;
  padding-left: 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.12); /* Apple divider line style */
}

.nav-theme-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.6);
}

.nav-theme-dot:hover {
  transform: scale(1.35);
  border-color: rgba(255, 255, 255, 0.85);
}

.nav-theme-dot.active {
  transform: scale(1.25);
  border-color: #ffffff;
  box-shadow: 0 0 12px currentColor;
}

/* Link Underline Hover Glow Effect */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: 2px;
  transition: width 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}

/* Logo Zoom Hover Effect */
.nav-logo-img {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-logo:hover .nav-logo-img {
  transform: scale(1.06) rotate(2deg);
}

/* Extra Capsule Border Glow Effect */
.navbar {
  box-shadow: 
    0 4px 30px rgba(0, 0, 0, 0.4),
    0 0 15px rgba(255, 255, 255, 0.03);
}

@media (max-width: 768px) {
  .nav-theme-selector {
    border-left: none;
    padding-left: 0;
    margin-left: 0;
    margin-top: 15px;
    justify-content: center;
  }
}

/* ==========================================
   YUNGBLD GLASSMORPHISM SHADER
   ========================================== */
.dock-card {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-lens {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: inherit;
  backdrop-filter: blur(12px) saturate(130%) brightness(110%);
  -webkit-backdrop-filter: blur(12px) saturate(130%) brightness(110%);
  z-index: 1;
  pointer-events: none;
}

.glass-fx {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: inherit;
  box-shadow: 
    inset 4px 4px 20px rgba(255, 255, 255, 0.08),
    inset -4px -4px 20px rgba(0, 0, 0, 0.45);
  z-index: 2;
  pointer-events: none;
}

.glass-bevel {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: inherit;
  z-index: 3;
  pointer-events: none;
  padding: 1px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  background-image: radial-gradient(50% 50% at 0 0, rgba(255, 255, 255, 0.5) 0, rgba(255, 255, 255, 0.5) 45%, transparent),
                    radial-gradient(50% 50% at 100% 100%, rgba(255, 255, 255, 0.3) 0, rgba(255, 255, 255, 0.3) 45%, transparent);
}

/* Also apply this bevel glow effect to bento cards and navbar */
.bento-card, .navbar {
  position: relative;
}

/* Add inner bevel effects to bento cards and navbar for V4 */
.bento-card::after, .navbar::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: inherit;
  z-index: 5;
  pointer-events: none;
  padding: 1px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  background-image: radial-gradient(50% 50% at 0 0, rgba(255, 255, 255, 0.3) 0, rgba(255, 255, 255, 0.3) 45%, transparent),
                    radial-gradient(50% 50% at 100% 100%, rgba(255, 255, 255, 0.15) 0, rgba(255, 255, 255, 0.15) 45%, transparent);
}

/* ==========================================
   MAC OS DOCK CAROUSEL STYLE
   ========================================== */
#dock-wrapper {
  margin-top: 40px;
  width: 100%;
  display: flex;
  justify-content: center;
  position: relative;
  padding: 15px 0;
}

.card-strip {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 10px 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 24px;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.6),
    inset 0 1px 1px rgba(255, 255, 255, 0.05);
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none; /* Hide standard Firefox scrollbar */
}

.card-strip::-webkit-scrollbar {
  display: none; /* Hide Webkit scrollbar */
}

.card-cta {
  flex: 0 0 auto;
  width: 80px;
  height: 80px;
  position: relative;
  cursor: pointer;
  transform-origin: bottom center;
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1), height 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-cta.is-active .dock-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid var(--accent-1);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.card-cta.is-active .play-icon {
  color: var(--accent-1);
  text-shadow: 0 0 8px var(--accent-1);
}

.dock-card-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 8px;
  text-align: center;
}

.play-icon {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 4px;
  transition: all 0.3s;
}

.dock-card-title {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  pointer-events: none;
}

/* Adjustments for smaller screen layouts */
@media (max-width: 600px) {
  .card-strip {
    gap: 8px;
    padding: 8px 16px;
  }
  .card-cta {
    width: 65px;
    height: 65px;
  }
  .dock-card-title {
    font-size: 8px;
  }
}

/* ==========================================
   BACK TO TOP BUTTON STYLES
   ========================================== */
.back-to-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.1),
    0 10px 30px rgba(0, 0, 0, 0.5);
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top-btn:hover {
  transform: translateY(-5px) scale(1.08);
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.15),
    0 15px 35px rgba(0, 0, 0, 0.6),
    0 0 20px var(--accent-1);
  border-color: var(--accent-1);
}

.back-to-top-btn .arrow {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  z-index: 10;
  transition: color 0.3s;
}

.back-to-top-btn:hover .arrow {
  color: var(--accent-1);
  text-shadow: 0 0 8px var(--accent-1);
}

@media (max-width: 768px) {
  .back-to-top-btn {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
  .back-to-top-btn .arrow {
    font-size: 14px;
  }
}
