/* Samarpan Rai — warm, minimal portfolio */
:root {
  --beige: #f3eadb;
  --beige-light: #fbf8f2;
  --beige-deep: #e7d8c2;
  --ink: #24211d;
  --muted: #716b62;
  --line: #ded3c4;
  --accent: #75583d;
  --white: #fffdf9;
  --shadow: 0 18px 55px rgba(59, 43, 27, .08);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { font-family: "DM Sans", sans-serif; background: var(--beige-light); color: var(--ink); line-height: 1.7; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.container { width: min(1120px, 88%); margin: 0 auto; }
.navbar { position: fixed; z-index: 1000; top: 0; left: 0; width: 100%; background: rgba(251,248,242,.92); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(222,211,196,.8); }
.nav-container { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { font-family: "Manrope", sans-serif; font-weight: 800; font-size: 25px; letter-spacing: -1.4px; }
.logo span { color: var(--accent); }
nav { display: flex; align-items: center; gap: clamp(15px, 2.5vw, 32px); }
.nav-link { color: var(--muted); font-size: 13px; font-weight: 600; transition: color .2s; }
.nav-link:hover, .nav-link.active { color: var(--ink); }
.nav-link.active::after { content: ""; display: block; height: 2px; background: var(--accent); margin-top: 4px; }
.menu-btn { display: none; border: 1px solid var(--line); background: var(--white); border-radius: 8px; padding: 7px 11px; cursor: pointer; font-size: 22px; }
.hero { min-height: 100vh; padding: 140px 0 90px; display: flex; align-items: center; position: relative; overflow: hidden; background: radial-gradient(ellipse at 85% 20%, rgba(231,216,194,.6), transparent 35%), var(--beige); }
.hero-container { display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: clamp(45px, 8vw, 110px); }
.eyebrow { font-size: 11px; letter-spacing: 2px; font-weight: 700; color: var(--accent); margin-bottom: 18px; }
.status-dot { display: inline-block; width: 7px; height: 7px; background: #71835f; border-radius: 50%; margin-right: 8px; }
.hero h1 { font-family: "Manrope", sans-serif; font-size: clamp(43px, 6vw, 76px); line-height: 1.08; letter-spacing: -3.8px; font-weight: 800; margin-bottom: 25px; }
.hero h1 span { color: var(--accent); }
.hero-description { max-width: 610px; font-size: 17px; color: var(--muted); margin-bottom: 30px; }
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 13px 20px; border-radius: 7px; font-size: 13px; font-weight: 700; border: 1px solid var(--ink); cursor: pointer; transition: transform .2s, background .2s; }
.btn:hover { transform: translateY(-2px); }
.primary-btn { background: var(--ink); color: var(--white); }
.primary-btn:hover { background: var(--accent); border-color: var(--accent); }
.secondary-btn { background: transparent; }
.secondary-btn:hover { background: rgba(255,255,255,.5); }
.social-links { display: flex; flex-wrap: wrap; gap: 24px; }
.social-links a, .text-link { font-size: 13px; font-weight: 700; border-bottom: 1px solid var(--beige-deep); padding-bottom: 3px; }
.social-links a:hover, .text-link:hover { color: var(--accent); border-color: var(--accent); }
.hero-card { padding: 27px; background: rgba(255,253,249,.75); border: 1px solid rgba(255,255,255,.85); border-radius: 16px; box-shadow: var(--shadow); }
.profile-top, .card-bottom, .project-top { display: flex; justify-content: space-between; align-items: center; gap: 15px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 1.2px; }
.profile-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--beige); font-family: "Manrope", sans-serif; font-weight: 800; color: var(--accent); letter-spacing: 0; }
.profile-circle { width: 128px; height: 128px; display: grid; place-items: center; border-radius: 50%; margin: 32px auto 22px; background: var(--ink); color: var(--beige); font: 800 38px "Manrope", sans-serif; box-shadow: 0 0 0 10px var(--beige-light), 0 0 0 11px var(--line); }
.card-label { text-align: center; font-size: 10px; letter-spacing: 2px; color: var(--accent); font-weight: 700; }
.hero-card h2 { text-align: center; font: 800 25px "Manrope", sans-serif; letter-spacing: -1px; margin-top: 3px; }
.muted { text-align: center; color: var(--muted); font-size: 12px; margin-top: 4px; }
.hero-info { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 0; margin: 24px 0 16px; }
.hero-info div { display: flex; flex-direction: column; text-align: center; gap: 2px; }
.hero-info div + div { border-left: 1px solid var(--line); }
.hero-info strong { font: 800 21px "Manrope", sans-serif; }
.hero-info span { color: var(--muted); font-size: 9px; letter-spacing: 1px; }
.card-bottom { letter-spacing: 0; font-size: 11px; }
.hero-index { position: absolute; bottom: 25px; right: 6%; font-size: 9px; color: #958875; letter-spacing: 2px; }
.section { padding: 105px 0; }
.tinted-section { background: var(--beige); }
.section-title { margin-bottom: 48px; }
.section-title .eyebrow { margin-bottom: 8px; }
.section-title h2 { font: 800 clamp(32px, 4vw, 47px)/1.2 "Manrope", sans-serif; letter-spacing: -2px; max-width: 700px; }
.about-container { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.about-text h3 { font: 700 25px/1.4 "Manrope", sans-serif; letter-spacing: -.7px; margin-bottom: 18px; }
.about-text p { color: var(--muted); font-size: 14px; margin-bottom: 17px; }
.text-link { display: inline-block; margin-top: 8px; }
.about-details { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.detail-box { min-height: 125px; padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; display: flex; flex-direction: column; justify-content: center; gap: 7px; }
.detail-box span { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; }
.detail-box strong { font: 700 14px/1.5 "Manrope", sans-serif; }
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.skill-card { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 26px; transition: transform .25s, box-shadow .25s; }
.skill-card:hover, .project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.skill-icon { width: 43px; height: 43px; display: grid; place-items: center; background: var(--beige); border-radius: 9px; color: var(--accent); font-weight: 800; font-size: 13px; margin-bottom: 21px; }
.skill-card h3, .project-card h3 { font: 700 18px "Manrope", sans-serif; letter-spacing: -.4px; margin-bottom: 8px; }
.skill-card p, .project-card p { color: var(--muted); font-size: 13px; }
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.project-card { min-height: 330px; display: flex; flex-direction: column; padding: 25px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); transition: transform .25s, box-shadow .25s; }
.project-top { margin-bottom: 45px; }
.project-top span:last-child { color: var(--accent); font-size: 17px; }
.project-card p { margin-bottom: 20px; }
.project-tech { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 22px; }
.project-tech span { background: var(--beige); color: #66513b; border-radius: 5px; padding: 4px 9px; font-size: 10px; font-weight: 700; }
.project-link { margin-top: auto; font-size: 12px; font-weight: 700; color: var(--accent); }
.timeline { max-width: 800px; border-left: 1px solid #cbbba5; margin-left: 7px; }
.timeline-item { position: relative; padding: 0 0 42px 30px; display: grid; grid-template-columns: 140px 1fr; gap: 22px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ""; position: absolute; left: -6px; top: 7px; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); border: 3px solid var(--beige); }
.timeline-date { color: var(--accent); font-size: 11px; font-weight: 700; }
.timeline-content h3 { font: 700 19px "Manrope", sans-serif; margin-bottom: 4px; }
.timeline-content h4 { font-size: 13px; margin-bottom: 9px; }
.timeline-content p { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.timeline-content strong { font-size: 12px; }
.contact-section { background: #29251f; color: var(--white); }
.contact-section .section-title .eyebrow { color: #d5b995; }
.contact-container { display: grid; grid-template-columns: .85fr 1.15fr; gap: 75px; align-items: start; }
.contact-info h3 { font: 800 31px "Manrope", sans-serif; letter-spacing: -1px; margin-bottom: 12px; }
.contact-info > p { color: #c5bdb1; font-size: 14px; margin-bottom: 35px; max-width: 390px; }
.contact-item { margin-bottom: 24px; }
.contact-item span { display: block; color: #b6a58f; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; margin-bottom: 4px; }
.contact-item a { font-size: 13px; overflow-wrap: anywhere; }
.contact-item a:hover { color: #e3c8a5; }
.contact-form { padding: 30px; background: #332e27; border: 1px solid #494137; border-radius: 12px; }
.input-group { margin-bottom: 18px; }
.input-group label { display: block; color: #e8dfd3; font-size: 12px; font-weight: 600; margin-bottom: 7px; }
.input-group input, .input-group textarea { width: 100%; padding: 12px 13px; border: 1px solid #5b5145; border-radius: 6px; outline: none; color: var(--white); background: #29251f; font-size: 13px; resize: vertical; }
.input-group input::placeholder, .input-group textarea::placeholder { color: #a49a8d; }
.input-group input:focus, .input-group textarea:focus { border-color: #d5b995; box-shadow: 0 0 0 3px rgba(213,185,149,.12); }
.contact-form .primary-btn { border-color: var(--beige); background: var(--beige); color: var(--ink); }
.contact-form .primary-btn:hover { background: #e3d3bc; }
.form-note { margin-top: 13px; color: #bdb2a4; font-size: 10px; }
#form-message { margin-top: 12px; font-size: 12px; }
footer { background: #211e19; color: #bdb2a4; }
.footer-container { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 11px; }
.footer-container a { color: var(--beige); }
:focus-visible { outline: 3px solid #ad8c66; outline-offset: 3px; }
@media (max-width: 900px) {
  .menu-btn { display: block; }
  nav { display: none; position: absolute; top: 78px; left: 0; width: 100%; padding: 10px 6% 16px; flex-direction: column; align-items: stretch; gap: 0; background: var(--beige-light); border-bottom: 1px solid var(--line); }
  nav.show { display: flex; }
  .nav-link { padding: 12px 0; }
  .nav-link.active::after { width: 28px; }
  .hero-container { grid-template-columns: 1fr .8fr; gap: 35px; }
  .hero h1 { letter-spacing: -2.5px; }
  .about-container { gap: 35px; }
  .skills-grid, .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-container { gap: 35px; }
}
@media (max-width: 650px) {
  .container { width: 88%; }
  .nav-container { min-height: 70px; }
  nav { top: 70px; }
  .hero { padding: 120px 0 75px; }
  .hero-container, .about-container, .contact-container { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(43px, 12vw, 60px); letter-spacing: -2.5px; }
  .hero-description { font-size: 15px; }
  .hero-card { max-width: 420px; width: 100%; margin: 10px auto 0; }
  .hero-index { display: none; }
  .section { padding: 75px 0; }
  .section-title { margin-bottom: 32px; }
  .section-title h2 { letter-spacing: -1.3px; }
  .skills-grid, .projects-grid, .about-details { grid-template-columns: 1fr; }
  .detail-box { min-height: 95px; }
  .timeline-item { grid-template-columns: 1fr; gap: 7px; padding-left: 24px; }
  .contact-form { padding: 22px; }
  .footer-container { min-height: 90px; flex-direction: column; justify-content: center; text-align: center; padding: 18px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
