:root {
  /* Ultra-Premium Brutalist/Monotone Palette */
  --bg: #000000;
  --bg-secondary: #0a0a0a;
  --text-main: #ffffff;
  --text-muted: #808080;
  --border: rgba(255, 255, 255, 0.1);
  --accent: #ffffff;
  --selection: rgba(255, 255, 255, 0.3);

  --font-main: 'Inter', sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
  
  --transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

::selection {
  background: var(--selection);
  color: var(--bg);
}

body {
  background-color: var(--bg);
  color: var(--text-main);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

body.loading, body.modal-open {
  overflow: hidden;
}

/* Loader Styles */
.loader-wrapper {
  position: fixed;
  inset: 0;
  background-color: var(--bg);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3rem;
}

.loader-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
  font-family: var(--font-display);
}

.loader-title {
  font-size: clamp(1rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--text-muted);
}

.loader-counter {
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 700;
  line-height: 0.8;
  color: var(--text-main);
}

.loader-progress {
  width: 0%;
  height: 2px;
  background-color: var(--text-main);
}

/* 3D Web Canvas */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -3;
}

/* Noise Overlay */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -2;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Magnetic Items Custom Cursor overrides */
[data-magnetic] {
  cursor: none;
}

/* Orbital Tracker Cursor */
.cursor-dot {
  width: 12px;
  height: 12px;
  background: var(--text-main);
  /* Make the cursor a space-themed triangle */
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 10000;
}

.cursor-outline {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.4);
  box-shadow: 0 0 20px rgba(255,255,255,0.2), inset 0 0 20px rgba(255,255,255,0.1);
  backdrop-filter: blur(2px);
  mix-blend-mode: difference;
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  transition: width 0.3s cubic-bezier(0.19, 1, 0.22, 1), height 0.3s cubic-bezier(0.19, 1, 0.22, 1), border-color 0.3s, background-color 0.3s;
  animation: orbit-spin 5s linear infinite;
}

.orbit-satellite {
  position: absolute;
  top: -3px; 
  left: 50%;
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 8px white;
}

@keyframes orbit-spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.cursor-dot.magnetic-active {
  transform: translate(-50%, -50%) scale(0);
}
.cursor-outline.magnetic-active {
  width: 64px;
  height: 64px;
  border-color: rgba(255, 255, 255, 0.6);
  background-color: rgba(255, 255, 255, 0.05);
  animation-duration: 1.5s; /* Accelerate orbital spin when locked on target */
}

/* Typography styles */
h1, h2, h3, .logo {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.04em;
}

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

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  mix-blend-mode: difference;
  pointer-events: none;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  pointer-events: auto;
}

.nav-links {
  pointer-events: auto;
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-main);
}

/* Hero Section */
main { padding: 0 5%; }
section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 0;
  position: relative;
  z-index: 1;
}

.hero { justify-content: center; padding-top: 15vh; }
.hero-content {
  max-width: 800px;
}

/* Kinetic Typo Helpers */
.kinetic-text, .kinetic-text-small, .kinetic-text-sub {
  perspective: 1000px;
}
.char {
  display: inline-block;
  transform-origin: center bottom;
}
.word {
  display: inline-block;
  white-space: pre;
}

.greeting {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  display: block;
}

.title {
  font-size: clamp(4rem, 10vw, 8rem);
  line-height: 0.9;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.5rem;
  margin-left: -0.05em; 
  color: #ffffff;
  text-shadow: 0 0 20px rgba(255,255,255,0.5), 0 0 40px rgba(255,255,255,0.2);
}

.subtitle {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 3rem;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.description {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 4rem;
  max-width: 600px;
  line-height: 1.6;
}

.cta-group {
  display: flex;
  gap: 1.5rem;
}

/* Glass Card */
.glass-card {
  position: relative;
  background: rgba(10, 10, 10, 0.4);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 20px;
  padding: 3rem;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

/* Common Section Headers */
.section-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 5rem;
}
.section-header .line {
  flex-grow: 1;
  height: 1px;
  background: var(--border);
}
.section-title {
  font-size: 3rem;
  font-weight: 300;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: -0.04em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1.2rem 2.8rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  border-radius: 100px;
  border: 1px solid transparent;
  transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  overflow: hidden;
  z-index: 1;
}

.btn::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: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
  z-index: -1;
}

.btn:hover::before {
  left: 100%;
  position: relative;
}
.btn-primary {
  background: var(--text-main);
  color: var(--bg);
}
.btn-primary:hover {
  background: #ffffff;
  box-shadow: 0 0 30px rgba(255,255,255,0.6);
  transform: translateY(-5px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-main);
  border-color: var(--border);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
  box-shadow: inset 0 0 20px rgba(255,255,255,0.2);
  transform: translateY(-5px);
}

/* About Section */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.about-text p { font-size: 1.4rem; margin-bottom: 2rem; color: var(--text-muted); line-height: 1.6; }
.about-stats { display: flex; flex-direction: column; gap: 1rem; }
.stat-card {
  padding: 2.5rem; 
  border-radius: 20px; 
  border: 1px solid rgba(255,255,255,0.05);
  background: linear-gradient(135deg, rgba(255,255,255,0.03), transparent);
  backdrop-filter: blur(10px);
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}
.stat-card:hover {
  transform: translateX(10px);
  background: linear-gradient(135deg, rgba(255,255,255,0.08), transparent);
  border-color: rgba(255,255,255,0.2);
  box-shadow: -10px 20px 40px rgba(0,0,0,0.5);
}
.stat-card h3 { font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; margin-bottom: 0.5rem; }
.stat-card p { font-size: 1.5rem; font-weight: 500; color: var(--text-main); }
.stat-card span { font-size: 1rem; color: var(--text-muted); }

/* Skills Section */
.skills-intro { font-size: 1.5rem; color: var(--text-muted); margin-bottom: 4rem; max-width: 600px; }
.skills-container { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 1rem; 
  transform-style: preserve-3d;
  transform: perspective(1000px) rotateX(35deg) rotateZ(-15deg) scale(0.9);
  padding: 3rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 24px;
  box-shadow: -20px 40px 100px rgba(0,0,0,0.6), inset 0 0 0 1px rgba(255,255,255,0.05);
  margin-top: 2rem;
  transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.skills-container:hover {
  transform: perspective(2000px) rotateX(30deg) rotateZ(-10deg) scale(0.95) translateZ(40px);
  box-shadow: 
    -20px 40px 80px rgba(0,0,0,0.9), 
    inset 0 0 0 1px rgba(255,255,255,0.1),
    0 0 40px rgba(255, 255, 255, 0.05);
}

/* Holographic Skill Pills */
.skill-key {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.2rem 2.5rem;
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  cursor: none;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  overflow: hidden;
}

.skill-key::before {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: 0.5s;
}

.skill-key:hover { 
  color: var(--bg); 
  background: var(--text-main);
  border-color: var(--text-main); 
  transform: translateZ(40px) translateY(-15px) rotateX(-10deg);
  box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 20px rgba(255,255,255,0.2);
}

.skill-key:hover::before {
  left: 200%;
}

/* Projects Section (3D Flight Tunnel) */
.projects {
  position: relative;
  width: 100%;
  padding: 0;
}
.projects .section-header {
  position: absolute;
  top: 100px;
  left: 5%;
  right: 5%;
  z-index: 10;
}
.projects .skills-intro {
  position: absolute;
  top: 180px;
  left: 5%;
  right: 5%;
  z-index: 10;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 3rem;
  width: 100%;
}

.project-card {
  background: linear-gradient(180deg, rgba(20,20,25,0.6), rgba(5,5,10,0.8));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
  transform-style: preserve-3d;
}

.project-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent, transparent, rgba(255,255,255,0.05));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.5;
  transition: opacity 0.6s;
  pointer-events: none;
}

.project-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 40px 80px rgba(0,0,0,0.9), 0 0 40px rgba(255,255,255,0.05);
  border-color: rgba(255, 255, 255, 0.15);
}

.project-card:hover::after {
  opacity: 1;
}

.project-card:old-hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.8);
  border-color: rgba(255, 255, 255, 0.3);
}

.project-gallery {
  width: 100%;
  height: 280px;
  overflow-x: auto;
  overflow-y: hidden;
  display: flex;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.project-gallery::-webkit-scrollbar { display: none; }

.gallery-track {
  display: flex;
  height: 100%;
}

.gallery-track img {
  height: 100%;
  width: 100%;
  object-fit: contain;\n  padding: 1.5rem;\n  box-sizing: border-box;
  scroll-snap-align: center;
  flex: 0 0 100%;
}

.project-info {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.project-info h3 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--text-main);
  margin: 0;
  line-height: 1.1;
}

.project-link {
  color: var(--text-muted);
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.95rem;
}

.tech-tags {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin: 0.5rem 0;
}

.tech-tags .tag {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1.2rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  color: var(--text-main);
  letter-spacing: 1px;
}

.project-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.custom-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

/* Massive Project Modal */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 30000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
}

.modal-content {
  position: relative;
  width: 90vw;
  max-width: 1400px;
  height: 85vh;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: 0;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.1);
  transform: translateY(50px);
  will-change: transform, opacity;
}

.modal-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.5);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  cursor: none;
  transition: background 0.3s;
}

.modal-close:hover {
  background: white;
  color: black;
}

.modal-body {
  display: flex;
  height: 100%;
}

.modal-img-container {
  flex: 1.2;
  position: relative;
  overflow: hidden;
  border-right: 1px solid var(--border);
}

.modal-main-img {
  width: 100%;
  height: 100%;
  object-fit: contain;\n  padding: 1.5rem;\n  box-sizing: border-box;
  filter: grayscale(100%) contrast(1.2);
}

.modal-info {
  flex: 1;
  padding: 5rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(10, 10, 10, 0.95);
}

.modal-category {
  font-size: 1rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

.modal-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
  margin-bottom: 2rem;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.modal-tags span { 
  padding: 0.8rem 1.5rem; 
  border-radius: 100px; 
  border: 1px solid var(--border); 
  font-size: 0.9rem; 
  color: var(--text-main); 
  text-transform: uppercase;
}

.modal-desc {
  font-size: 1.4rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 4rem;
}

.modal-link {
  align-self: flex-start;
  margin-bottom: 0;
}

@media (max-width: 1024px) {
  .modal-body { flex-direction: column; }
  .modal-img-container { flex: 0.6; border-right: none; border-bottom: 1px solid var(--border); }
  .modal-info { padding: 3rem 2rem; }
  .modal-title { font-size: 2.5rem; }
  .project-content { flex-direction: column; align-items: flex-start; gap: 2rem; }
}

/* Contact Section */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.contact-info { text-align: left; }
.kinetic-text-small { font-size: clamp(2rem, 6vw, 3rem); font-weight: 700; text-transform: uppercase; margin-bottom: 1rem; line-height: 1.1; }
.contact-info p { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 2rem; }
.btn-huge { font-size: 1.2rem; padding: 1.2rem 3rem; margin-bottom: 2rem; }
.social-links { display: flex; flex-direction: column; gap: 1rem; }
.social-icon {
  display: flex; align-items: center; justify-content: flex-start; gap: 1.5rem;
  color: var(--text-main); padding: 1.2rem 2rem; border-radius: 12px;
  border: 1px solid var(--border); background: rgba(255,255,255,0.02);
}
.social-icon i { width: 24px; height: 24px; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  justify-content: center;
}

.input-group {
  position: relative;
  width: 100%;
}

.input-group input, .input-group textarea {
  width: 100%;
  padding: 1.5rem 0 0.5rem;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--text-muted);
  font-family: var(--font-main);
  color: var(--text-main);
  font-size: 1.1rem;
  outline: none;
  transition: var(--transition);
  cursor: none;
}

.input-group input:focus, .input-group textarea:focus {
  border-bottom-color: var(--accent);
}

.input-group label {
  position: absolute;
  left: 0;
  top: 1.2rem;
  color: var(--text-muted);
  transition: 0.3s ease all;
  pointer-events: none;
  font-size: 1.1rem;
}

.input-group input:focus ~ label, .input-group input:not(:placeholder-shown) ~ label,
.input-group textarea:focus ~ label, .input-group textarea:not(:placeholder-shown) ~ label {
  top: -0.5rem;
  font-size: 0.8rem;
  color: var(--accent);
}


/* Quick overrides for modal transitions */
.project-modal {
  /* This was old, replaced by project-hud */
  display: none;
}

/* Full Screen Project HUD (In-Warp Modal) */
.project-hud {
  position: fixed;
  inset: 0;
  z-index: 50000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(0px);
  transition: opacity 0.5s ease, backdrop-filter 0.5s ease;
}

.project-hud.active {
  pointer-events: auto;
  opacity: 1;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

#close-hud-btn { position: fixed; top: 2rem; right: 2rem; padding: 0.75rem 1.5rem; border-radius: 8px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(10, 10, 15, 0.6); z-index: 999999; cursor: none; transition: all 0.3s ease; }

#close-hud-btn:hover {
  background: white;
  color: black;
  transform: scale(1.1);
}

.hud-main {
  width: 85vw;
  max-width: 1100px;
  height: auto;
  min-height: 480px;
  display: flex;
  flex-direction: row;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(10, 10, 15, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 40px 100px rgba(0,0,0,0.8), inset 0 0 0 1px rgba(255,255,255,0.05);
  transform: scale(0.95) translateY(20px);
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.project-hud.active .hud-main {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.hud-info {
  flex: 1;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid rgba(255,255,255,0.1);
  background: linear-gradient(135deg, rgba(20,20,25,0.9), rgba(5,5,10,0.9));
}

.hud-info h2 {
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 1;
  margin-bottom: 2rem;
  text-transform: uppercase;
  color: var(--text-main);
}

.hud-info .deploy-btn {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 2rem;
  background: rgba(255,255,255,0.05);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 1rem;
  text-decoration: none;
  color: var(--accent);
  margin-bottom: 3rem;
  align-self: flex-start;
  transition: all 0.3s;
}

.hud-info .deploy-btn:hover {
  background: var(--text-main);
  color: var(--bg);
  box-shadow: 0 0 20px rgba(255,255,255,0.5);
}

.hud-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hud-tags span {
  padding: 0.6rem 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hud-gallery {
  flex: 1.2;
  position: relative;
  overflow: hidden;
}

.hud-gallery-track {
  position: absolute;
  inset: 0;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.hud-gallery-track::-webkit-scrollbar { display: none; }

.hud-gallery-track img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  padding: 1.5rem;
  box-sizing: border-box;
  flex: 0 0 100%;
  scroll-snap-align: center;
  filter: saturate(1.2) contrast(1.1);
}

@media (max-width: 1024px) {
  .modal-body { flex-direction: column; }
  .modal-img-container { flex: 0.6; border-right: none; border-bottom: 1px solid var(--border); }
  .modal-info { padding: 3rem 2rem; }
  .modal-title { font-size: 2.5rem; }
  .project-content { flex-direction: column; align-items: flex-start; gap: 2rem; }
}

/* Contact Section */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.contact-info { text-align: left; }
.kinetic-text-small { font-size: clamp(2rem, 6vw, 3rem); font-weight: 700; text-transform: uppercase; margin-bottom: 1rem; line-height: 1.1; }
.contact-info p { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 2rem; }
.btn-huge { font-size: 1.2rem; padding: 1.2rem 3rem; margin-bottom: 2rem; }
.social-links { display: flex; flex-direction: column; gap: 1rem; }
.social-icon {
  display: flex; align-items: center; justify-content: flex-start; gap: 1.5rem;
  color: var(--text-main); padding: 1.2rem 2rem; border-radius: 12px;
  border: 1px solid var(--border); background: rgba(255,255,255,0.02);
}
.social-icon i { width: 24px; height: 24px; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  justify-content: center;
}

.input-group {
  position: relative;
  width: 100%;
}

.input-group input, .input-group textarea {
  width: 100%;
  padding: 1.5rem 0 0.5rem;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--text-muted);
  font-family: var(--font-main);
  color: var(--text-main);
  font-size: 1.1rem;
  outline: none;
  transition: var(--transition);
  cursor: none;
}

.input-group input:focus, .input-group textarea:focus {
  border-bottom-color: var(--accent);
}

.input-group label {
  position: absolute;
  left: 0;
  top: 1.2rem;
  color: var(--text-muted);
  transition: 0.3s ease all;
  pointer-events: none;
  font-size: 1.1rem;
}

.input-group input:focus ~ label, .input-group input:not(:placeholder-shown) ~ label,
.input-group textarea:focus ~ label, .input-group textarea:not(:placeholder-shown) ~ label {
  top: -0.5rem;
  font-size: 0.8rem;
  color: var(--accent);
}


/* Quick overrides for modal transitions */
.project-modal {
  /* This was old, replaced by project-hud */
  display: none;
}

/* Full Screen Project HUD (In-Warp Modal) */
.project-hud {
  position: fixed;
  inset: 0;
  z-index: 50000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(0px);
  transition: opacity 0.5s ease, backdrop-filter 0.5s ease;
}

.project-hud.active {
  pointer-events: auto;
  opacity: 1;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

#close-hud-btn { position: fixed; top: 2rem; right: 2rem; padding: 0.75rem 1.5rem; border-radius: 8px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(10, 10, 15, 0.6); z-index: 999999; cursor: none; transition: all 0.3s ease; }

#close-hud-btn:hover {
  background: white;
  color: black;
  transform: scale(1.1);
}

.hud-main {
  width: 85vw;
  max-width: 1100px;
  height: auto;
  min-height: 480px;
  display: flex;
  flex-direction: row;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(10, 10, 15, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 40px 100px rgba(0,0,0,0.8), inset 0 0 0 1px rgba(255,255,255,0.05);
  transform: scale(0.95) translateY(20px);
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.project-hud.active .hud-main {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.hud-info {
  flex: 1;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid rgba(255,255,255,0.1);
  background: linear-gradient(135deg, rgba(20,20,25,0.9), rgba(5,5,10,0.9));
}

.hud-info h2 {
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 1;
  margin-bottom: 2rem;
  text-transform: uppercase;
  color: var(--text-main);
}

.hud-info .deploy-btn {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 2rem;
  background: rgba(255,255,255,0.05);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 1rem;
  text-decoration: none;
  color: var(--accent);
  margin-bottom: 3rem;
  align-self: flex-start;
  transition: all 0.3s;
}

.hud-info .deploy-btn:hover {
  background: var(--text-main);
  color: var(--bg);
  box-shadow: 0 0 20px rgba(255,255,255,0.5);
}

.hud-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hud-tags span {
  padding: 0.6rem 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  scroll-snap-align: center;
  filter: saturate(1.2) contrast(1.1);
}

@media (max-width: 1024px) {
  .hud-main { flex-direction: column; }
  min-height: 480px;
  display: flex;
  flex-direction: row;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(10, 10, 15, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 40px 100px rgba(0,0,0,0.8), inset 0 0 0 1px rgba(255,255,255,0.05);
  transform: scale(0.95) translateY(20px);
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.project-hud.active .hud-main {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.hud-info {
  flex: 1;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid rgba(255,255,255,0.1);
  background: linear-gradient(135deg, rgba(20,20,25,0.9), rgba(5,5,10,0.9));
}

.hud-info h2 {
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 1;
  margin-bottom: 2rem;
  text-transform: uppercase;
  color: var(--text-main);
}

.hud-info .deploy-btn {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 2rem;
  background: rgba(255,255,255,0.05);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 1rem;
  text-decoration: none;
  color: var(--accent);
  margin-bottom: 3rem;
  align-self: flex-start;
  transition: all 0.3s;
}

.hud-info .deploy-btn:hover {
  background: var(--text-main);
  color: var(--bg);
  box-shadow: 0 0 20px rgba(255,255,255,0.5);
}

.hud-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hud-tags span {
  padding: 0.6rem 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  scroll-snap-align: center;
  filter: saturate(1.2) contrast(1.1);
}

@media (max-width: 1024px) {
  .hud-main { flex-direction: column; }
  .hud-info { flex: 1; padding: 2.5rem; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .hud-gallery { flex: 1.5; }
}

/* Responsive Overrides */
@media (max-width: 1024px) {
  .projects-grid { flex-direction: column; height: auto; }
  .project-card { height: 350px; flex: none; }
  .project-card:hover { flex: none; }
  .project-content { transform: translateY(0); opacity: 1; padding: 2rem; flex-direction: row; }
  
  .contact-grid { grid-template-columns: 1fr; }
  .modal-body { flex-direction: column; }
  .modal-img-container { flex: 0.6; border-right: none; border-bottom: 1px solid var(--border); }
  .modal-info { padding: 3rem 2rem; }
  .modal-title { font-size: 2.5rem; }
}

@media (max-width: 768px) {
  .nav-links { gap: 1rem; flex-wrap: wrap; justify-content: center; }
  .about-grid { grid-template-columns: 1fr; }
  .hero-content { padding-top: 5vh; }
  .title { font-size: 3.5rem; }
  .glass-card { padding: 1.5rem; }
}

/* Footer */
footer { text-align: center; padding: 3rem 5%; color: var(--text-muted); font-size: 0.9rem; border-top: 1px solid var(--border); }

/* ---------- PROJECT DRAWER (ORBITAL UI) ---------- */
.project-drawer {
  display: flex;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(10, 10, 15, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-right: none;
  box-shadow: -10px 0 30px rgba(0,0,0,0.5);
  transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.6s ease, right 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.drawer-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.8rem 1rem;
  color: var(--text-main);
  font-family: var(--font-main);
  text-align: left;
  cursor: pointer;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.drawer-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), transparent);
  transition: left 0.4s ease;
}

.drawer-btn:hover::before, .drawer-btn.active::before {
  left: 100%;
}

.drawer-btn:hover, .drawer-btn.active {
  border-color: rgba(0, 255, 255, 0.4);
  background: rgba(0, 255, 255, 0.05);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.1) inset;
  color: #fff;
  padding-left: 1.5rem;
}
