/* ═════════════════════════════════════════════════════════════════
   DIYA PARIKH TERMINAL PORTFOLIO — STYLESHEET
   Terminal/Pixel Aesthetic Design Inspired by Greeva Patel Portfolio
═════════════════════════════════════════════════════════════════ */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0e27;
  --bg-alt: #0f1535;
  --border: #1a2952;
  --accent: #00d4ff;
  --accent2: #ff006e;
  --accent3: #00ff88;
  --text: #e0e6ff;
  --muted: #8892b0;
  --font-mono: 'IBM Plex Mono', 'Space Mono', monospace;
  --font-display: 'Azeret Mono', monospace;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
  overflow-x: hidden;
  letter-spacing: 0.5px;
}

::selection { background: var(--accent); color: var(--bg); }

/* ──────────────────────────────────────── */
/*  GLOBAL ELEMENTS                         */
/* ──────────────────────────────────────── */

.scanlines {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    rgba(0,212,255,0.015),
    rgba(0,212,255,0.015) 1px,
    transparent 1px,
    transparent 2px
  );
}

#scrollProgress {
  position: fixed; top: 0; left: 0; z-index: 998;
  height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent2), var(--accent3));
  box-shadow: 0 0 10px var(--accent);
  transition: width 0.1s linear;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

.cursor-blink { animation: blink 0.8s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

code { 
  background: rgba(0,212,255,0.1); 
  padding: 2px 6px; 
  border-radius: 3px;
  color: var(--accent3);
  font-size: 0.9em;
}

a { color: var(--accent); text-decoration: none; transition: all 0.3s; }
a:hover { color: var(--accent2); text-shadow: 0 0 8px var(--accent2); }

/* ──────────────────────────────────────── */
/*  NAVBAR                                  */
/* ──────────────────────────────────────── */

.terminal-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  padding: 0;
}

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto; padding: 16px 40px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 700;
  color: var(--accent);
  letter-spacing: 2px;
}

.prefix { display: none; color: var(--muted); font-weight: 400; }

.nav-links {
  display: flex; gap: 32px; list-style: none; align-items: center;
}

.nav-links a {
  font-size: 13px; text-transform: lowercase;
  color: var(--muted); transition: all 0.2s;
  position: relative;
}

.bracket { color: var(--accent2); opacity: 0; transition: opacity 0.2s; }
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover .bracket { opacity: 1; }

.burger { 
  display: none; 
  flex-direction: column; 
  gap: 5px; 
  background: transparent; 
  border: none; 
  cursor: pointer;
  padding: 10px 8px;
  z-index: 1001;
  align-items: center;
  justify-content: center;
}
.burger span { 
  width: 22px; 
  height: 2.5px; 
  background: var(--text); 
  border-radius: 2px; 
  transition: all 0.3s ease;
  display: block;
}
.burger:active, .burger:focus { outline: none; }
.burger.open span:nth-child(1) { transform: rotate(45deg) translate(7px, 8px); }
.burger.open span:nth-child(2) { opacity: 0; width: 0; }
.burger.open span:nth-child(3) { transform: rotate(-45deg) translate(6px, -8px); }

.nav-links.mobile-open {
  display: flex !important;
  flex-direction: column;
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 20px;
  gap: 16px;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.1);
  border: 1px solid var(--border);
}

.nav-links.mobile-open li {
  width: 100%;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.nav-links.mobile-open li:last-child {
  border-bottom: none;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.mobile-open { display: flex !important; }
  .burger { display: flex; }
  .nav-inner { padding: 12px 20px; }
}

/* ──────────────────────────────────────── */
/*  HERO SECTION                            */
/* ──────────────────────────────────────── */

.hero-terminal {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 20px 50px;
  overflow: hidden;
  text-align: center;
}

#particleCanvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none;
}

.hero-scanlines {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.3) 2px,
    rgba(0,0,0,0.3) 4px
  );
  pointer-events: none; z-index: 1;
}

.hero-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; gap: 28px;
  max-width: 98%;
  margin: 0 auto;
  width: 100%;
}

.glitch-text-container {
  overflow: visible;
  height: auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0;
}

.hero-glitch {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 12vw, 7rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  position: relative;
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: auto;
  justify-content: center;
  align-items: center;
  animation: fullCycle 8s linear infinite;
  width: 100%;
  max-width: 100%;
  word-break: break-word;
  padding: 0 10px;
}

.glitch-line {
  position: relative;
  white-space: normal;
  display: block;
  text-align: center;
  font-weight: 700;
  max-width: 100vw;
  word-spacing: 0.1em;
}

.glitch-line:nth-child(1) {
  animation: textCycle1 8s linear infinite;
}

.glitch-line:nth-child(2) {
  animation: textCycle2 8s linear infinite;
}

@keyframes textCycle1 {
  0% {
    color: #06b6d4;
    text-shadow: 0 0 10px #06b6d4, 0 0 20px #06b6d4, 0 0 30px #006688;
  }
  25% {
    color: #8b5cf6;
    text-shadow: 0 0 15px #8b5cf6, 0 0 30px #8b5cf6, 0 0 45px #4c2d7f;
  }
  50% {
    color: #ff006e;
    text-shadow: 0 0 20px #ff006e, 0 0 40px #ff006e, 0 0 60px #990044;
  }
  75% {
    color: #00ff88;
    text-shadow: 0 0 15px #00ff88, 0 0 30px #00ff88, 0 0 45px #008844;
  }
  100% {
    color: #06b6d4;
    text-shadow: 0 0 10px #06b6d4, 0 0 20px #06b6d4, 0 0 30px #006688;
  }
}

@keyframes textCycle2 {
  0% {
    color: #ff006e;
    text-shadow: 0 0 20px #ff006e, 0 0 40px #ff006e, 0 0 60px #990044;
  }
  25% {
    color: #00ff88;
    text-shadow: 0 0 15px #00ff88, 0 0 30px #00ff88, 0 0 45px #008844;
  }
  50% {
    color: #06b6d4;
    text-shadow: 0 0 10px #06b6d4, 0 0 20px #06b6d4, 0 0 30px #006688;
  }
  75% {
    color: #8b5cf6;
    text-shadow: 0 0 15px #8b5cf6, 0 0 30px #8b5cf6, 0 0 45px #4c2d7f;
  }
  100% {
    color: #ff006e;
    text-shadow: 0 0 20px #ff006e, 0 0 40px #ff006e, 0 0 60px #990044;
  }
}

@keyframes fullCycle {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.name-accent { color: inherit; text-shadow: inherit; }

.hero-subtitle {
  font-size: 18px; color: var(--muted); letter-spacing: 1px;
  animation: fadeInUp 0.8s 0.4s both;
}

.prompt { color: var(--accent3); margin-right: 8px; }

.hero-cords {
  display: flex; flex-direction: column; gap: 8px;
  font-size: 13px; color: var(--muted); opacity: 0.8;
  animation: fadeInUp 0.8s 0.6s both;
}

.cord-line { letter-spacing: 1px; }

.hero-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s 0.8s both;
  padding-top: 16px;
  max-width: 100%;
  width: 100%;
}

@media (max-width: 768px) {
  .hero-buttons {
    gap: 6px;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
  }
}

.terminal-btn {
  padding: 12px 20px;
  border: 1.5px solid var(--accent);
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: clamp(11px, 2vw, 13px);
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  min-width: fit-content;
}

@media (max-width: 480px) {
  .terminal-btn {
    padding: 8px 11px;
    font-size: 10px;
    white-space: nowrap;
    min-width: auto;
    flex-shrink: 0;
  }
  .terminal-btn i {
    display: none;
  }
  .hero-buttons {
    gap: 5px;
  }
}

.terminal-btn::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--accent); z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.terminal-btn:hover::before { transform: scaleX(1); }
.terminal-btn:hover { color: var(--bg); box-shadow: 0 0 20px var(--accent); }

.btn-primary { border-color: var(--accent2); }
.btn-primary::before { background: var(--accent2); }
.btn-primary:hover { color: var(--bg); box-shadow: 0 0 20px var(--accent2); }

.btn-secondary { border-color: var(--accent); }
.btn-secondary::before { background: var(--accent); }

.btn-border { opacity: 0.6; }

.email-display {
  font-size: 14px;
  color: var(--accent);
  text-align: center;
  letter-spacing: 1px;
  margin-top: 12px;
  animation: fadeInUp 0.8s 1s both;
}

.scroll-hint {
  position: absolute; bottom: 40px; font-size: 12px;
  color: var(--muted); letter-spacing: 1px; animation: bounce 2s infinite;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ──────────────────────────────────────── */
/*  SECTION STYLING                         */
/* ──────────────────────────────────────── */

.section-terminal {
  padding: 100px 0;
  position: relative;
  border-top: 1px solid var(--border);
}

.section-alt { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%); }

.section-header-path {
  font-family: var(--font-display);
  font-size: 12px; color: var(--muted);
  letter-spacing: 1px; margin-bottom: 16px;
  padding-left: 20px;
}

.section-header-path::before {
  content: '$ '; color: var(--accent3);
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.5rem; font-weight: 700;
  color: var(--accent); margin-bottom: 60px;
  letter-spacing: 2px; text-transform: uppercase;
}

/* ──────────────────────────────────────── */
/*  ABOUT SECTION                           */
/* ──────────────────────────────────────── */

.about-grid {
  display: grid; grid-template-columns: 350px 1fr;
  gap: 60px; align-items: start;
}

.system-specs {
  background: rgba(0,212,255,0.05);
  border: 1px solid var(--border);
  padding: 24px; border-radius: 4px;
  font-size: 13px;
}

.spec-title {
  color: var(--accent);  font-weight: 700;
  margin-bottom: 16px; letter-spacing: 1px;
}

.spec-item {
  display: flex; justify-content: space-between;
  padding: 8px 0; border-bottom: 1px solid rgba(0,212,255,0.1);
}

.spec-item:last-child { border-bottom: none; }

.spec-key {
  color: var(--muted); font-weight: 500;
}

.spec-value {
  color: var(--accent3); font-weight: 600;
}

.about-description {
  font-size: 14px; line-height: 1.8; color: var(--text);
}

.about-description p { margin-bottom: 12px; }
.about-description strong { color: var(--accent3); }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* ──────────────────────────────────────── */
/*  TIMELINE / EXPERIENCE                   */
/* ──────────────────────────────────────── */

.timeline {
  position: relative; padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; background: var(--accent);
}

.timeline-item {
  position: relative; margin-bottom: 40px;
  display: flex; gap: 20px;
}

.timeline-marker {
  position: absolute; left: -28px; top: 4px;
  width: 16px; height: 16px;
  background: var(--accent); border-radius: 50%;
  font-size: 10px; display: flex; align-items: center; justify-content: center;
  color: var(--bg); font-weight: 700;
}

.timeline-content h3 {
  font-size: 18px; color: var(--accent); margin-bottom: 4px;
  font-family: var(--font-display); text-transform: uppercase;
}

.role-meta {
  font-size: 12px; color: var(--muted); margin-bottom: 12px;
  letter-spacing: 1px;
}

.role-bullets {
  list-style: none; font-size: 13px; color: var(--text); line-height: 1.8;
}

.role-bullets li::before {
  content: '→ '; color: var(--accent3); margin-right: 8px;
}

/* ──────────────────────────────────────── */
/*  SKILLS SECTION                          */
/* ──────────────────────────────────────── */

.skills-categories {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 40px;
}

.skill-category {
  background: rgba(0,212,255,0.03);
  border: 1px solid var(--border);
  padding: 28px; border-radius: 4px;
  transition: all 0.3s;
}

.skill-category:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(0,212,255,0.1);
}

.category-title {
  font-size: 14px; font-weight: 700; color: var(--accent);
  margin-bottom: 24px; letter-spacing: 1px; text-transform: uppercase;
}

.folder-icon { margin-right: 8px; }

.skills-list { display: flex; flex-direction: column; gap: 16px; }

.skill-item {
  display: flex; flex-direction: column; gap: 6px;
}

.skill-name {
  font-size: 13px; font-weight: 600; color: var(--text);
}

.skill-bar {
  height: 6px; background: rgba(0,212,255,0.1);
  border: 1px solid var(--border); border-radius: 99px;
  overflow: hidden;
}

.skill-level {
  height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent3));
  width: var(--level); border-radius: 99px;
  display: flex; align-items: center;
  transition: width 1.2s ease-out;
}

.level-text {
  font-size: 9px; color: var(--bg); font-weight: 700;
  margin-left: 6px; white-space: nowrap;
}

/* ──────────────────────────────────────── */
/*  PROJECTS GRID                           */
/* ──────────────────────────────────────── */

.projects-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 28px;
}

.project-card {
  background: rgba(0,212,255,0.04);
  border: 1px solid var(--border);
  padding: 28px; border-radius: 4px;
  transition: all 0.3s;
  display: flex; flex-direction: column; gap: 16px;
  position: relative; overflow: hidden;
}

.project-card::after {
  content: '';
  position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: rgba(0,212,255,0.02);
  transition: left 0.4s;
}

.project-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(0,212,255,0.2);
}

.project-card:hover::after { left: 100%; }

.project-tag {
  display: inline-block;
  background: rgba(0,255,136,0.15);
  border: 1px solid var(--accent3);
  color: var(--accent3);
  font-size: 10px; font-weight: 600;
  padding: 4px 10px; border-radius: 2px;
  text-transform: uppercase; letter-spacing: 1px;
  width: fit-content;
  position: relative; z-index: 1;
}

.project-card h3 {
  color: var(--accent); font-family: var(--font-display);
  font-size: 16px; text-transform: uppercase; letter-spacing: 1px;
  position: relative; z-index: 1;
}

.project-card p {
  color: var(--muted); font-size: 13px; line-height: 1.7;
  position: relative; z-index: 1; flex: 1;
}

.project-tech {
  display: flex; flex-wrap: wrap; gap: 8px; position: relative; z-index: 1;
}

.tech {
  background: rgba(0,212,255,0.1);
  border: 1px solid rgba(0,212,255,0.3);
  color: var(--accent);
  padding: 4px 8px; font-size: 11px; border-radius: 2px;
  font-family: var(--font-mono); text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent); font-size: 12px;
  border: 1px solid var(--accent); padding: 6px 12px;
  border-radius: 2px; transition: all 0.3s;
  position: relative; z-index: 1;
  text-transform: uppercase; letter-spacing: 0.5px;
}

.project-link:hover {
  background: var(--accent); color: var(--bg);
}

/* ──────────────────────────────────────── */
/*  SKILLS SECTION                          */
/* ──────────────────────────────────────── */

.skills-container {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.skill-category {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0;
}

.skill-category-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.skill-category-title i {
  color: var(--accent2);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}

.skill-card {
  background: rgba(0,212,255,0.05);
  border: 1.5px solid var(--border);
  padding: 24px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all 0.3s;
  cursor: default;
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(0,212,255,0.06);
  transition: left 0.3s;
  z-index: 0;
}

.skill-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(0,212,255,0.15);
  transform: translateY(-4px);
}

.skill-card:hover::before {
  left: 100%;
}

.skill-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  position: relative;
  z-index: 1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ──────────────────────────────────────── */
/*  EDUCATION SECTION                       */
/* ──────────────────────────────────────── */

.education-timeline {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.education-card {
  background: rgba(0,212,255,0.04);
  border: 1.5px solid var(--border);
  padding: 28px;
  border-radius: 4px;
  transition: all 0.3s;
  position: relative;
}

.education-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  border-radius: 2px;
}

.education-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(0,212,255,0.15);
  transform: translateX(4px);
}

.education-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 12px;
}

.education-degree {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.education-year {
  font-size: 13px;
  color: var(--accent2);
  font-weight: 600;
  white-space: nowrap;
}

.education-institution {
  font-size: 14px;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 8px;
}

.education-location {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.education-location i {
  color: var(--accent3);
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(0,212,255,0.1);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent3));
  width: 75%;
  animation: progressPulse 2s ease-in-out infinite;
}

@keyframes progressPulse {
  0%, 100% { width: 75%; opacity: 1; }
  50% { width: 75%; opacity: 0.8; }
}

.progress-text {
  font-size: 11px;
  color: var(--accent3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ──────────────────────────────────────── */
/*  CERTIFICATIONS SECTION                  */
/* ──────────────────────────────────────── */

.certifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.cert-card {
  background: rgba(0,212,255,0.04);
  border: 1.5px solid var(--border);
  padding: 28px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.cert-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(0,212,255,0.02);
  transition: left 0.4s;
  z-index: 0;
}

.cert-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(0,212,255,0.2);
  transform: translateY(-8px);
}

.cert-card:hover::after {
  left: 100%;
}

.cert-icon {
  font-size: 48px;
  color: var(--accent2);
  position: relative;
  z-index: 1;
}

.cert-card h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
}

.cert-issuer {
  font-size: 13px;
  color: var(--text);
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.cert-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 12px;
  border: 1px solid var(--accent);
  padding: 8px 16px;
  border-radius: 2px;
  transition: all 0.3s;
  position: relative;
  z-index: 1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 8px;
}

.cert-link:hover {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 15px rgba(0,212,255,0.3);
}

/* ──────────────────────────────────────── */
/*  CONTACT SECTION                         */
/* ──────────────────────────────────────── */

.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 40px; align-items: start;
}

.contact-form { display: flex; flex-direction: column; gap: 16px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-label {
  font-size: 12px; font-weight: 600;
  color: var(--accent); text-transform: uppercase; letter-spacing: 1px;
}

.form-input {
  background: rgba(0,212,255,0.05);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 12px; font-family: var(--font-mono); font-size: 12px;
  border-radius: 2px;
  transition: all 0.3s;
}

.form-input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 10px rgba(0,212,255,0.2);
}

.form-input.textarea { resize: vertical; }

.btn-submit {
  margin-top: 8px;
  border-color: var(--accent3);
}

.btn-submit::before { background: var(--accent3); }
.btn-submit:hover { box-shadow: 0 0 20px var(--accent3); }

.btn-prefix { margin-right: 8px; }

.contact-info h3 {
  color: var(--accent); font-family: var(--font-display);
  font-size: 16px; margin-bottom: 24px; text-transform: uppercase;
}

.info-block { display: flex; flex-direction: column; gap: 20px; }

.info-item {
  display: flex; gap: 16px;
  padding: 16px; background: rgba(0,212,255,0.04);
  border: 1px solid var(--border); border-radius: 2px;
}

.info-icon { font-size: 20px; }

.info-item strong { color: var(--accent); display: block; margin-bottom: 4px; }
.info-item p, .info-item a { color: var(--muted); font-size: 13px; }
.info-item a:hover { color: var(--accent); }

.social-links { display: flex; gap: 12px; margin-top: 6px; }
.social-links a { font-size: 16px; padding: 4px; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ──────────────────────────────────────── */
/*  FOOTER                                  */
/* ──────────────────────────────────────── */

#footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 40px;
}

.terminal-footer {
  max-width: 1200px; margin: 0 auto;
  text-align: center; font-size: 12px; color: var(--muted);
  letter-spacing: 1px;
}

.terminal-footer p { margin-bottom: 8px; }
.prompt { color: var(--accent3); }
.footer-cmd { color: var(--accent); }

/* ──────────────────────────────────────── */
/*  RESPONSIVE                              */
/* ──────────────────────────────────────── */

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .section-terminal { padding: 40px 0; }
  .section-title { font-size: clamp(1.5rem, 5vw, 2rem); }
  .nav-inner { padding: 12px 20px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 12px; }
  .hero-subtitle { font-size: 16px; }
  .hero-terminal { padding: 100px 20px 50px; }
  .hero-glitch { font-size: clamp(2.2rem, 12vw, 6rem); }
  .projects-grid { grid-template-columns: 1fr; gap: 24px; }
  .project-card { padding: 20px; }
  .project-tech { gap: 6px; }
  .tech { font-size: 10px; padding: 4px 8px; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .skill-card { padding: 20px; }
  .skill-name { font-size: 12px; }
  .skill-category-title { font-size: 16px; }
  .education-card { padding: 20px; }
  .education-degree { font-size: 14px; }
  .education-year { font-size: 12px; }
  .certifications-grid { grid-template-columns: 1fr; gap: 16px; }
  .cert-card { padding: 20px; }
  .cert-icon { font-size: 40px; }
  .cert-card h3 { font-size: 14px; }
  .info-item { gap: 12px; padding: 12px; }
  .info-icon { font-size: 18px; }
}

@media (max-width: 600px) {
  .hero-terminal { padding: 90px 16px 45px; }
  .hero-content { gap: 24px; max-width: 100%; }
  .hero-glitch { font-size: clamp(2rem, 11vw, 5.2rem); line-height: 1.05; }
  .hero-subtitle { font-size: 15px; }
}

@media (max-width: 480px) {
  .nav-inner { padding: 12px 16px; }
  .container { padding: 0 16px; }
  .nav-logo { font-size: 13px; letter-spacing: 0px; }
  .nav-links { gap: 12px; }
  .nav-links a { font-size: 11px; }
  .burger { display: flex; }
  .nav-links { display: none; }
  .hero-terminal { padding: 85px 14px 40px; }
  .hero-content { gap: 20px; max-width: 100%; }
  .hero-glitch { font-size: clamp(1.8rem, 10vw, 4.5rem); line-height: 1.05; letter-spacing: 0.02em; }
  .glitch-line { max-width: 100vw; padding: 0 5px; }
  .hero-subtitle { font-size: 14px; }
  .terminal-btn { 
    width: auto;
    padding: 10px 14px;
    font-size: 11px;
  }
  .hero-buttons { 
    gap: 6px;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .scroll-hint { font-size: 11px; bottom: 30px; }
  .glitch-line { overflow: hidden; word-wrap: break-word; }
  .section-title { font-size: clamp(1.2rem, 6vw, 1.8rem); }
  .project-card { padding: 16px; }
  .project-card h3 { font-size: 14px; }
  .project-card p { font-size: 12px; line-height: 1.5; }
  .project-tech { flex-wrap: wrap; gap: 4px; }
  .tech { font-size: 9px; padding: 3px 6px; }
  .project-link { font-size: 11px; padding: 8px 12px; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .skill-card { padding: 16px; }
  .skill-name { font-size: 11px; }
  .skill-category-title { font-size: 14px; gap: 8px; }
  .skill-category { gap: 12px; }
  .skills-container { gap: 32px; }
  .education-card { padding: 16px; margin-left: 0; }
  .education-header { flex-direction: column; gap: 8px; }
  .education-degree { font-size: 13px; }
  .education-year { font-size: 11px; }
  .certifications-grid { grid-template-columns: 1fr; gap: 12px; }
  .cert-card { padding: 16px; }
  .cert-icon { font-size: 36px; margin-bottom: 8px; }
  .cert-card h3 { font-size: 13px; }
  .cert-issuer { font-size: 12px; }
  .info-item { gap: 10px; padding: 10px; flex-direction: column; }
  .info-icon { font-size: 16px; }
  .social-links { gap: 8px; }
  .contact-info h3 { font-size: 14px; margin-bottom: 16px; }
  #footer { padding: 24px 16px; }
  .terminal-footer { font-size: 11px; }
  .terminal-footer p { margin-bottom: 6px; }
}

@media (max-width: 320px) {
  .container { padding: 0 12px; }
  .terminal-btn { padding: 8px 10px; font-size: 10px; }
  .nav-logo { font-size: 12px; }
  .hero-terminal { padding: 80px 12px 35px; }
  .hero-glitch { font-size: clamp(1.6rem, 9vw, 3.8rem); line-height: 1; }
  .hero-content { gap: 18px; }
  .hero-subtitle { font-size: 12px; }
  .section-title { font-size: 1.2rem; }
  .project-card h3 { font-size: 12px; }
  .tech { font-size: 8px; }
  .skills-grid { grid-template-columns: 1fr; gap: 8px; }
  .skill-card { padding: 12px; }
  .skill-name { font-size: 10px; }
  .skill-category-title { font-size: 12px; }
  .education-card { padding: 12px; }
  .education-degree { font-size: 12px; }
  .cert-card { padding: 12px; }
  .cert-icon { font-size: 32px; }
  .cert-card h3 { font-size: 12px; }
}

/* Very large screens - maximize content */
@media (min-width: 1400px) {
  .skills-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
  .certifications-grid { grid-template-columns: repeat(3, 1fr); }
  .education-timeline { gap: 32px; }
}

/* ──────────────────────────────────────── */
/*  ANIMATIONS                              */
/* ──────────────────────────────────────── */

@keyframes rippleAnim {
  0% { transform: scale(0); opacity: 1; }
  100% { transform: scale(4); opacity: 0; }
}
