/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

:root {
  --bg: #faf9f7;
  --dark: #0f0f13;
  --dark2: #17171e;
  --accent: #c96a3c;
  --accent2: #e8a87c;
  --text: #2c2c2e;
  --muted: #6b6b75;
  --border: #e5e3de;
  --white: #ffffff;
}

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

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

/* ===== NAVBAR ===== */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.2rem 5%;
  background: rgba(250,249,247,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
#navbar.scrolled { border-color: var(--border); box-shadow: 0 2px 20px rgba(0,0,0,0.06); }

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; font-weight: 700;
  color: var(--text);
}
.nav-logo span { color: var(--accent); }

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  text-decoration: none; font-size: 0.85rem; font-weight: 500;
  color: var(--muted); transition: color .2s;
  letter-spacing: 0.03em;
}
.nav-links a:hover { color: var(--accent); }

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

/* ===== SECTION BASE ===== */
.section { padding: 6rem 5%; }
.section-dark { background: var(--dark); }
.section-dark * { color: inherit; }

.container { max-width: 1100px; margin: 0 auto; }

.section-title { text-align: center; margin-bottom: 4rem; }
.section-title.light .label { color: var(--accent2); }
.section-title.light h2 { color: #f0ede8; }
.label {
  display: block; font-size: 0.7rem; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 0.6rem; font-weight: 600;
}
.section-title h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 700;
  color: var(--text); line-height: 1.2;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 7rem 5% 4rem;
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(201,106,60,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(232,168,124,0.06) 0%, transparent 60%);
}
.hero-content { position: relative; z-index: 2; max-width: 680px; }

.hero-greeting {
  font-size: 1rem; letter-spacing: 0.1em; color: var(--muted);
  margin-bottom: 0.5rem;
  opacity: 0; animation: fadeUp 0.7s ease 0.3s forwards;
}
.hero-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  font-weight: 700; line-height: 0.95;
  color: var(--text);
  opacity: 0; animation: fadeUp 0.8s ease 0.5s forwards;
}
.hero-name span { color: var(--accent); display: block; }

.hero-role {
  font-size: 1.1rem; font-weight: 500; color: var(--muted);
  margin-top: 1.5rem;
  opacity: 0; animation: fadeUp 0.7s ease 0.7s forwards;
}
.hero-tagline {
  font-size: 0.8rem; letter-spacing: 0.2em; color: var(--accent);
  margin-top: 0.4rem; text-transform: uppercase;
  opacity: 0; animation: fadeUp 0.7s ease 0.85s forwards;
}
.hero-btns {
  display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2.5rem;
  opacity: 0; animation: fadeUp 0.7s ease 1s forwards;
}

.btn-primary {
  display: inline-block; padding: 0.85rem 2rem;
  background: var(--accent); color: #fff;
  text-decoration: none; font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.05em; border-radius: 4px;
  border: 2px solid var(--accent);
  transition: all .25s;
}
.btn-primary:hover { background: transparent; color: var(--accent); }
.btn-outline {
  display: inline-block; padding: 0.85rem 2rem;
  background: transparent; color: var(--text);
  text-decoration: none; font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.05em; border-radius: 4px;
  border: 2px solid var(--border);
  transition: all .25s;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.hero-scroll {
  position: absolute; bottom: 2.5rem; left: 5%;
  display: flex; align-items: center; gap: 1rem;
  font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
}
.scroll-line {
  width: 40px; height: 1px; background: var(--muted);
  animation: extend 1.5s ease-in-out infinite;
}
@keyframes extend {
  0%, 100% { width: 40px; opacity: 1; }
  50% { width: 60px; opacity: 0.4; }
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid; grid-template-columns: 1fr 2fr; gap: 4rem; align-items: start;
}
.avatar-box {
  width: 180px; height: 180px; border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 2rem;
  border: 4px solid var(--accent);
  box-shadow: 0 8px 30px rgba(201,106,60,0.25);
}
.avatar-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar-initial {
  font-family: 'Playfair Display', serif;
  font-size: 5rem; font-weight: 700; color: #fff;
}
.about-info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.info-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 8px; padding: 1rem 0.5rem; text-align: center;
}
.info-num {
  display: block; font-size: 1.6rem; font-weight: 700;
  color: var(--accent); font-family: 'Playfair Display', serif;
}
.info-label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }

.about-text p { color: var(--muted); line-height: 1.9; margin-bottom: 1rem; font-size: 0.95rem; }
.about-text strong { color: var(--text); }

.education { margin-top: 2rem; }
.education h3 {
  font-family: 'Playfair Display', serif; font-size: 1.2rem;
  margin-bottom: 1.2rem; color: var(--text);
  padding-bottom: 0.5rem; border-bottom: 2px solid var(--accent);
  display: inline-block;
}
.edu-item {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 1rem 0; border-bottom: 1px solid var(--border); gap: 1rem;
}
.edu-left strong { display: block; font-size: 0.9rem; font-weight: 600; color: var(--text); }
.edu-left span { font-size: 0.8rem; color: var(--muted); margin-top: 0.2rem; display: block; }
.edu-right { text-align: right; flex-shrink: 0; }
.cgpa { display: block; font-weight: 700; color: var(--accent); font-size: 0.9rem; }
.year { display: block; font-size: 0.75rem; color: var(--muted); }

/* ===== SKILLS ===== */
.skills-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 2rem;
}
.skill-group {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; padding: 1.8rem;
}
.skill-group h4 {
  color: var(--accent2); font-size: 0.7rem; letter-spacing: 0.2em;
  text-transform: uppercase; margin-bottom: 1.4rem; font-weight: 600;
}
.skill-item { margin-bottom: 1.1rem; }
.skill-item span { display: block; font-size: 0.82rem; color: #c0bdb8; margin-bottom: 0.4rem; }
.bar { height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; }
.bar-fill {
  height: 100%; width: 0%; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transition: width 1.2s cubic-bezier(.4,0,.2,1);
}
.tags { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.tag {
  padding: 0.35rem 0.8rem; border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 0.75rem; color: #c0bdb8;
}

/* ===== TIMELINE / INTERNSHIP ===== */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; background: var(--border);
}
.tl-item { position: relative; margin-bottom: 2.5rem; }
.tl-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--bg);
  position: absolute; left: -2.42rem; top: 1.4rem;
}
.tl-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px; padding: 1.8rem;
  transition: box-shadow .3s, transform .3s;
}
.tl-card:hover { box-shadow: 0 8px 32px rgba(201,106,60,0.1); transform: translateY(-2px); }
.tl-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.2rem; gap: 1rem; flex-wrap: wrap; }
.tl-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.tl-role { font-size: 0.82rem; color: var(--accent); margin-top: 0.2rem; font-weight: 500; }
.tl-meta { text-align: right; flex-shrink: 0; }
.tl-date { display: block; font-size: 0.78rem; color: var(--muted); }
.tl-mode {
  display: inline-block; margin-top: 0.3rem; padding: 0.2rem 0.7rem;
  border-radius: 20px; font-size: 0.65rem; letter-spacing: 0.1em; font-weight: 600;
}
.tl-mode.online { background: #e8f5e9; color: #2e7d32; }
.tl-mode.remote { background: #e3f2fd; color: #1565c0; }
.tl-points { list-style: none; padding: 0; }
.tl-points li {
  font-size: 0.85rem; color: var(--muted); line-height: 1.8;
  padding-left: 1.2rem; position: relative; margin-bottom: 0.5rem;
}
.tl-points li::before {
  content: '▸'; position: absolute; left: 0; color: var(--accent);
}
.tl-points strong { color: var(--text); }
.tl-tech { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.2rem; }
.tl-tech span {
  padding: 0.25rem 0.7rem; border-radius: 4px;
  background: #fdf3ee; color: var(--accent);
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.05em;
}

/* ===== PROJECTS ===== */
.projects-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));gap: 1rem;
}
.proj-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 1.2rem;
    position: relative;
    flex: 1;
    min-width: 0;

}
.proj-card:hover { background: rgba(255,255,255,0.07); transform: translateY(-4px); }
.proj-num {
  position: absolute; top: 1.5rem; right: 1.5rem;
  font-family: 'Playfair Display', serif;
  font-size: 3rem; font-weight: 700; color: rgba(255,255,255,0.04);
  line-height: 1;
}
.proj-card h3 { font-size: 1.05rem; font-weight: 700; color: #f0ede8; margin-bottom: 0.3rem; }
.proj-lang { font-size: 0.7rem; color: var(--accent2); letter-spacing: 0.1em; margin-bottom: 1rem; font-weight: 600; }
.proj-desc { font-size: 0.82rem; color: #9e9ba0; line-height: 1.8; }
.proj-desc strong { color: #c0bdb8; }
.proj-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.2rem; }
.proj-tags span {
  padding: 0.25rem 0.7rem; border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 0.68rem; color: #9e9ba0;
}
.proj-link {
  display: inline-block; margin-top: 1.5rem;
  font-size: 0.78rem; font-weight: 600;
  color: var(--accent2); text-decoration: none; letter-spacing: 0.05em;
  transition: gap .2s, color .2s;
}
.proj-link:hover { color: var(--accent); }

/* ===== CERTS ===== */
.cert-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.5rem;
}
.cert-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; padding: 2rem 1.5rem; text-align: center;
  transition: box-shadow .3s, transform .3s;
}
.cert-card:hover { box-shadow: 0 8px 24px rgba(201,106,60,0.1); transform: translateY(-3px); }
.cert-icon { font-size: 2.5rem; display: block; margin-bottom: 1rem; }
.cert-card p { font-size: 0.85rem; color: var(--text); font-weight: 500; margin-bottom: 0.5rem; line-height: 1.5; }
.cert-card span { font-size: 0.72rem; color: var(--accent); font-weight: 600; letter-spacing: 0.08em; }

.contact-box{
    max-width: 700px;
    margin: auto;
    padding: 2rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.contact-text{
    color: #c0bdb8;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.contact-details p{
    margin-bottom: 1rem;
    color: #ffffff;
    font-size: 1rem;
}

.contact-details a{
    color: #f0ede8;
    text-decoration: none;
}

.contact-details a:hover{
    color: var(--accent2);
}

/* ===== FOOTER ===== */
footer {
  background: #0a0a0d;
  text-align: center; padding: 2rem 5%;
  font-size: 0.78rem; color: #4a4850;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; transform: translateY(35px); transition: opacity 0.75s ease, transform 0.75s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 64px; left: 0; right: 0;
    background: var(--bg); padding: 2rem 5%;
    border-bottom: 1px solid var(--border);
    z-index: 999;
  }
  .hero { padding: 8rem 5% 4rem; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-wrap { grid-template-columns: 1fr; gap: 2.5rem; }
  .edu-item { flex-direction: column; gap: 0.3rem; }
  .edu-right { text-align: left; }
  .tl-header { flex-direction: column; }
  .tl-meta { text-align: left; }
}