@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* ==========================================
   1. CORE DESIGN SYSTEM & VARIABLES (MODERN DARK)
   ========================================== */
:root {
  /* Typography */
  --font-heading: 'Outfit', 'Inter', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  /* Premium Elegant Dark Canvas (No Neon Signs) */
  --bg-deep: #09090b;
  --bg-dark-900: #09090b;
  --bg-dark-800: #121215;
  --bg-dark-700: #1c1c1f;
  
  /* Text System */
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #52525b;
  
  /* Muted Elegant Accent Colors */
  --accent-cyan: #06b6d4;
  --accent-purple: #8b5cf6;
  --accent-orange: #ea580c;
  --accent-gradient: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-purple) 100%);
  --cyan-glow: rgba(6, 182, 212, 0.35);

  /* Glassmorphism Specs (Zinc Muted Style) */
  --glass-bg: #18181b;
  --glass-border: #27272a;
  --glass-border-focus: #3f3f46;
  --glass-shadow: rgba(0, 0, 0, 0.45);
  --glass-blur: blur(12px);

  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.15s ease;
}

/* ==========================================
   2. GENERAL RESET & BASE STYLES
   ========================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-deep);
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: #27272a;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #52525b;
}

/* ==========================================
   3. REUSABLE GLASSMORPHIC LAYOUT COMPONENTS
   ========================================== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 90px 0;
}

.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 24px 0 var(--glass-shadow);
  border-radius: 16px;
  transition: var(--transition-smooth);
}

.glass-panel:hover {
  border-color: var(--glass-border-focus);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 50px;
  letter-spacing: -0.5px;
}

.section-title span {
  color: var(--text-primary);
}

/* Premium Capsule Pill Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 30px;
  font-family: var(--font-heading);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: #ffffff;
  color: #0a0a0a;
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
}

.btn-secondary {
  background: transparent;
  color: #ffffff;
  border: 1px solid #27272a;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: #52525b;
  transform: translateY(-2px);
}

/* ==========================================
   4. FLOATING NAVBAR
   ========================================== */
.navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1000px;
  height: 60px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #ffffff;
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 5px 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #ffffff;
  transition: var(--transition-smooth);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.menu-toggle span {
  width: 25px;
  height: 2px;
  background-color: #ffffff;
}

/* ==========================================
   5. HERO SECTION
   ========================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: 100px;
  background-color: var(--bg-deep);
  overflow: hidden; /* Ensure video doesn't overflow container boundaries */
}

/* Background video elements */
.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.hero-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* High-end darl overlay to dim the background video and pop the content text */
  background: rgba(10, 12, 18, 0.85);
}

.hero-content {
  text-align: center;
  z-index: 10;
  max-width: 800px;
}

.hero-tagline {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 25px;
  letter-spacing: -1.5px;
}

.hero-title span {
  background: linear-gradient(135deg, #ffffff 0%, #a1a1aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 35px;
  font-weight: 300;
}

.hero-tags {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.hero-tag {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.hero-socials {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 40px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.social-icon:hover {
  border-color: #52525b;
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.social-icon svg {
  width: 18px;
  height: 18px;
  fill: var(--text-secondary);
}

.social-icon:hover svg {
  fill: #ffffff;
}

/* ==========================================
   6. ABOUT & PHILOSOPHY
   ========================================== */
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.philosophy-card {
  padding: 35px 25px;
  text-align: center;
}

.phil-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phil-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--text-secondary);
}

.philosophy-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.philosophy-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.6;
}

/* ==========================================
   7. INTERACTIVE TECH STACK
   ========================================== */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.tech-card {
  padding: 25px;
  display: flex;
  flex-direction: column;
}

.tech-card h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #ffffff;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 8px;
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-item {
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.tech-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

/* ==========================================
   8. EXPERIENCE TIMELINE TREE
   ========================================== */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 50px auto 0;
  padding: 30px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  background: #27272a;
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 50px;
  width: 50%;
  padding: 0 40px;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

/* Node marker */
.timeline-badge {
  position: absolute;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 3px solid #52525b;
  z-index: 10;
}

.timeline-item:nth-child(odd) .timeline-badge {
  right: -8px;
}

.timeline-item:nth-child(even) .timeline-badge {
  left: -8px;
  border-color: #52525b;
}

.timeline-content {
  padding: 25px;
}

.timeline-date {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.timeline-content h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.timeline-role {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.timeline-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 300;
}

/* ==========================================
   9. FILTERABLE PROJECTS GRID
   ========================================== */
.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  padding: 8px 20px;
  border-radius: 20px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-btn:hover {
  border-color: var(--glass-border-focus);
  color: #ffffff;
}

.filter-btn.active {
  background: #ffffff;
  color: #0a0a0a;
  border: none;
  font-weight: 600;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  position: relative;
  transition: var(--transition-smooth);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  border-color: var(--glass-border-focus);
}

.project-card.hide {
  display: none;
}

.project-card-meta {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-cat {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.project-card-meta h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-weight: 300;
  line-height: 1.5;
  flex-grow: 1;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 25px;
}

.project-stack span {
  font-size: 0.72rem;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  color: var(--text-secondary);
}

.project-actions {
  display: flex;
  gap: 15px;
  margin-top: auto;
  border-top: 1px solid var(--glass-border);
  padding-top: 15px;
}

.project-link {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.project-card:hover .project-link {
  color: #ffffff;
}

.project-arrow-icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
  margin-left: 2px;
  transition: var(--transition-fast);
}

.project-card:hover .project-arrow-icon {
  transform: translate(2px, -2px);
}

/* ==========================================
   10. AWARDS & ACTIVITIES
   ========================================== */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 30px;
}

.award-card {
  padding: 30px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.award-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.award-icon-box svg {
  width: 20px;
  height: 20px;
  fill: var(--text-secondary);
}

.award-meta h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.award-issuer {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.award-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.5;
}

/* ==========================================
   11. CONTACT & FOOTER
   ========================================== */
.contact-section {
  text-align: center;
}

.contact-card {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 50px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  text-align: left;
}

/* Info side */
.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-info h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
  line-height: 1.25;
}

.contact-info p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  font-weight: 300;
  line-height: 1.6;
}

.contact-details-box {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
}

.contact-icon {
  width: 24px;
  height: 24px;
  fill: var(--accent-cyan);
  filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.3));
  flex-shrink: 0;
}

.contact-text {
  display: flex;
  flex-direction: column;
}

.contact-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.contact-value {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 500;
}

/* Copy button */
.copy-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
}

.copy-btn:hover {
  background: rgba(6, 182, 212, 0.15);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.2);
}

.copy-icon {
  width: 16px;
  height: 16px;
  fill: var(--text-muted);
  transition: fill 0.3s ease;
}

.copy-btn:hover .copy-icon {
  fill: var(--accent-cyan);
}

/* Copy tooltip */
.copy-tooltip {
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  padding: 4px 8px;
  font-size: 0.75rem;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.copy-btn:hover .copy-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Contact Form */
.contact-form-box {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 30px;
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.02);
}

.contact-form-box h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 25px;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}

.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
  background: rgba(10, 12, 18, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: inherit;
  transition: all 0.3s ease;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-cyan);
  background: rgba(10, 12, 18, 0.85);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.15), inset 0 0 8px rgba(6, 182, 212, 0.05);
}

.form-submit-btn {
  width: 100%;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: var(--accent-gradient);
  color: #ffffff;
  transition: all 0.3s ease;
}

.form-submit-btn:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
}

.send-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: transform 0.3s ease;
}

.form-submit-btn:hover .send-icon {
  transform: translateX(4px) translateY(-2px) scale(1.05);
}

/* Toast Notification Styles */
.toast-notification {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--accent-cyan);
  color: var(--text-primary);
  padding: 12px 24px;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(6, 182, 212, 0.2);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.toast-notification.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.toast-success-icon {
  width: 18px;
  height: 18px;
  fill: var(--accent-cyan);
}

/* Responsive constraints */
@media (max-width: 900px) {
  .contact-card {
    padding: 40px 25px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact-info h2 {
    font-size: 1.8rem;
  }
}

.footer {
  padding: 40px 0;
  border-top: 1px solid var(--glass-border);
  background: var(--bg-deep);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: #ffffff;
}

/* ==========================================
   12. INTERACTIVE MODAL OVERLAY
   ========================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-container {
  width: 90%;
  max-width: 760px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 16px;
  padding: 35px;
  position: relative;
  transform: scale(0.95);
  transition: var(--transition-smooth);
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.08);
}

.modal-close svg {
  width: 12px;
  height: 12px;
  fill: #ffffff;
}

.modal-body h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 5px;
}

.modal-subtitle {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.modal-video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
  margin-bottom: 25px;
}

.modal-video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.modal-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 25px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
}

.modal-meta-item h4 {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 3px;
}

.modal-meta-item p {
  font-size: 0.9rem;
  color: #ffffff;
}

.modal-text-section h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #ffffff;
}

.modal-text-section {
  margin-bottom: 20px;
}

.modal-text-section p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  font-weight: 300;
}

.modal-text-section ul {
  list-style: disc;
  padding-left: 20px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 300;
}

.modal-text-section li {
  margin-bottom: 6px;
}

/* ==========================================
   13. SCROLL ANIMATION EFFECTS
   ========================================== */
.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition-smooth);
}

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





/* ==========================================
   11.5. TECHNICAL ARTIST LAB (TA LAB) GRID & CARDS
   ========================================== */
.ta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.ta-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.ta-card.hide {
  display: none;
}

.ta-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  border-color: var(--glass-border-focus);
}

.ta-thumb-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

.ta-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.ta-card:hover .ta-thumb,
.project-card:hover .ta-thumb {
  transform: scale(1.05);
}

.ta-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ta-card:hover .ta-play-overlay,
.project-card:hover .ta-play-overlay {
  opacity: 1;
}

.ta-play-overlay svg {
  width: 48px;
  height: 48px;
  color: #ffffff;
  filter: drop-shadow(0 2px 10px rgba(255, 255, 255, 0.3));
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform: scale(0.8);
}

.ta-card:hover .ta-play-overlay svg,
.project-card:hover .ta-play-overlay svg {
  transform: scale(1);
}

.ta-card-meta {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* ==========================================
   14. RESPONSIVE MEDIA QUERIES
   ========================================== */
@media (max-width: 1024px) {
  .philosophy-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ta-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}

@media (max-width: 768px) {
  .container {
    padding: 0 32px; /* 모바일 좌우 안전 여백을 넉넉히 확보하여 시각적 답답함 해소 */
  }

  /* Navbar */
  .menu-toggle {
    display: flex;
  }
  .nav-links {
    position: fixed;
    top: -100vh;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    transition: var(--transition-smooth);
    z-index: 999;
  }
  .nav-links.active {
    top: 0;
  }
  .navbar.active .menu-toggle span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .navbar.active .menu-toggle span:nth-child(2) {
    opacity: 0;
  }
  .navbar.active .menu-toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* Hero */
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-actions {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }
  .hero-actions .btn {
    width: 80%;
  }

  /* Philosophy */
  .philosophy-grid {
    grid-template-columns: 1fr;
  }

  /* Tech Grid */
  .tech-grid {
    grid-template-columns: 1fr;
  }

  /* Timeline */
  .timeline::before {
    left: 20px;
  }
  .timeline-item {
    width: 100%;
    padding-left: 50px;
    padding-right: 0;
  }
  .timeline-item:nth-child(odd) {
    text-align: left;
  }
  .timeline-item:nth-child(odd) .timeline-badge,
  .timeline-item:nth-child(even) .timeline-badge {
    left: 10px;
    right: auto;
  }
  .timeline-item:nth-child(even) {
    left: 0;
  }

  /* Projects */
  .projects-grid {
    grid-template-columns: 1fr;
  }

  /* TA Grid */
  .ta-grid {
    grid-template-columns: 1fr;
  }



  /* Awards */
  .awards-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   11.6. OPEN SOURCE LAB DIRECTORY STYLE BLOCK
   ========================================== */
.lab-directory-wrapper {
  margin-top: 70px;
  border-top: 1px solid var(--glass-border);
  padding-top: 55px;
}


.lab-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.lab-search-box {
  position: relative;
  flex-grow: 1;
  max-width: 420px;
  width: 100%;
}

.lab-search-box input {
  width: 100%;
  padding: 12px 18px 12px 42px;
  background: rgba(10, 12, 18, 0.5);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: var(--transition-smooth);
}

.lab-search-box input:focus {
  border-color: var(--accent-orange);
  background: rgba(10, 12, 18, 0.85);
  box-shadow: 0 0 15px rgba(234, 88, 12, 0.2), inset 0 0 8px rgba(234, 88, 12, 0.05);
}

.lab-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  fill: var(--text-muted);
  transition: var(--transition-fast);
  pointer-events: none;
}

.lab-search-box input:focus + .lab-search-icon {
  fill: var(--accent-orange);
}

.lab-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.lab-filter-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  padding: 8px 20px;
  border-radius: 20px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.lab-filter-btn:hover {
  border-color: var(--glass-border-focus);
  color: #ffffff;
}

.lab-filter-btn.active {
  background: #ffffff;
  color: #0a0a0a;
  border-color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.lab-directory-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.dir-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.dir-card:hover {
  transform: translateY(-3px);
  border-color: var(--glass-border-focus);
  box-shadow: 0 10px 25px var(--glass-shadow);
}

.dir-card.hide-item {
  display: none !important;
}

.dir-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 12px;
}

.dir-card-title-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dir-card-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}

.dir-card[data-lab-category="editor"] .dir-card-badge-dot {
  background: var(--accent-purple);
  box-shadow: 0 0 8px var(--accent-purple);
}

.dir-card[data-lab-category="graphics"] .dir-card-badge-dot {
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

.dir-card[data-lab-category="utils"] .dir-card-badge-dot {
  background: var(--accent-orange);
  box-shadow: 0 0 8px var(--accent-orange);
}

.dir-card h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.2px;
}

.dir-link-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.dir-link-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--glass-border-focus);
  color: #ffffff;
  transform: scale(1.05);
}

.dir-link-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.dir-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  font-weight: 300;
  margin-bottom: 18px;
  flex-grow: 1;
}

.dir-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dir-card-tags span {
  font-size: 0.68rem;
  font-weight: 500;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  color: var(--text-muted);
}

/* Responsive adjustment */
@media (max-width: 900px) {
  .lab-directory-grid {
    grid-template-columns: 1fr;
  }
}
