/* ===== RESET & VARIABLES ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0a0e17;
  --bg2: #111827;
  --bg3: #1a2235;
  --surface: #1e293b;
  --border: #2a3654;
  --text: #e2e8f0;
  --text2: #94a3b8;
  --text3: #64748b;
  --accent: #38bdf8;
  --accent2: #818cf8;
  --accent3: #a78bfa;
  --green: #34d399;
  --orange: #fb923c;
  --glow: rgba(56, 189, 248, 0.15);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ===== NOISE OVERLAY ===== */
body::before {
  content: '';
  position: fixed; inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

/* ===== NAV ===== */
nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  padding: 1.2rem 3rem;
  display: flex; justify-content: space-between; align-items: center;
  backdrop-filter: blur(20px);
  background: rgba(10, 14, 23, 0.8);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}
nav .logo {
  font-family: 'Inter', sans-serif;
  font-weight: 800; font-size: 1.3rem;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}
nav .nav-links { display: flex; gap: 2rem; list-style: none; }
nav .nav-links a {
  color: var(--text2); text-decoration: none; font-size: 0.9rem;
  font-weight: 500; letter-spacing: 0.5px; text-transform: uppercase;
  transition: color 0.3s; position: relative;
}
nav .nav-links a:hover { color: var(--accent); }
nav .nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
  background: var(--accent); transition: width 0.3s;
}
nav .nav-links a:hover::after { width: 100%; }

.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.hamburger span { width: 24px; height: 2px; background: var(--text); transition: 0.3s; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  padding: 6rem 3rem 4rem;
}
.hero-bg {
  position: absolute; inset: 0; overflow: hidden;
}
.hero-bg .orb {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.4;
  animation: float 8s ease-in-out infinite;
}
.hero-bg .orb:nth-child(1) {
  width: 500px; height: 500px; top: -10%; right: -5%;
  background: radial-gradient(circle, rgba(56,189,248,0.3), transparent 70%);
}
.hero-bg .orb:nth-child(2) {
  width: 400px; height: 400px; bottom: -10%; left: -5%;
  background: radial-gradient(circle, rgba(129,140,248,0.25), transparent 70%);
  animation-delay: -4s;
}
.hero-bg .orb:nth-child(3) {
  width: 300px; height: 300px; top: 40%; left: 40%;
  background: radial-gradient(circle, rgba(167,139,250,0.15), transparent 70%);
  animation-delay: -2s;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-content {
  position: relative; z-index: 2;
  max-width: 1000px; text-align: center;
}
.hero-intro {
  display: flex; align-items: center; gap: 2.5rem;
  margin-bottom: 2.5rem; text-align: left;
}
.hero-intro-text { flex: 1; }
.hero-intro-text .subtitle {
  margin: 1rem 0 0; max-width: none;
}
.hero-avatar {
  flex-shrink: 0; width: 200px; height: 200px;
  border-radius: 24px; overflow: hidden;
  border: 2px solid var(--border);
  box-shadow: 0 12px 40px rgba(56, 189, 248, 0.15);
}
.hero-avatar img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: top center;
}
.hero-label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1.2rem; border-radius: 50px;
  background: var(--glow); border: 1px solid rgba(56,189,248,0.2);
  font-size: 0.85rem; color: var(--accent); font-weight: 500;
  margin-bottom: 2rem; letter-spacing: 1px; text-transform: uppercase;
}
.hero-label .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero h1 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800; line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 0;
}
.hero h1 .gradient {
  background: linear-gradient(135deg, var(--accent), var(--accent2), var(--accent3));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero .subtitle {
  font-size: 1.25rem; color: var(--text2); max-width: 650px;
  margin: 0 auto 2.5rem; line-height: 1.7; font-weight: 300;
}
.hero-cta {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.9rem 2rem; border-radius: 12px; font-size: 0.95rem;
  font-weight: 600; text-decoration: none; transition: all 0.3s;
  cursor: pointer; border: none; font-family: 'Outfit', sans-serif;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #0a0e17; box-shadow: 0 4px 30px rgba(56,189,248,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 40px rgba(56,189,248,0.4); }
.btn-outline {
  background: transparent; color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ===== SECTIONS ===== */
section { padding: 6rem 3rem; max-width: 1200px; margin: 0 auto; }

.section-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 1rem;
}
.section-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700; letter-spacing: -1px;
  margin-bottom: 1.5rem;
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
  align-items: start; margin-top: 2rem;
}
.about-text p {
  color: var(--text2); font-size: 1.05rem; margin-bottom: 1.2rem;
  font-weight: 300; line-height: 1.8;
}
.about-text .highlight { color: var(--text); font-weight: 500; }
.stats-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem;
}
.stat-card {
  padding: 1.8rem; border-radius: 16px;
  background: var(--bg2); border: 1px solid var(--border);
  transition: all 0.3s;
}
.stat-card:hover {
  border-color: var(--accent); transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(56,189,248,0.1);
}
.stat-number {
  font-family: 'Inter', sans-serif;
  font-size: 2.2rem; font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-label { font-size: 0.85rem; color: var(--text3); margin-top: 0.3rem; font-weight: 500; }

/* ===== PROJECTS ===== */
.projects-container { margin-top: 3rem; display: flex; flex-direction: column; gap: 5rem; }

.project-card {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem;
  align-items: center;
  padding: 2.5rem; border-radius: 24px;
  background: var(--bg2);
  border: 1px solid var(--border);
  transition: all 0.4s;
}
.project-card:hover {
  border-color: rgba(56,189,248,0.3);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.project-card.reverse { grid-template-columns: 0.9fr 1.1fr; }
.project-card.reverse .project-gallery { order: -1; }

.project-tag {
  display: inline-block; padding: 0.35rem 0.9rem; border-radius: 50px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 1rem;
}
.tag-gov { background: rgba(52,211,153,0.15); color: var(--green); }
.tag-fintech { background: rgba(56,189,248,0.15); color: var(--accent); }
.tag-wellness { background: rgba(167,139,250,0.15); color: var(--accent3); }
.tag-corp { background: rgba(251,146,60,0.15); color: var(--orange); }

.project-name {
  font-family: 'Inter', sans-serif;
  font-size: 1.8rem; font-weight: 700;
  margin-bottom: 0.8rem; letter-spacing: -0.5px;
}
.project-desc {
  color: var(--text2); font-size: 0.95rem; line-height: 1.7;
  margin-bottom: 1.5rem; font-weight: 300;
}
.project-stack {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.2rem;
}
.stack-tag {
  padding: 0.3rem 0.75rem; border-radius: 8px; font-size: 0.78rem;
  background: var(--bg); border: 1px solid var(--border);
  color: var(--text2); font-weight: 500;
}
.project-highlights {
  list-style: none; display: flex; flex-direction: column; gap: 0.5rem;
}
.project-highlights li {
  color: var(--text2); font-size: 0.88rem; padding-left: 1.2rem;
  position: relative; font-weight: 400;
}
.project-highlights li::before {
  content: '▸'; position: absolute; left: 0; color: var(--accent);
  font-weight: 700;
}

/* ===== GALLERY ===== */
.project-gallery {
  position: relative; border-radius: 16px; overflow: hidden;
  background: var(--bg); border: 1px solid var(--border);
}
.gallery-track {
  display: flex; transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.gallery-track img {
  width: 100%; flex-shrink: 0; display: block;
  object-fit: contain; aspect-ratio: 2000/1088;
  background: var(--bg);
}
.gallery-nav {
  position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: 0.5rem; z-index: 5;
}
.gallery-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.3); cursor: pointer;
  transition: all 0.3s; border: none;
}
.gallery-dot.active { background: var(--accent); width: 24px; border-radius: 4px; }
.gallery-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(10,14,23,0.7); border: 1px solid var(--border);
  color: var(--text); cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s; z-index: 5; backdrop-filter: blur(10px);
}
.gallery-btn:hover { background: var(--accent); color: var(--bg); }
.gallery-btn.prev { left: 0.8rem; }
.gallery-btn.next { right: 0.8rem; }

/* ===== MOBILE GALLERY (Yoga) ===== */
.mobile-gallery {
  display: flex; gap: 1rem; justify-content: center; align-items: center;
}
.mobile-gallery .phone-frame {
  width: 180px; border-radius: 24px; overflow: hidden;
  border: 2px solid var(--border); box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  background: var(--bg);
}
.mobile-gallery .phone-frame img {
  width: 100%; display: block;
}
.mobile-gallery .phone-frame.main {
  width: 220px; border-color: var(--accent);
  box-shadow: 0 20px 50px rgba(56,189,248,0.15);
}

/* ===== EXPERIENCE TIMELINE ===== */
.timeline { margin-top: 3rem; position: relative; padding-left: 3rem; }
.timeline::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent2), var(--accent3), transparent);
}
.timeline-item {
  position: relative; margin-bottom: 3rem;
  padding: 1.8rem 2rem; border-radius: 16px;
  background: var(--bg2); border: 1px solid var(--border);
  transition: all 0.3s;
}
.timeline-item:hover {
  border-color: rgba(56,189,248,0.3);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}
.timeline-item::before {
  content: ''; position: absolute; left: -3rem;
  top: 2rem; width: 12px; height: 12px;
  border-radius: 50%; background: var(--accent);
  border: 3px solid var(--bg);
  transform: translateX(-5px);
}
.timeline-company {
  font-family: 'Inter', sans-serif;
  font-size: 1.3rem; font-weight: 700;
}
.timeline-role { color: var(--accent); font-weight: 500; font-size: 0.95rem; margin-top: 0.2rem; }
.timeline-date { color: var(--text3); font-size: 0.85rem; margin-top: 0.3rem; font-weight: 500; }
.timeline-desc {
  color: var(--text2); font-size: 0.9rem; margin-top: 0.8rem;
  line-height: 1.7; font-weight: 300;
}

/* ===== TECH STACK ===== */
.tech-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem; margin-top: 3rem;
}
.tech-category {
  padding: 2rem; border-radius: 16px;
  background: var(--bg2); border: 1px solid var(--border);
  transition: all 0.3s;
}
.tech-category:hover {
  border-color: rgba(56,189,248,0.3);
  transform: translateY(-3px);
}
.tech-category-icon { font-size: 1.8rem; margin-bottom: 0.8rem; }
.tech-category-name {
  font-family: 'Inter', sans-serif;
  font-size: 1rem; font-weight: 700;
  margin-bottom: 1rem; color: var(--text);
}
.tech-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tech-tag {
  padding: 0.35rem 0.8rem; border-radius: 8px;
  font-size: 0.8rem; background: var(--bg);
  border: 1px solid var(--border); color: var(--text2);
  font-weight: 500; transition: all 0.2s;
}
.tech-tag:hover { border-color: var(--accent); color: var(--accent); }

/* ===== CONTACT ===== */
.contact-section {
  text-align: center;
  padding: 8rem 3rem;
  position: relative;
}
.contact-section .section-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
}
.contact-links {
  display: flex; gap: 1.2rem; justify-content: center;
  margin-top: 2.5rem; flex-wrap: wrap;
}
.contact-link {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.9rem 1.8rem; border-radius: 12px;
  background: var(--bg2); border: 1px solid var(--border);
  color: var(--text); text-decoration: none;
  font-weight: 500; font-size: 0.95rem;
  transition: all 0.3s;
}
.contact-link:hover {
  border-color: var(--accent); color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(56,189,248,0.1);
}
.contact-link svg { width: 20px; height: 20px; }

/* ===== FOOTER ===== */
footer {
  text-align: center; padding: 2rem 3rem;
  border-top: 1px solid var(--border);
  color: var(--text3); font-size: 0.85rem;
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0, 0, 0, 0.92);
  display: none; align-items: center; justify-content: center;
  backdrop-filter: blur(10px);
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw; max-height: 85vh;
  object-fit: contain; border-radius: 12px;
  user-select: none;
}
.lightbox-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; font-size: 1.5rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }
.lightbox-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; font-size: 1.3rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s;
}
.lightbox-btn:hover { background: rgba(255,255,255,0.25); }
.lightbox-btn.prev { left: 1.5rem; }
.lightbox-btn.next { right: 1.5rem; }
.lightbox-counter {
  position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.6); font-size: 0.9rem; font-weight: 500;
}
.gallery-track {
  cursor: pointer;
  position: relative;
  z-index: 3;
}
.mobile-gallery .phone-frame img {
  cursor: pointer;
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-up {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  nav .nav-links { display: none; }
  .hamburger { display: flex; }
  nav .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg2); padding: 1.5rem;
    border-bottom: 1px solid var(--border);
  }
  section { padding: 4rem 1.5rem; }
  .hero { padding: 6rem 1.5rem 3rem; }
  .hero-intro { flex-direction: column; text-align: center; gap: 1.5rem; }
  .hero-intro-text .subtitle { text-align: center; }
  .hero-avatar { width: 160px; height: 160px; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .project-card, .project-card.reverse {
    grid-template-columns: 1fr;
  }
  .project-card.reverse .project-gallery { order: 0; }
  .mobile-gallery .phone-frame { width: 140px; }
  .mobile-gallery .phone-frame.main { width: 170px; }
  .contact-section { padding: 5rem 1.5rem; }
}
@media (max-width: 500px) {
  .hero h1 { letter-spacing: -1px; }
  .stats-grid { grid-template-columns: 1fr; }
  .mobile-gallery { flex-direction: column; }
  .mobile-gallery .phone-frame, .mobile-gallery .phone-frame.main { width: 200px; }
}
