*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{
  --bg-color: #111111;
  --bg-gradient: radial-gradient(circle at 50% 0%, #222222, #111111 70%);
  --accent: #FFB400;
  --accent-dim: rgba(255, 180, 0, 0.15);
  --text-main: #FFFFFF;
  --text-muted: #A0A0A0;
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(255, 255, 255, 0.2);
  --sans: 'DM Sans', sans-serif;
  --body: 'Inter', sans-serif;
}
html,body{background:var(--bg-color);background-image:var(--bg-gradient);background-attachment:fixed;color:var(--text-muted);font-family:var(--body);-webkit-font-smoothing:antialiased;scroll-behavior:smooth;overflow-x:hidden;}

/* ── FLOATING NAV ── */
.floating-nav {
  position: fixed; right: 2rem; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 1.2rem; z-index: 100;
}
.nav-btn {
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  color: var(--text-main); font-family: var(--sans); font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; position: relative; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.nav-btn:hover { background: var(--accent); color: #111; border-color: var(--accent); transform: scale(1.1); box-shadow: 0 0 20px rgba(255,180,0,0.4); }
.nav-btn::before {
  content: attr(data-tooltip); position: absolute; right: 70px;
  background: var(--glass-bg); padding: 0.6rem 1.2rem; border-radius: 30px;
  color: var(--text-main); font-size: 0.85rem; font-weight: 500; opacity: 0; pointer-events: none;
  transition: all 0.3s ease; transform: translateX(15px); white-space: nowrap;
  backdrop-filter: blur(12px); border: 1px solid var(--glass-border); text-transform: uppercase; letter-spacing: 1px;
}
.nav-btn:hover::before { opacity: 1; transform: translateX(0); }

/* ── LAYOUT ── */
#main { padding-right: 80px; }
section { padding: clamp(4rem, 8vw, 8rem) clamp(1.5rem, 8vw, 4rem); max-width: 1200px; margin: 0 auto; }

/* ── HERO ── */
.hero { display: flex; align-items: center; min-height: 100vh; padding-top: 5rem; }
.hero-content { display: flex; align-items: center; gap: clamp(3rem, 8vw, 6rem); flex-wrap: wrap; width: 100%; }
.hero-img-box { position: relative; width: clamp(280px, 35vw, 450px); flex-shrink: 0; }
.hero-bg-accent { position: absolute; left: -1.5rem; bottom: -1.5rem; width: 100%; height: 100%; background: var(--accent); border-radius: 24px; z-index: -1; box-shadow: 0 0 40px rgba(255,180,0,0.2); transition: transform 0.5s;}
.hero-img-box:hover .hero-bg-accent { transform: translate(-10px, 10px); }
.hero-img-box img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 24px; border: 1px solid var(--glass-border); box-shadow: 0 20px 50px rgba(0,0,0,0.8); }
.hero-text { flex: 1; min-width: 300px; }
.kicker { display: flex; align-items: center; gap: 1.5rem; color: var(--text-muted); font-size: 0.85rem; letter-spacing: 3px; margin-bottom: 1.5rem; text-transform: uppercase; font-family: var(--sans); font-weight: 600; }
.kicker .line { width: 50px; height: 2px; background: var(--accent); }
.hero-h1 { font-family: var(--sans); font-size: clamp(3rem, 6vw, 5rem); font-weight: 800; color: var(--text-main); line-height: 1.05; margin-bottom: 1.5rem; text-transform: uppercase; }
.hero-h1 span { color: var(--accent); }
.hero-tagline { font-size: 1.15rem; line-height: 1.8; color: var(--text-muted); margin-bottom: 3rem; max-width: 600px; font-weight: 300; }
.hero-socials { display: flex; gap: 1.5rem; align-items: center; }
.social-link { color: var(--text-muted); transition: all 0.3s; display: flex; align-items: center; justify-content: center; width: 45px; height: 45px; border-radius: 50%; border: 1px solid var(--glass-border); background: var(--glass-bg); }
.social-link:hover { color: #111; background: var(--accent); border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 5px 15px rgba(255,180,0,0.3); }
.nav-btn svg { width: 22px; height: 22px; transition: transform 0.3s; }
.nav-btn:hover svg { transform: scale(1.1); }

.btn-primary {
  display: inline-flex; align-items: center; gap: 1.5rem; background: transparent; border: 1px solid var(--accent); color: var(--text-main);
  padding: 1rem 1.5rem 1rem 2.5rem; border-radius: 50px; text-decoration: none; font-family: var(--sans); font-weight: 700; font-size: 0.9rem; letter-spacing: 2px; text-transform: uppercase; position: relative; overflow: hidden; transition: all 0.4s ease;
}
.btn-primary span {
  display: flex; align-items: center; justify-content: center; width: 45px; height: 45px; background: var(--accent); color: #111; border-radius: 50%; transition: all 0.4s ease;
}
.btn-primary:hover { background: var(--accent); color: #111; }
.btn-primary:hover span { background: #111; color: var(--text-main); }

/* ── SECTION TITLES ── */
.sec-title-container { position: relative; text-align: center; margin-bottom: 6rem; }
.sec-bg-text { font-family: var(--sans); font-size: clamp(4rem, 12vw, 8rem); font-weight: 800; color: rgba(255,255,255,0.03); letter-spacing: 15px; text-transform: uppercase; line-height: 1; user-select: none; margin: 0; }
.sec-title { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-family: var(--sans); font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; color: var(--text-main); text-transform: uppercase; margin: 0; white-space: nowrap; }
.sec-title span { color: var(--accent); }

/* ── GLASS CARDS ── */
.glass-card {
  background: var(--glass-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border); border-radius: 24px; padding: 3rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5); transition: all 0.4s ease; position: relative; overflow: hidden;
}
.glass-card:hover { border-color: var(--glass-border-hover); transform: translateY(-8px); box-shadow: 0 30px 60px rgba(0,0,0,0.7); }
.glass-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); }

/* ── ABOUT ── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.about-text p { font-size: 1.05rem; line-height: 1.9; margin-bottom: 1.5rem; font-weight: 300; }
.skills-container { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.skill-box { padding: 1.5rem; background: rgba(0,0,0,0.2); border-radius: 16px; border: 1px solid var(--glass-border); }
.skill-box h4 { font-family: var(--sans); color: var(--text-main); margin-bottom: 1rem; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.skill-tag { background: var(--glass-bg); padding: 0.5rem 1rem; border-radius: 50px; border: 1px solid var(--glass-border); font-size: 0.8rem; color: var(--text-muted); transition: all 0.3s; }
.skill-tag:hover { border-color: var(--accent); color: var(--accent); }

/* ── EXPERIENCE & EDUCATION ── */
.timeline { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.timeline-col h3 { font-family: var(--sans); font-size: 1.5rem; color: var(--text-main); margin-bottom: 2.5rem; text-transform: uppercase; display: flex; align-items: center; gap: 1rem; }
.timeline-col h3::before { content: ''; display: block; width: 40px; height: 2px; background: var(--accent); }
.timeline-item { position: relative; padding-left: 2.5rem; margin-bottom: 3rem; }
.timeline-item::before { content: ''; position: absolute; left: 0; top: 0; bottom: -3rem; width: 1px; background: var(--glass-border); }
.timeline-item:last-child::before { display: none; }
.timeline-icon { position: absolute; left: -0.5rem; top: 0; width: 1rem; height: 1rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.timeline-date { display: inline-block; padding: 0.3rem 1rem; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 50px; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 1rem; letter-spacing: 1px; }
.timeline-title { font-family: var(--sans); font-size: 1.25rem; color: var(--text-main); margin-bottom: 0.5rem; font-weight: 700; }
.timeline-org { font-size: 0.85rem; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1rem; font-weight: 600; }
.timeline-desc { font-size: 0.95rem; line-height: 1.7; font-weight: 300; }

/* ── PROJECTS ── */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 3rem; }
.proj-card { padding: 2.5rem; display: flex; flex-direction: column; height: 100%; }
.proj-num { font-family: var(--sans); font-size: 3rem; font-weight: 800; color: rgba(255,255,255,0.05); position: absolute; top: 1rem; right: 2rem; line-height: 1; transition: color 0.3s; }
.proj-card:hover .proj-num { color: var(--accent-dim); }
.proj-title { font-family: var(--sans); font-size: 1.5rem; font-weight: 700; color: var(--text-main); margin-bottom: 1rem; z-index: 1; }
.proj-desc { font-size: 0.95rem; line-height: 1.7; margin-bottom: 2rem; font-weight: 300; flex: 1; z-index: 1; }
.proj-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; z-index: 1; }
.proj-tag { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); background: var(--accent-dim); padding: 0.3rem 0.8rem; border-radius: 4px; }
.proj-links { display: flex; gap: 1rem; z-index: 1; }
.proj-links a { text-decoration: none; color: var(--text-main); font-family: var(--sans); font-size: 0.8rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; border-bottom: 1px solid var(--accent); padding-bottom: 4px; transition: color 0.3s; }
.proj-links a:hover { color: var(--accent); }

/* ── CONTACT ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.contact-info p { font-size: 1.1rem; line-height: 1.8; margin-bottom: 3rem; font-weight: 300; }
.contact-details { display: flex; flex-direction: column; gap: 2rem; }
.contact-item { display: flex; align-items: center; gap: 1.5rem; }
.contact-icon { width: 50px; height: 50px; border-radius: 50%; background: var(--glass-bg); border: 1px solid var(--glass-border); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--accent); }
.contact-text h4 { font-family: var(--sans); color: var(--text-muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 0.3rem; }
.contact-text a, .contact-text span { color: var(--text-main); text-decoration: none; font-size: 1.1rem; font-weight: 600; font-family: var(--sans); transition: color 0.3s; }
.contact-text a:hover { color: var(--accent); }

/* ── FOOTER ── */
footer { padding: 3rem; text-align: center; border-top: 1px solid var(--glass-border); margin-top: 4rem; }
footer p { font-family: var(--sans); font-size: 0.85rem; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); }

/* ── ANIMATIONS ── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 1, 0.3, 1); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; gap: 5rem; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  #main { padding-right: 0; padding-bottom: 80px; }
  .floating-nav { top: auto; bottom: 1.5rem; right: 50%; transform: translateX(50%); flex-direction: row; padding: 0.8rem 1.5rem; border-radius: 50px; background: var(--glass-bg); border: 1px solid var(--glass-border); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); width: 90%; max-width: 400px; justify-content: space-between; gap: 0; }
  .nav-btn { width: 40px; height: 40px; background: transparent; border: none; box-shadow: none; font-size: 0.9rem; }
  .nav-btn:hover { transform: translateY(-5px); box-shadow: none; border: none; background: transparent; color: var(--accent); }
  .nav-btn::before { display: none; }
  
  section { padding: clamp(3rem, 6vw, 4rem) clamp(1.2rem, 5vw, 2rem); }
  .hero-content { justify-content: center; text-align: center; }
  .hero-img-box { width: clamp(200px, 60vw, 300px); }
  .hero-bg-accent { display: none; }
  .kicker { justify-content: center; }
  .btn-primary { margin: 0 auto; }
}
