/* ═══════════════════════════════════════
   Portfolio — style.css
   Dynamic CSS variables set by data.js
   Dark / Light mode via [data-mode]
═══════════════════════════════════════ */

:root {
  --primary:   #7C5CFC;
  --accent:    #00D4AA;
  --bg:        #0A0A14;
  --font:      'Inter', sans-serif;

  /* Derived / static */
  --primary-glow: rgba(124,92,252,0.35);
  --accent-glow:  rgba(0,212,170,0.25);
  --radius:    14px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ── DARK MODE (default) ── */
[data-mode="dark"] {
  --bg:        #0A0A14;
  --bg2:       #12121F;
  --bg3:       #1A1A2E;
  --border:    rgba(255,255,255,0.08);
  --text:      #E8E6F0;
  --text2:     #9896B8;
  --text3:     #5F5D80;
  --card-bg:   #12121F;
  --card-hover:#1A1A2E;
  --shadow:    0 8px 32px rgba(0,0,0,0.4);
  --nav-bg:    rgba(10,10,20,0.85);
}

/* ── LIGHT MODE ── */
[data-mode="light"] {
  --bg:        #F5F4FF;
  --bg2:       #FFFFFF;
  --bg3:       #EAE8FF;
  --border:    rgba(0,0,0,0.08);
  --text:      #1A1832;
  --text2:     #5A5880;
  --text3:     #9896B8;
  --card-bg:   #FFFFFF;
  --card-hover:#F0EEFF;
  --shadow:    0 8px 32px rgba(124,92,252,0.1);
  --nav-bg:    rgba(245,244,255,0.9);
}

/* ─────────────────────────
   RESET & BASE
───────────────────────── */
*,*::before,*::after { box-sizing: border-box; margin:0; padding:0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; }
textarea, input, select, button { font-family: var(--font); }

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

/* ─────────────────────────
   CURSOR GLOW
───────────────────────── */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%,-50%);
  transition: opacity 0.3s;
  opacity: 0;
}

/* ─────────────────────────
   BUTTONS
───────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary);
  color: #fff;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none; cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 20px var(--primary-glow);
  text-decoration: none;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px var(--primary-glow); filter: brightness(1.1); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent;
  color: var(--text);
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-glow); }
.btn-full { width: 100%; justify-content: center; }

/* ─────────────────────────
   SECTION COMMON
───────────────────────── */
.section { padding: 100px 0; }
.section-alt { background: var(--bg2); }

.section-title {
  text-align: center;
  margin-bottom: 60px;
}
.section-tag {
  display: inline-block;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
  position: relative;
}
.section-tag::before, .section-tag::after {
  content: '—';
  margin: 0 8px;
  opacity: 0.5;
}
.section-title h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--text);
}
.section-title h2 span { color: var(--primary); }

/* ─────────────────────────
   REVEAL ANIMATIONS
───────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
[data-mode="light"] .reveal,
[data-mode="dark"]  .reveal { /* handled by JS observer */ }

/* ── Animation style overrides ── */
body[data-anim="minimal"] .reveal { transition: opacity 0.4s ease; transform: none !important; }
body[data-anim="bouncy"]  .reveal { transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34,1.56,0.64,1); }

/* ─────────────────────────
   NAVBAR
───────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0;
  transition: all var(--transition);
}
.navbar.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links {
  display: flex;
  gap: 4px;
}
.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text2);
  transition: all var(--transition);
  position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--primary);
}
.nav-actions { display: flex; align-items: center; gap: 10px; }
.mode-toggle {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg2);
  cursor: pointer;
  font-size: 1rem;
  transition: all var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.mode-toggle:hover { border-color: var(--primary); transform: rotate(20deg); }
.btn-hire {
  padding: 9px 22px;
  background: var(--primary);
  color: white;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.88rem;
  transition: all var(--transition);
  box-shadow: 0 4px 16px var(--primary-glow);
}
.btn-hire:hover { transform: translateY(-1px); filter: brightness(1.1); }

.hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all var(--transition); }
.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); }

.mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 70px; left: 0; right: 0;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  z-index: 99;
  padding: 12px 0;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 13px 24px;
  color: var(--text2);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}
.mobile-menu a:hover { color: var(--primary); background: var(--bg3); padding-left: 32px; }

/* ─────────────────────────
   HERO
───────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  padding: 120px 24px 60px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}
.hero-content { flex: 1; max-width: 560px; }
.hero-greeting {
  font-size: 1.1rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}
.hero-name {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 12px;
}
.hero-role {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--text2);
  margin-bottom: 20px;
  height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.typewriter { color: var(--primary); font-weight: 700; }
.cursor-blink {
  color: var(--accent);
  animation: blink 0.9s infinite;
  font-weight: 300;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.hero-bio {
  color: var(--text2);
  font-size: 1rem;
  margin-bottom: 32px;
  line-height: 1.8;
  max-width: 480px;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-socials { display: flex; gap: 12px; }
.social-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: var(--text2);
  transition: all var(--transition);
  text-decoration: none;
}
.social-icon:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-3px); box-shadow: 0 8px 20px var(--primary-glow); }

/* Hero Visual */
.hero-visual {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  position: relative;
}
.hero-avatar-wrap { position: relative; }
.avatar-ring {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 2px dashed var(--primary);
  opacity: 0.4;
  animation: spin 20s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero-avatar {
  width: 220px; height: 220px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
  font-weight: 800;
  color: white;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 60px var(--primary-glow);
}
.hero-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.availability-badge {
  position: absolute;
  bottom: -8px; left: 50%;
  transform: translateX(-50%);
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  display: flex; align-items: center; gap: 6px;
  box-shadow: var(--shadow);
}
.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 var(--accent-glow); }
  50% { box-shadow: 0 0 0 6px transparent; }
}
.hero-stats {
  display: flex;
  gap: 20px;
}
.stat-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 22px;
  text-align: center;
  transition: all var(--transition);
  cursor: default;
}
.stat-box:hover { border-color: var(--primary); transform: translateY(-2px); }
.stat-box strong { display: block; font-size: 1.5rem; font-weight: 800; color: var(--primary); }
.stat-box span { font-size: 0.75rem; color: var(--text2); }

.hero-scroll-hint {
  position: absolute;
  bottom: 32px; left: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text3);
  font-size: 0.75rem;
  font-weight: 500;
}
.scroll-line {
  width: 40px; height: 1px;
  background: var(--text3);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content:'';
  position:absolute; top:0; left:-100%;
  width:100%; height:100%;
  background: var(--accent);
  animation: scrollAnim 2s infinite;
}
@keyframes scrollAnim { to { left: 100%; } }

/* ─────────────────────────
   ABOUT
───────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: center;
}
.about-photo-wrap { position: relative; display: flex; justify-content: center; }
.about-photo {
  width: 320px; height: 360px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem; font-weight: 800; color: white;
  overflow: hidden;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow);
}
.about-photo img { width:100%; height:100%; object-fit: cover; border-radius: 24px; }
.about-photo-deco {
  position: absolute;
  width: 280px; height: 320px;
  border: 2px solid var(--primary);
  border-radius: 24px;
  top: 24px; left: calc(50% + 24px);
  transform: translateX(-50%);
  opacity: 0.3;
  z-index: 0;
}
.about-text h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}
.about-text p {
  color: var(--text2);
  line-height: 1.9;
  margin-bottom: 24px;
}
.about-interests {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 28px;
}
.interest-tag {
  padding: 6px 16px;
  border-radius: 50px;
  background: var(--bg3);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text2);
  transition: all var(--transition);
}
.interest-tag:hover { border-color: var(--primary); color: var(--primary); }
.about-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ─────────────────────────
   SKILLS
───────────────────────── */
.skills-wrapper {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
}
.skill-group {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--transition);
}
.skill-group:hover { border-color: var(--primary); box-shadow: 0 4px 24px var(--primary-glow); }
.skill-group-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 8px;
}
.skill-item { margin-bottom: 16px; }
.skill-item:last-child { margin-bottom: 0; }
.skill-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.skill-pct { color: var(--primary); }
.skill-bar {
  height: 6px;
  background: var(--bg3);
  border-radius: 3px;
  overflow: hidden;
}
.skill-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  width: 0;
  transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
}

/* ─────────────────────────
   PROJECTS
───────────────────────── */
.filter-tabs {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 36px; justify-content: center;
}
.ftab {
  padding: 8px 22px;
  border-radius: 50px;
  border: 2px solid var(--border);
  background: transparent;
  color: var(--text2);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition);
}
.ftab:hover { border-color: var(--primary); color: var(--primary); }
.ftab.active { background: var(--primary); border-color: var(--primary); color: white; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
}
.project-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  display: flex; flex-direction: column;
}
.project-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,0.3); border-color: var(--primary); }
.project-thumb {
  height: 180px;
  background: linear-gradient(135deg, var(--bg3), var(--bg2));
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem;
  position: relative;
  overflow: hidden;
}
.project-thumb img { width:100%; height:100%; object-fit:cover; }
.project-thumb-placeholder { font-size: 3.5rem; }
.project-featured-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--primary);
  color: white; font-size: 0.65rem; font-weight: 700;
  padding: 3px 10px; border-radius: 50px;
}
.project-body { padding: 20px; flex:1; display:flex; flex-direction:column; }
.project-title {
  font-size: 1rem; font-weight: 700; color: var(--text);
  margin-bottom: 8px;
}
.project-desc {
  font-size: 0.85rem; color: var(--text2);
  line-height: 1.7; flex:1; margin-bottom: 14px;
}
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.project-tag {
  padding: 3px 10px; border-radius: 50px;
  background: var(--bg3);
  font-size: 0.72rem; font-weight: 600; color: var(--primary);
}
.project-links { display: flex; gap: 10px; }
.project-link {
  flex: 1; text-align: center;
  padding: 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 0.78rem; font-weight: 600; color: var(--text2);
  transition: all var(--transition);
}
.project-link:hover { border-color: var(--primary); color: var(--primary); background: var(--bg3); }

/* ─────────────────────────
   TIMELINE (Experience)
───────────────────────── */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 28px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  opacity: 0.3;
}
.timeline-item {
  display: flex;
  gap: 24px;
  margin-bottom: 40px;
  position: relative;
}
.timeline-dot {
  flex-shrink: 0;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--bg2);
  border: 2px solid var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  z-index: 1;
  box-shadow: 0 0 20px var(--primary-glow);
}
.timeline-card {
  flex: 1;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all var(--transition);
}
.timeline-card:hover { border-color: var(--primary); box-shadow: 0 4px 24px var(--primary-glow); }
.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.timeline-role { font-size: 1.05rem; font-weight: 700; color: var(--text); }
.timeline-badge {
  padding: 3px 12px; border-radius: 50px;
  background: var(--primary-glow); border: 1px solid var(--primary);
  font-size: 0.72rem; font-weight: 600; color: var(--primary);
}
.timeline-company { font-size: 0.85rem; font-weight: 600; color: var(--primary); margin-bottom: 6px; }
.timeline-meta { font-size: 0.78rem; color: var(--text3); margin-bottom: 14px; }
.timeline-bullets { padding-left: 16px; }
.timeline-bullets li {
  font-size: 0.85rem; color: var(--text2);
  margin-bottom: 6px; position: relative;
}
.timeline-bullets li::before {
  content: '▸';
  position: absolute; left: -16px;
  color: var(--accent);
}

/* ─────────────────────────
   EDUCATION
───────────────────────── */
.education-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.edu-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex; gap: 20px;
  align-items: flex-start;
  transition: all var(--transition);
}
.edu-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 8px 28px var(--accent-glow); }
.edu-icon {
  font-size: 2.4rem;
  background: var(--bg3);
  width: 56px; height: 56px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.edu-degree { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.edu-institution { font-size: 0.85rem; color: var(--primary); font-weight: 600; margin-bottom: 4px; }
.edu-meta { font-size: 0.78rem; color: var(--text3); }

/* ─────────────────────────
   TESTIMONIALS
───────────────────────── */
.testimonials-slider {
  position: relative;
  max-width: 700px;
  margin: 0 auto 24px;
  min-height: 200px;
}
.testimonial-card {
  display: none;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  text-align: center;
  animation: fadeSlide 0.5s ease;
}
.testimonial-card.active { display: block; }
@keyframes fadeSlide { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }
.test-quote {
  font-size: 3rem;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 16px;
}
.test-text {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 24px;
}
.test-author { display: flex; align-items: center; gap: 14px; justify-content: center; }
.test-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: white; font-size: 1.1rem;
  overflow: hidden; flex-shrink: 0;
}
.test-avatar img { width:100%; height:100%; object-fit:cover; }
.test-name { font-weight: 700; color: var(--text); font-size: 0.9rem; }
.test-role { font-size: 0.78rem; color: var(--text3); }
.test-stars { color: #F59E0B; font-size: 0.85rem; margin-top: 2px; }

.testimonial-dots { display: flex; justify-content: center; gap: 8px; }
.t-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border);
  border: none; cursor: pointer;
  transition: all var(--transition);
}
.t-dot.active { background: var(--primary); width: 24px; border-radius: 4px; }

/* ─────────────────────────
   CONTACT
───────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}
.contact-info h3 {
  font-size: 1.4rem; font-weight: 700;
  color: var(--text); margin-bottom: 12px;
}
.contact-info > p { color: var(--text2); margin-bottom: 28px; line-height: 1.8; }
.contact-items { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.contact-item {
  display: flex; align-items: center; gap: 14px;
}
.contact-item-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg3);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
  transition: all var(--transition);
}
.contact-item:hover .contact-item-icon { background: var(--primary); border-color: var(--primary); }
.contact-item-label { font-size: 0.72rem; color: var(--text3); text-transform: uppercase; letter-spacing: 0.06em; }
.contact-item-value { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.contact-socials { display: flex; gap: 10px; }

/* Form */
.contact-form {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  display: flex; flex-direction: column; gap: 18px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: var(--text2); }
.form-group input, .form-group textarea {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition);
  resize: none;
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.form-msg { font-size: 0.85rem; text-align: center; min-height: 20px; font-weight: 500; }
.form-msg.success { color: #00D4AA; }
.form-msg.error   { color: #FF6B6B; }
.form-msg.info    { color: var(--primary); }

/* Two-column name + email row */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

/* Subject dropdown */
.form-group select {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.93rem;
  color: var(--text1);
  font-family: inherit;
  cursor: pointer;
  transition: border-color var(--transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  outline: none;
}

/* Message label hint */
.msg-hint {
  font-size: 0.75rem;
  font-weight: 400;
  margin-left: 8px;
}

/* Remember me checkbox row */
.remember-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text2);
  cursor: pointer;
  user-select: none;
}
.remember-wrap input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}

/* ─────────────────────────
   FOOTER
───────────────────────── */
.footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-logo {
  font-size: 1.1rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-copy { font-size: 0.82rem; color: var(--text3); }
.footer-admin-link {
  font-size: 0.8rem;
  color: var(--text3);
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 50px;
  transition: all var(--transition);
}
.footer-admin-link:hover { border-color: var(--primary); color: var(--primary); }

/* ─────────────────────────
   BACK TO TOP & TOAST
───────────────────────── */
.back-top {
  position: fixed; bottom: 28px; right: 28px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: white; border: none; cursor: pointer;
  font-size: 1.1rem; font-weight: 700;
  box-shadow: 0 4px 16px var(--primary-glow);
  opacity: 0; transform: translateY(16px);
  transition: all var(--transition);
  z-index: 90;
}
.back-top.visible { opacity: 1; transform: translateY(0); }
.back-top:hover { transform: translateY(-4px); }

.toast {
  position: fixed; bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--bg2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  color: var(--text);
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 0.88rem; font-weight: 600;
  z-index: 300; opacity: 0;
  transition: all 0.35s ease;
  white-space: nowrap;
  box-shadow: var(--shadow);
}
.toast.show { opacity:1; transform: translateX(-50%) translateY(0); }

/* ─────────────────────────
   RESPONSIVE
───────────────────────── */
@media (max-width: 1024px) {
  .skills-wrapper { grid-template-columns: repeat(2,1fr); }
  .projects-grid  { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 900px) {
  .hero { flex-direction: column; text-align: center; min-height: auto; gap: 40px; }
  .hero-bio, .hero-btns, .hero-socials { justify-content: center; max-width: 100%; }
  .hero-scroll-hint { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo-wrap { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .education-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .btn-hire { display: none; }
  .section { padding: 70px 0; }
  .projects-grid { grid-template-columns: 1fr; }
  .skills-wrapper { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-name { font-size: 2.2rem; }
  .hero-stats { flex-direction: column; align-items: center; }
  .section-title h2 { font-size: 1.7rem; }
  .contact-form { padding: 24px; }
}
