/* ==========================================================================
   Terminal-Themed Personal Landing Page
   Color Palette: #1a1a1e bg, #e0e0e0 fg, #a6e22e green, #66d9ef cyan,
                  #fd971f orange, #F92672 pink, #636363 comment gray
   ========================================================================== */

/* --- Reset & Base --- */

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

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
  font-size: 16px;
}

body {
  background: #1a1a1e;
  color: #e0e0e0;
  font-family: 'JetBrains Mono', monospace;
  margin: 0;
  line-height: 1.6;
  padding-top: 38px;
}

/* Subtle scanline overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.03;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.03) 2px,
    rgba(255, 255, 255, 0.03) 4px
  );
}

::selection {
  background: #a6e22e;
  color: #1a1a1e;
}

a {
  color: inherit;
  text-decoration: none;
}

/* --- Terminal Title Bar --- */

.terminal-titlebar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 38px;
  background: #141416;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 8px;
}

.terminal-titlebar .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-titlebar .dot-red { background: #ff5f57; }
.terminal-titlebar .dot-yellow { background: #febc2e; }
.terminal-titlebar .dot-green { background: #28c840; }

.terminal-titlebar .titlebar-text {
  flex: 1;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: #636363;
  letter-spacing: 0.03em;
}

/* --- Layout --- */

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  scroll-snap-align: start;
}

/* --- Prompt --- */

.prompt {
  color: #a6e22e;
  font-weight: 700;
}

/* --- Hero --- */

#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.hero-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  margin-bottom: 16px;
  color: #f8f8f2;
  text-shadow: 0 0 80px rgba(166, 226, 46, 0.15);
  letter-spacing: 0.05em;
}

.hero-accent {
  color: #a6e22e;
}

.hero-tagline {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  color: #636363;
}

#typed-output {
  color: #e0e0e0;
}

.typed-cursor {
  color: #a6e22e;
}

.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  color: #636363;
  cursor: pointer;
  transition: color 0.3s;
}

.scroll-indicator svg {
  width: 28px;
  height: 28px;
}

.scroll-indicator:hover {
  color: #F92672;
}

#hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #F92672, #a6e22e, #66d9ef, #fd971f, transparent);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(10px);
  }
}

/* --- Section Titles --- */

.section-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.5rem;
  margin-bottom: 48px;
  color: #e0e0e0;
}

/* --- Terminal Experience Block --- */

.terminal-block {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.terminal-line {
  font-size: 1.1rem;
  margin-bottom: 28px;
}

.terminal-line .cmd {
  color: #a6e22e;
}

.terminal-line .cmd-arg {
  color: #66d9ef;
}

.terminal-line-end {
  margin-top: 12px;
  margin-bottom: 0;
}

.cursor-blink {
  color: #a6e22e;
  animation: blink 1s step-end infinite;
}

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

/* --- Experience Grid --- */

.exp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.exp-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.exp-box:hover {
  border-color: var(--brand-solid, rgba(255,255,255,0.12));
  box-shadow: 0 0 24px var(--brand-glow, rgba(255,255,255,0.06));
}

.exp-box:hover .exp-icon {
  color: var(--brand-solid, #e0e0e0);
}

.exp-box:hover .exp-name {
  color: var(--brand-solid, #e0e0e0);
}

.exp-box:nth-child(1) { --brand-solid: #E1306C; --brand-glow: rgba(225, 48, 108, 0.15); }
.exp-box:nth-child(2) { --brand-solid: #008CFF; --brand-glow: rgba(0, 140, 255, 0.15); }
.exp-box:nth-child(3) { --brand-solid: #53A318; --brand-glow: rgba(83, 163, 24, 0.15); }
.exp-box:nth-child(4) { --brand-solid: #009DE0; --brand-glow: rgba(0, 157, 224, 0.15); }

.exp-icon {
  width: 36px;
  height: 36px;
  color: #636363;
  transition: color 0.3s;
}

.exp-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #e0e0e0;
}

.exp-role {
  font-size: 0.75rem;
  color: #636363;
}

.exp-platforms {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.platform-icon {
  width: 20px;
  height: 20px;
  color: #4a4a4a;
  transition: color 0.3s;
}

.exp-box:hover .platform-android {
  color: #a6e22e;
}

.exp-box:hover .platform-ios {
  color: #f8f8f2;
}

.exp-box:hover .platform-web {
  color: #66d9ef;
}

/* --- Social Links --- */

.links-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  color: #636363;
  text-decoration: none;
  transition: color 0.2s, transform 0.2s;
}

.social-link:hover {
  color: #F92672;
  transform: translateY(-2px);
}

.social-link svg {
  width: 24px;
  height: 24px;
}

/* --- Contact --- */

#contact {
  text-align: center;
}

.comment-line {
  font-family: 'JetBrains Mono', monospace;
  color: #636363;
  margin-bottom: 16px;
  font-size: 1rem;
}

.contact-fn {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  text-decoration: none;
  display: inline-block;
  transition: transform 0.2s;
  cursor: pointer;
}

.contact-fn:hover {
  transform: scale(1.05);
  text-shadow: 0 0 30px rgba(249, 38, 114, 0.3);
}

.fn-name {
  color: #66d9ef;
}

.fn-dot {
  color: #e0e0e0;
}

.fn-method {
  color: #a6e22e;
}

.fn-paren {
  color: #e0e0e0;
}

.fn-string {
  color: #fd971f;
}

.contact-email {
  margin-top: 20px;
  font-size: 0.9rem;
  color: #636363;
  cursor: pointer;
  transition: color 0.2s;
  position: relative;
}

.contact-email:hover {
  color: #F92672;
}

.email-copied {
  display: none;
  color: #a6e22e;
  margin-left: 8px;
  font-size: 0.8rem;
}

.contact-email.copied .email-copied {
  display: inline;
}

.contact-email.copied .email-text {
  color: #a6e22e;
}

/* --- Footer --- */

.footer {
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: #636363;
}

/* --- Responsive --- */

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }

  .links-row {
    gap: 24px;
  }

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

  .terminal-titlebar .titlebar-text {
    font-size: 0.65rem;
  }
}
