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

:root {
  --bg: #060a10;
  --bg2: #0c1220;
  --bg3: #111b2e;
  --surface: #0f1a2d;
  --surface2: #162240;
  --cyan: #00e5ff;
  --cyan-dim: #00a5b8;
  --green: #00ff9d;
  --magenta: #ff00aa;
  --blue: #3d7aff;
  --orange: #ff7b3a;
  --text: #e4eaf6;
  --text-dim: #7a8ba8;
  --text-muted: #4a5a78;
  --glow-cyan: 0 0 30px rgba(0, 229, 255, 0.25);
  --glow-green: 0 0 30px rgba(0, 255, 157, 0.2);
  --glow-magenta: 0 0 30px rgba(255, 0, 170, 0.2);
  --radius: 12px;
  --radius-lg: 20px;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--cyan-dim) var(--bg);
}

body {
  font-family: "Outfit", sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.7;
}

::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--cyan-dim);
  border-radius: 3px;
}

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

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

/* ===================== NAV ===================== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(6, 10, 16, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 229, 255, 0.08);
  transition: all 0.4s ease;
}

nav.scrolled {
  background: rgba(6, 10, 16, 0.92);
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.4);
}

.nav-logo {
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--cyan);
  text-decoration: none;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo .dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-dot 2s ease infinite;
  box-shadow: 0 0 8px var(--green);
}

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

.nav-links {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a:hover {
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.06);
}

.nav-links a.active {
  color: var(--cyan);
}

.nav-cta {
  background: rgba(0, 229, 255, 0.1) !important;
  border: 1px solid rgba(0, 229, 255, 0.25) !important;
  color: var(--cyan) !important;
  font-family: "JetBrains Mono", monospace !important;
  font-size: 0.8rem !important;
}

.nav-cta:hover {
  background: rgba(0, 229, 255, 0.2) !important;
  box-shadow: var(--glow-cyan) !important;
}

/* Mobile menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===================== SECTIONS ===================== */
section {
  position: relative;
  z-index: 1;
  padding: 6rem 2rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-label::before {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--cyan);
}

.section-title {
  font-family: "Sora", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
}

/* Glow line decoration */
.glow-line {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  border-radius: 2px;
  margin-bottom: 2rem;
  box-shadow: var(--glow-cyan);
}

/* ===================== HERO ===================== */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text {
  animation: fadeUp 0.8s ease 0.2s both;
}

.hero-greeting {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
  color: var(--green);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-greeting::before {
  content: none;
}

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

.hero-name {
  font-family: "Sora", sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

.hero-name .highlight {
  background: linear-gradient(135deg, var(--cyan), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-role {
  font-size: 1.2rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
  font-weight: 400;
  max-width: 520px;
}

.hero-role strong {
  color: var(--cyan);
  font-weight: 600;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.hero-tags span {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 20px;
  color: var(--cyan-dim);
  background: rgba(0, 229, 255, 0.04);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.35s ease;
  cursor: pointer;
  border: none;
  font-family: "Outfit", sans-serif;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), #00b8d4);
  color: var(--bg);
  box-shadow: 0 4px 25px rgba(0, 229, 255, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(0, 229, 255, 0.4);
}

.btn-secondary {
  background: rgba(0, 229, 255, 0.08);
  color: var(--cyan);
  border: 1px solid rgba(0, 229, 255, 0.2);
}

.btn-secondary:hover {
  background: rgba(0, 229, 255, 0.15);
  transform: translateY(-2px);
}

/* Hero visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeUp 0.8s ease 0.5s both;
}

.avatar-frame {
  position: relative;
  width: 340px;
  height: 340px;
}

.avatar-slideshow {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid rgba(0, 229, 255, 0.3);
  box-shadow: 0 0 60px rgba(0, 229, 255, 0.15);
  overflow: hidden;
  position: relative;
}

.avatar-slideshow .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.avatar-slideshow .slide.active {
  opacity: 1;
}

.avatar-ring {
  position: absolute;
  inset: -15px;
  border: 1px solid rgba(0, 229, 255, 0.15);
  border-radius: 50%;
  animation: spin 20s linear infinite;
}

.avatar-ring::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--cyan);
}

.avatar-ring2 {
  position: absolute;
  inset: -35px;
  border: 1px dashed rgba(0, 229, 255, 0.08);
  border-radius: 50%;
  animation: spin 35s linear infinite reverse;
}

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

/* Floating badges around avatar */
.float-badge {
  position: absolute;
  background: var(--surface2);
  border: 1px solid rgba(0, 229, 255, 0.15);
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  color: var(--cyan);
  white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}

.float-badge:nth-child(4) {
  top: 10%;
  right: -20%;
  animation-delay: 0s;
}
.float-badge:nth-child(5) {
  bottom: 15%;
  right: -15%;
  animation-delay: 2s;
}
.float-badge:nth-child(6) {
  top: 5%;
  left: -15%;
  animation-delay: 4s;
}
.float-badge:nth-child(7) {
  bottom: 10%;
  left: -20%;
  animation-delay: 1s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* Stats bar */
.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-stat {
  text-align: left;
}

.hero-stat .num {
  font-family: "Sora", sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--cyan);
}

.hero-stat .label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* ===================== ABOUT ===================== */
#about {
  background: linear-gradient(180deg, transparent, rgba(0, 229, 255, 0.02), transparent);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-text p {
  color: var(--text-dim);
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.about-text p strong {
  color: var(--text);
}

.about-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.info-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: all 0.3s ease;
}

.info-card:hover {
  border-color: rgba(0, 229, 255, 0.15);
  transform: translateY(-2px);
}

.info-card .icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.info-card .info-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: "JetBrains Mono", monospace;
}

.info-card .info-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 0.25rem;
}

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

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--cyan), var(--green), var(--magenta));
}

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

.timeline-item::before {
  content: "";
  position: absolute;
  left: -2rem;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  background: var(--bg);
}

.timeline-item .t-date {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  color: var(--cyan-dim);
}

.timeline-item .t-title {
  font-weight: 700;
  font-size: 1rem;
  margin: 0.25rem 0;
}

.timeline-item .t-place {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ===================== PROJECTS ===================== */
#projects {
  padding-bottom: 4rem;
}

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

.project-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.4s ease;
  position: relative;
}

.project-card:hover {
  border-color: rgba(0, 229, 255, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.project-header {
  padding: 1.75rem 1.75rem 0;
  display: flex;
  align-items: start;
  justify-content: space-between;
}

.project-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.project-icon.net {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.15), rgba(0, 229, 255, 0.05));
  color: var(--cyan);
}

.project-icon.dev {
  background: linear-gradient(135deg, rgba(0, 255, 157, 0.15), rgba(0, 255, 157, 0.05));
  color: var(--green);
}

.project-icon.robot {
  background: linear-gradient(135deg, rgba(255, 0, 170, 0.15), rgba(255, 0, 170, 0.05));
  color: var(--magenta);
}

.project-status {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  padding: 0.3rem 0.6rem;
  border-radius: 20px;
  border: 1px solid;
}

.status-done {
  color: var(--green);
  border-color: rgba(0, 255, 157, 0.25);
  background: rgba(0, 255, 157, 0.06);
}

.project-body {
  padding: 1.25rem 1.75rem 1.75rem;
}

.project-body h3 {
  font-family: "Sora", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.project-body p {
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.project-techs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.project-techs span {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  padding: 0.25rem 0.6rem;
  background: rgba(0, 229, 255, 0.06);
  border: 1px solid rgba(0, 229, 255, 0.1);
  border-radius: 6px;
  color: var(--cyan-dim);
}

.project-links {
  display: flex;
  gap: 0.75rem;
}

.project-links a {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.3s;
}

.project-links a:hover {
  color: var(--cyan);
}

/* ===================== SKILLS ===================== */
#skills {
  background: linear-gradient(180deg, transparent, rgba(0, 229, 255, 0.015), transparent);
}

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

.skill-category {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all 0.3s ease;
}

.skill-category:hover {
  border-color: rgba(0, 229, 255, 0.15);
}

.skill-cat-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.skill-cat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.skill-cat-name {
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 1rem;
}

.skill-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.skill-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.skill-item-name {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-weight: 500;
}

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

.skill-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 1.5s ease;
  width: 0;
}

.skill-bar-fill.cyan {
  background: linear-gradient(90deg, var(--cyan-dim), var(--cyan));
}
.skill-bar-fill.green {
  background: linear-gradient(90deg, #007a4d, var(--green));
}
.skill-bar-fill.magenta {
  background: linear-gradient(90deg, #990066, var(--magenta));
}
.skill-bar-fill.blue {
  background: linear-gradient(90deg, #1a3f99, var(--blue));
}
.skill-bar-fill.orange {
  background: linear-gradient(90deg, #994a1a, var(--orange));
}

/* ===================== TECH LOGOS — FIX ===================== */
.tech-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 3rem;
  padding: 2rem;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.tech-logo {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
  cursor: pointer;
}

.tech-logo:hover {
  transform: scale(1.15) translateY(-4px);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.15);
  box-shadow: 0 8px 25px rgba(0, 229, 255, 0.1);
}

/* === CRITICAL FIX: Style images inside tech-logo === */
.tech-logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 6px;
  filter: brightness(0.9) contrast(1.05);
  transition: filter 0.3s ease;
}

.tech-logo:hover img {
  filter: brightness(1.1) contrast(1.1);
}

.tech-logo .tooltip {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  color: var(--cyan-dim);
  font-family: "JetBrains Mono", monospace;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  background: var(--surface2);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(0, 229, 255, 0.1);
}

.tech-logo:hover .tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(2px);
}

/* ===================== GALLERY ===================== */
#gallery .gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.gallery-item {
  aspect-ratio: 1;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 2.5rem;
  transition: all 0.4s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.05), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-item:hover {
  transform: scale(1.03);
  border-color: rgba(0, 229, 255, 0.2);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-item .g-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 1px;
}

.gallery-item--img {
  background-size: cover;
  background-position: center;
  justify-content: flex-end;
  padding-bottom: 0.75rem;
}

.gallery-item--img .g-label {
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

/* ===================== DOCUMENTS ===================== */
#documents {
  background: linear-gradient(180deg, transparent, rgba(0, 229, 255, 0.02), transparent);
}

.docs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 700px;
}

.doc-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: all 0.4s ease;
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.doc-card:hover {
  border-color: rgba(0, 229, 255, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

.doc-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.doc-card h3 {
  font-family: "Sora", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.doc-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.doc-download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  color: var(--cyan);
  padding: 0.5rem 1rem;
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 8px;
  transition: all 0.3s;
}

.doc-card:hover .doc-download {
  background: rgba(0, 229, 255, 0.1);
  box-shadow: var(--glow-cyan);
}

/* ===================== CONTACT ===================== */
#contact {
  padding-bottom: 4rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.3s ease;
  color: var(--text);
}

.contact-link:hover {
  border-color: rgba(0, 229, 255, 0.2);
  transform: translateX(6px);
}

.contact-link .c-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: rgba(0, 229, 255, 0.08);
  flex-shrink: 0;
}

.contact-link .c-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: "JetBrains Mono", monospace;
}

.contact-link .c-value {
  font-size: 0.92rem;
  font-weight: 600;
  margin-top: 0.15rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  color: var(--text);
  font-family: "Outfit", sans-serif;
  font-size: 0.95rem;
  transition: all 0.3s;
  outline: none;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.1);
}

.form-group textarea {
  min-height: 130px;
}

.btn-submit {
  align-self: flex-start;
}

/* ===================== FOOTER ===================== */
footer {
  position: relative;
  z-index: 1;
  padding: 3rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

footer p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

footer a {
  color: var(--cyan);
  text-decoration: none;
}

/* ===================== ANIMATIONS ===================== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Smooth scroll offset for anchors */
section[id] {
  scroll-margin-top: 80px;
}

/* ===================== NOISE OVERLAY ===================== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: .03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}

/* ===================== TYPING CURSOR ===================== */
.cursor {
  display: inline-block;
  width: 8px;
  height: 18px;
  background: var(--green);
  animation: blink-cursor 0.9s step-end infinite;
  margin-left: 2px;
  vertical-align: middle;
}

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

/* ===================== EXPERIENCE ===================== */
.exp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.exp-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

.exp-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  opacity: 0;
  transition: opacity 0.3s;
}

.exp-card:hover {
  border-color: rgba(0, 229, 255, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

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

.exp-date {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  color: var(--cyan-dim);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.exp-date .badge {
  padding: 0.15rem 0.5rem;
  background: rgba(0, 229, 255, 0.08);
  border-radius: 4px;
  border: 1px solid rgba(0, 229, 255, 0.12);
}

.exp-card h3 {
  font-family: "Sora", sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.exp-card .company {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 0.8rem;
}

.exp-card ul {
  list-style: none;
}

.exp-card ul li {
  font-size: 0.85rem;
  color: var(--text-dim);
  padding-left: 1.2rem;
  position: relative;
  margin-bottom: 0.4rem;
  line-height: 1.6;
}

.exp-card ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-size: 0.7rem;
  top: 2px;
}

/* ===================== TOAST ===================== */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 0.8rem 1.5rem;
  background: var(--surface2);
  border: 1px solid rgba(0, 255, 157, 0.3);
  border-radius: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
  color: var(--green);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s ease;
  pointer-events: none;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .hero-grid,
  .about-grid,
  .contact-grid,
  .exp-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-visual {
    order: -1;
  }

  .avatar-frame {
    width: 220px;
    height: 220px;
  }

  .float-badge {
    display: none;
  }

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

  .docs-grid {
    grid-template-columns: 1fr;
  }

  .about-info {
    grid-template-columns: 1fr 1fr;
  }

  .hero-stats {
    gap: 1.5rem;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: rgba(6, 10, 16, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }

  .nav-links.open {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .tech-logos {
    gap: 1rem;
    padding: 1.5rem;
  }

  .tech-logo {
    width: 56px;
    height: 56px;
  }

  .tech-logo img {
    width: 34px;
    height: 34px;
  }
}

@media (max-width: 600px) {
  section {
    padding: 4rem 1.25rem;
  }

  .about-info {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }

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

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
  }

  .tech-logos {
    gap: 0.75rem;
    padding: 1.25rem;
  }

  .tech-logo {
    width: 48px;
    height: 48px;
  }

  .tech-logo img {
    width: 30px;
    height: 30px;
  }
}
