/* ============================================================
   MARK GRIVIN PORTFOLIO — mystyle.css
   ============================================================ */

/* ─── VARIABLES & RESET ────────────────────────────────── */
:root {
  --bg:          #0a0a0f;
  --bg-card:     #12121a;
  --bg-nav:      rgba(10,10,15,0.9);
  --primary:     #7c3aed;
  --primary-glow:#9d5cf6;
  --accent:      #06b6d4;
  --accent2:     #f59e0b;
  --text:        #e2e8f0;
  --text-muted:  #94a3b8;
  --border:      rgba(124,58,237,0.2);
  --radius:      12px;
  --radius-lg:   20px;
  --shadow:      0 8px 32px rgba(0,0,0,0.4);
  --transition:  0.3s cubic-bezier(.4,0,.2,1);
  --font-main:   'Inter', sans-serif;
  --font-mono:   'Fira Code', monospace;
  --max-w:       1200px;
}

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

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

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

a { text-decoration: none; color: inherit; transition: color var(--transition); }

ul { list-style: none; }

img { max-width: 100%; display: block; }

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

/* ─── TYPOGRAPHY ────────────────────────────────────────── */
h1,h2,h3,h4 { font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.25rem; }

/* ─── LAYOUT UTILITIES ──────────────────────────────────── */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }

.section { padding: 5rem 0; }

/* ─── BUTTONS ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.07);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.btn:hover::after { transform: scaleX(1); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-glow));
  color: #fff;
  box-shadow: 0 4px 24px rgba(124,58,237,0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(124,58,237,0.55);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-glow);
  border: 2px solid var(--primary);
}
.btn-secondary:hover {
  background: rgba(124,58,237,0.12);
  transform: translateY(-2px);
}

.btn-full { width: 100%; justify-content: center; border-radius: var(--radius); }

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

.section-tag {
  display: inline-block;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section-title {
  background: linear-gradient(135deg, #fff 40%, var(--primary-glow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

/* ─── NAVIGATION ────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1rem 0;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}

#navbar.scrolled {
  padding: 0.6rem 0;
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.nav-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--primary-glow);
}
.logo-bracket { color: var(--accent); }

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

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  transition: color var(--transition);
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--primary-glow);
  border-radius: 2px;
  transition: width var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

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

/* ─── HERO ──────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 6rem 4rem 4rem;
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  gap: 3rem;
}

.hero-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* radial glow background */
.hero-bg::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(124,58,237,0.15) 0%, transparent 70%);
  top: -100px; left: -200px;
  border-radius: 50%;
}
.hero-bg::after {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(6,182,212,0.1) 0%, transparent 70%);
  bottom: 0; right: -150px;
  border-radius: 50%;
}

/* floating particles */
.particle {
  position: absolute;
  left: var(--x); top: var(--y);
  width: var(--size); height: var(--size);
  background: var(--primary-glow);
  border-radius: 50%;
  opacity: 0.6;
  animation: floatParticle 6s ease-in-out infinite;
  animation-delay: var(--delay);
}
@keyframes floatParticle {
  0%,100% { transform: translateY(0) scale(1); opacity: 0.6; }
  50% { transform: translateY(-20px) scale(1.3); opacity: 1; }
}

.hero-greeting {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 0.75rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.2s;
}

.hero-title {
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.4s;
}

.highlight {
  background: linear-gradient(135deg, var(--primary-glow), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 1.25rem;
  min-height: 2rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.6s;
}

.cursor { animation: blink 0.8s step-end infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

.hero-description {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.8s;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 1s;
}

.hero-socials {
  display: flex;
  gap: 1rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 1.2s;
}

.social-link {
  width: 42px; height: 42px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1rem;
  transition: all var(--transition);
  backdrop-filter: blur(6px);
}
.social-link:hover {
  border-color: var(--primary-glow);
  color: var(--primary-glow);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(124,58,237,0.3);
  background: rgba(124,58,237,0.1);
}

/* Code Card */
.hero-visual {
  display: flex;
  justify-content: center;
  opacity: 0;
  animation: fadeLeft 1s ease forwards 0.6s;
}

.code-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow), 0 0 50px rgba(124,58,237,0.12);
  width: 100%;
  max-width: 420px;
}

.code-card-header {
  background: #1a1a2e;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }
.file-name { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted); margin-left: auto; }

.code-card-body {
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.9;
  overflow-x: auto;
}
.code-card-body .kw { color: #c792ea; }
.code-card-body .var { color: #82aaff; }
.code-card-body .prop { color: #80cbc4; }
.code-card-body .str { color: #c3e88d; }

/* Scroll indicator */
.scroll-down {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }

/* ─── ABOUT ─────────────────────────────────────────────── */
.about { background: rgba(255,255,255,0.01); }

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

.about-image-wrap { position: relative; display: flex; justify-content: center; }

.about-image-ring {
  width: 220px; height: 220px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  animation: rotateBorder 8s linear infinite;
}
@keyframes rotateBorder { to { filter: hue-rotate(360deg); } }

.about-avatar {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: var(--primary-glow);
  overflow: hidden;
}

.about-avatar-photo {
  padding: 0;
  background: transparent;
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 50%;
  display: block;
  transition: transform 0.4s ease;
}

.about-image-wrap:hover .profile-photo {
  transform: scale(1.05);
}

.about-badge {
  position: absolute;
  bottom: 10px; right: 0;
  background: linear-gradient(135deg,var(--primary),var(--accent));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(124,58,237,0.4);
  cursor: pointer;
  transition: transform var(--transition);
}
.about-badge:hover { transform: scale(1.05); }

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

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

.info-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.info-item i { color: var(--accent); width: 18px; text-align: center; }
.info-item a { color: var(--text-muted); }
.info-item a:hover { color: var(--accent); }

/* ─── SKILLS ────────────────────────────────────────────── */
.skills { background: rgba(124,58,237,0.03); }

.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin-top: 0.5rem;
  opacity: 0.85;
}

.skills-category-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-glow);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1.5rem;
  padding: 0.5rem 1.2rem;
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: 50px;
}
.skills-category-label i { font-size: 0.95rem; }

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


.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.skill-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg,var(--primary),var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.skill-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,0.4); border-color: rgba(124,58,237,0.4); }
.skill-card:hover::before { transform: scaleX(1); }

.skill-icon {
  font-size: 2.4rem;
  color: var(--color);
  margin-bottom: 1rem;
  transition: transform var(--transition);
}
.skill-card:hover .skill-icon { transform: scale(1.1) rotate(-5deg); }

.skill-card h3 { margin-bottom: 0.4rem; }
.skill-card p { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 1rem; }

.skill-bar {
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  overflow: hidden;
}
.skill-progress {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 3px;
  transition: width 1.2s cubic-bezier(.4,0,.2,1) 0.3s;
}
.skill-card.in-view .skill-progress { width: var(--w); }

/* ─── PROJECTS ──────────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}
.project-card:hover { transform: translateY(-8px); box-shadow: 0 20px 50px rgba(0,0,0,0.5); border-color: rgba(124,58,237,0.5); }

.project-img { position: relative; aspect-ratio: 16/9; overflow: hidden; }

.project-placeholder {
  width: 100%; height: 100%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: rgba(255,255,255,0.85);
  background-image: var(--bg);
  transition: transform var(--transition);
}
.project-card:hover .project-placeholder { transform: scale(1.05); }

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
  backdrop-filter: blur(4px);
}
.project-card:hover .project-overlay { opacity: 1; }

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

.project-link {
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  transition: all var(--transition);
}
.project-link:hover { background: var(--primary); border-color: var(--primary); transform: scale(1.1); }

.project-info { padding: 1.5rem; }
.project-info h3 { margin-bottom: 0.5rem; }
.project-info p { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 1rem; }

.project-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.project-tags span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: rgba(124,58,237,0.15);
  color: var(--primary-glow);
  border: 1px solid rgba(124,58,237,0.3);
  padding: 0.25rem 0.65rem;
  border-radius: 50px;
}

/* View Details button */
.btn-view-details {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 0.5rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary-glow);
  background: rgba(124,58,237,0.1);
  border: 1.5px solid rgba(124,58,237,0.35);
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-main);
}
.btn-view-details:hover {
  background: rgba(124,58,237,0.25);
  border-color: var(--primary-glow);
  transform: translateY(-2px);
}

/* ─── PROJECT MODAL ──────────────────────────────────────── */
.project-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.project-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.project-modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 60px rgba(124,58,237,0.15);
  transform: translateY(30px) scale(0.97);
  transition: transform 0.35s cubic-bezier(.34,1.56,.64,1);
  scrollbar-width: thin;
  scrollbar-color: var(--primary) transparent;
}
.project-modal-overlay.open .project-modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  z-index: 1;
}
.modal-close:hover { background: rgba(245,87,108,0.15); color: #f5576c; border-color: #f5576c; }

.modal-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 2rem 2rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.modal-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}
.modal-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  background: linear-gradient(135deg, #fff 40%, var(--primary-glow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.modal-subtitle {
  font-size: 0.82rem;
  color: var(--accent);
  font-family: var(--font-mono);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.modal-body { padding: 1.5rem 2rem; display: flex; flex-direction: column; gap: 1.5rem; }

.modal-description {
  font-size: 0.97rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.modal-features h4,
.modal-tech h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.modal-features h4 i { color: #f5c842; }
.modal-tech h4 i { color: var(--accent); }

.modal-features ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.modal-features ul li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.modal-features ul li::before {
  content: '✦';
  color: var(--primary-glow);
  font-size: 0.7rem;
  flex-shrink: 0;
}

.modal-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.modal-tags span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: rgba(6,182,212,0.1);
  color: var(--accent);
  border: 1px solid rgba(6,182,212,0.25);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
}

.modal-footer {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 2rem 2rem;
  border-top: 1px solid var(--border);
}


/* ─── CONTACT ───────────────────────────────────────────── */
.contact { background: rgba(6,182,212,0.02); }

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

.contact-intro {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2rem;
  line-height: 1.8;
}

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

.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.contact-card:hover { border-color: var(--primary); transform: translateX(4px); }

.contact-card-icon {
  width: 44px; height: 44px;
  background: rgba(124,58,237,0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-glow);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.contact-value {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  word-break: break-all;
}

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }

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

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  color: var(--text);
  font-family: var(--font-main);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(148,163,184,0.5); }

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.15);
}

.form-group input.error { border-color: #f87171; }

.form-error { font-size: 0.78rem; color: #f87171; min-height: 1rem; }

/* ─── FOOTER ────────────────────────────────────────────── */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 1.5rem;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.footer-socials { display: flex; gap: 0.75rem; }
.footer-socials a {
  width: 38px; height: 38px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: all var(--transition);
}
.footer-socials a:hover {
  border-color: var(--primary-glow);
  color: var(--primary-glow);
  background: rgba(124,58,237,0.1);
  transform: translateY(-2px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.footer-tagline { opacity: 0.7; }

/* ─── TOAST NOTIFICATIONS ───────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 280px;
  max-width: 360px;
  box-shadow: var(--shadow);
  pointer-events: all;
  animation: slideInRight 0.4s ease, fadeOut 0.4s ease 3.6s forwards;
  border-left: 3px solid var(--primary);
}
.toast.success { border-left-color: #34d399; }
.toast.error   { border-left-color: #f87171; }
.toast.info    { border-left-color: var(--accent); }

.toast-icon { font-size: 1.2rem; flex-shrink: 0; }
.toast.success .toast-icon { color: #34d399; }
.toast.error   .toast-icon { color: #f87171; }
.toast.info    .toast-icon { color: var(--accent); }

.toast-msg { font-size: 0.9rem; color: var(--text); line-height: 1.5; }

@keyframes slideInRight {
  from { transform: translateX(120%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
@keyframes fadeOut {
  from { opacity: 1; }
  to   { opacity: 0; transform: translateX(50%); }
}

/* ─── BACK TO TOP ───────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--primary-glow));
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 4px 20px rgba(124,58,237,0.4);
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition);
  z-index: 999;
}
.back-to-top.show { opacity: 1; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(124,58,237,0.6); }

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

@keyframes fadeLeft {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Intersection observer hooks */
[data-aos] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-aos].in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 7rem 2rem 4rem;
  }
  .hero-description { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .hero-socials { justify-content: center; }
  .hero-visual { order: -1; }
  .scroll-down { display: none; }

  .about-grid { grid-template-columns: 1fr; text-align: center; }
  .about-image-wrap { justify-content: center; }
  .about-info-grid { grid-template-columns: 1fr; }
  .info-item { justify-content: center; }

  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg-nav);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
}

@media (max-width: 480px) {
  .hero { padding: 6rem 1.25rem 3rem; }
  .section { padding: 3.5rem 0; }
  .skills-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .toast-container { right: 1rem; bottom: 1rem; }
}
