/* ==========================================================================
   Rabi Nepal 3D Portfolio — Stylesheet
   Full WebGL Integration, Glassmorphism & Responsive System
   ========================================================================== */

:root {
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Dark Theme Palette */
  --bg-primary: #070a12;
  --bg-secondary: #0d1322;
  --bg-tertiary: #151d30;
  --bg-card: rgba(13, 19, 34, 0.72);
  --bg-card-hover: rgba(22, 33, 58, 0.88);

  --text-main: #f0f4fc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --accent-cyan: #06b6d4;
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --accent-green: #10b981;
  --accent-orange: #f97316;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(6, 182, 212, 0.5);

  --gradient-brand: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #8b5cf6 100%);
  --shadow-card: 0 16px 36px rgba(0, 0, 0, 0.5);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-full: 9999px;

  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-tertiary: #e2e8f0;
  --bg-card: rgba(255, 255, 255, 0.82);
  --bg-card-hover: rgba(255, 255, 255, 0.96);

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;

  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(6, 182, 212, 0.6);
  --shadow-card: 0 16px 32px rgba(0, 0, 0, 0.06);
}

/* Base & 3D Canvas */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
}

#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Typography */
.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(7, 10, 18, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition-smooth);
}

[data-theme="light"] .navbar {
  background: rgba(248, 250, 252, 0.85);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-main);
}

.brand-logo-img {
  height: 40px;
  width: 40px;
  border-radius: 8px;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.08) rotate(-3deg);
}

.brand-logo-text {
  font-weight: 800;
  font-size: 1.15rem;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-item {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-item:hover, .nav-item.active {
  color: var(--accent-cyan);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.icon-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.icon-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: rotate(15deg);
}

.hamburger-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.hamburger-btn span {
  width: 22px;
  height: 2px;
  background: var(--text-main);
  transition: 0.3s;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.6rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: var(--gradient-brand);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border-color: var(--border-subtle);
}

.btn-outline:hover {
  border-color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.08);
  transform: translateY(-2px);
}

.btn-ghost {
  background: var(--bg-tertiary);
  color: var(--text-muted);
}

.btn-ghost:hover {
  color: var(--text-main);
  background: var(--bg-secondary);
}

.btn-sm {
  padding: 0.45rem 1.1rem;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 130px 0 80px;
  display: flex;
  align-items: center;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 3.5rem;
}

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1.1rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent-green);
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
}

.status-pulse {
  width: 8px;
  height: 8px;
  background-color: var(--accent-green);
  border-radius: 50%;
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 0.8rem;
}

.typewriter-box {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 1.4rem;
  color: var(--text-muted);
}

.typewriter-text {
  color: var(--accent-cyan);
  font-weight: 700;
}

.cursor {
  color: var(--accent-cyan);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-description {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 580px;
  margin-bottom: 2.2rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.8rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border-subtle);
}

/* 3D Terminal Tilt Card */
.avatar-card {
  position: relative;
  perspective: 1000px;
  display: inline-block;
  width: 100%;
  max-width: 520px;
}

.avatar-inner {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  backdrop-filter: blur(14px);
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
}

.avatar-terminal-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 18px;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid var(--border-subtle);
}

.circle-btn {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.circle-btn.red { background: #ef4444; }
.circle-btn.yellow { background: #f59e0b; }
.circle-btn.green { background: #10b981; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-left: 8px;
}

.avatar-code {
  padding: 1.6rem 1.8rem;
  min-height: 330px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.65;
  background: rgba(10, 13, 20, 0.4);
}

.typing-terminal {
  white-space: pre-wrap;
  font-family: inherit;
}

.c-keyword { color: #f43f5e; font-weight: 600; }
.c-var     { color: #38bdf8; }
.c-prop    { color: #c084fc; }
.c-str     { color: #34d399; }
.c-bool    { color: #fbbf24; font-weight: 600; }
.c-sym     { color: var(--text-main); }

.term-cursor {
  display: inline-block;
  width: 8px;
  height: 1.15em;
  background-color: var(--accent-cyan);
  vertical-align: text-bottom;
  animation: termBlink 0.9s infinite;
}

@keyframes termBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.floating-badge {
  position: absolute;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.55rem 1.15rem;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  z-index: 10;
}

.badge-top-right {
  top: -15px;
  right: -15px;
}

.badge-bottom-left {
  bottom: -15px;
  left: -15px;
}

.text-orange { color: var(--accent-orange); }
.text-green { color: var(--accent-green); }

/* Global Sections */
.section {
  padding: 95px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3.8rem;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-cyan);
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.25;
}

.section-sub {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-top: 0.8rem;
}

/* About Grid */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.lead-text {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 1.2rem;
}

.about-text-col p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.info-meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.chip i { color: var(--accent-cyan); }

.about-cards-col {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.feature-box {
  display: flex;
  gap: 1.2rem;
  padding: 1.4rem;
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: var(--transition-smooth);
}

.feature-box:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  background: var(--bg-card-hover);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.feature-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.feature-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Career Timeline */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-subtle);
}

.timeline-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 2.8rem;
}

.timeline-dot {
  position: absolute;
  left: 12px;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 3px solid var(--accent-cyan);
}

.timeline-item.highlight .timeline-dot {
  background: var(--accent-green);
  border-color: var(--accent-green);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.6);
}

.timeline-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: var(--transition-smooth);
}

.timeline-item.highlight .timeline-card {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.04);
}

.timeline-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.current-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
}

.role-title { font-size: 1.25rem; font-weight: 700; }
.company-name { font-size: 0.95rem; color: var(--text-muted); margin-top: 0.2rem; }

.period-pill {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.08);
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
}

.timeline-description { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1rem; }
.timeline-achievements { list-style: disc; padding-left: 1.2rem; color: var(--text-muted); font-size: 0.9rem; }
.timeline-achievements li { margin-bottom: 0.45rem; }

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.2rem;
}

.tech-tags span {
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--bg-tertiary);
  color: var(--text-muted);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
}

/* Skills Competencies */
.skills-filter-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.8rem;
}

.filter-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--accent-cyan);
  color: #ffffff;
  border-color: var(--accent-cyan);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.4rem;
}

.skill-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  position: relative;
  transition: var(--transition-smooth);
}

.skill-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  background: var(--bg-card-hover);
}

.skill-card.featured {
  border-color: rgba(6, 182, 212, 0.4);
  background: rgba(6, 182, 212, 0.04);
}

.skill-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.skill-meta h4 { font-size: 1rem; font-weight: 700; margin-bottom: 0.2rem; }
.skill-type { font-size: 0.78rem; color: var(--text-dim); }
.skill-badge-pro {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.12);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
}

/* Projects Matrix */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card);
}

.project-thumb {
  position: relative;
  height: 190px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
}

.mock-display {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.mock-topbar {
  display: flex;
  gap: 5px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.25);
}

.mock-topbar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-dim);
  opacity: 0.4;
}

.mock-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.mock-icon {
  font-size: 2.4rem;
  color: var(--accent-cyan);
}

.mock-label {
  font-size: 0.85rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 10, 18, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-smooth);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.btn-inspect {
  font-size: 0.88rem;
  font-weight: 600;
  color: #ffffff;
  background: var(--accent-cyan);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-full);
}

.project-content {
  padding: 1.6rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-cat {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.project-content h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.6rem; }
.project-content p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.4rem; flex: 1; }

.project-tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-tech-badges span {
  font-size: 0.74rem;
  font-family: var(--font-mono);
  background: var(--bg-tertiary);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

/* Contact Section */
.contact-wrapper-centered {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info-card, .contact-form-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2.2rem;
  box-shadow: var(--shadow-card);
}

.info-card-header h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: 0.4rem; }
.info-card-header p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 2rem; }

.direct-methods {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  margin-bottom: 2.5rem;
}

.method-item {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 0.8rem;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.method-item:hover {
  border-color: var(--accent-cyan);
  transform: translateX(4px);
}

.method-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(6, 182, 212, 0.12);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.method-label {
  display: block;
  font-size: 0.74rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.method-value {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
}

.social-heading {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.8px;
  margin-bottom: 0.9rem;
}

.social-links-row {
  display: flex;
  gap: 0.8rem;
}

.social-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition-smooth);
}

.social-btn:hover {
  background: var(--accent-cyan);
  color: #ffffff;
  border-color: var(--accent-cyan);
  transform: translateY(-3px);
}

/* Contact Form */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.form-group {
  margin-bottom: 1.3rem;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  color: var(--text-main);
}

.form-group .req { color: #ef4444; }

.form-group input, .form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: var(--font-main);
  font-size: 0.9rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  outline: none;
  transition: var(--transition-smooth);
}

.form-group input:focus, .form-group textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
}

.error-msg {
  font-size: 0.75rem;
  color: #ef4444;
  margin-top: 0.35rem;
  display: none;
}

.form-group.has-error input, .form-group.has-error textarea {
  border-color: #ef4444;
}

.form-group.has-error .error-msg { display: block; }

.form-feedback {
  margin-top: 1.2rem;
  padding: 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  text-align: center;
  display: none;
}

.form-feedback.success {
  display: block;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent-green);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  padding: 40px 0;
  position: relative;
  z-index: 2;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-copy { font-size: 0.85rem; color: var(--text-dim); }

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-container, .about-grid, .contact-wrapper-centered {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.4rem; }
  .form-row { grid-template-columns: 1fr; }
  .nav-links {
    position: fixed;
    top: 72px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 72px);
    background: var(--bg-primary);
    flex-direction: column;
    padding: 2.5rem 2rem;
    gap: 1.5rem;
    transition: 0.35s ease-in-out;
  }
  .nav-links.open { left: 0; }
  .hamburger-btn { display: flex; }
  .hero-stats { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .stat-divider { display: none; }
  .footer-container { flex-direction: column; text-align: center; }
}
