/* ============================================
   PORTFOLIO — STYLE SYSTEM
   Minimal · Premium · Dark Mode
   ============================================ */

/* ── SF Pro Display Font ─────────────────── */
@import url('https://fonts.cdnfonts.com/css/sf-pro-display');

/* ── CSS Custom Properties ───────────────── */
:root {
  --bg-primary: #000000;
  --bg-secondary: #0a0a0a;
  --bg-card: #111111;
  --bg-card-hover: #161616;
  --bg-overlay: rgba(0, 0, 0, 0.85);

  --text-primary: #f0f0f0;
  --text-secondary: #888888;
  --text-muted: #555555;
  --text-accent: #c8c8c8;

  --accent: #00d3c8;
  --accent-light: #33e1d8;
  --accent-glow: rgba(0, 211, 200, 0.08);
  --accent-glow-strong: rgba(0, 211, 200, 0.15);
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(0, 211, 200, 0.3);

  --font-primary: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.5);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-elevated: 0 8px 40px rgba(0, 0, 0, 0.6);
}

/* ── Reset & Base ────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--font-primary);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

main {
  position: relative;
  z-index: 1;
  /* Removed aggressive overflow:hidden that was clipping modals */
}

/* ── Mixed Gradient Background ──────────────── */
.messy-gradient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: #000000;
  overflow: hidden;
}

.messy-gradient::after {
  content: "";
  position: absolute;
  bottom: -20%;
  right: -20%;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle, rgba(0, 211, 200, 0.4) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(80px);
  opacity: 0.8;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* ── Hamburger Menu Button ───────────────── */
.hamburger-btn {
  position: fixed;
  top: 28px;
  left: 28px;
  z-index: 1001;
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(17, 17, 17, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
  padding: 0;
}

.hamburger-btn:hover {
  background: rgba(17, 17, 17, 0.85);
  border-color: var(--border-hover);
}

.hamburger-line {
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s var(--ease-smooth);
  transform-origin: center;
}

.hamburger-btn.active .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ── Side Navigation ─────────────────────── */
.side-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease-smooth);
}

.side-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.side-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  z-index: 1000;
  transform: translateX(-100%);
  transition: transform 0.4s var(--ease-out);
  display: flex;
  flex-direction: column;
  padding: 100px 32px 40px;
}

.side-nav.active {
  transform: translateX(0);
}

.side-nav-label {
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.side-nav-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: all 0.25s var(--ease-smooth);
  margin-bottom: 4px;
}

.side-nav-link:hover {
  background: var(--accent-glow);
  color: var(--accent);
}

.side-nav-link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.side-nav-link.accent-link {
  color: var(--accent);
  margin-top: 12px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.side-nav-link.accent-link:hover {
  background: var(--accent-glow-strong);
}

/* ── Preloader ───────────────────────────── */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease-smooth), visibility 0.6s;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.preloader-bar {
  width: 120px;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.preloader-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  animation: preloaderSlide 1s var(--ease-smooth) infinite;
}

@keyframes preloaderSlide {
  0% { left: -40%; }
  100% { left: 100%; }
}

.preloader-text {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── Canvas Background ───────────────────── */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── Main Content ────────────────────────── */
.main-content {
  position: relative;
  z-index: 1;
}

/* ── Hero Section ────────────────────────── */
/* ── Hero Section ────────────────────────── */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 120px 40px 60px !important;
  overflow: visible;
  z-index: 10;
  max-width: 1400px;
  margin: 0 auto;
}

/* The robust wrapper that forces side-by-side on desktop */
.hero-main-row {
  display: flex !important;
  flex-direction: column !important; /* Mobile default */
  align-items: center !important;
  justify-content: center !important;
  gap: 40px !important;
  width: 100% !important;
  position: relative;
  z-index: 1;
}

@media (min-width: 901px) {
  .hero-main-row {
    flex-direction: row !important;
    justify-content: space-between !important;
    text-align: left !important;
    gap: 60px !important;
  }
}

.hero-content {
  width: 100%;
  max-width: 650px;
  text-align: center;
}

.hero-bio-block {
  width: 100%;
  max-width: 480px;
  background: rgba(17, 17, 17, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  
  /* Initial state for reveal animation */
  opacity: 0;
  transform: translateY(30px);
}

@media (min-width: 901px) {
  .hero-content {
    text-align: left !important;
  }
  .hero-bio-block {
    margin-left: auto !important;
  }
}


.bio-intro-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--accent);
  margin-bottom: 12px;
}

.bio-intro-text {
  font-size: 1rem;
  color: var(--text-primary);
  line-height: 1.7;
  margin-bottom: 32px;
}

.bio-section {
  margin-bottom: 24px;
}

.bio-section:last-child {
  margin-bottom: 0;
}

.bio-subtitle {
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.bio-text {
  font-size: 0.95rem;
  color: var(--text-primary);
}

.bio-services-list {
  list-style: none;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.bio-services-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.bio-services-list li svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

/* Hero responsiveness handled above via min-width for stability */


/* ── Availability Tag System ──────────────── */
.availability-badge {
  position: absolute;
  top: 40px;
  right: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 40px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  opacity: 0;
  transform: translateY(-10px);
  z-index: 10;
}

.availability-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(10px);
}

.cta-group {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .availability-badge {
    position: fixed;
    top: 20px;
    right: 20px;
    left: auto;
    margin: 0;
    transform: none;
    padding: 6px 12px;
    font-size: 0.75rem;
    z-index: 1001;
  }
  .cta-group {
    justify-content: center;
    width: 100%;
  }
}

.availability-badge.available,
.availability-mini.available {
  background: rgba(0, 211, 200, 0.15);
  color: var(--accent);
  border: 1px solid rgba(0, 211, 200, 0.3);
  box-shadow: 0 0 15px rgba(0, 211, 200, 0.1);
}

.availability-badge.unavailable,
.availability-mini.unavailable {
  background: rgba(80, 80, 80, 0.15);
  color: #a0a0a0;
  border: 1px solid rgba(80, 80, 80, 0.3);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.available .status-dot {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse-dot 2s infinite;
}

.unavailable .status-dot {
  background: #a0a0a0;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 211, 200, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(0, 211, 200, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 211, 200, 0); }
}


.hero-intro {
  font-size: 1.2rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #ffffff; /* Requested update to white */
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(20px);
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 8px;
  opacity: 0;
  transform: translateY(30px);
  background: linear-gradient(135deg, #ffffff 0%, #ffffff 70%, #00d3c8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-role {
  font-size: 1.1rem;
  color: var(--text-secondary);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(20px);
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-accent);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 48px;
  opacity: 0;
  transform: translateY(20px);
}

/* ── CTA Button ──────────────────────────── */
.cta-wrapper {
  position: relative;
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  z-index: 200;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  background: var(--accent);
  color: #000000;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  border-radius: var(--radius-xl);
  transition: all 0.4s var(--ease-smooth);
  position: relative;
}

.cta-btn:hover {
  transform: scale(1.04);
  background: var(--accent-light);
  box-shadow: 0 0 30px rgba(0, 211, 200, 0.25);
}

.cta-btn:active {
  transform: scale(0.98);
}

.cta-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ease-smooth);
}

.cta-wrapper.open .cta-btn svg {
  transform: rotate(180deg);
}

/* ── Contact Dropdown ────────────────────── */
.contact-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 240px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s var(--ease-out);
  box-shadow: var(--shadow-elevated);
  z-index: 200;
}

.cta-wrapper.open .contact-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.contact-item:hover {
  background: var(--accent-glow);
}

.contact-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--accent);
}

.contact-item span {
  color: var(--text-secondary);
  font-size: 0.82rem;
}

/* ── Scroll Hint ─────────────────────────── */
.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeInScroll 1s 2.5s forwards;
}

@keyframes fadeInScroll {
  to { opacity: 0.4; }
}

.scroll-hint-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s var(--ease-smooth) infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ── Dynamic Main Content Container ──────── */
.dynamic-sections {
  position: relative;
  width: 100%;
}

/* ── Section Navigation Tabs ──────────────── */
.section-tabs {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 0 auto 40px;
  max-width: 600px;
  padding: 0 24px;
}

.tab-btn {
  padding: 10px 24px;
  border-radius: 40px;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s var(--ease-smooth);
}

.tab-btn:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.tab-btn.active {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

.dynamic-sections {
  position: relative;
  /* Removal of overflow: hidden to allow the wave background to show through if needed, 
     but keeping it controlled within section views */
}

.section-view {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease-smooth), transform 0.5s var(--ease-smooth);
}

.section-view.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s var(--ease-smooth) 0.1s, transform 0.5s var(--ease-smooth) 0.1s;
}

/* ── Content Layout Settings ─────────────── */
.section-content {
  padding: 20px 24px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.75rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  text-align: center;
  margin-bottom: 80px;
  background: linear-gradient(135deg, #ffffff 0%, #888888 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Video Block ─────────────────────────── */
.video-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 120px;
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.8s var(--ease-out);
}

.video-block.ratio-vertical {
  grid-template-columns: minmax(auto, 340px) 1fr;
  gap: 60px;
}


.video-block.visible {
  opacity: 1;
  transform: translateY(0);
}

.video-block:last-child {
  margin-bottom: 0;
}

.video-block.reversed {
  direction: rtl;
}

.video-block.reversed > * {
  direction: ltr;
}

/* ── Video Container ─────────────────────── */
.video-container {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all 0.5s var(--ease-smooth);
  aspect-ratio: 16 / 9;
}

.ratio-vertical .video-container {
  aspect-ratio: 9 / 16;
}

.video-container:hover {
  border-color: var(--border-hover);
  box-shadow: 0 4px 24px rgba(0, 211, 200, 0.08);
  transform: translateY(-4px);
}

.video-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000; /* Pure black background as per reference image */
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
}

.video-placeholder:hover {
  background: #050505;
}

.play-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(13, 13, 13, 0.7); /* Dark semi-transparent circle */
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 211, 200, 0.2); /* Subtle teal border */
  transition: all 0.4s var(--ease-out);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.video-placeholder:hover .play-icon {
  background: rgba(0, 211, 200, 0.1);
  border-color: rgba(0, 211, 200, 0.6);
  transform: scale(1.08);
  box-shadow: 0 0 50px rgba(0, 211, 200, 0.1);
}

.play-icon svg {
  width: 30px;
  height: 30px;
  margin-left: 4px; /* Optical centering for triangle */
  color: #00ffca; /* Reference green/teal */
  filter: drop-shadow(0 0 12px rgba(0, 255, 202, 0.5));
}

/* ── Video Info ───────────────────────────── */
.video-info {
  padding: 12px 0;
}

.video-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 1.3;
}

.video-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

.read-more-toggle {
  color: var(--accent);
  font-weight: 500;
  cursor: pointer;
  margin-left: 2px;
  white-space: nowrap;
  transition: opacity 0.25s var(--ease-smooth);
}

.read-more-toggle:hover {
  opacity: 0.7;
}

.video-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.video-tag {
  padding: 6px 14px;
  background: var(--accent-glow);
  border: 1px solid rgba(0, 211, 200, 0.15);
  border-radius: 100px;
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.5px;
  transition: all 0.3s;
}

.video-tag:hover {
  border-color: var(--accent);
  background: var(--accent-glow-strong);
}

.curved-divider {
  width: 100%;
  line-height: 0;
  pointer-events: none;
  background: transparent;
}
.curved-divider svg {
  width: 100%;
  height: clamp(50px, 8vw, 120px);
  display: block;
}

.dynamic-sections {
  padding: 20px 0;
}

/* ── Feedback & FAQs Sections ────────────── */
.feedback-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.feedback-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s var(--ease-smooth);
}

.feedback-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 211, 200, 0.05);
}

.feedback-text {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-primary);
  margin-bottom: 24px;
  font-style: italic;
}

.feedback-person {
  color: var(--accent);
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.3s;
}

.faq-question {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-primary);
}

.faq-question svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s var(--ease-smooth);
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  padding: 0 24px;
  color: var(--text-secondary);
  transition: max-height 0.4s var(--ease-smooth), padding 0.4s var(--ease-smooth);
  overflow: hidden;
}

.faq-item.active .faq-answer {
  max-height: 300px; /* Safe upper limit */
  padding: 0 24px 20px;
}

/* ── Footer ──────────────────────────────── */
.footer {
  padding: 60px 24px 40px;
  border-top: none;
  text-align: center;
  background: linear-gradient(to bottom, transparent 0%, #000000 100px, #000000 100%);
  position: relative;
  z-index: 2;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 32px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  font-size: 0.85rem;
  color: var(--accent);
  transition: all 0.3s var(--ease-smooth);
}

.social-link:hover {
  border-color: var(--border-hover);
  color: #000;
  background: var(--accent);
  transform: translateY(-2px);
}

.social-link svg {
  width: 18px;
  height: 18px;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 1px;
}

/* ── Responsive ──────────────────────────── */
@media (max-width: 768px) {
  .video-block, .video-block.ratio-vertical {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 80px;
  }

  .video-block.ratio-vertical .video-container {
    max-width: 320px;
    margin: 0 auto;
  }

  .video-block.ratio-vertical.reversed {
    grid-template-columns: 1fr;
  }

  .video-block.reversed {
    direction: ltr;
  }

  .video-info {
    padding: 0;
  }

  .video-title {
    font-size: 1.3rem;
  }

  .hero {
    padding-top: 100px;
    flex-direction: column;
    align-items: center;
  }

  .hero-intro {
    letter-spacing: 0.14em;
  }

  .hero-name {
    margin-bottom: 14px;
  }

  .hero-role {
    margin-bottom: 18px;
  }

  .hero-tagline {
    margin-bottom: 22px;
  }

  .cta-group {
    gap: 14px;
    justify-content: center;
  }

  .footer-socials {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .contact-dropdown {
    min-width: 200px;
  }

  .portfolio {
    padding: 60px 20px 80px;
  }

  .section-title {
    margin-bottom: 48px;
  }

  .hamburger-btn {
    top: 20px;
    left: 20px;
  }

  .side-nav {
    width: 260px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 90px 16px 40px;
  }

  .hero-name {
    font-size: 2.4rem;
  }

  .portfolio {
    padding: 40px 16px 60px;
  }
}

/* ── Utility Animations ──────────────────── */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s var(--ease-out);
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Important Note Section ──────────────── */
.bio-important-note {
  margin-top: 24px;
  padding: 16px 20px;
  background: rgba(231, 76, 60, 0.05);
  border-left: 3px solid #e74c3c;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.bio-important-note-title {
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #e74c3c;
  margin-bottom: 8px;
  font-weight: 600;
}

.bio-important-note-text {
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.6;
}

/* ── Hire Me Sticky Button ───────────────── */
.hire-me-btn {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--accent);
  color: #000;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 40px;
  box-shadow: 0 12px 30px rgba(0, 211, 200, 0.3), 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.hire-me-btn.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.hire-me-btn.visible:hover {
  transform: translateX(-50%) translateY(-6px) scale(1.02);
  box-shadow: 0 18px 40px rgba(0, 211, 200, 0.4), 0 8px 25px rgba(0, 0, 0, 0.4);
  background: var(--accent-light);
}

.hire-me-btn svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 768px) {
  .hire-me-btn {
    bottom: 20px;
    padding: 12px 24px;
    border-radius: 40px;
  }
}

/* ── Filter Dropdown ─────────────────────── */
.portfolio-header {
  position: relative;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}

.portfolio-header .section-title {
  margin-bottom: 0;
  text-align: left;
}

.portfolio-filters {
  position: relative;
  z-index: 50;
}

.filter-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 30px;
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: all 0.3s var(--ease-smooth);
}

.filter-dropdown-btn:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.filter-dropdown-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s;
}

.portfolio-filters.open .filter-dropdown-btn svg.chevron {
  transform: rotate(180deg);
}

.filter-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 200px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px;
  box-shadow: var(--shadow-elevated);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s var(--ease-smooth);
}

.portfolio-filters.open .filter-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.filter-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: all 0.2s;
}

.filter-item:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.filter-item.active {
  color: var(--accent);
  background: var(--accent-glow);
}

@media (max-width: 768px) {
  .portfolio-header {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px;
  }
  .portfolio-header > div:first-child {
    flex: 1;
    min-width: 0;
  }
  .portfolio-header .section-label {
    text-align: left;
    font-size: 0.65rem;
  }
  .portfolio-header .section-title {
    text-align: left;
    font-size: 1.3rem;
  }
  .filter-dropdown-btn {
    padding: 8px 14px;
    font-size: 0.78rem;
    gap: 6px;
    white-space: nowrap;
  }
}

/* ── Case Study Modal ────────────────────── */
.view-case-study-btn {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 30px;
  color: var(--text-primary);
  font-size: 0.85rem;
  transition: all 0.3s var(--ease-smooth);
}

.view-case-study-btn:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
  color: var(--accent);
}

.view-case-study-btn svg {
  width: 16px;
  height: 16px;
}

.case-study-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: flex-start; /* Changed from center to prevent clipping long modals */
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--ease-smooth);
  overflow-y: auto; /* Allow the overlay itself to scroll if the modal is taller than viewport */
}

.case-study-overlay.active {
  opacity: 1;
  visibility: visible;
}

.case-study-modal {
  width: 100%;
  min-height: 100%; /* Changed from 100vh to allow auto-height on content */
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  transform: translateY(30px);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.case-study-overlay.active .case-study-modal {
  transform: translateY(0);
}

.close-case-study {
  position: absolute;
  top: 30px;
  right: 30px;
  z-index: 10;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.close-case-study:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
  transform: rotate(90deg);
}

.case-study-scroll-area {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 100px 40px; /* Adjusted padding */
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg-card);
  display: flex;
  flex-direction: column;
}

.case-study-scroll-area::-webkit-scrollbar {
  width: 6px;
}

.case-study-scroll-area::-webkit-scrollbar-thumb {
  background-color: var(--accent);
  border-radius: 10px;
}

.cs-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: flex-start;
}

.cs-layout.vertical-case {
  grid-template-columns: minmax(auto, 340px) 1fr;
}

.cs-video-container {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16 / 9;
  position: relative; /* Fixed: Added to contain the absolute video-placeholder */
  background: #000;
}

.vertical-case .cs-video-container {
  aspect-ratio: 9 / 16;
}

.cs-video-container iframe {
  width: 100%;
  height: 100%;
  display: block;
}

.cs-content {
  padding-top: 10px;
}

.cs-category {
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
}

.cs-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 24px;
  font-weight: 700;
}

.cs-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 32px;
}

.cs-details {
  margin-bottom: 32px;
}

.cs-section {
  margin-bottom: 24px;
}

.cs-section:last-child {
  margin-bottom: 0;
}

.cs-subheading {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 10px;
  font-weight: 600;
  border-left: 3px solid var(--accent);
  padding-left: 12px;
}

.cs-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  padding-left: 15px;
}

.cs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 992px) {
  .case-study-overlay {
    align-items: flex-start;
    overflow-y: auto;
    padding: 0;
  }
  .case-study-modal {
    min-height: 100vh;
    height: auto;
    display: block; /* Remove flex on mobile to allow natural flow */
  }
  .case-study-scroll-area {
    padding: 60px 20px 40px;
    overflow: visible; 
    height: auto;
    flex: none; /* Disable flex scaling */
    display: block;
  }
  .cs-layout, .cs-layout.vertical-case {
    display: block; /* Stack naturally */
    gap: 0;
  }
  .cs-content {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    padding: 20px 0;
  }
  .cs-video-container {
    width: 100%;
    margin-bottom: 30px;
    max-height: 70vh; /* Prevent video from hogging the screen */
  }
  .vertical-case .cs-video-container {
    max-height: 60vh;
    width: auto;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .cs-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }
}
