/* ===== CUSTOM PROPERTIES ===== */
:root {
  /* Colors */
  --bg-primary: #0a0a12;
  --bg-secondary: #0f0f1a;
  --bg-card: rgba(15, 15, 30, 0.85);
  --bg-card-hover: rgba(20, 20, 40, 0.95);
  --bg-glass: rgba(15, 20, 40, 0.6);

  --accent: #00e5ff;
  --accent-glow: rgba(0, 229, 255, 0.3);
  --accent-dim: rgba(0, 229, 255, 0.1);
  --accent-secondary: #7c4dff;
  --accent-gradient: linear-gradient(135deg, #00e5ff, #7c4dff);

  --text-primary: #e0e0f0;
  --text-secondary: #8888aa;
  --text-muted: #555570;

  --border: rgba(0, 229, 255, 0.12);
  --border-hover: rgba(0, 229, 255, 0.35);

  /* Shadows */
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(0, 229, 255, 0.15);
  --shadow-glow-strong: 0 0 60px rgba(0, 229, 255, 0.25);

  /* Typography */
  --ff-primary: 'Space Grotesk', 'Segoe UI', sans-serif;
  --ff-display: 'Orbitron', 'Space Grotesk', sans-serif;
  --ff-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.25rem;
  --fs-2xl: 1.5rem;
  --fs-3xl: 2rem;
  --fs-4xl: 2.5rem;
  --fs-5xl: 3.5rem;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Borders */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 50%;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --sidebar-width: 320px;
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--ff-primary);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

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

a:hover {
  color: #7c4dff;
}

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

ul {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

/* ===== ANIMATED BACKGROUND ===== */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ===== LAYOUT ===== */
.main-wrapper {
  display: flex;
  gap: var(--space-2xl);
  max-width: 1300px;
  margin: 0 auto;
  padding: var(--space-2xl);
  position: relative;
  z-index: 1;
}

/* ===== SIDEBAR ===== */
.sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  position: sticky;
  top: var(--space-2xl);
  height: fit-content;
  z-index: 10;
}

.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-md), var(--shadow-glow);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: var(--transition-base);
}

.sidebar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
}

.sidebar-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg), var(--shadow-glow-strong);
}

/* Avatar */
.avatar-wrapper {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto var(--space-lg);
}

.avatar-ring {
  position: absolute;
  inset: -6px;
  border-radius: var(--radius-full);
  background: var(--accent-gradient);
  animation: ring-rotate 4s linear infinite;
  opacity: 0.7;
}

@keyframes ring-rotate {
  to { transform: rotate(360deg); }
}

.avatar-ring::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
}

.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  object-fit: cover;
  position: relative;
  z-index: 2;
  border: 3px solid var(--bg-secondary);
}

/* Status Indicator */
.status-dot {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  background: #00e676;
  border-radius: var(--radius-full);
  border: 3px solid var(--bg-secondary);
  z-index: 3;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.5); }
  50% { box-shadow: 0 0 0 8px rgba(0, 230, 118, 0); }
}

/* Bot Name & Title */
.bot-name {
  font-family: var(--ff-display);
  font-size: var(--fs-2xl);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: var(--space-xs);
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bot-title {
  font-family: var(--ff-mono);
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}

.bot-title .cursor-blink {
  display: inline-block;
  width: 2px;
  height: 16px;
  background: var(--accent);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* Separator */
.separator {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: var(--space-lg) 0;
  position: relative;
}

.separator::after {
  content: '◆';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg-card);
  color: var(--accent);
  padding: 0 var(--space-sm);
  font-size: var(--fs-xs);
}

/* Info List */
.info-list {
  text-align: left;
}

.info-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
}

.info-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border-radius: var(--radius-sm);
  color: var(--accent);
  font-size: var(--fs-lg);
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.info-item:hover .info-icon {
  background: var(--accent);
  color: var(--bg-primary);
  box-shadow: 0 0 20px var(--accent-glow);
}

.info-label {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.info-value {
  font-size: var(--fs-sm);
  color: var(--text-primary);
}

/* Social Links */
.social-links {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.social-link {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: var(--fs-lg);
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-gradient);
  opacity: 0;
  transition: var(--transition-base);
}

.social-link:hover {
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px var(--accent-glow);
}

.social-link:hover::before {
  opacity: 1;
}

.social-link i {
  position: relative;
  z-index: 1;
}

/* ===== MAIN CONTENT ===== */
.main-content {
  flex: 1;
  min-width: 0;
}

/* Navigation */
.navbar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-sm);
  margin-bottom: var(--space-2xl);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  gap: var(--space-xs);
  position: sticky;
  top: var(--space-md);
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.nav-btn {
  flex: 1;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-family: var(--ff-display);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.nav-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-gradient);
  opacity: 0;
  transition: var(--transition-base);
  border-radius: var(--radius-md);
}

.nav-btn:hover {
  color: var(--text-primary);
}

.nav-btn.active {
  color: #fff;
  font-weight: 600;
}

.nav-btn.active::before {
  opacity: 1;
}

.nav-btn span {
  position: relative;
  z-index: 1;
}

/* Sections */
.section {
  display: none;
  animation: fadeSlideIn 0.5s ease forwards;
}

.section.active {
  display: block;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-title {
  font-family: var(--ff-display);
  font-size: var(--fs-3xl);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: var(--space-xs);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--accent-gradient);
  border-radius: 2px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: var(--fs-base);
  margin-bottom: var(--space-2xl);
}

/* ===== ABOUT SECTION ===== */
.about-text {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  margin-bottom: var(--space-2xl);
  backdrop-filter: blur(10px);
  line-height: 1.8;
  color: var(--text-secondary);
  font-size: var(--fs-base);
}

.about-text p + p {
  margin-top: var(--space-md);
}

.highlight {
  color: var(--accent);
  font-weight: 600;
}

/* What I Do */
.services-title {
  font-family: var(--ff-display);
  font-size: var(--fs-lg);
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
  color: var(--text-primary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transition: var(--transition-base);
  transform-origin: left;
}

.service-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
  font-size: var(--fs-2xl);
  transition: var(--transition-base);
}

.service-card:hover .service-icon {
  background: var(--accent);
  color: var(--bg-primary);
  box-shadow: 0 0 25px var(--accent-glow);
}

.service-card h3 {
  font-family: var(--ff-display);
  font-size: var(--fs-base);
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: var(--space-sm);
}

.service-card p {
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  line-height: 1.7;
}

/* ===== CAPABILITIES SECTION ===== */
.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-secondary), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--space-xl);
  padding-left: var(--space-lg);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -34px;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--accent);
  box-shadow: 0 0 15px var(--accent-glow);
}

.timeline-badge {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  color: var(--accent);
  background: var(--accent-dim);
  padding: 2px 12px;
  border-radius: 20px;
  margin-bottom: var(--space-sm);
}

.timeline-item h3 {
  font-family: var(--ff-display);
  font-size: var(--fs-base);
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: var(--space-xs);
}

.timeline-item h4 {
  font-size: var(--fs-sm);
  color: var(--accent);
  font-weight: 500;
  margin-bottom: var(--space-sm);
}

.timeline-item p {
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  line-height: 1.7;
}

/* Skills Bars */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.skill-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: var(--transition-base);
}

.skill-item:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-sm), var(--shadow-glow);
}

.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-sm);
}

.skill-name {
  font-size: var(--fs-sm);
  font-weight: 500;
}

.skill-percent {
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  color: var(--accent);
}

.skill-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: 3px;
  width: 0%;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.skill-fill::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: #fff;
  box-shadow: 0 0 10px var(--accent);
}

/* ===== PROJECTS SECTION ===== */
.filter-bar {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}

.filter-btn {
  padding: var(--space-sm) var(--space-lg);
  border: 1px solid var(--border);
  border-radius: 30px;
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  transition: var(--transition-base);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent);
  color: var(--bg-primary);
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-base);
  position: relative;
}

.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.project-visual {
  height: 180px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.project-visual .visual-bg {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  transition: var(--transition-slow);
}

.project-card:hover .visual-bg {
  opacity: 0.25;
  transform: scale(1.05);
}

.project-info {
  padding: var(--space-lg);
}

.project-tag {
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  color: var(--accent);
  background: var(--accent-dim);
  padding: 2px 10px;
  border-radius: 20px;
  margin-bottom: var(--space-sm);
  display: inline-block;
}

.project-info h3 {
  font-family: var(--ff-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: var(--space-xs);
}

.project-info p {
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  line-height: 1.6;
}

/* ===== TERMINAL / CONTACT SECTION ===== */
.terminal {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  font-family: var(--ff-mono);
  margin-bottom: var(--space-2xl);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
}

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27c93f; }

.terminal-title {
  flex: 1;
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.terminal-body {
  padding: var(--space-lg);
  font-size: var(--fs-sm);
  line-height: 2;
  min-height: 200px;
}

.terminal-line {
  margin-bottom: var(--space-xs);
}

.terminal-prompt {
  color: var(--accent);
}

.terminal-cmd {
  color: var(--text-primary);
}

.terminal-output {
  color: var(--text-secondary);
  padding-left: var(--space-md);
}

.terminal-input-line {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

#terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--ff-mono);
  font-size: var(--fs-sm);
  caret-color: var(--accent);
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  text-align: center;
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transition: var(--transition-base);
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
}

.stat-card:hover::before {
  transform: scaleX(1);
}

.stat-number {
  font-family: var(--ff-display);
  font-size: var(--fs-4xl);
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.stat-label {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  margin-top: var(--space-xs);
}

/* Contact Form */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-2xl);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-input {
  width: 100%;
  padding: var(--space-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--ff-primary);
  font-size: var(--fs-base);
  transition: var(--transition-base);
  outline: none;
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

textarea.form-input {
  resize: vertical;
  min-height: 140px;
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-2xl);
  background: var(--accent-gradient);
  color: var(--bg-primary);
  font-weight: 600;
  font-size: var(--fs-base);
  border-radius: var(--radius-sm);
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.submit-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #7c4dff, #00e5ff);
  opacity: 0;
  transition: var(--transition-base);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

.submit-btn:hover::before {
  opacity: 1;
}

.submit-btn span {
  position: relative;
  z-index: 1;
}

/* ===== MOBILE NAV TOGGLE ===== */
.mobile-nav-toggle {
  display: none;
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--accent-gradient);
  color: var(--bg-primary);
  font-size: var(--fs-xl);
  z-index: 200;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px var(--accent-glow);
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .main-wrapper {
    flex-direction: column;
    padding: var(--space-md);
  }

  .sidebar {
    width: 100%;
    min-width: 100%;
    position: relative;
    top: 0;
  }

  .services-grid,
  .skills-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .navbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    border-radius: 0;
    margin-bottom: 0;
    z-index: 200;
    border: none;
    border-top: 1px solid var(--border);
  }

  .main-content {
    padding-bottom: 70px;
  }
}

@media (max-width: 600px) {
  :root {
    --fs-3xl: 1.5rem;
    --fs-4xl: 2rem;
    --fs-5xl: 2.5rem;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }

  .nav-btn {
    font-size: var(--fs-xs);
    padding: var(--space-sm);
  }
}
