/* ============================================================
   PORTFOLIO — style.css
   ============================================================ */

/* ===== RESET & ROOT VARIABLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --cyan: #ffd700;
  --violet: #ff8c00;
  --navy: #050818;
  --silver: #c8d0e0;
  --white: #f0f4ff;
  --dark2: #0a0f2c;
  --dark3: #111830;
  --accent: #ffd700;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--navy);
  color: var(--white);
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
}

/* ============================================================
   LIQUID BACKGROUND
   ============================================================ */
.liquid-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.liquid-bg canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  animation: blobFloat 12s ease-in-out infinite;
}

.blob1 {
  width: 500px;
  height: 500px;
  background: var(--violet);
  top: -100px;
  left: -150px;
  animation-delay: 0s;
}
.blob2 {
  width: 400px;
  height: 400px;
  background: var(--cyan);
  bottom: -100px;
  right: -100px;
  animation-delay: -4s;
}
.blob3 {
  width: 300px;
  height: 300px;
  background: #ff6b6b;
  top: 40%;
  left: 60%;
  animation-delay: -8s;
}

@keyframes blobFloat {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(40px, -30px) scale(1.05);
  }
  66% {
    transform: translate(-20px, 40px) scale(0.95);
  }
}

/* ============================================================
   SECTIONS (shared)
   ============================================================ */
section {
  position: relative;
  z-index: 2;
}

/* ============================================================
   SPLASH SCREEN
   ============================================================ */
#splash {
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition:
    opacity 0.8s ease,
    visibility 0.8s;
}

#splash.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-title {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1.5rem, 5vw, 3rem);
  font-weight: 900;
  letter-spacing: 0.2em;
  text-align: center;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.splash-sub {
  color: var(--silver);
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 3rem;
  text-align: center;
}

.start-btn {
  position: relative;
  padding: 1rem 3rem;
  font-family: "Orbitron", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--navy);
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  border: none;
  border-radius: 50px;
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.start-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 40px rgba(0, 245, 255, 0.5);
}

.start-btn::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--cyan), var(--violet), var(--cyan));
  z-index: -1;
  animation: borderSpin 3s linear infinite;
  background-size: 200%;
}

@keyframes borderSpin {
  0% {
    background-position: 0%;
  }
  100% {
    background-position: 200%;
  }
}

/* Splash particles */
.particles-splash {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.p-dot {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--cyan);
  animation: pFloat linear infinite;
  opacity: 0;
}

@keyframes pFloat {
  0% {
    transform: translateY(100vh) translateX(0);
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) translateX(var(--dx));
    opacity: 0;
  }
}

/* ============================================================
   NAVIGATION
   ============================================================ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(5, 8, 24, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 245, 255, 0.05);
  transform: translateY(-100%);
  transition: transform 0.5s ease;
}

nav.visible {
  transform: translateY(0);
}

.nav-logo {
  font-family: "Orbitron", sans-serif;
  font-size: 0.9rem;
  color: var(--cyan);
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  color: var(--silver);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  transition: color 0.3s;
}

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

/* ============================================================
   HERO SECTION
   ============================================================ */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem;
}

/* 3D Scene */
.scene {
  perspective: 1200px;
  perspective-origin: 50% 50%;
  transform-style: preserve-3d;
  transition: transform 0.1s linear;
}

.monitor-wrap {
  transform-style: preserve-3d;
  transform: rotateX(0deg) rotateY(0deg);
  transition: transform 0.8s ease;
}

/* Monitor */
.monitor {
  width: min(680px, 90vw);
  background: #1a1f3a;
  border-radius: 20px 20px 8px 8px;
  border: 3px solid #2a3060;
  box-shadow:
    0 0 60px rgba(0, 245, 255, 0.2),
    inset 0 0 30px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.monitor-top {
  height: 12px;
  background: #2a3060;
  border-radius: 20px 20px 0 0;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 6px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.dot.r {
  background: #ff5f57;
}
.dot.y {
  background: #ffbd2e;
}
.dot.g {
  background: #28c840;
}

/* Screen */
.screen {
  background: #060b20;
  padding: 2.5rem 3rem;
  min-height: 340px;
  position: relative;
  overflow: hidden;
}

.screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 245, 255, 0.02) 2px,
    rgba(0, 245, 255, 0.02) 4px
  );
  pointer-events: none;
}

.scan-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 245, 255, 0.3),
    transparent
  );
  animation: scan 4s linear infinite;
}

@keyframes scan {
  0% {
    top: 0;
  }
  100% {
    top: 100%;
  }
}

.typed-name {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  font-weight: 900;
  color: var(--cyan);
  text-shadow: 0 0 20px rgba(0, 245, 255, 0.5);
  margin-bottom: 0.5rem;
}

.typed-role {
  font-size: 1rem;
  color: var(--silver);
  margin-bottom: 1.5rem;
  min-height: 1.4em;
}

.cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--cyan);
  animation: blink 0.7s step-end infinite;
  vertical-align: text-bottom;
  margin-left: 2px;
}

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

.screen-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tag {
  padding: 0.3rem 0.8rem;
  border: 1px solid rgba(0, 245, 255, 0.3);
  border-radius: 20px;
  font-size: 0.75rem;
  color: var(--cyan);
  letter-spacing: 0.05em;
}

.screen-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.sbtn {
  padding: 0.6rem 1.4rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}

.sbtn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  color: var(--navy);
  border: none;
}

.sbtn-outline {
  background: transparent;
  color: var(--cyan);
  border: 1px solid rgba(0, 245, 255, 0.4);
}

.sbtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 245, 255, 0.3);
}

/* Monitor stand */
.monitor-stand {
  width: 80px;
  height: 24px;
  background: #1a1f3a;
  margin: 0 auto;
  border: 3px solid #2a3060;
  border-top: none;
  border-radius: 0 0 8px 8px;
}

.monitor-foot {
  width: 180px;
  height: 12px;
  background: #1a1f3a;
  margin: 0 auto;
  border: 3px solid #2a3060;
  border-radius: 6px;
}

/* Keyboard */
.keyboard {
  width: min(640px, 86vw);
  background: #111530;
  border-radius: 12px;
  border: 2px solid #1e2550;
  margin-top: 1.5rem;
  padding: 1.2rem;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
  transform: translateZ(-40px);
  transform-style: preserve-3d;
}

.kb-row {
  display: flex;
  gap: 5px;
  justify-content: center;
  margin-bottom: 5px;
}

.key {
  height: 28px;
  background: #1a2040;
  border: 1px solid #2a3060;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.5rem;
  color: #4a5580;
  cursor: pointer;
  transition: all 0.2s;
  flex: 1;
  max-width: 32px;
}

.key:hover {
  background: #2a3060;
  color: var(--cyan);
  border-color: var(--cyan);
}
.key.space {
  max-width: 200px;
}
.key.wide {
  max-width: 54px;
}
.key.wider {
  max-width: 70px;
}
.key.lit {
  background: rgba(0, 245, 255, 0.15);
  border-color: var(--cyan);
  color: var(--cyan);
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: var(--silver);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  animation: fadeUpDown 2s ease-in-out infinite;
}

@keyframes fadeUpDown {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 0.7;
  }
  50% {
    transform: translateX(-50%) translateY(8px);
    opacity: 1;
  }
}

.scroll-hint::after {
  content: "↓";
  display: block;
  font-size: 1.2rem;
  color: var(--cyan);
}

/* ============================================================
   ZOOM SECTION
   ============================================================ */
#zoom-section {
  height: 300vh;
  position: relative;
}

.sticky-wrap {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.desk-scene {
  width: min(900px, 95vw);
  transform-style: preserve-3d;
  transition: transform 0.05s linear;
}

/* ============================================================
   MAIN CONTENT WRAPPER
   ============================================================ */
#main-content {
  background: var(--dark2);
  padding: 4rem 0;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Shared section header */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--white), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  margin: 1rem auto 0;
}

/* ============================================================
   PROJECTS
   ============================================================ */
#projects {
  padding: 5rem 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: linear-gradient(135deg, #0d1234, #121840);
  border: 1px solid rgba(0, 245, 255, 0.12);
  border-radius: 16px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 245, 255, 0.05),
    rgba(124, 58, 237, 0.05)
  );
  opacity: 0;
  transition: opacity 0.4s;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 245, 255, 0.4);
  box-shadow: 0 20px 60px rgba(0, 245, 255, 0.15);
}

.project-card:hover::before {
  opacity: 1;
}

.project-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.project-title {
  font-family: "Orbitron", sans-serif;
  font-size: 0.95rem;
  color: var(--cyan);
  margin-bottom: 0.5rem;
}
.project-desc {
  font-size: 0.85rem;
  color: var(--silver);
  line-height: 1.6;
}

.project-techs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

.tech-pill {
  padding: 0.2rem 0.6rem;
  background: rgba(124, 58, 237, 0.2);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 20px;
  font-size: 0.7rem;
  color: #a78bfa;
}

.project-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

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

/* ============================================================
   SKILLS
   ============================================================ */
#skills {
  padding: 5rem 0;
  background: var(--dark3);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.skill-cat {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(0, 245, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
}

.skill-cat-title {
  font-family: "Orbitron", sans-serif;
  font-size: 0.8rem;
  color: var(--cyan);
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.skill-bar-wrap {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.skill-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  border-radius: 2px;
  width: 0;
  transition: width 1.2s ease;
}

.skill-name {
  font-size: 0.78rem;
  color: var(--silver);
  min-width: 70px;
}

.skill-pct {
  font-size: 0.7rem;
  color: var(--cyan);
}

/* ============================================================
   EDUCATION
   ============================================================ */
#education {
  padding: 5rem 0;
}

.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--cyan), var(--violet));
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
  padding-left: 1.5rem;
}

.timeline-dot {
  position: absolute;
  left: -2.3rem;
  top: 0.2rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 15px rgba(0, 245, 255, 0.5);
}

.timeline-date {
  font-size: 0.75rem;
  color: var(--cyan);
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
}
.timeline-title {
  font-family: "Orbitron", sans-serif;
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 0.3rem;
}
.timeline-sub {
  font-size: 0.85rem;
  color: var(--silver);
}

/* ============================================================
   CERTIFICATES
   ============================================================ */
#certificates {
  padding: 5rem 0;
  background: var(--dark3);
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
}

.cert-card {
  background: linear-gradient(
    135deg,
    rgba(0, 245, 255, 0.04),
    rgba(124, 58, 237, 0.07)
  );
  border: 1px solid rgba(0, 245, 255, 0.12);
  border-radius: 16px;
  padding: 1.4rem 1.6rem;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.4s ease,
    border-color 0.4s ease,
    background 0.4s ease;
  /* 3-D tilt origin */
  transform-style: preserve-3d;
  will-change: transform;
}

/* Animated shimmer sweep on hover */
.cert-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(0, 245, 255, 0.08) 40%,
    rgba(255, 215, 0, 0.10) 55%,
    transparent 100%
  );
  transform: translateX(-100%);
  transition: transform 0.55s ease;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
}

/* Glowing border sweep */
.cert-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 17px;
  background: linear-gradient(
    135deg,
    var(--cyan),
    var(--violet),
    var(--cyan)
  );
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
}

.cert-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow:
    0 0 0 1px rgba(0, 245, 255, 0.35),
    0 12px 36px rgba(0, 245, 255, 0.18),
    0 4px 12px rgba(0, 0, 0, 0.4);
  border-color: rgba(0, 245, 255, 0.45);
  background: linear-gradient(
    135deg,
    rgba(0, 245, 255, 0.09),
    rgba(124, 58, 237, 0.14)
  );
}

.cert-card:hover::before {
  transform: translateX(100%);
}

.cert-card:hover::after {
  opacity: 0.18;
}

.cert-card:active {
  transform: translateY(-2px) scale(1.01);
  transition-duration: 0.1s;
}

/* Keep children above shimmer */
.cert-card > * {
  position: relative;
  z-index: 1;
}

.cert-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 245, 255, 0.25);
  transition:
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.4s ease;
}

.cert-card:hover .cert-icon {
  transform: rotate(-6deg) scale(1.15);
  box-shadow: 0 6px 22px rgba(0, 245, 255, 0.45);
}

.cert-title {
  font-size: 0.88rem;
  color: var(--white);
  font-weight: 600;
  margin-bottom: 0.25rem;
  transition: color 0.3s ease;
}

.cert-card:hover .cert-title {
  color: var(--cyan);
}

.cert-issuer {
  font-size: 0.76rem;
  color: var(--silver);
  transition: color 0.3s ease;
}

.cert-card:hover .cert-issuer {
  color: var(--white);
}

.cert-year {
  font-size: 0.7rem;
  color: var(--cyan);
  margin-top: 0.25rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: letter-spacing 0.3s ease;
}

.cert-card:hover .cert-year {
  letter-spacing: 0.1em;
}

.cert-preview {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 22, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1200;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fadeInOverlay 0.2s ease;
}

@keyframes fadeInOverlay {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.cert-preview.active {
  display: flex;
}

.cert-preview-box {
  position: relative;
  width: min(680px, 92vw);
  background: linear-gradient(
    135deg,
    rgba(0, 245, 255, 0.06),
    rgba(124, 58, 237, 0.10)
  );
  border: 1px solid rgba(0, 245, 255, 0.30);
  border-radius: 16px;
  padding: 1.5rem 1.5rem 1.2rem;
  text-align: center;
  box-shadow: 0 0 60px rgba(0, 245, 255, 0.12), 0 20px 50px rgba(0, 0, 0, 0.5);
  animation: popIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popIn {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.cert-preview-close {
  position: absolute;
  top: 0.7rem;
  right: 0.9rem;
  background: none;
  border: none;
  color: var(--silver);
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}
.cert-preview-close:hover { color: var(--cyan); }

.cert-preview-img {
  width: 100%;
  max-height: 65vh;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid rgba(0, 245, 255, 0.15);
  margin-bottom: 1rem;
  display: block;
}

.cert-preview-title {
  font-size: 1rem;
  color: var(--white);
  font-weight: 600;
  margin-bottom: 0.25rem;
  font-family: "Orbitron", sans-serif;
}

.cert-preview-issuer {
  font-size: 0.85rem;
  color: var(--silver);
  margin-bottom: 0.2rem;
}

.cert-preview-year {
  font-size: 0.78rem;
  color: var(--cyan);
}

/* Hide old icon - kept for backward compat */
.cert-preview-icon { display: none; }

/* ============================================================
   CONTACT
   ============================================================ */
#contact {
  padding: 5rem 0;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.contact-info h3 {
  font-family: "Orbitron", sans-serif;
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--silver);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--silver);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s;
}

.contact-link:hover {
  color: var(--cyan);
}

.contact-link-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(0, 245, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.contact-form {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(0, 245, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-label {
  font-size: 0.8rem;
  color: var(--cyan);
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.4rem;
}

.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 245, 255, 0.15);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--white);
  font-size: 0.9rem;
  font-family: "Inter", sans-serif;
  outline: none;
  transition: border-color 0.3s;
}

.form-input:focus {
  border-color: var(--cyan);
}
.form-input::placeholder {
  color: rgba(200, 208, 224, 0.4);
}
textarea.form-input {
  resize: vertical;
  min-height: 100px;
}

.send-btn {
  width: 100%;
  padding: 0.85rem;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  color: var(--navy);
  border: none;
  border-radius: 8px;
  font-family: "Orbitron", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 0.1em;
}

.send-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 245, 255, 0.3);
}

/* ============================================================
   AI CHAT
   ============================================================ */
#ai-chat {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
}

.chat-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(0, 245, 255, 0.3);
  transition: all 0.3s;
  animation: chatPulse 3s ease-in-out infinite;
}

@keyframes chatPulse {
  0%,
  100% {
    box-shadow: 0 8px 30px rgba(0, 245, 255, 0.3);
  }
  50% {
    box-shadow: 0 8px 50px rgba(0, 245, 255, 0.6);
  }
}

.chat-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 340px;
  background: #080e24;
  border: 1px solid rgba(0, 245, 255, 0.2);
  border-radius: 20px;
  overflow: hidden;
  display: none;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.chat-window.open {
  display: flex;
}

.chat-header {
  padding: 1rem 1.2rem;
  background: linear-gradient(
    135deg,
    rgba(0, 245, 255, 0.1),
    rgba(124, 58, 237, 0.1)
  );
  border-bottom: 1px solid rgba(0, 245, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.chat-title {
  font-family: "Orbitron", sans-serif;
  font-size: 0.8rem;
  color: var(--cyan);
}
.chat-status {
  font-size: 0.7rem;
  color: var(--silver);
}

.chat-close {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--silver);
  cursor: pointer;
  font-size: 1.1rem;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  max-height: 300px;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.chat-messages::-webkit-scrollbar {
  width: 4px;
}
.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(0, 245, 255, 0.3);
  border-radius: 2px;
}

.msg {
  max-width: 85%;
  padding: 0.6rem 0.9rem;
  border-radius: 12px;
  font-size: 0.82rem;
  line-height: 1.5;
}

.msg.ai {
  background: rgba(0, 245, 255, 0.08);
  border: 1px solid rgba(0, 245, 255, 0.15);
  color: var(--silver);
  align-self: flex-start;
  border-radius: 4px 12px 12px 12px;
}

.msg.user {
  background: linear-gradient(
    135deg,
    rgba(0, 245, 255, 0.2),
    rgba(124, 58, 237, 0.2)
  );
  color: var(--white);
  align-self: flex-end;
  border-radius: 12px 4px 12px 12px;
}

.typing-indicator {
  display: none;
  gap: 4px;
  padding: 0.6rem 0.9rem;
  background: rgba(0, 245, 255, 0.08);
  border-radius: 4px 12px 12px 12px;
  align-self: flex-start;
}

.typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  animation: typingBounce 0.8s ease-in-out infinite;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.15s;
}
.typing-dot:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes typingBounce {
  0%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-6px);
  }
}

.chat-input-row {
  display: flex;
  gap: 0.5rem;
  padding: 0.8rem;
  border-top: 1px solid rgba(0, 245, 255, 0.1);
}

.chat-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 245, 255, 0.15);
  border-radius: 8px;
  padding: 0.5rem 0.8rem;
  color: var(--white);
  font-size: 0.82rem;
  font-family: "Inter", sans-serif;
  outline: none;
}

.chat-input:focus {
  border-color: var(--cyan);
}

.chat-send {
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  border: none;
  border-radius: 8px;
  padding: 0.5rem 0.8rem;
  cursor: pointer;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.85rem;
  transition: transform 0.2s;
}

.chat-send:hover {
  transform: scale(1.05);
}

/* Theme buttons inside chat */
.theme-btns {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  padding: 0.5rem 1rem 0.8rem;
  border-top: 1px solid rgba(0, 245, 255, 0.08);
}

.theme-btn {
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  border: 1px solid;
  font-size: 0.65rem;
  cursor: pointer;
  font-family: "Orbitron", sans-serif;
  transition: all 0.2s;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  text-align: center;
  padding: 2rem;
  color: rgba(200, 208, 224, 0.4);
  font-size: 0.8rem;
  border-top: 1px solid rgba(0, 245, 255, 0.05);
}

/* ============================================================
   SCROLL REVEAL ANIMATION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 700px) {
  .contact-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .nav-links {
    gap: 0.8rem;
  }
  .nav-link {
    font-size: 0.72rem;
  }
  .screen {
    padding: 1.5rem;
  }
  .monitor {
    border-radius: 12px;
  }
  .chat-window {
    width: 280px;
  }
}

/* ============================================================
   SMOOTH SCROLL ENHANCEMENTS
   ============================================================ */

/* Offset anchor targets so fixed nav doesn't overlap */
section,
[id] {
  scroll-margin-top: 72px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--navy);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--cyan), var(--violet));
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--cyan);
}

/* Scroll-to-top button */
.scroll-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  border: none;
  color: #050818;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 245, 255, 0.3);
  pointer-events: none;
}
.scroll-top-btn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.scroll-top-btn:hover {
  box-shadow: 0 6px 28px rgba(0, 245, 255, 0.55);
  transform: translateY(-3px);
}
