/* Modern Design System */
:root {
  /* Fonts */
  --font-sans: 'JetBrains Mono', 'Outfit', 'Inter', system-ui, -apple-system, monospace;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Colors - Dark Theme Default (Restored Original) */
  --color-bg: #0d1117;
  --color-bg-alt: #101823;
  --color-surface: rgba(22, 27, 34, 0.7); /* Matches original panel dark bg */
  --color-surface-hover: rgba(255, 255, 255, 0.05);
  --color-border: #30363d;
  
  --color-text: #e6edf3;
  --color-text-dim: #9aa4b1;
  
  --color-primary: #00f2ff; /* Keeping new accents */
  --color-secondary: #7000ff;
  --color-accent: #00f2ff;
  
  --gradient-main: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  --gradient-glow: radial-gradient(circle at center, rgba(0, 242, 255, 0.15), transparent 70%);

  /* Spacing & Radius */
  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 24px;
  
  /* Effects */
  --backdrop-blur: blur(12px);
  --shadow-glow: 0 0 20px rgba(0, 242, 255, 0.2);
  
  color-scheme: dark;
}

/* Reset & Base */
* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  /* Restored Dark Background */
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Background Canvas */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
  color: #fff;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.02em;
  background: linear-gradient(to right, #fff, #a1a1aa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  position: relative;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--gradient-main);
  border-radius: 2px;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #fff;
}

/* Layout */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 0.5rem 2rem; /* Reduced padding */
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: var(--backdrop-blur);
  border-bottom: 1px solid var(--color-border);
  height: 60px; /* Fixed compact height */
}

.logo-svg {
  height: 32px;
  width: auto;
  color: #fff;
  transition: all 0.3s ease;
}

.name:hover .logo-svg {
  color: #fff;
  filter: drop-shadow(0 0 4px #D60270) drop-shadow(0 0 8px #9B4F96) drop-shadow(0 0 12px #0038A8);
}

.site-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem 4rem; /* Adjusted top padding */
  position: relative;
}

/* Navigation */
.main-nav ul {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--color-text-dim);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-s);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
}

.main-nav a:hover {
  color: #fff;
  background: var(--color-surface-hover);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-s);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.btn.primary {
  background: var(--color-primary);
  color: #000;
  box-shadow: 0 0 15px rgba(0, 242, 255, 0.3);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(0, 242, 255, 0.5);
}

.btn.ghost {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-text);
}

.btn.ghost:hover {
  background: var(--color-surface-hover);
  border-color: var(--color-text);
}

.panel {
  background: var(--color-surface);
  backdrop-filter: var(--backdrop-blur);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-l);
  padding: 2.5rem;
  margin-bottom: 3rem;
  transition: transform 0.3s ease, border-color 0.3s;
}

.panel:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 3px solid var(--color-primary);
  padding: 5px;
  background: linear-gradient(135deg, rgba(0,242,255,0.2), rgba(112,0,255,0.2));
  margin-bottom: 1rem;
  object-fit: cover;
}

.tagline {
  font-size: 1.25rem;
  color: var(--color-text-dim);
  max-width: 600px;
}

/* Skills */
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  list-style: none;
}

.skill-tags li {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.skill-tags li:hover {
  background: rgba(0, 242, 255, 0.1);
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  padding: 2rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-primary);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.project-card h3 {
  font-size: 1.5rem;
  color: #fff;
}

/* Contact */
.contact-list {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin-top: 1rem;
}

.contact-list a {
  font-size: 1.1rem;
  opacity: 0.8;
}

.contact-list a:hover {
  opacity: 1;
  text-shadow: 0 0 10px var(--color-primary);
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 2rem;
  color: var(--color-text-dim);
  border-top: 1px solid var(--color-border);
  background: #050505;
}

/* Responsive */
/* Responsive */
/* Menu Toggle (Hidden on Desktop) */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 102;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  position: relative;
  transition: all 0.3s ease-in-out;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: #fff;
  left: 0;
  transition: all 0.3s ease-in-out;
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

/* Menu Open State Animation */
.menu-open .hamburger { background: transparent; }
.menu-open .hamburger::before { transform: rotate(45deg); top: 0; }
.menu-open .hamburger::after { transform: rotate(-45deg); top: 0; }

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .site-header {
    padding: 0.5rem 1.5rem;
    height: 60px;
    justify-content: flex-start; /* Changed from space-between */
    gap: 1rem;
  }

  .site-header .brand {
    margin-right: auto; /* Pushes everything else to the right */
    margin-bottom: 0;
  }

  /* Mobile Navigation Overlay */
  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 101;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s;
    visibility: hidden;
  }

  .main-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  
  .main-nav a {
    font-size: 1.5rem;
    padding: 0.5rem 1rem;
    display: block;
  }

  .header-actions {
    position: relative;
    top: auto;
    right: auto;
    margin-right: 0; /* Removed extra margin */
  }

  .site-main {
    padding: 8rem 1rem 4rem; /* More top padding for taller header */
  }
  
  .panel {
    padding: 1.5rem; /* Reduced panel padding */
  }

  .contact-list {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  
  h1 {
    font-size: 2.5rem;
  }

  .hero-avatar {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 480px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .main-nav a {
    font-size: 0.85rem;
    padding: 0.4rem 0.6rem; /* Even smaller padding */
  }
}
