/* ============================================
   SULAV LOHANI — PORTFOLIO STYLESHEET
   Light mode default · Dark mode toggle
   Font: DM Sans (sans-serif)
============================================ */

/* ---- LIGHT MODE (default) ---- */
:root,
[data-theme="light"] {
  --bg:       #f4f6fb;
  --bg2:      #eef1f8;
  --bg3:      #e8ecf5;
  --surface:  #ffffff;
  --surface2: #f0f3fa;
  --border:   rgba(30, 80, 160, 0.10);
  --border2:  rgba(30, 80, 160, 0.22);
  --primary:  #1a56db;
  --primary2: #1e40af;
  --accent:   #0891b2;
  --accent2:  #0e7490;
  --text:     #111827;
  --text2:    #374151;
  --text3:    #6b7280;
  --shadow:   0 4px 24px rgba(0,0,0,0.08);
  --glow:     0 0 24px rgba(26,86,219,0.07);
  --nav-bg:   rgba(244,246,251,0.92);
}

/* ---- DARK MODE ---- */
[data-theme="dark"] {
  --bg:       #0a0f1a;
  --bg2:      #0d1424;
  --bg3:      #111827;
  --surface:  #151e30;
  --surface2: #1a2540;
  --border:   rgba(99,179,237,0.12);
  --border2:  rgba(99,179,237,0.25);
  --primary:  #63b3ed;
  --primary2: #90cdf4;
  --accent:   #4fd1c5;
  --accent2:  #81e6d9;
  --text:     #e2e8f0;
  --text2:    #a0aec0;
  --text3:    #718096;
  --shadow:   0 4px 32px rgba(0,0,0,0.4);
  --glow:     0 0 32px rgba(99,179,237,0.12);
  --nav-bg:   rgba(10,15,26,0.92);
}

/* ---- BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'DM Sans', 'Nunito Sans', 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }
::selection { background: rgba(26,86,219,0.15); color: var(--primary); }
[data-theme="dark"] ::selection { background: rgba(99,179,237,0.2); }

--transition: 0.28s cubic-bezier(0.4,0,0.2,1);

/* ============================================
   NAVIGATION
============================================ */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
#navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.10); }

.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 2rem;
  height: 68px; display: flex; align-items: center; justify-content: space-between;
}

.nav-logo {
  font-size: 1.15rem; font-weight: 800; color: var(--primary);
  letter-spacing: -0.02em; text-decoration: none; white-space: nowrap;
}
.nav-logo span { color: var(--accent); }

.nav-links { display: flex; gap: 0.15rem; list-style: none; align-items: center; }
.nav-links a {
  text-decoration: none; color: var(--text2); font-size: 0.875rem;
  font-weight: 500; padding: 0.4rem 0.85rem; border-radius: 8px;
  transition: color 0.2s, background 0.2s; letter-spacing: 0.01em;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); background: rgba(26,86,219,0.07); }
[data-theme="dark"] .nav-links a:hover,
[data-theme="dark"] .nav-links a.active { background: rgba(99,179,237,0.08); }

.nav-cta {
  background: var(--primary) !important; color: #fff !important;
  font-weight: 600 !important; border-radius: 8px !important;
}
.nav-cta:hover { opacity: 0.88 !important; background: var(--primary) !important; }

.nav-controls { display: flex; align-items: center; gap: 0.5rem; }

/* Theme toggle */
.theme-toggle {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1.5px solid var(--border2);
  background: var(--surface);
  color: var(--text2);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 1rem; transition: border-color 0.2s, background 0.2s, color 0.2s;
  font-family: inherit;
}
.theme-toggle:hover { border-color: var(--primary); color: var(--primary); }

/* Show/hide sun/moon */
[data-theme="light"] .t-dark  { display: none; }
[data-theme="light"] .t-light { display: inline; }
[data-theme="dark"]  .t-light { display: none; }
[data-theme="dark"]  .t-dark  { display: inline; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px; background: none; border: none;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--text); border-radius: 2px; transition: 0.28s ease;
}
.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: flex; align-items: center;
  position: relative; overflow: hidden; padding: 120px 2rem 80px;
}

.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(26,86,219,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(8,145,178,0.05) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
}
[data-theme="dark"] .hero-bg {
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(99,179,237,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(79,209,197,0.06) 0%, transparent 60%),
    linear-gradient(180deg, #0a0f1a 0%, #0d1424 100%);
}

.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(26,86,219,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,86,219,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
[data-theme="dark"] .hero-grid-bg {
  background-image:
    linear-gradient(rgba(99,179,237,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,179,237,0.04) 1px, transparent 1px);
}

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

.hero-tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(8,145,178,0.08);
  border: 1px solid rgba(8,145,178,0.22);
  color: var(--accent); font-size: 0.78rem; font-weight: 700;
  padding: 0.35rem 0.9rem; border-radius: 50px;
  letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 1.25rem;
  animation: fadeInUp 0.6s ease both;
}
.hero-tag::before {
  content: ''; width: 6px; height: 6px;
  background: var(--accent); border-radius: 50%; animation: pulse 2s infinite;
}

@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(.8)} }

.hero-name {
  font-size: clamp(2.6rem, 5vw, 4.2rem); font-weight: 800;
  line-height: 1.08; letter-spacing: -0.03em; color: var(--text);
  animation: fadeInUp 0.6s 0.1s ease both;
}
.hero-name .highlight { color: var(--primary); }

.hero-tagline {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 700; color: var(--accent);
  letter-spacing: -0.01em; margin: 0.5rem 0 0.25rem;
  animation: fadeInUp 0.6s 0.15s ease both;
}

.hero-title {
  font-size: 0.95rem; color: var(--text3); font-weight: 400;
  margin: 0.25rem 0 1.25rem; animation: fadeInUp 0.6s 0.2s ease both;
}

.hero-desc {
  font-size: 1rem; color: var(--text2); line-height: 1.75;
  max-width: 560px; margin-bottom: 2rem; animation: fadeInUp 0.6s 0.3s ease both;
}

.hero-stats {
  display: flex; gap: 2rem; margin-bottom: 2.5rem;
  animation: fadeInUp 0.6s 0.4s ease both;
}
.stat-num {
  font-size: 1.75rem; font-weight: 800; color: var(--primary);
  letter-spacing: -0.03em; line-height: 1;
}
.stat-label { font-size: 0.77rem; color: var(--text3); font-weight: 500; margin-top: 0.2rem; }

.hero-actions {
  display: flex; gap: 0.85rem; flex-wrap: wrap;
  animation: fadeInUp 0.6s 0.5s ease both;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.72rem 1.6rem; border-radius: 10px;
  font-size: 0.9rem; font-weight: 600; text-decoration: none;
  transition: 0.22s ease; cursor: pointer; border: none;
  font-family: inherit; letter-spacing: 0.01em;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary2); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(26,86,219,0.28); }
[data-theme="dark"] .btn-primary:hover { box-shadow: 0 8px 20px rgba(99,179,237,0.3); }
.btn-outline { background: transparent; color: var(--text); border: 1.5px solid var(--border2); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.btn-full { width: 100%; justify-content: center; }

/* Hero card */
.hero-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 1.75rem;
  animation: fadeInRight 0.8s 0.3s ease both;
  box-shadow: var(--shadow);
}

.hero-card-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; font-weight: 800; color: #fff;
  margin-bottom: 1rem; border: 3px solid var(--border2);
}
.hero-card-name { font-size: 1.05rem; font-weight: 800; margin-bottom: 0.2rem; }
.hero-card-role { font-size: 0.8rem; color: var(--text3); margin-bottom: 1.25rem; }

.contact-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.55rem 0; border-bottom: 1px solid var(--border);
  font-size: 0.82rem; color: var(--text2);
}
.contact-item:last-of-type { border-bottom: none; }

.ci-label {
  width: 34px; height: 34px; border-radius: 8px;
  background: rgba(26,86,219,0.08); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); flex-shrink: 0;
}
[data-theme="dark"] .ci-label { background: rgba(99,179,237,0.1); }
.contact-item a { color: var(--primary); text-decoration: none; }
.contact-item a:hover { color: var(--primary2); text-decoration: underline; }

.hero-socials { display: flex; gap: 0.5rem; margin-top: 1.25rem; }
.social-btn {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 0.5rem; border-radius: 8px;
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--text2); font-size: 0.78rem; font-weight: 700;
  text-decoration: none; transition: 0.22s ease; letter-spacing: 0.02em;
}
.social-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Scroll hint */
.scroll-hint {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  color: var(--text3); font-size: 0.73rem; letter-spacing: 0.1em;
  text-transform: uppercase; z-index: 1; animation: fadeIn 1s 1s ease both;
}
.scroll-line {
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, var(--primary), transparent);
  animation: scrollAnim 2s infinite;
}
@keyframes scrollAnim { 0%,100%{opacity:1} 50%{opacity:.3} }

/* ============================================
   SECTIONS SHARED
============================================ */
section { padding: 96px 2rem; }
section:nth-child(even) { background: var(--bg2); }

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

.section-label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.73rem; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 0.65rem;
}
.section-label::before {
  content: ''; width: 18px; height: 2px;
  background: var(--primary); border-radius: 1px;
}
.section-title {
  font-size: clamp(1.75rem, 3vw, 2.4rem); font-weight: 800;
  letter-spacing: -0.03em; color: var(--text); margin-bottom: 0.6rem;
}
.section-title span { color: var(--primary); }
.section-desc {
  color: var(--text3); font-size: 1rem; max-width: 560px;
  line-height: 1.7; margin-bottom: 3rem;
}

/* ============================================
   ABOUT
============================================ */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start;
}
.about-text p { color: var(--text2); line-height: 1.82; margin-bottom: 1rem; font-size: 0.97rem; }
.about-text strong { color: var(--text); }

.about-highlights { display: grid; gap: 0.85rem; margin-top: 0.5rem; }

.highlight-card {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: 10px; padding: 0.9rem 1.1rem;
  transition: 0.25s ease;
}
.highlight-card:hover { border-color: var(--primary); transform: translateX(3px); box-shadow: var(--shadow); }
.highlight-title { font-weight: 700; font-size: 0.9rem; margin-bottom: 0.15rem; color: var(--text); }
.highlight-sub { color: var(--text3); font-size: 0.8rem; line-height: 1.5; }

/* ============================================
   TIMELINE
============================================ */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(to bottom, var(--primary), rgba(26,86,219,0.08)); border-radius: 1px;
}
[data-theme="dark"] .timeline::before {
  background: linear-gradient(to bottom, var(--primary), rgba(99,179,237,0.08));
}

.timeline-item {
  position: relative; padding-bottom: 2.5rem;
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.timeline-item.visible { opacity: 1; transform: translateY(0); }

.timeline-dot {
  position: absolute; left: -2.45rem; top: 0.3rem;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--primary); border: 3px solid var(--bg);
  box-shadow: 0 0 0 3px rgba(26,86,219,0.2);
}
[data-theme="dark"] .timeline-dot { box-shadow: 0 0 0 3px rgba(99,179,237,0.2); }

.timeline-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1rem; margin-bottom: 0.75rem; flex-wrap: wrap;
}
.timeline-role { font-size: 1.02rem; font-weight: 700; margin-bottom: 0.2rem; }
.timeline-company { color: var(--primary); font-size: 0.87rem; font-weight: 600; }
.timeline-date {
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--text3); font-size: 0.73rem; font-weight: 700;
  padding: 0.25rem 0.8rem; border-radius: 50px; white-space: nowrap; letter-spacing: 0.02em;
}

.timeline-body {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 1.25rem;
}
.timeline-list { list-style: none; display: grid; gap: 0.45rem; }
.timeline-list li {
  display: flex; align-items: flex-start; gap: 0.6rem;
  color: var(--text2); font-size: 0.875rem; line-height: 1.6;
}
.timeline-list li::before {
  content: '▸'; color: var(--accent); font-size: 0.72rem;
  margin-top: 0.2rem; flex-shrink: 0;
}

/* ============================================
   PROJECTS
============================================ */
.projects-filter { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.filter-btn {
  padding: 0.38rem 1rem; border-radius: 50px; font-size: 0.8rem;
  font-weight: 700; border: 1.5px solid var(--border); background: var(--surface);
  color: var(--text3); cursor: pointer; transition: 0.22s ease;
  font-family: inherit; letter-spacing: 0.02em;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--primary); border-color: var(--primary); color: #fff;
}

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

.project-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 1.4rem;
  transition: 0.25s ease; position: relative; overflow: hidden;
}
.project-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: 0.25s ease;
}
.project-card:hover::before { transform: scaleX(1); }
.project-card:hover { border-color: var(--border2); transform: translateY(-4px); box-shadow: var(--shadow); }

.project-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 0.7rem; }
.project-name { font-size: 0.97rem; font-weight: 700; margin-bottom: 0.15rem; line-height: 1.3; }
.project-location { font-size: 0.77rem; color: var(--text3); }
.project-mw {
  background: rgba(26,86,219,0.08); border: 1px solid var(--border);
  color: var(--primary); font-size: 0.73rem; font-weight: 800;
  padding: 0.22rem 0.65rem; border-radius: 50px; white-space: nowrap;
}
[data-theme="dark"] .project-mw { background: rgba(99,179,237,0.12); }

.project-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.75rem; }
.tag {
  background: rgba(8,145,178,0.07); border: 1px solid rgba(8,145,178,0.2);
  color: var(--accent); font-size: 0.7rem; font-weight: 700;
  padding: 0.18rem 0.6rem; border-radius: 50px; letter-spacing: 0.03em;
}
[data-theme="dark"] .tag { background: rgba(79,209,197,0.08); border-color: rgba(79,209,197,0.22); }

.project-items { list-style: none; display: grid; gap: 0.3rem; }
.project-items li {
  font-size: 0.81rem; color: var(--text3); display: flex;
  align-items: flex-start; gap: 0.5rem; line-height: 1.5;
}
.project-items li::before { content: '·'; color: var(--accent); font-size: 1.1rem; line-height: 1.2; flex-shrink: 0; }

/* ============================================
   SKILLS — no icons
============================================ */
.skills-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1.25rem;
}
.skill-category {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 1.4rem; transition: 0.25s ease;
}
.skill-category:hover { border-color: var(--border2); box-shadow: var(--glow); }
.skill-cat-name {
  font-weight: 800; font-size: 0.92rem; margin-bottom: 1rem;
  color: var(--text); border-bottom: 1.5px solid var(--border); padding-bottom: 0.65rem;
}
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.skill-tag {
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--text2); font-size: 0.78rem; font-weight: 500;
  padding: 0.28rem 0.72rem; border-radius: 6px; transition: 0.2s ease;
}
.skill-tag:hover { background: rgba(26,86,219,0.08); border-color: var(--primary); color: var(--primary); }
[data-theme="dark"] .skill-tag:hover { background: rgba(99,179,237,0.1); }

/* ============================================
   EDUCATION — no icons
============================================ */
.edu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.4rem; }
.edu-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 1.6rem; transition: 0.25s ease;
}
.edu-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow); }
.edu-degree { font-size: 0.97rem; font-weight: 800; margin-bottom: 0.3rem; line-height: 1.35; color: var(--text); }
.edu-school { color: var(--primary); font-size: 0.87rem; font-weight: 600; margin-bottom: 0.25rem; }
.edu-period {
  color: var(--text3); font-size: 0.78rem; font-weight: 700;
  margin-bottom: 1rem; letter-spacing: 0.02em;
}
.edu-note {
  color: var(--text3); font-size: 0.82rem; line-height: 1.65;
  border-top: 1px solid var(--border); padding-top: 0.9rem;
}

/* ============================================
   DIGITAL PLATFORMS — no icons
============================================ */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.4rem; }
.product-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 1.6rem; transition: 0.25s ease;
  text-decoration: none; color: inherit; display: block;
  border-top: 3px solid transparent;
}
.product-card:hover {
  border-color: var(--primary); border-top-color: var(--primary);
  transform: translateY(-4px); box-shadow: var(--shadow);
}
.product-name { font-weight: 800; font-size: 1rem; margin-bottom: 0.3rem; color: var(--text); }
.product-url { color: var(--primary); font-size: 0.8rem; margin-bottom: 0.75rem; font-weight: 600; }
.product-desc { color: var(--text3); font-size: 0.82rem; line-height: 1.65; margin-bottom: 1rem; }
.product-stat {
  display: inline-block;
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--primary); font-size: 0.73rem; font-weight: 800;
  padding: 0.25rem 0.8rem; border-radius: 50px; letter-spacing: 0.02em;
}

/* ============================================
   CERTIFICATIONS — date badge, no icons
============================================ */
.certs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.1rem; }
.cert-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 1.1rem 1.3rem;
  display: flex; align-items: flex-start; gap: 1rem; transition: 0.22s ease;
}
.cert-card:hover { border-color: var(--primary); transform: translateX(4px); box-shadow: var(--shadow); }

.cert-date-badge {
  min-width: 72px; padding: 0.3rem 0.5rem; border-radius: 8px;
  background: rgba(26,86,219,0.08); border: 1px solid rgba(26,86,219,0.18);
  color: var(--primary); font-size: 0.7rem; font-weight: 800;
  text-align: center; letter-spacing: 0.03em; flex-shrink: 0; line-height: 1.4;
}
[data-theme="dark"] .cert-date-badge { background: rgba(99,179,237,0.1); border-color: rgba(99,179,237,0.25); }

.cert-body { flex: 1; }
.cert-title { font-weight: 700; font-size: 0.88rem; margin-bottom: 0.2rem; color: var(--text); }
.cert-sub { color: var(--text3); font-size: 0.79rem; line-height: 1.5; }

/* ============================================
   CONTACT
============================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
.contact-info h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 0.85rem; }
.contact-info p { color: var(--text2); font-size: 0.95rem; line-height: 1.75; margin-bottom: 1.75rem; }

.contact-links { display: grid; gap: 0.7rem; margin-bottom: 1.5rem; }
.contact-link {
  display: flex; align-items: center; gap: 1rem; padding: 0.9rem 1.1rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; text-decoration: none; color: var(--text2); transition: 0.22s ease;
}
.contact-link:hover { border-color: var(--primary); color: var(--primary); transform: translateX(4px); box-shadow: var(--shadow); }

.cl-label {
  width: 42px; height: 42px; border-radius: 10px;
  background: rgba(26,86,219,0.08); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); flex-shrink: 0;
}
[data-theme="dark"] .cl-label { background: rgba(99,179,237,0.1); }
.cl-text { flex: 1; }
.cl-sub { display: block; font-size: 0.73rem; color: var(--text3); }
.cl-val { display: block; font-size: 0.88rem; font-weight: 600; }
.cl-arrow { color: var(--text3); font-size: 1rem; }

.lang-badges { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.lang-badge {
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text2); font-size: 0.78rem; font-weight: 500;
  padding: 0.3rem 0.8rem; border-radius: 6px;
}

/* Contact form */
.contact-form-wrap {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 2rem;
}
.contact-form-wrap h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 0.35rem; }
.form-note { color: var(--text3); font-size: 0.82rem; margin-bottom: 1.5rem; }
.form-note strong { color: var(--text2); }
.form-group { margin-bottom: 1.1rem; }
.form-label {
  display: block; font-size: 0.78rem; font-weight: 700;
  color: var(--text2); margin-bottom: 0.38rem; letter-spacing: 0.02em;
}
.form-input, .form-textarea {
  width: 100%; background: var(--surface2); border: 1.5px solid var(--border);
  border-radius: 8px; color: var(--text); font-size: 0.9rem;
  padding: 0.68rem 1rem; outline: none; transition: 0.2s ease;
  font-family: inherit; resize: vertical;
}
.form-input:focus, .form-textarea:focus { border-color: var(--primary); background: var(--surface); }
.form-input::placeholder, .form-textarea::placeholder { color: var(--text3); }
.form-textarea { min-height: 116px; }
.form-success {
  display: none; background: rgba(8,145,178,0.08); border: 1px solid rgba(8,145,178,0.3);
  color: var(--accent); padding: 0.75rem 1rem; border-radius: 8px;
  font-size: 0.87rem; margin-top: 0.85rem; text-align: center; font-weight: 600;
}
.form-error {
  display: none; background: rgba(220,38,38,0.07); border: 1px solid rgba(220,38,38,0.2);
  color: #dc2626; padding: 0.75rem 1rem; border-radius: 8px;
  font-size: 0.87rem; margin-top: 0.85rem; text-align: center;
}
.form-error a { color: #dc2626; }

/* ============================================
   FOOTER
============================================ */
footer {
  background: var(--bg2); border-top: 1px solid var(--border); padding: 2.5rem 2rem;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
.footer-logo { font-size: 1.2rem; font-weight: 800; color: var(--primary); }
.footer-logo span { color: var(--accent); }
.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; justify-content: center; }
.footer-links a {
  color: var(--text3); text-decoration: none; font-size: 0.83rem; font-weight: 500;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--primary); }
.footer-text { color: var(--text3); font-size: 0.8rem; text-align: center; }
.footer-text a { color: var(--primary); text-decoration: none; }

/* ============================================
   BACK TO TOP
============================================ */
#backToTop {
  position: fixed; bottom: 2rem; right: 2rem;
  width: 44px; height: 44px; background: var(--primary); color: #fff;
  border: none; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; cursor: pointer; font-size: 1.2rem; z-index: 999;
  opacity: 0; transform: translateY(16px); transition: 0.28s ease;
  box-shadow: 0 4px 16px rgba(26,86,219,0.35);
}
#backToTop.visible { opacity: 1; transform: translateY(0); }
#backToTop:hover { background: var(--primary2); transform: translateY(-2px); }
[data-theme="dark"] #backToTop { box-shadow: 0 4px 16px rgba(99,179,237,0.35); }

/* ============================================
   ANIMATIONS
============================================ */
@keyframes fadeInUp { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeInRight { from{opacity:0;transform:translateX(24px)} to{opacity:1;transform:translateX(0)} }
@keyframes fadeIn { from{opacity:0} to{opacity:1} }

.reveal { opacity:0; transform:translateY(22px); transition:opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity:1; transform:none; }

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

@media (max-width: 700px) {
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--nav-bg); border-bottom: 1px solid var(--border);
    flex-direction: column; padding: 1rem; gap: 0.2rem;
    backdrop-filter: blur(18px);
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; border-radius: 8px; }
  .hamburger { display: flex; }
  section { padding: 64px 1.25rem; }
  .hero-stats { gap: 1.2rem; flex-wrap: wrap; }
  .projects-grid { grid-template-columns: 1fr; }
  .certs-grid { grid-template-columns: 1fr; }
  .edu-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
}
