/* ==========================================================
   SAMYOG PHUYAL — PORTFOLIO STYLESHEET
   Sections: Variables → Reset → Base → Navbar → Hero →
             About → Education → Skills → Projects →
             Services → Contact → Footer → Utilities →
             Dark/Light toggle → Responsive
   ========================================================== */

/* ──────────────────────────────────────────
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   ────────────────────────────────────────── */
:root {
  /* Dark theme (default) */
  --bg:          #0a0a0f;
  --bg-card:     #111119;
  --bg-glass:    rgba(255,255,255,0.04);
  --border:      rgba(255,255,255,0.08);
  --text:        #e8e8f0;
  --text-muted:  #8888aa;
  --accent:      #7c6ff7;
  --accent-2:    #f7836f;
  --accent-glow: rgba(124, 111, 247, 0.35);

  /* Typography */
  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  /* Spacing & Radii */
  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  40px;

  /* Transitions */
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);

  /* Navbar height (used for offset) */
  --nav-h: 70px;
}

/* Light theme overrides */
[data-theme="light"] {
  --bg:          #f4f4f9;
  --bg-card:     #ffffff;
  --bg-glass:    rgba(0,0,0,0.03);
  --border:      rgba(0,0,0,0.08);
  --text:        #16161f;
  --text-muted:  #666688;
  --accent:      #5d54e8;
  --accent-2:    #e8614f;
  --accent-glow: rgba(93, 84, 232, 0.20);
}

/* ──────────────────────────────────────────
   2. RESET & BASE
   ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

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

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea { font-family: inherit; }

/* ──────────────────────────────────────────
   3. REUSABLE LAYOUT HELPERS
   ────────────────────────────────────────── */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Section common */
.section {
  padding: 110px 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 64px;
}

.accent { color: var(--accent); }

/* ──────────────────────────────────────────
   4. BUTTONS
   ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: var(--radius-xl);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 28px var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-2);
  box-shadow: 0 0 36px rgba(247,131,111,0.4);
  transform: translateY(-2px);
}

.btn-outline {
  border: 1.5px solid var(--border);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.full-width { width: 100%; justify-content: center; }

/* ──────────────────────────────────────────
   5. NAVBAR
   ────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background var(--transition), backdrop-filter var(--transition), box-shadow var(--transition);
}

/* Becomes opaque after scroll (via JS class) */
.navbar.scrolled {
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}
[data-theme="light"] .navbar.scrolled {
  background: rgba(244, 244, 249, 0.85);
}

.nav-container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
  transition: color var(--transition);
}
.nav-logo .dot { color: var(--accent); }

/* Desktop links */
.nav-links {
  display: flex;
  gap: 36px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding-bottom: 2px;
  transition: color var(--transition);
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1.5px;
  background: var(--accent);
  transition: width var(--transition);
}
.nav-link:hover,
.nav-link.active { color: var(--text); }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

/* Nav actions (right side) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Theme toggle button */
.theme-toggle {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: all var(--transition);
  position: relative;
}
.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}
/* Show sun in dark mode, moon in light mode */
[data-theme="dark"]  #iconMoon { display: none; }
[data-theme="light"] #iconSun  { display: none; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.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: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ──────────────────────────────────────────
   6. HERO SECTION
   ────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 24px 80px;
}

/* Decorative gradient blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.18;
  pointer-events: none;
}
.blob-1 {
  width: 600px; height: 600px;
  background: var(--accent);
  top: -150px; left: -100px;
}
.blob-2 {
  width: 500px; height: 500px;
  background: var(--accent-2);
  bottom: -100px; right: -80px;
}
[data-theme="light"] .blob { opacity: 0.10; }

.hero-content {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-greeting {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 6.5rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

/* Second line of name gets gradient */
.name-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Typing animation */
.hero-roles {
  display: inline-flex;
  align-items: center;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.typed-text { color: var(--text); font-weight: 600; }
.cursor {
  display: inline-block;
  color: var(--accent);
  font-weight: 300;
  animation: blink 0.8s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-tagline {
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 40px;
  font-size: 1rem;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

/* Scroll indicator */
.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.scroll-line {
  width: 1.5px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollAnim 1.8s ease-in-out infinite;
}
@keyframes scrollAnim {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50%       { transform: scaleY(0.4); opacity: 0.4; }
}

/* ──────────────────────────────────────────
   7. ABOUT SECTION
   ────────────────────────────────────────── */
.about { background: var(--bg); }
[data-theme="light"] .about { background: var(--bg); }

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

/* Image frame */
.about-img-wrap {
  position: relative;
  display: inline-block;
}

.about-avatar {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* badges */
.badge {
  position: absolute;
  background: #111;
  color: #6a2626;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
}

.badge-top {
  top: 10px;
  left: -20px;
}

.badge-bottom {
  bottom: 10px;
  right: -20px;
}

.about-img-frame {
  width: 300px; height: 300px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Gradient border effect */
.about-img-frame::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-lg) + 2px);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  z-index: -1;
}

/* Avatar initials placeholder */
.about-avatar {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  /* To swap: replace this div with <img src="your-photo.jpg" alt="Samyog" /> */
}

/* Floating badges */
.badge {
  position: absolute;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 8px 18px;
  font-size: 0.8rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.badge-top    { top: -16px; right: 0; color: var(--accent); }
.badge-bottom { bottom: -16px; left: 0; }

/* About text */
.about-intro { font-size: 1.05rem; margin-bottom: 16px; }

.about-facts {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 28px 0 32px;
}

.fact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.fact-card i {
  width: 36px; height: 36px;
  background: var(--accent-glow);
  color: var(--accent);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.fact-card div { display: flex; flex-direction: column; }
.fact-card strong { font-size: 0.9rem; font-weight: 600; }
.fact-card span   { font-size: 0.8rem; color: var(--text-muted); }

/* ──────────────────────────────────────────
   8. EDUCATION SECTION
   ────────────────────────────────────────── */
.education { background: var(--bg-card); }

.timeline {
  max-width: 780px;
  margin: 0 auto;
  position: relative;
  padding-left: 36px;
}

/* Vertical line */
.timeline::before {
  content: '';
  position: absolute;
  left: 10px; top: 8px; bottom: 8px;
  width: 1.5px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 48px;
}
.timeline-item:last-child { margin-bottom: 0; }

/* Dot on the line */
.timeline-dot {
  position: absolute;
  left: -30px;
  top: 20px;
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--bg);
}
.timeline-dot.current {
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

/* Card */
.timeline-card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: border-color var(--transition), transform var(--transition);
}
.timeline-card:hover {
  border-color: var(--accent);
  transform: translateX(4px);
}
.current-card { border-color: rgba(124,111,247,0.3); }

.tl-badge {
  display: inline-block;
  padding: 3px 12px;
  background: var(--accent-glow);
  color: var(--accent);
  border-radius: var(--radius-xl);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.timeline-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.tl-school, .tl-year {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 6px;
}
.tl-desc {
  font-size: 0.9rem;
  margin: 12px 0 16px;
}
.tl-tags {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.tl-tags span {
  padding: 3px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ──────────────────────────────────────────
   9. SKILLS SECTION
   ────────────────────────────────────────── */
.skills { background: var(--bg); }

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

.skill-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}
.skill-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.15);
}

.skill-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--accent-glow);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.skill-info { flex: 1; }

.skill-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.9rem;
  font-weight: 600;
}
.skill-pct { color: var(--accent); font-size: 0.82rem; }

.skill-bar {
  height: 5px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
}
.skill-fill {
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  width: 0; /* animated via JS */
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ──────────────────────────────────────────
   10. PROJECTS SECTION
   ────────────────────────────────────────── */
.projects { background: var(--bg-card); }

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

.project-card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.2);
}

.project-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.project-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--accent-glow);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}

.project-links { display: flex; gap: 10px; }
.proj-link {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: all var(--transition);
}
.proj-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.project-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
}
.project-card p { font-size: 0.88rem; color: var(--text-muted); flex: 1; }

.project-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.project-tags span {
  padding: 3px 12px;
  background: var(--accent-glow);
  color: var(--accent);
  border-radius: var(--radius-xl);
  font-size: 0.72rem;
  font-weight: 600;
}

.placeholder-card { opacity: 0.6; border-style: dashed; }
.placeholder-card .project-icon {
  background: var(--border);
  color: var(--text-muted);
}

/* ──────────────────────────────────────────
   11. SERVICES SECTION
   ────────────────────────────────────────── */
.services { background: var(--bg); }

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

.service-card {
  padding: 36px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

/* Accent top stripe on hover */
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 20px 48px rgba(0,0,0,0.15);
}

.service-icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  background: var(--accent-glow);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.service-card > p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.service-list { display: flex; flex-direction: column; gap: 8px; }
.service-list li {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.service-list i { color: var(--accent); font-size: 0.75rem; }

/* ──────────────────────────────────────────
   12. DESIGNS / GALLERY SECTION
   ────────────────────────────────────────── */
.designs { background: var(--bg); }

/* Filter buttons */
.filter-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 9px 22px;
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--border);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-body);
}
.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 20px var(--accent-glow);
}

/* Designs grid — CSS columns for masonry-like layout */
.designs-grid {
  columns: 3 280px;   /* 3 columns on desktop, min 280px each */
  column-gap: 20px;
}

/* Each design item */
.design-item {
  break-inside: avoid;       /* prevent image from splitting across columns */
  margin-bottom: 20px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.design-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.35);
  border-color: var(--accent);
}

/* Image fills the card */
.design-item img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}
.design-item:hover img {
  transform: scale(1.05);
}

/* Overlay — shows on hover */
.design-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,15,0.92) 0%, rgba(10,10,15,0.3) 60%, transparent 100%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 18px;
  opacity: 0;
  transition: opacity var(--transition);
}
.design-item:hover .design-overlay { opacity: 1; }

.design-info h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 3px;
}
.design-info span {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Zoom button inside overlay */
.design-zoom {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  align-self: flex-end;
  transition: background var(--transition);
}
.design-zoom:hover { background: var(--accent-2); }

/* Hidden items (filtered out) */
.design-item.hidden {
  display: none;
}

/* ──────────────────────────────────────────
   13. LIGHTBOX
   ────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 10, 0.95);
  backdrop-filter: blur(12px);
}

.lightbox-content {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

#lightboxImg {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: var(--radius-md);
  object-fit: contain;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
  transform: scale(0.94);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.lightbox.open #lightboxImg { transform: scale(1); }

.lightbox-caption {
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
  font-weight: 500;
  text-align: center;
}

/* Close / Prev / Next buttons */
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  z-index: 2;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  backdrop-filter: blur(8px);
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev  { left: 16px;  top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 16px; top: 50%; transform: translateY(-50%); }

/* ──────────────────────────────────────────
   14. CONTACT SECTION
   ────────────────────────────────────────── */
.contact { background: var(--bg-card); }

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

.contact-info h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.contact-info > p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 28px;
}

.contact-details { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.contact-item {
  display: flex; align-items: center; gap: 14px;
  font-size: 0.9rem;
}
.contact-item i {
  width: 38px; height: 38px;
  background: var(--accent-glow);
  color: var(--accent);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* Social buttons */
.social-links { display: flex; gap: 12px; }
.social-btn {
  width: 44px; height: 44px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: all var(--transition);
}
.social-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
  transform: translateY(-2px);
}

/* Contact form */
.contact-form-wrap {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.contact-form { display: flex; flex-direction: column; gap: 20px; }

.form-group { display: flex; flex-direction: column; gap: 8px; }

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: 0.92rem;
  resize: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); opacity: 0.6; }

.form-status {
  text-align: center;
  font-size: 0.88rem;
  padding: 4px;
  min-height: 20px;
}
.form-status.success { color: #4ade80; }
.form-status.error   { color: var(--accent-2); }

/* ──────────────────────────────────────────
   15. FOOTER
   ────────────────────────────────────────── */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

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

.footer-social { display: flex; gap: 14px; }
.footer-social a {
  color: var(--text-muted);
  font-size: 1rem;
  transition: color var(--transition);
}
.footer-social a:hover { color: var(--accent); }

/* ──────────────────────────────────────────
   16. BACK TO TOP BUTTON
   ────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px var(--accent-glow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: all var(--transition);
  z-index: 99;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.back-to-top:hover { transform: translateY(-2px); }

/* ──────────────────────────────────────────
   17. SCROLL REVEAL ANIMATION
   ────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children of hero */
.hero-content .reveal:nth-child(1) { transition-delay: 0.05s; }
.hero-content .reveal:nth-child(2) { transition-delay: 0.15s; }
.hero-content .reveal:nth-child(3) { transition-delay: 0.25s; }
.hero-content .reveal:nth-child(4) { transition-delay: 0.35s; }
.hero-content .reveal:nth-child(5) { transition-delay: 0.45s; }
.hero-content .reveal:nth-child(6) { transition-delay: 0.55s; }

/* ──────────────────────────────────────────
   18. MOBILE RESPONSIVENESS
   ────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Navbar mobile */
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 24px;
    gap: 20px;
    z-index: 998;
    text-align: center;
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }

  /* Hero */
  .hero { padding: 120px 24px 60px; }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .about-img-wrap { display: flex; flex-direction: column; align-items: center; }
  .badge-top    { top: -12px; right: 20px; }
  .badge-bottom { bottom: -12px; left: 20px; }
  .about-facts { text-align: left; }

  /* Timeline */
  .timeline { padding-left: 24px; }
  .timeline-dot { left: -20px; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }

  /* Gallery */
  .designs-grid { columns: 2 200px; }
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }

  /* Footer */
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .section { padding: 80px 0; }
  .hero-btns { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
  .skills-grid { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 24px; }
  .designs-grid { columns: 1; }
}
