/* =====================================================
   GIAN DANOVAN — PORTFOLIO STYLESHEET
   File   : style.css
   Author : Gian Danovan
   ===================================================== */

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

:root {
  --bg:       #080c12;
  --bg2:      #0d1219;
  --bg3:      #111820;
  --card:     #141b25;
  --card2:    #1a2333;
  --border:   rgba(0, 200, 255, 0.12);
  --neon:     #00c8ff;
  --neon2:    #0080ff;
  --neon3:    #00ffd5;
  --text:     #e8edf5;
  --muted:    #7a8fa8;
  --white:    #ffffff;
  --accent:   #ff6b35;
  --glow:     0 0 20px rgba(0,200,255,0.35), 0 0 40px rgba(0,200,255,0.15);
  --glow2:    0 0 15px rgba(0,128,255,0.4);
  --font-head: 'Outfit', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --nav-h:    70px;
  --radius:   16px;
  --trans:    all 0.35s cubic-bezier(.4,0,.2,1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-head);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--neon); border-radius: 3px; }
::selection { background: rgba(0,200,255,0.25); color: var(--white); }

/* ============ LOADER ============ */
#loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#loader.hide {
  opacity: 0;
  visibility: hidden;
}

.loader-logo {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--neon);
  letter-spacing: 4px;
  text-shadow: var(--glow);
  animation: loaderPulse 1s ease-in-out infinite alternate;
}

.loader-bar {
  width: 200px;
  height: 3px;
  background: var(--card2);
  border-radius: 2px;
  overflow: hidden;
}

.loader-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--neon2), var(--neon), var(--neon3));
  border-radius: 2px;
  animation: loaderFill 1.8s ease forwards;
}

@keyframes loaderFill { from { width: 0 } to { width: 100% } }
@keyframes loaderPulse {
  from { text-shadow: var(--glow); }
  to   { text-shadow: 0 0 40px rgba(0,200,255,0.8), 0 0 80px rgba(0,200,255,0.4); }
}

/* ============ NAVBAR ============ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(8,12,18,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 clamp(20px, 5vw, 80px);
  transition: var(--trans);
}

nav.scrolled {
  background: rgba(8,12,18,0.98);
  border-color: rgba(0,200,255,0.2);
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--neon);
  letter-spacing: 2px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo span { color: var(--white); }

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: auto;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  letter-spacing: 1px;
  transition: var(--trans);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--neon);
  background: rgba(0,200,255,0.08);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  background: var(--neon);
  border-radius: 50%;
}

.nav-cta {
  margin-left: 16px;
  background: linear-gradient(135deg, var(--neon2), var(--neon));
  color: var(--bg) !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  padding: 8px 18px !important;
}

.nav-cta:hover {
  box-shadow: var(--glow2) !important;
  transform: translateY(-1px) !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  margin-left: auto;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--neon);
  border-radius: 2px;
  transition: var(--trans);
}

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

/* ============ PARTICLES ============ */
#particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* ============ HERO ============ */
#home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: var(--nav-h) clamp(20px, 5vw, 80px) 60px;
  flex-direction: column;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(0,128,255,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(0,200,255,0.06) 0%, transparent 60%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,200,255,0.08);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 16px;
  margin-bottom: 24px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--neon);
  letter-spacing: 2px;
}

.hero-tag::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--neon);
  border-radius: 50%;
  animation: blink 1.5s ease-in-out infinite;
}

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

.hero-name {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.hero-name .first { color: var(--white); }

.hero-name .last {
  background: linear-gradient(135deg, var(--neon2), var(--neon), var(--neon3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-typing {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2vw, 1.35rem);
  color: var(--neon);
  min-height: 2em;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.typing-prefix { color: var(--muted); }

.cursor {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background: var(--neon);
  animation: blink 0.9s step-end infinite;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 500px;
}

.hero-desc strong { color: var(--text); }

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--trans);
  letter-spacing: 0.3px;
  font-family: var(--font-head);
}

.btn-primary {
  background: linear-gradient(135deg, var(--neon2), var(--neon));
  color: var(--bg);
  box-shadow: 0 4px 24px rgba(0,200,255,0.25);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,200,255,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--neon);
  border: 1.5px solid rgba(0,200,255,0.4);
}

.btn-outline:hover {
  background: rgba(0,200,255,0.08);
  border-color: var(--neon);
  transform: translateY(-3px);
}

/* ============ HERO VISUAL ============ */
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.hero-avatar-wrap {
  position: relative;
  width: 280px; height: 280px;
}

.hero-avatar-ring {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(135deg, var(--neon2), var(--neon), var(--neon3)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  animation: spinRing 6s linear infinite;
}

.hero-avatar-ring2 {
  position: absolute;
  inset: -24px;
  border-radius: 50%;
  border: 1px solid rgba(0,200,255,0.15);
  animation: spinRing 10s linear infinite reverse;
}

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

.hero-avatar {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: var(--card2);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--card2);
  position: relative;
  z-index: 1;
}

.hero-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.hero-avatar-placeholder {
  font-size: 80px;
  color: var(--neon);
  opacity: 0.6;
}

.hero-stats {
  display: flex;
  gap: 20px;
}

.stat-item {
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 20px;
}

.stat-num {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--neon);
  font-weight: 700;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 2px;
}

/* ============ GALLERY ============ */
.hero-gallery {
  width: 100%;
  max-width: 1200px;
  margin: 60px auto 0;
  padding: 0 clamp(20px, 5vw, 80px);
  position: relative;
  z-index: 1;
}

.gallery-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.gallery-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--card2) transparent;
}

.gallery-item {
  flex-shrink: 0;
  width: 200px; height: 140px;
  border-radius: 12px;
  background: var(--card2);
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: var(--trans);
}

.gallery-item:hover {
  transform: scale(1.04);
  border-color: var(--neon);
}

.gallery-item-inner {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-size: 2rem;
}

.gallery-item-inner span {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  letter-spacing: 1px;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.7));
  opacity: 0;
  transition: var(--trans);
}

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

/* ============ SECTION BASE ============ */
.section {
  padding: clamp(80px, 12vw, 120px) clamp(20px, 5vw, 80px);
  position: relative;
}

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

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--neon);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-tag::before {
  content: '';
  width: 20px; height: 1px;
  background: var(--neon);
}

.section-tag::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 60px;
  letter-spacing: -0.5px;
}

.section-title span {
  background: linear-gradient(135deg, var(--neon2), var(--neon));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* ============ ABOUT ============ */
#about { background: var(--bg2); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.about-img-wrap { position: relative; }

.about-img {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--card2);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
}

.about-badge {
  position: absolute;
  bottom: -20px; right: -20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  text-align: center;
}

.about-badge-num {
  font-family: var(--font-mono);
  font-size: 2rem;
  color: var(--neon);
  font-weight: 700;
  line-height: 1;
}

.about-badge-txt {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 4px;
}

.about-text p {
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 20px;
}

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

.highlight {
  color: var(--neon) !important;
  font-weight: 600;
}

/* Timeline */
.timeline { margin-top: 40px; }

.tl-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--neon);
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.tl-item {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
}

.tl-dot-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.tl-dot {
  width: 12px; height: 12px;
  background: var(--neon);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0,200,255,0.5);
  flex-shrink: 0;
  margin-top: 4px;
}

.tl-line {
  flex: 1;
  width: 1px;
  background: var(--border);
  margin-top: 6px;
}

.tl-item:last-child .tl-line { display: none; }

.tl-content { padding-bottom: 20px; }

.tl-year {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--neon);
  letter-spacing: 1px;
}

.tl-role {
  font-weight: 600;
  font-size: 0.95rem;
  margin: 2px 0;
}

.tl-org {
  font-size: 0.82rem;
  color: var(--muted);
}

/* ============ SKILLS ============ */
#skills { background: var(--bg); }

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

.skill-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  cursor: default;
  transition: var(--trans);
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--neon2), var(--neon));
  transform: scaleX(0);
  transition: var(--trans);
}

.skill-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0,200,255,0.3);
  background: var(--card2);
}

.skill-card:hover::before { transform: scaleX(1); }

.skill-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--neon2), var(--neon));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.skill-name {
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 8px;
}

.skill-bar {
  height: 3px;
  background: var(--bg3);
  border-radius: 2px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--neon2), var(--neon));
  border-radius: 2px;
  width: 0;
  transition: width 1.2s cubic-bezier(.4,0,.2,1) 0.3s;
}

.skill-level {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--muted);
  margin-top: 6px;
}

/* ============ PROJECTS ============ */
#projects { background: var(--bg2); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--trans);
  display: flex;
  flex-direction: column;
}

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

.project-thumb {
  height: 200px;
  background: var(--card2);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-thumb-icon {
  font-size: 4rem;
  opacity: 0.3;
}

.project-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,128,255,0.2), rgba(0,200,255,0.1));
  opacity: 0;
  transition: var(--trans);
}

.project-card:hover .project-thumb-overlay { opacity: 1; }

.project-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(0,200,255,0.15);
  border: 1px solid rgba(0,200,255,0.3);
  color: var(--neon);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 1px;
}

.project-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
}

.project-desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 20px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.project-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 4px 10px;
  background: rgba(0,128,255,0.1);
  color: var(--neon2);
  border-radius: 6px;
  border: 1px solid rgba(0,128,255,0.2);
}

.project-links {
  display: flex;
  gap: 12px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  transition: var(--trans);
}

.project-link-gh {
  background: var(--card2);
  color: var(--text);
  border: 1px solid var(--border);
}

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

.project-link-demo {
  background: linear-gradient(135deg, var(--neon2), var(--neon));
  color: var(--bg);
}

.project-link-demo:hover {
  box-shadow: var(--glow2);
  transform: translateY(-2px);
}

/* ============ CONTACT ============ */
#contact { background: var(--bg); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
}

.contact-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.contact-info p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 36px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: var(--trans);
}

.contact-detail:hover {
  border-color: rgba(0,200,255,0.3);
  background: var(--card2);
}

.contact-detail-icon {
  width: 38px; height: 38px;
  border-radius: 8px;
  flex-shrink: 0;
  background: rgba(0,200,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon);
  font-size: 1rem;
}

.contact-detail-txt span {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
}

.contact-detail-txt strong { font-size: 0.88rem; }

.socials {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

.social-btn {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 1.1rem;
  text-decoration: none;
  transition: var(--trans);
}

.social-btn:hover {
  color: var(--neon);
  border-color: rgba(0,200,255,0.4);
  background: rgba(0,200,255,0.08);
  transform: translateY(-3px);
}

.map-box {
  height: 180px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-top: 24px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 30px 30px;
}

.map-pin {
  position: relative;
  z-index: 1;
  text-align: center;
}

.map-pin i {
  font-size: 2rem;
  color: var(--neon);
  animation: mapBounce 1.5s ease-in-out infinite;
}

.map-pin span {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 6px;
  font-family: var(--font-mono);
}

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

/* Contact Form */
.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}

.form-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.form-row { margin-bottom: 20px; }

.form-row label {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.form-row input,
.form-row textarea {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font-head);
  font-size: 0.95rem;
  padding: 12px 16px;
  outline: none;
  transition: var(--trans);
  resize: none;
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--neon);
  box-shadow: 0 0 0 3px rgba(0,200,255,0.08);
}

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

.form-submit {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--neon2), var(--neon));
  color: var(--bg);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--trans);
  font-family: var(--font-head);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.form-submit:hover {
  box-shadow: 0 6px 24px rgba(0,200,255,0.4);
  transform: translateY(-2px);
}

.form-success {
  display: none;
  text-align: center;
  padding: 20px;
  color: var(--neon3);
  font-size: 1rem;
  font-weight: 600;
}

/* ============ FOOTER ============ */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 40px clamp(20px, 5vw, 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--neon);
  font-weight: 700;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-copy span { color: var(--neon); }

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
  transition: var(--trans);
  font-family: var(--font-mono);
}

.footer-links a:hover { color: var(--neon); }

/* ============ SCROLL ANIMATIONS ============ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in {
  opacity: 0;
  transition: opacity 0.7s ease;
}

.fade-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.visible {
  opacity: 1 !important;
  transform: none !important;
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }
.delay-7 { transition-delay: 0.7s; }
.delay-8 { transition-delay: 0.8s; }

/* ============ BACK TO TOP ============ */
#btt {
  position: fixed;
  bottom: 30px; right: 30px;
  z-index: 500;
  width: 44px; height: 44px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon);
  cursor: pointer;
  transition: var(--trans);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

#btt.show {
  opacity: 1;
  transform: none;
  pointer-events: all;
}

#btt:hover {
  background: rgba(0,200,255,0.15);
  transform: translateY(-3px);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .hamburger { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    background: rgba(8,12,18,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 20px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; }
  .nav-cta { margin-left: 0; margin-top: 8px; }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-desc { margin: 0 auto 36px; }
  .hero-btns { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-avatar-wrap { width: 220px; height: 220px; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}