/* ==========================================================================
   AEDEV — AZIMXON ERGASHEV PORTFOLIO STYLESHEET
   Aesthetic: Dark Minimalist Software Engineer Portfolio
   Features: Perfectly Centered Hero, Education & Experience Timeline, Split Contact
   ========================================================================== */

:root {
  /* Dark Theme (Default) */
  --bg-black: #080808;
  --bg-card: #0e0e0e;
  --bg-card-hover: #141414;
  --bg-pill: rgba(14, 14, 14, 0.88);
  --bg-input: #121212;

  --text-white: #ffffff;
  --text-primary: #f2f2f2;
  --text-secondary: #999999;
  --text-muted: #666666;

  --border-hairline: rgba(255, 255, 255, 0.08);
  --border-subtle: #1c1c1c;
  --border-hover: #333333;
  --border-focus: #ffffff;

  --grid-line: rgba(255, 255, 255, 0.03);
  --accent: #8ccfb7;

  --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', Menlo, monospace;

  --container-width: 1040px;
  --nav-height: 84px;

  --transition-fast: 150ms ease;
  --transition-smooth: 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme */
[data-theme="light"] {
  --bg-black: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-pill: rgba(255, 255, 255, 0.98);
  --bg-input: #ffffff;

  --text-white: #090d16;
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #64748b;

  --border-hairline: #e2e8f0;
  --border-subtle: #cbd5e1;
  --border-hover: #0f172a;
  --border-focus: #0f172a;

  --grid-line: rgba(15, 23, 42, 0.04);
  --accent: #0f172a;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
}

[data-theme="light"] html {
  color-scheme: light;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-black);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -80px;
  left: 2rem;
  background: var(--text-white);
  color: var(--bg-black);
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 4px;
  z-index: 1000;
  transition: top var(--transition-fast);
}
.skip-link:focus {
  top: 1.5rem;
}

:focus-visible {
  outline: 2px solid var(--text-white);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   THIN VERTICAL GRID LINES
   -------------------------------------------------------------------------- */
.grid-lines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  display: flex;
  justify-content: space-between;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.grid-line {
  width: 1px;
  height: 100%;
  background-color: var(--grid-line);
}

@media (max-width: 768px) {
  .grid-lines .grid-line:nth-child(n+5) {
    display: none;
  }
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

@media (max-width: 640px) {
  .container {
    padding: 0 1.25rem;
  }
}

/* --------------------------------------------------------------------------
   NAVBAR (Oval Floating Navbar with Theme & Language)
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  top: 1rem;
  left: 0;
  width: 100%;
  z-index: 100;
  pointer-events: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  pointer-events: auto;
}

.brand {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-white);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--bg-pill);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-hairline);
  padding: 0.55rem 1.1rem;
  border-radius: 9999px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: all var(--transition-fast);
}

.brand:hover {
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

/* Oval Nav Pill */
.nav-pill {
  display: flex;
  align-items: center;
  background-color: var(--bg-pill);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-hairline);
  border-radius: 9999px;
  padding: 0.35rem 0.55rem;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.18);
}

.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.2rem;
}

.nav-link {
  display: block;
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 9999px;
  transition: all var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-white);
}

.nav-link.active {
  color: var(--text-white);
  background-color: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .nav-link.active {
  background-color: rgba(0, 0, 0, 0.08);
}

/* Right Controls (Theme Toggle + Lang Switcher) */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-switch {
  display: flex;
  align-items: center;
  background-color: var(--bg-pill);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-hairline);
  border-radius: 9999px;
  padding: 0.25rem 0.35rem;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.3rem 0.55rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-btn:hover {
  color: var(--text-white);
}

.lang-btn.active {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.12);
}

[data-theme="light"] .lang-btn.active {
  background: rgba(0, 0, 0, 0.08);
}

/* Day/Night Theme Toggle Button */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background-color: var(--bg-pill);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-hairline);
  border-radius: 50%;
  color: var(--text-white);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  border-color: var(--border-hover);
  transform: rotate(15deg);
}

.theme-toggle-btn svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mobile-toggle {
  display: none;
  background: var(--bg-pill);
  border: 1px solid var(--border-hairline);
  color: var(--text-white);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-pill {
    position: fixed;
    top: 5rem;
    left: 1.25rem;
    right: 1.25rem;
    flex-direction: column;
    border-radius: 14px;
    padding: 1rem;
    background-color: var(--bg-card);
    border: 1px solid var(--border-subtle);
    display: none;
  }
  .nav-pill.open {
    display: flex;
  }
  .nav-list {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
  }
  .nav-link {
    width: 100%;
    text-align: center;
    padding: 0.7rem;
  }
  .mobile-toggle {
    display: inline-flex;
  }
}

/* --------------------------------------------------------------------------
   1. HERO SECTION (100% CENTERED, BALANCED TYPOGRAPHY)
   -------------------------------------------------------------------------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: calc(var(--nav-height) + 2rem);
  padding-bottom: 4rem;
  position: relative;
}

.hero-content {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.hero-eyebrow::before {
  content: '—';
  color: var(--text-muted);
}

/* Centered & Perfectly Balanced Headline */
.hero-heading {
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: var(--text-white);
  margin-bottom: 1.75rem;
  text-align: center;
}

.heading-line-1 {
  display: block;
}

.heading-line-2 {
  display: block;
  color: var(--text-white);
}

.hero-subtext {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 580px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  transition: all var(--transition-smooth);
  cursor: pointer;
  letter-spacing: -0.01em;
}

.btn-primary {
  background-color: var(--text-white);
  color: var(--bg-black);
  border: 1px solid var(--text-white);
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-white);
  border: 1px solid var(--border-hairline);
}

.btn-secondary:hover {
  border-color: var(--border-hover);
  background-color: rgba(255, 255, 255, 0.03);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   COMMON SECTION STYLES
   -------------------------------------------------------------------------- */
.section {
  padding: 6.5rem 0;
  border-top: 1px solid var(--border-hairline);
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-white);
  margin-bottom: 1.75rem;
}

/* --------------------------------------------------------------------------
   2. ABOUT SECTION & NEW EDUCATION / EXPERIENCE TIMELINE
   -------------------------------------------------------------------------- */
.about-text {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 820px;
  margin-bottom: 3.5rem;
}

/* Education & Experience Split Grid */
.edu-exp-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  margin-top: 2.5rem;
}

@media (max-width: 800px) {
  .edu-exp-grid {
    grid-template-columns: 1fr;
  }
}

.edu-card, .exp-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: 12px;
  padding: 2.25rem;
  position: relative;
}

.edu-card-title, .exp-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Clean Timeline List */
.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  position: relative;
  padding-left: 1.5rem;
}

.timeline-list::before {
  content: '';
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 4px;
  width: 1px;
  background-color: var(--border-subtle);
}

.timeline-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.timeline-dot {
  position: absolute;
  top: 5px;
  left: -1.5rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--text-white);
  box-shadow: 0 0 0 3px var(--bg-card);
}

.timeline-heading {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-white);
}

.timeline-period {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.timeline-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-top: 0.15rem;
}

.exp-body {
  position: relative;
  min-height: 150px;
  display: flex;
  align-items: center;
}

.exp-empty-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 0;
  opacity: 0.38;
  filter: blur(0.4px);
  transition: opacity var(--transition-smooth);
}

.exp-card:hover .exp-empty-content {
  opacity: 0.55;
}

.exp-soon-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.status-badge-soon {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ff1744;
  background-color: rgba(255, 23, 68, 0.16);
  border: 2.5px solid #ff1744;
  box-shadow: 0 0 32px rgba(255, 23, 68, 0.45), inset 0 0 16px rgba(255, 23, 68, 0.2);
  padding: 0.8rem 2.4rem;
  border-radius: 9999px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transition: all var(--transition-smooth);
  display: inline-block;
  white-space: nowrap;
}

.exp-card:hover .status-badge-soon {
  border-color: #ff1744;
  box-shadow: 0 0 48px rgba(255, 23, 68, 0.7), inset 0 0 20px rgba(255, 23, 68, 0.3);
  transform: scale(1.06);
}

/* --------------------------------------------------------------------------
   3. SKILLS SECTION
   -------------------------------------------------------------------------- */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  max-width: 780px;
}

.skill-tag {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-primary);
  background-color: var(--bg-card);
  border: 1px solid var(--border-hairline);
  padding: 0.6rem 1.15rem;
  border-radius: 6px;
  transition: all var(--transition-fast);
}

.skill-tag:hover {
  border-color: var(--border-hover);
  background-color: var(--bg-card-hover);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   4. FEATURED PROJECT SECTION (Auto Sklad)
   -------------------------------------------------------------------------- */
.project-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: 12px;
  padding: 2.75rem;
  transition: border-color var(--transition-smooth);
}

.project-card:hover {
  border-color: var(--border-hover);
}

.project-name {
  font-size: clamp(1.8rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-white);
  margin-bottom: 0.85rem;
}

.project-desc {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 740px;
  margin-bottom: 1.5rem;
}

/* Project Practical Features List */
.project-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.project-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--text-primary);
  background-color: var(--bg-card-hover);
  border: 1px solid var(--border-hairline);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  transition: all var(--transition-fast);
}

.project-feature-item:hover {
  border-color: var(--border-hover);
  transform: translateX(4px);
}

.feature-icon {
  font-size: 1rem;
  line-height: 1.5;
  flex-shrink: 0;
}

.feature-text {
  font-weight: 500;
  color: var(--text-primary);
}

.project-stack {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.project-stack::before {
  content: '//';
  color: var(--text-muted);
}

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

@media (max-width: 640px) {
  .project-card {
    padding: 1.75rem;
  }
}

/* --------------------------------------------------------------------------
   5. CONTACT SECTION (Screenshot 1: Split Form & Cards Layout)
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  margin-top: 2rem;
  align-items: start;
}

@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Left Form Box (Screenshot 1: Send a message card) */
.contact-form-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: 12px;
  padding: 2.25rem;
}

.form-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 1.75rem;
}

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

.form-item {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-item label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-item input,
.form-item textarea {
  background-color: var(--bg-black);
  border: 1px solid var(--border-hairline);
  color: var(--text-white);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-item input:focus,
.form-item textarea:focus {
  border-color: var(--border-focus);
}

.form-item textarea {
  resize: vertical;
  min-height: 100px;
}

.btn-form-send {
  background-color: #ffffff;
  color: #080808;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  border-radius: 8px;
  padding: 0.8rem 1.5rem;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  width: 100%;
  text-align: center;
}

.btn-form-send:hover:not(:disabled) {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-form-send:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

.btn-form-send.state-success {
  background-color: #10b981 !important;
  color: #ffffff !important;
}

.btn-form-send.state-error {
  background-color: #ef4444 !important;
  color: #ffffff !important;
}

.form-status-msg {
  margin-top: 0.75rem;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-family: var(--font-mono);
  text-align: center;
  line-height: 1.4;
  animation: toastIn 200ms ease;
}

.form-status-msg.status-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.form-status-msg.status-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.field-error-msg {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #f87171;
  margin-top: 0.25rem;
}

.input-field-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.25) !important;
}

/* Right Contact Cards Stack (Screenshot 1: Email, Telegram, GitHub, etc.) */
.contact-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.info-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: 12px;
  padding: 1.35rem 1.5rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.info-card:hover {
  border-color: var(--border-hover);
  background-color: var(--bg-card-hover);
  transform: translateX(4px);
}

.info-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background-color: var(--bg-black);
  border: 1px solid var(--border-hairline);
  border-radius: 8px;
  color: var(--text-white);
  flex-shrink: 0;
}

.info-card-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.info-card-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.info-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-white);
}

.info-card-sub {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* Toast Notice */
.toast-notice {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--bg-pill);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-hairline);
  color: var(--text-white);
  padding: 0.85rem 1.5rem;
  border-radius: 8px;
  font-size: 0.88rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  z-index: 2000;
  display: none;
  animation: toastIn 200ms ease;
}

.toast-notice.show {
  display: block;
}

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

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border-hairline);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   SYSTEM STATUS PILL (LIVE UPTIME)
   -------------------------------------------------------------------------- */
.system-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background-color: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.35rem 0.95rem;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #10b981;
  margin-bottom: 1.25rem;
}

.status-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.35);
    opacity: 0.6;
  }
}

.status-sep {
  color: rgba(16, 185, 129, 0.4);
}

.status-uptime {
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   CV DOWNLOAD BUTTON
   -------------------------------------------------------------------------- */
.btn-cv {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-hairline);
  color: var(--text-white);
  padding: 0.8rem 1.6rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-smooth);
}

.btn-cv:hover {
  border-color: var(--text-white);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  color: var(--text-white);
}

/* --------------------------------------------------------------------------
   GIT WORKFLOW & STANDARDS CARD
   -------------------------------------------------------------------------- */
.git-standards-card {
  margin-top: 2rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: 12px;
  padding: 1.75rem 2rem;
}

.git-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.git-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-white);
}

.git-profile-link {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--border-hairline);
  transition: all var(--transition-fast);
}

.git-profile-link:hover {
  color: var(--text-white);
  border-color: var(--border-hover);
}

.git-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 768px) {
  .git-metrics-grid {
    grid-template-columns: 1fr;
  }
}

.git-metric-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-hairline);
  border-radius: 8px;
  padding: 1rem;
}

.git-metric-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-white);
}

.git-metric-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   INTERACTIVE TERMINAL (CLI)
   -------------------------------------------------------------------------- */
.terminal-title-area {
  margin-bottom: 2rem;
}

.terminal-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

.terminal-window {
  background: #0b0f14;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  font-family: var(--font-mono);
}

.terminal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background: #11161d;
  border-bottom: 1px solid var(--border-hairline);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.terminal-title {
  font-size: 0.82rem;
  color: #cbd5e1;
  font-weight: 700;
}

.term-clear-btn {
  background: #1e293b;
  border: 1px solid #475569;
  color: #f8fafc;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.term-clear-btn:hover {
  background: #334155;
  color: #ffffff;
  border-color: #94a3b8;
}

.terminal-body {
  padding: 1.25rem;
  min-height: 180px;
  max-height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.88rem;
  line-height: 1.55;
}

.term-welcome {
  color: #38bdf8;
  font-weight: 700;
}

.term-hint {
  color: #cbd5e1;
  font-weight: 600;
}

.term-chips {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin: 0.4rem 0;
}

.term-chip {
  background: #1e293b;
  border: 1.5px solid #475569;
  color: #ffffff !important;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
}

.term-chip:hover {
  background: #38bdf8;
  color: #090d16 !important;
  border-color: #38bdf8;
  transform: translateY(-1px);
}

.term-user-line {
  color: #ffffff;
  font-weight: 700;
}

.term-response-line {
  color: #4ade80;
  font-weight: 600;
  white-space: pre-wrap;
}

.term-error-line {
  color: #f87171;
  font-weight: 600;
}

.terminal-input-row {
  display: flex;
  align-items: center;
  padding: 0.85rem 1.25rem;
  background: #111622;
  border-top: 1px solid #1e293b;
  gap: 0.75rem;
}

.term-prompt {
  color: #4ade80;
  font-size: 0.88rem;
  font-weight: 800;
  white-space: nowrap;
}

.term-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
}

.term-input::placeholder {
  color: #94a3b8;
  font-weight: 500;
}

/* ==========================================================================
   PRO-GRADE LIGHT THEME DESIGN SYSTEM (APPLE / VERCEL / LINEAR AESTHETICS)
   ========================================================================== */

/* Subtle ambient background glow in light mode */
[data-theme="light"] body {
  background-color: #fafafa;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(0, 0, 0, 0.02) 0%, transparent 50%),
    linear-gradient(to right, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  color: #18181b;
}

/* 1. Header & Tactile Floating Pills */
[data-theme="light"] .brand {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #09090b;
  font-weight: 800;
  box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .brand:hover {
  border-color: #09090b;
  transform: translateY(-1px);
}

[data-theme="light"] .nav-pill {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .nav-link {
  color: #52525b;
  font-weight: 500;
}

[data-theme="light"] .nav-link:hover {
  color: #09090b;
}

[data-theme="light"] .nav-link.active {
  background-color: #09090b !important;
  color: #ffffff !important;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(9, 9, 11, 0.25);
}

[data-theme="light"] .lang-switch {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .lang-btn {
  color: #71717a;
}

[data-theme="light"] .lang-btn:hover {
  color: #09090b;
}

[data-theme="light"] .lang-btn.active {
  background-color: #09090b !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(9, 9, 11, 0.2);
}

[data-theme="light"] .theme-toggle-btn {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #09090b;
  box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .theme-toggle-btn:hover {
  border-color: #09090b;
}

/* 2. Hero Section Typography & Eyebrow */
[data-theme="light"] .system-status-pill {
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.1);
  font-weight: 500;
}

[data-theme="light"] .status-pulse-dot {
  background-color: #16a34a;
  box-shadow: 0 0 8px #16a34a;
}

[data-theme="light"] .status-uptime {
  color: #166534;
  font-weight: 600;
}

[data-theme="light"] .hero-eyebrow {
  color: #71717a;
  font-weight: 600;
  letter-spacing: 0.18em;
}

[data-theme="light"] .hero-heading {
  color: #09090b;
}

[data-theme="light"] .heading-line-1 {
  color: #09090b;
}

[data-theme="light"] .heading-line-2 {
  background: linear-gradient(180deg, #18181b 30%, #52525b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .hero-subtext {
  color: #52525b;
}

/* 3. Hero & Action Buttons (Balanced Pro Hierarchy) */
[data-theme="light"] .btn-primary {
  background: #09090b;
  color: #ffffff;
  border: 1px solid #09090b;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: 0 4px 14px -2px rgba(9, 9, 11, 0.25);
}

[data-theme="light"] .btn-primary:hover {
  background: #27272a;
  border-color: #27272a;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px -2px rgba(9, 9, 11, 0.35);
}

[data-theme="light"] .btn-cv {
  background: #ffffff;
  color: #09090b;
  border: 1.5px solid #d4d4d8;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .btn-cv svg {
  stroke: #09090b;
}

[data-theme="light"] .btn-cv:hover {
  background: #f4f4f5;
  border-color: #09090b;
  color: #09090b;
  transform: translateY(-2px);
}

[data-theme="light"] .btn-secondary {
  background: rgba(0, 0, 0, 0.02);
  color: #09090b;
  border: 1.5px solid #d4d4d8;
  border-radius: 8px;
  font-weight: 600;
}

[data-theme="light"] .btn-secondary:hover {
  background: #09090b;
  border-color: #09090b;
  color: #ffffff;
  transform: translateY(-2px);
}

/* 4. Section Titles & Lines */
[data-theme="light"] .section {
  border-top: 1px solid #e4e4e7;
}

[data-theme="light"] .section-title {
  color: #09090b;
  letter-spacing: -0.03em;
}

/* 5. Cards & Elevation */
[data-theme="light"] .edu-card,
[data-theme="light"] .exp-card,
[data-theme="light"] .project-card,
[data-theme="light"] .git-standards-card,
[data-theme="light"] .contact-form-card,
[data-theme="light"] .info-card {
  background: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02), 0 10px 24px -4px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .project-card:hover,
[data-theme="light"] .info-card:hover {
  border-color: #09090b;
  box-shadow: 0 14px 32px -4px rgba(9, 9, 11, 0.08);
}

[data-theme="light"] .project-name {
  color: #09090b;
}

[data-theme="light"] .project-desc {
  color: #52525b;
}

[data-theme="light"] .project-stack {
  color: #71717a;
}

/* 6. Skills Section Tags */
[data-theme="light"] .skill-tag {
  background: #ffffff;
  border: 1.5px solid #e4e4e7;
  color: #09090b;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .skill-tag:hover {
  background: #09090b;
  color: #ffffff;
  border-color: #09090b;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(9, 9, 11, 0.15);
}

/* 7. Timeline List */
[data-theme="light"] .timeline-heading {
  color: #09090b;
  font-weight: 700;
}

[data-theme="light"] .timeline-period {
  color: #71717a;
}

[data-theme="light"] .timeline-desc {
  color: #52525b;
}

[data-theme="light"] .timeline-dot {
  background-color: #09090b;
  box-shadow: 0 0 0 3px #ffffff;
}

[data-theme="light"] .timeline-list::before {
  background-color: #d4d4d8;
}

/* 8. Experience SOON Badge */
[data-theme="light"] .status-badge-soon {
  color: #b91c1c;
  background-color: rgba(220, 38, 38, 0.12);
  border: 2.5px solid #dc2626;
  box-shadow: 0 4px 26px rgba(220, 38, 38, 0.28);
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: 0.2em;
}

[data-theme="light"] .exp-empty-text {
  color: #1e293b;
  font-weight: 600;
  opacity: 0.7;
}

[data-theme="light"] .exp-empty-hint {
  color: #475569;
  font-weight: 700;
}

[data-theme="light"] .exp-card:hover .status-badge-soon {
  box-shadow: 0 0 38px rgba(220, 38, 38, 0.45);
  border-color: #991b1b;
}

/* 9. Git Standards Card */
[data-theme="light"] .git-badge {
  color: #09090b;
}

[data-theme="light"] .git-metric-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

[data-theme="light"] .git-metric-title {
  color: #09090b;
  font-weight: 700;
}

[data-theme="light"] .git-metric-desc {
  color: #52525b;
}

[data-theme="light"] .git-profile-link {
  background: #09090b;
  color: #ffffff;
  border: 1px solid #09090b;
  border-radius: 6px;
  font-weight: 600;
}

[data-theme="light"] .git-profile-link:hover {
  background: #27272a;
  border-color: #27272a;
}

/* 10. Terminal Console (Pro Dark Hardware Console on Light Desk) */
[data-theme="light"] .terminal-desc {
  color: #52525b;
}

[data-theme="light"] .terminal-window {
  background: #090d16;
  border: 1px solid #1e293b;
  border-radius: 14px;
  box-shadow: 0 20px 48px -10px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .terminal-topbar {
  background: #111622;
  border-bottom: 1px solid #1e293b;
}

/* 11. Contact Form & Info Cards */
[data-theme="light"] .contact-desc {
  color: #52525b;
}

[data-theme="light"] .form-card-title {
  color: #09090b;
}

[data-theme="light"] .form-item label {
  color: #52525b;
  font-weight: 600;
}

[data-theme="light"] .form-item input,
[data-theme="light"] .form-item textarea {
  background: #ffffff;
  border: 1.5px solid #d4d4d8;
  color: #09090b;
  border-radius: 8px;
  font-weight: 500;
}

[data-theme="light"] .form-item input::placeholder,
[data-theme="light"] .form-item textarea::placeholder {
  color: #a1a1aa;
}

[data-theme="light"] .form-item input:focus,
[data-theme="light"] .form-item textarea:focus {
  border-color: #09090b;
  box-shadow: 0 0 0 3px rgba(9, 9, 11, 0.08);
}

[data-theme="light"] .btn-form-send {
  background: #09090b;
  color: #ffffff;
  border: 1px solid #09090b;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(9, 9, 11, 0.2);
}

[data-theme="light"] .btn-form-send:hover {
  background: #27272a;
  border-color: #27272a;
}

[data-theme="light"] .info-card-icon {
  background: #f4f4f5;
  border: 1px solid #e4e4e7;
  color: #09090b;
  border-radius: 10px;
}

[data-theme="light"] .info-card-icon svg {
  fill: #09090b;
}

[data-theme="light"] .info-card-title {
  color: #09090b;
  font-weight: 700;
}

[data-theme="light"] .info-card-sub {
  color: #52525b;
}

[data-theme="light"] .footer {
  border-top: 1px solid #e4e4e7;
  color: #71717a;
}




/* Sending state subtle animation */
.btn-form-send.state-sending {
  background-color: #27272a !important;
  color: #a1a1aa !important;
  cursor: wait !important;
  animation: pulseSending 1.4s ease-in-out infinite;
}

@keyframes pulseSending {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}
