/* ═══════════════════════════════════════════════════════════════
   BHARATH S — PORTFOLIO  |  style.css
   Theme: Minimal Black & White with Dark Mode Support
════════════════════════════════════════════════════════════════ */

/* ─── CSS Variables ─────────────────────────────────────────── */
:root {
  --bg-primary:      #ffffff;
  --bg-secondary:    #f6f6f6;
  --bg-card:         #ffffff;
  --bg-card-hover:   #fafafa;
  --text-primary:    #111111;
  --text-secondary:  #555555;
  --text-muted:      #888888;
  --accent:          #111111;
  --accent-inv:      #ffffff;
  --border:          #e0e0e0;
  --border-dark:     #cccccc;
  --shadow-sm:       0 2px 8px rgba(0,0,0,0.07);
  --shadow-md:       0 8px 30px rgba(0,0,0,0.10);
  --shadow-lg:       0 20px 60px rgba(0,0,0,0.14);
  --navbar-bg:       rgba(255,255,255,0.92);
  --radius:          14px;
  --radius-sm:       8px;
  --transition:      0.3s cubic-bezier(0.4,0,0.2,1);
}

[data-theme="dark"] {
  --bg-primary:      #0d0d0d;
  --bg-secondary:    #161616;
  --bg-card:         #1a1a1a;
  --bg-card-hover:   #222222;
  --text-primary:    #f0f0f0;
  --text-secondary:  #aaaaaa;
  --text-muted:      #666666;
  --accent:          #f0f0f0;
  --accent-inv:      #111111;
  --border:          #2a2a2a;
  --border-dark:     #333333;
  --shadow-sm:       0 2px 8px rgba(0,0,0,0.4);
  --shadow-md:       0 8px 30px rgba(0,0,0,0.5);
  --shadow-lg:       0 20px 60px rgba(0,0,0,0.6);
  --navbar-bg:       rgba(13,13,13,0.92);
}

/* ─── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  transition: background-color var(--transition), color var(--transition);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

ul { list-style: none; }

/* ─── Container ─────────────────────────────────────────────── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 60px;
}

/* ─── Section Shared ────────────────────────────────────────── */
section {
  padding: 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--text-primary);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background: var(--accent);
  margin: 12px auto 0;
  border-radius: 2px;
  transition: width var(--transition);
}

.section-header:hover .section-title::after {
  width: 80px;
}

.section-subtitle {
  margin-top: 16px;
  color: var(--text-secondary);
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1rem;
}

/* ─── Accent Dot ─────────────────────────────────────────────── */
.accent-dot { color: var(--text-primary); }

/* ─── Buttons ────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--accent);
  color: var(--accent-inv);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--accent);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  opacity: 0.88;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: transparent;
  color: var(--text-primary);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  border: 2px solid var(--border-dark);
}

.btn-secondary:hover {
  background: var(--accent);
  color: var(--accent-inv);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* ─── Scroll Animations ─────────────────────────────────────── */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════════
   NAVBAR
════════════════════════════════════════════════════════════════ */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
  height: 72px;
  background: var(--navbar-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background var(--transition), border-color var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.logo {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-primary);
  transition: opacity var(--transition);
}
.logo:hover { opacity: 0.7; }
.logo-dot { color: var(--text-muted); }

.nav-items {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
  padding-bottom: 2px;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.contact-btn {
  background: var(--accent);
  color: var(--accent-inv) !important;
  padding: 8px 20px;
  border-radius: 999px;
  font-weight: 600;
}

.contact-btn::after { display: none; }
.contact-btn:hover { opacity: 0.8; transform: translateY(-1px); }

.nav-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Theme Toggle */
.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: var(--transition);
  background: var(--bg-secondary);
}

.theme-toggle:hover {
  background: var(--accent);
  color: var(--accent-inv);
  border-color: var(--accent);
  transform: rotate(20deg);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: 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); }

/* Mobile Nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  z-index: 999;
  padding: 20px 30px;
  gap: 16px;
  transform: translateY(-110%);
  transition: transform var(--transition);
  box-shadow: var(--shadow-md);
}

.mobile-nav.open {
  display: flex;
  transform: translateY(0);
}

.mobile-link {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}
.mobile-link:hover { color: var(--text-muted); }

/* ═══════════════════════════════════════════════════════════════
   HERO SECTION
════════════════════════════════════════════════════════════════ */
.hero-section {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.hero-content {
  z-index: 2;
  max-width: 480px;
}

.hero-greeting {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.hero-name {
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 14px;
  letter-spacing: -2px;
}

.hero-role {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.hero-tagline {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 440px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-social {
  display: flex;
  gap: 14px;
}

.social-link {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-secondary);
  transition: var(--transition);
  background: var(--bg-card);
}

.social-link:hover {
  background: var(--accent);
  color: var(--accent-inv);
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

/* ── Hero Decoration: 3-Ring Orbit System ─────────────────────── */
.hero-decoration {
  position: relative;
  width: 400px;
  height: 400px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Center: Big Python icon */
.orbit-center {
  position: absolute;
  z-index: 10;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  animation: centerPulse 4s ease-in-out infinite;
}

.orbit-center i {
  font-size: 2.8rem;
  color: var(--text-primary);
  line-height: 1;
}

@keyframes centerPulse {
  0%, 100% { box-shadow: var(--shadow-sm); transform: scale(1); }
  50%       { box-shadow: 0 0 0 10px rgba(128,128,128,0.08), var(--shadow-md); transform: scale(1.04); }
}

/* ── Shared ring base ────────────────────────────────────────── */
.orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px dashed var(--border);
}

/* ── Inner ring: 6 dot particles, slow spin ─────────────────── */
.orbit-inner {
  width: 200px;
  height: 200px;
  animation: ringSpinCW 12s linear infinite;
}

/* ── Middle ring: 6 tech icons, medium speed ─────────────────── */
.orbit-middle {
  width: 330px;
  height: 330px;
  border-style: solid;
  border-color: var(--border);
  animation: ringSpinCCW 20s linear infinite;
}

/* ── Outer ring: 8 dot particles, slow reverse ───────────────── */
.orbit-outer {
  width: 460px;
  height: 460px;
  animation: ringSpinCW 30s linear infinite;
}

@keyframes ringSpinCW  { from { transform: translate(-50%,-50%) rotate(0deg);   } to { transform: translate(-50%,-50%) rotate(360deg);  } }
@keyframes ringSpinCCW { from { transform: translate(-50%,-50%) rotate(0deg);   } to { transform: translate(-50%,-50%) rotate(-360deg); } }

/* ── Dot particles (inner & outer) ──────────────────────────── */
.orbit-dot {
  position: absolute;
  border-radius: 50%;
  background: var(--text-primary);
  top: 50%;
  left: 50%;
}

/* Inner: 6 dots evenly around 80px radius */
.orbit-inner .orbit-dot {
  width: 6px;
  height: 6px;
  opacity: 0.3;
  margin-top: -3px;
  margin-left: -3px;
  transform: rotate(calc(var(--p) * 60deg)) translateY(-80px);
  animation: dotCounterCW 12s linear infinite;
}

/* Outer: 8 dots evenly around 190px radius */
.orbit-outer .orbit-dot {
  width: 5px;
  height: 5px;
  opacity: 0.18;
  margin-top: -2.5px;
  margin-left: -2.5px;
  transform: rotate(calc(var(--p) * 45deg)) translateY(-190px);
  animation: dotCounterCW 30s linear infinite;
}

.orbit-dot--lg {
  width: 7px !important;
  height: 7px !important;
  opacity: 0.2 !important;
}

@keyframes dotCounterCW {
  from { transform: rotate(calc(var(--p) * 60deg)) translateY(-80px) rotate(0deg); }
  to   { transform: rotate(calc(var(--p) * 60deg)) translateY(-80px) rotate(-360deg); }
}

/* Outer dots need their own angle */
.orbit-outer .orbit-dot {
  animation: dotOuterCounterCW 30s linear infinite;
}

@keyframes dotOuterCounterCW {
  from { transform: rotate(calc(var(--p) * 45deg)) translateY(-190px) rotate(0deg); }
  to   { transform: rotate(calc(var(--p) * 45deg)) translateY(-190px) rotate(360deg); }
}

/* ── Middle orbit: icon pills ────────────────────────────────── */
.orbit-icon-pill {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1.5px solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
  top: 50%;
  left: 50%;
  margin-top: -22px;
  margin-left: -22px;
  /* position evenly around the 135px radius (half of 270px) */
  transform: rotate(calc(var(--j) * 60deg)) translateY(-135px);
  animation: iconCounterCCW 20s linear infinite;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.orbit-icon-pill:hover {
  border-color: var(--text-primary);
  box-shadow: var(--shadow-lg);
}

@keyframes iconCounterCCW {
  from { transform: rotate(calc(var(--j) * 60deg)) translateY(-135px) rotate(0deg); }
  to   { transform: rotate(calc(var(--j) * 60deg)) translateY(-135px) rotate(360deg); }
}

/* Scroll Down */
.scroll-down {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 1px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: bounceDown 2s ease-in-out infinite;
  z-index: 2;
  user-select: none;
}

@keyframes bounceDown {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.6; }
  50% { transform: translateX(-50%) translateY(8px); opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════════
   CONTAINER - wider
════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
   ABOUT SECTION — light bg
════════════════════════════════════════════════════════════════ */
.about-section {
  padding: 100px 0;
  background: var(--bg-primary);
  border-radius: 18px;
}

.about-grid {
  display: grid;
  grid-template-columns: 380px 1fr;

  gap: 60px;
  align-items: start;
}

.about-img-frame {
  width: 380px;
  height: 420px;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid var(--border);
  box-shadow: var(--shadow-md);
}

.about-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text { display: flex; flex-direction: column; gap: 18px; }

.about-intro {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-secondary);
}

.about-text > p {
  font-size: 0.93rem;
  line-height: 1.75;
  color: var(--text-muted);
}

.about-stats {
  display: flex;
  gap: 20px;
  margin-top: 6px;
  justify-content: left;
  
}

.stat-card {
  background: var(--bg-secondary);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 20px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.stat-card:hover {
  border-color: var(--border-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
}

.stat-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

.btn-resume-about {
  align-self: flex-start;
  margin-top: 6px;
}

/* ═══════════════════════════════════════════════════════════════
   SKILLS SECTION — distinct dark-ish bg
════════════════════════════════════════════════════════════════ */
.skills-section {
  padding: 115px 16px;
  background: linear-gradient(135deg, #f8f8f8 0%, #f0f0f0 80%);
  border-top: 1.5px solid var(--border);
  border-bottom: 1.5px solid var(--border);
  border-radius: 10px;
}

[data-theme="dark"] .skills-section {
  background: linear-gradient(135deg, #1a1a1a 0%, #222222 100%);
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: -20px;
}

.skill-category {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.skill-category:hover {
  border-color: var(--border-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.skill-cat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.skill-cat-header i {
  font-size: 1rem;
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.skill-cat-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-pills span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  background: var(--bg-secondary);
  transition: var(--transition);
}

.skill-pills span:hover {
  background: var(--accent);
  color: var(--accent-inv);
  border-color: var(--accent);
}

/* ═══════════════════════════════════════════════════════════════
   PROJECTS SECTION — Glassmorphism
════════════════════════════════════════════════════════════════ */
.projects-section {
  padding: 70px 40px;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(80,80,80,0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 20%, rgba(100,100,100,0.10) 0%, transparent 50%),
    linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%);
  border-top: 1.5px solid var(--border);
  margin-top: 50px;
  border-bottom: 1.5px solid var(--border);
  border-radius: 18px 18px 0 0 ;
}

[data-theme="dark"] .projects-section {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(120,120,120,0.08) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 20%, rgba(150,150,150,0.06) 0%, transparent 50%),
    linear-gradient(180deg, #0d0d0d 0%, #151515 100%);
}

/* one unified background "stage" for all cards */
.projects-showcase {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: -40px;
}

/* ── Glass card ──────────────────────────────────────────────── */
.project-card {
  display: grid;
  grid-template-columns: 60% 40%;
  gap: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow:
    0 4px 24px rgba(0,0,0,0.10),
    inset 0 1px 0 rgba(255,255,255,0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(255,255,255,0.52);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  position: relative;
  margin: 20px;
}

[data-theme="dark"] .project-card {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.09);
  box-shadow:
    0 4px 32px rgba(0,0,0,0.40),
    inset 0 1px 0 rgba(255,255,255,0.05);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 16px 48px rgba(0,0,0,0.16),
    inset 0 1px 0 rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.28);
}

[data-theme="dark"] .project-card:hover {
  box-shadow:
    0 16px 56px rgba(0,0,0,0.60),
    inset 0 1px 0 rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.16);
}

/* Alternate: even cards flip image to right */
.project-card:nth-child(even) { direction: rtl; }
.project-card:nth-child(even) > * { direction: ltr; }

/* ── Image side ──────────────────────────────────────────────── */
.project-image {
  position: relative;
  overflow: hidden;
  background: var(--bg-secondary);
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid rgba(255,255,255,0.12);
}

[data-theme="dark"] .project-image {
  border-right-color: rgba(255,255,255,0.06);
}

.project-card:nth-child(even) .project-image {
  border-right: none;
  border-left: 1px solid rgba(255,255,255,0.12);
}

[data-theme="dark"] .project-card:nth-child(even) .project-image {
  border-left-color: rgba(255,255,255,0.06);
}

/* ── Project Image Carousel ──────────────────────────────────── */
.proj-slides {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}

.proj-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.proj-slide.active {
  opacity: 1;
  transform: translateX(0);
  z-index: 1;
}

/* ── Slide dot indicators ────────────────────────────────────── */
.proj-slide-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
}

.proj-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  border: 1px solid rgba(255,255,255,0.6);
  transition: all 0.35s ease;
  cursor: pointer;
}

.proj-dot.active {
  background: #ffffff;
  width: 18px;
  border-radius: 999px;
  box-shadow: 0 0 6px rgba(255,255,255,0.6);
}

.project-num {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #ffffff;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 4px 13px;
  z-index: 2;
}

/* ── Info side ───────────────────────────────────────────────── */
.project-info {
  padding: 44px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: center;
  color: white;
}

.project-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.project-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.4px;
}

.project-subtitle {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.project-desc {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.project-desc strong { color: var(--text-primary); }

/* Tech tags — glass style */
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.project-tags span {
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.12);
  color: var(--text-secondary);
  background: rgba(0,0,0,0.06);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: var(--transition);
}

[data-theme="dark"] .project-tags span {
  border-color: rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
}

.project-tags span:hover {
  background: var(--accent);
  color: var(--accent-inv);
  border-color: var(--accent);
}

.project-actions {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn-outline-sm,
.btn-fill-sm {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all 0.25s ease;
}

.btn-outline-sm {
  border: 1.5px solid rgba(0,0,0,0.18);
  color: var(--text-secondary);
  background: rgba(0,0,0,0.04);
  backdrop-filter: blur(6px);
}

[data-theme="dark"] .btn-outline-sm {
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.04);
}

.btn-outline-sm:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
  background: rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.btn-fill-sm {
  background: var(--accent);
  color: var(--accent-inv);
  border: 1.5px solid var(--accent);
}

.btn-fill-sm:hover {
  opacity: 0.85;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
}

/* ═══════════════════════════════════════════════════════════════
   EXPERIENCE SECTION — secondary bg
════════════════════════════════════════════════════════════════ */
.experience-section {
  background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
  border-top: 1.5px solid var(--border);
  border-bottom: 1.5px solid var(--border);
  padding: 90px 10px;
  margin-top: 50px;
  border-radius: 18px;
}

[data-theme="dark"] .experience-section {
  background: linear-gradient(135deg, #151515 0%, #1a1a1a 100%);
}

.timeline-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.timeline-col-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.timeline {
  position: relative;
  padding-left: 28px;
  border-left: 2px solid var(--border-dark);
}

.timeline-item {
  position: relative;
  margin-bottom: 32px;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -40px;
  top: 6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-dot i { font-size: 0.55rem; color: var(--text-muted); }

.timeline-content {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 22px 26px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.timeline-content:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-dark);
  transform: translateY(-2px);
}

.timeline-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.timeline-date {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

.timeline-date i { margin-right: 4px; font-size: 0.65rem; }

.timeline-type {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.timeline-role {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.timeline-company {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.timeline-company i { margin-right: 4px; font-size: 0.7rem; }

.timeline-desc {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 10px;
}

.timeline-highlights {
  list-style: disc;
  padding-left: 16px;
  margin-bottom: 12px;
}

.timeline-highlights li {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 4px;
}

.timeline-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.timeline-skills span {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--bg-secondary);
}

/* ═══════════════════════════════════════════════════════════════
   CONTACT SECTION — primary bg
════════════════════════════════════════════════════════════════ */
.contact-section {
  padding: 100px 0;
  background: var(--bg-primary);
  border-top: 1.5px solid var(--border);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 56px;
  align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 24px; }

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.contact-item a,
.contact-item p {
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.contact-item a:hover { color: var(--text-primary); }

.contact-socials {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition);
}

.social-pill:hover {
  background: var(--accent);
  color: var(--accent-inv);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.2px;
}

.form-group input,
.form-group textarea {
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-family: inherit;
  transition: var(--transition);
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
}

.form-submit { align-self: flex-start; gap: 8px; }

.form-status {
  font-size: 0.82rem;
  font-weight: 500;
  min-height: 20px;
}

.form-status.success { color: #22c55e; }
.form-status.error   { color: #ef4444; }

/* ═══════════════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════════════════ */
.footer {
  background: var(--bg-secondary);
  border-top: 1.5px solid var(--border);
  padding: 44px 0;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.footer-logo {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 2px;
}

.footer-copy { font-size: 0.78rem; color: var(--text-muted); }

.footer-links { display: flex; gap: 24px; }

.footer-links a {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-links a:hover { color: var(--text-primary); }

/* ═══════════════════════════════════════════════════════════════
   BACK TO TOP
════════════════════════════════════════════════════════════════ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-inv);
  border: none;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: var(--transition);
  z-index: 99;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
  .container { max-width: 1000px; padding: 0 40px; }
  .hero-decoration { width: 360px; height: 360px; }
  .orbit-outer { display: none; }
}

@media (max-width: 1024px) {
  .hero-section {
    flex-direction: column;
    text-align: center;
    padding: 60px 0;
  }
  .hero-content {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-tagline { text-align: center; }
  .hero-decoration { width: 300px; height: 300px; }
  .orbit-outer { display: none; }
  .orbit-middle { width: 220px; height: 220px; }
  .orbit-inner  { width: 140px; height: 140px; }

  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-img-frame { width: 240px; height: 280px; margin: 0 auto; }

  .skills-grid { grid-template-columns: 1fr 1fr; }

  .project-card {    }
  .project-card:nth-child(even) { direction: ltr; }
  .project-image { border-right: none; border-bottom: 1.5px solid var(--border); }
  .project-card:nth-child(even) .project-image { border-left: none; border-bottom: 1.5px solid var(--border); }
  .project-image img { min-height: 220px; }
  .project-info { padding: 28px; }

  .timeline-wrapper { grid-template-columns: 1fr; gap: 40px; }

  .contact-grid { grid-template-columns: 1fr; gap: 36px; }

  .navbar { padding: 0 40px; }
  .nav-items { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 768px) {
  .container { padding: 0 24px; }
  .navbar { padding: 0 24px; }
  .hero-name { font-size: clamp(2.2rem, 9vw, 3.2rem); }
  .section-title { font-size: 1.7rem; }
  .about-stats { flex-wrap: wrap; }
  .skills-grid { grid-template-columns: 1fr; }
  .project-title { font-size: 1.25rem; }
}

@media (max-width: 640px) {
  .hero-actions { flex-direction: column; align-items: center; gap: 12px; }
  .hero-actions a { width: 220px; justify-content: center; }
  .hero-decoration { width: 250px; height: 250px; }
}
