@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --bg-dark: #050508;
  --bg-card: rgba(18, 18, 26, 0.75);
  --bg-card-hover: rgba(26, 26, 38, 0.85);
  --border-glass: rgba(255, 255, 255, 0.12);
  --border-glass-glow: rgba(99, 102, 241, 0.4);
  
  --primary-indigo: #6366f1;
  --secondary-violet: #8b5cf6;
  --accent-pink: #ec4899;
  --accent-emerald: #10b981;
  --accent-gold: #f59e0b;
  
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* Reset & Global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

body {
  position: relative;
  min-height: 100vh;
  background: var(--bg-dark);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #09090e;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-indigo);
}

/* Preloader Overlay */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, #11111a 0%, #050508 100%);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s ease;
}

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

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 420px;
  width: 85%;
  text-align: center;
}

.loader-logo-ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.05);
  border-top-color: var(--primary-indigo);
  border-right-color: var(--secondary-violet);
  animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  margin-bottom: 2rem;
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loader-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.loader-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 2rem;
}

.loader-bar-container {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.loader-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary-indigo), var(--secondary-violet), var(--accent-pink));
  border-radius: 999px;
  transition: width 0.15s ease-out;
  box-shadow: 0 0 12px var(--primary-indigo);
}

.loader-stats {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Canvas Viewport (Fixed Background Layer) */
.viewport-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  overflow: hidden;
  background: #000;
}

#scroll-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.canvas-overlay-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(5, 5, 8, 0.25) 0%, rgba(5, 5, 8, 0.85) 90%);
}

/* Floating Navigation Header */
.main-navbar {
  position: fixed;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1100px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  background: rgba(10, 10, 16, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 999px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

.logo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: color 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-main);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.4rem;
  background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 50%, #6366f1 100%);
  background-size: 200% 200%;
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(236, 72, 153, 0.35);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(236, 72, 153, 0.5);
}

.mobile-toggle-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 5px;
}

.mobile-toggle-btn span {
  width: 22px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: 0.3s;
}

/* Canvas HUD Control Layer */
.hud-layer {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  right: 2rem;
  z-index: 100;
  pointer-events: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.hud-layer * {
  pointer-events: auto;
}

.counter-card {
  background: rgba(10, 10, 16, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 0.85rem 1.2rem;
  min-width: 220px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.counter-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.counter-value {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.counter-value .highlight {
  color: var(--primary-indigo);
}
.counter-value .dim {
  color: var(--text-dim);
}

.hud-progress-bar {
  height: 4px;
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.hud-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary-indigo), var(--secondary-violet));
}

.hud-quick-controls {
  display: flex;
  gap: 0.6rem;
}

.hud-btn {
  background: rgba(10, 10, 16, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.hud-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--primary-indigo);
}

.hud-btn.active {
  background: rgba(99, 102, 241, 0.25);
  border-color: var(--primary-indigo);
  color: #a5b4fc;
}

/* Main Content Layer Overlaid on Canvas */
.content-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
}

/* Common Section Layouts */
section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-glass);
  border-radius: 28px;
  padding: 3.5rem 3rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.glass-card-light {
  background: rgba(245, 245, 250, 0.95);
  color: #0b0b12;
  border-radius: 32px;
  padding: 4rem 3.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  position: relative;
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 2.5rem;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ffffff 0%, #d1d5db 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-title-dark {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 2.5rem;
  text-transform: uppercase;
  color: #050508;
}

/* 1. HERO SECTION */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-top: 8rem;
}

.hero-title {
  font-size: clamp(3.5rem, 9vw, 8.5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  background: linear-gradient(180deg, #ffffff 30%, rgba(255, 255, 255, 0.65) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.hero-subtext-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: rgba(10, 10, 16, 0.6);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  max-width: 650px;
  margin-bottom: 2.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-main);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.subtext-icon {
  font-size: 1.2rem;
}

.scroll-down-hint {
  position: absolute;
  bottom: 3rem;
  left: 2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mouse-icon {
  width: 20px;
  height: 32px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  position: relative;
}

.mouse-wheel {
  width: 4px;
  height: 6px;
  background: var(--primary-indigo);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll-wheel 1.8s ease-in-out infinite;
}

@keyframes scroll-wheel {
  0% { opacity: 1; transform: translate(-50%, 0); }
  75% { opacity: 0; transform: translate(-50%, 12px); }
  100% { opacity: 0; transform: translate(-50%, 0); }
}

/* 2. MARQUEE & PREVIEW CARDS STRIP */
.customers-section {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.marquee-wrapper {
  overflow: hidden;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-bottom: 3rem;
  background: rgba(10, 10, 16, 0.5);
  backdrop-filter: blur(12px);
  border-y: 1px solid var(--border-glass);
  padding: 1.25rem 0;
}

.marquee-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee 25s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.brand-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* Preview Cards Grid */
.preview-cards-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.preview-card {
  height: 220px;
  border-radius: 22px;
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--border-glass);
  background-size: cover;
  background-position: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
}

.preview-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--primary-indigo);
  box-shadow: 0 20px 45px rgba(99, 102, 241, 0.35);
}

.card-fluid-bg { background-image: url('assets/proj_neural.png'); }
.card-character-bg { background-image: url('assets/card_character.png'); }
.card-villa-bg { background-image: url('assets/card_villa.png'); }
.card-cybercar-bg { background-image: url('assets/card_cybercar.png'); }

.card-overlay-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(5, 5, 8, 0.25) 0%, rgba(5, 5, 8, 0.85) 100%);
  pointer-events: none;
  z-index: 1;
}

.card-rating-badge {
  position: relative;
  z-index: 2;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: #fbbf24;
  background: rgba(15, 15, 24, 0.75);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.card-info-content {
  position: relative;
  z-index: 2;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin-bottom: 0.25rem;
}

.card-subtext {
  font-size: 0.75rem;
  color: #d1d5db;
  font-weight: 500;
}

/* 3. ABOUT ME SECTION */
.about-section {
  position: relative;
}

.floating-accent {
  position: absolute;
  font-size: 2.5rem;
  pointer-events: none;
  animation: float3d 6s ease-in-out infinite alternate;
}

.accent-star { top: 1.5rem; right: 2rem; animation-delay: 0s; }
.accent-heart { bottom: 2rem; left: 2rem; animation-delay: 1.5s; }
.accent-gem { top: 3rem; left: 45%; animation-delay: 3s; }
.accent-flower { bottom: 3rem; right: 15%; animation-delay: 4.5s; }

@keyframes float3d {
  0% { transform: translateY(0) rotate(0deg) scale(1); }
  100% { transform: translateY(-20px) rotate(15deg) scale(1.1); }
}

.about-bio-box {
  margin-bottom: 2.5rem;
}

.about-description {
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 900px;
  margin-bottom: 1.5rem;
}

.about-description strong {
  color: var(--text-main);
}

.connect-badges-wrapper {
  margin-bottom: 3rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 1.5rem 2rem;
}

.connect-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.connect-links-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.connect-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid var(--border-glass-glow);
  color: var(--text-main);
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.connect-chip:hover {
  background: var(--primary-indigo);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.stat-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  padding: 1.5rem;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.stat-number {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-indigo);
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}

/* 4. SERVICES SECTION */
.services-section {
  padding-top: 4rem;
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.service-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  padding: 1.5rem 0;
  transition: all 0.3s ease;
}

.service-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.service-num {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 800;
  color: #6b7280;
  margin-right: 1.5rem;
}

.service-name {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  flex: 1;
  color: #0b0b12;
}

.service-toggle {
  background: transparent;
  border: none;
  font-size: 2rem;
  font-weight: 300;
  color: #0b0b12;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.service-item.active .service-toggle {
  transform: rotate(45deg);
}

.service-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
}

.service-item.active .service-content {
  max-height: 250px;
  padding-top: 1rem;
}

.service-content p {
  font-size: 1rem;
  line-height: 1.6;
  color: #4b5563;
  margin-bottom: 1rem;
  max-width: 750px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.service-tags span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: rgba(0, 0, 0, 0.06);
  color: #1f2937;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-weight: 600;
}

/* 5. PROJECTS SHOWCASE SECTION (EVERY IMAGE BOX IS A UNIQUE 3D ARTWORK) */
.projects-header-wrapper {
  margin-bottom: 2.5rem;
}

.projects-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-top: -1.5rem;
  margin-bottom: 2rem;
}

.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.project-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.project-num {
  font-family: var(--font-mono);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--primary-indigo);
}

.project-top-line {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.2rem;
}

.project-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
}

.project-rating-chip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.project-client {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.project-description {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
  max-width: 800px;
}

.btn-live-project {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-live-project:hover {
  background: var(--primary-indigo);
  border-color: var(--primary-indigo);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}

.project-img-box {
  height: 230px;
  border-radius: 20px;
  padding: 1.2rem;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-glass);
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.project-img-box:hover {
  transform: scale(1.03);
  box-shadow: 0 15px 40px rgba(99, 102, 241, 0.35);
}

.img-box-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.75) 100%);
  pointer-events: none;
}

.badge-tag {
  position: relative;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(10, 10, 16, 0.75);
  backdrop-filter: blur(10px);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Distinct Project Gallery Render Backgrounds */
.p1-img1 { background-image: url('assets/proj_neural.png'); }
.p1-img2 { background-image: url('assets/proj_chart.png'); }
.p1-img3 { background-image: url('assets/proj_robot.png'); }

.p2-img1 { background-image: url('assets/proj_quantum.png'); }
.p2-img2 { background-image: url('assets/proj_dna.png'); }
.p2-img3 { background-image: url('assets/proj_city.png'); }

.p3-img1 { background-image: url('assets/proj_city.png'); }
.p3-img2 { background-image: url('assets/card_villa.png'); }
.p3-img3 { background-image: url('assets/card_cybercar.png'); }

.p4-img1 { background-image: url('assets/card_fluid.png'); }
.p4-img2 { background-image: url('assets/proj_refraction.png'); }
.p4-img3 { background-image: url('assets/proj_neural.png'); }

/* 6. TESTIMONIALS SECTION */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}

.rating-stars {
  color: #f59e0b;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
}

.testimonial-quote {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-muted);
  font-style: italic;
}

.client-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.client-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-indigo), var(--secondary-violet));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}

.client-name {
  font-size: 0.9rem;
  font-weight: 800;
}

.client-role {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* 7. CONTACT SECTION */
.contact-container {
  max-width: 900px;
  margin: 0 auto;
}

.contact-floating-torus {
  position: absolute;
  top: 2rem;
  right: 3rem;
  font-size: 3rem;
  animation: float3d 5s ease-in-out infinite alternate;
}

.contact-header {
  margin-bottom: 2.5rem;
}

.contact-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  color: #050508;
  margin-bottom: 0.5rem;
}

.contact-email-link {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-indigo);
  text-decoration: none;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.8);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: #111827;
  outline: none;
  transition: all 0.25s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-indigo);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
  background: #fff;
}

.btn-submit-form {
  align-self: flex-start;
  padding: 0.9rem 2.2rem;
  font-size: 0.9rem;
}

/* 8. FOOTER SECTION */
.main-footer {
  padding-top: 4rem;
  padding-bottom: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-hero-banner {
  margin-bottom: 3rem;
  text-align: center;
}

.footer-title-large {
  font-size: clamp(3rem, 12vw, 10rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.15) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-top: 1rem;
  max-width: 380px;
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  margin-bottom: 1.2rem;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links-list a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.25s ease;
}

.footer-links-list a:hover {
  color: var(--text-main);
}

.footer-contact-item {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.footer-shape-bar {
  display: flex;
  justify-content: space-between;
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.15);
  margin-bottom: 2rem;
  user-select: none;
}

.footer-bottom-bar {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border-glass);
  padding-top: 1.5rem;
}

/* Modal Dialog */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.modal-card {
  max-width: 550px;
  width: 90%;
  text-align: center;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.modal-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.modal-preview-box {
  height: 180px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  border: 1px dashed var(--border-glass);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.modal-3d-sphere {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-indigo), var(--accent-pink));
  animation: pulse-sphere 2s infinite alternate;
}

@keyframes pulse-sphere {
  0% { transform: scale(1); box-shadow: 0 0 10px var(--primary-indigo); }
  100% { transform: scale(1.2); box-shadow: 0 0 30px var(--accent-pink); }
}

/* Toast Notifications */
.toast-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: rgba(16, 185, 129, 0.9);
  backdrop-filter: blur(12px);
  color: #fff;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 30000;
}

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

/* Scroll Reveal Animations */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Responsive Adjustments */
@media (max-width: 900px) {
  .main-navbar {
    width: 95%;
    padding: 0.6rem 1rem;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 4.5rem;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 16, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 1.5rem;
    flex-direction: column;
    gap: 1rem;
  }
  .nav-menu.mobile-open {
    display: flex;
  }
  .mobile-toggle-btn {
    display: flex;
  }
  .footer-content-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .glass-card, .glass-card-light {
    padding: 2rem 1.5rem;
  }
  .hud-layer {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
  }
  .counter-card {
    min-width: 160px;
  }
}
