/* ═══════════════════════════════════════════
   ARNADEEP SAHA — PORTFOLIO STYLES
   Theme: Dark Obsidian + Amber Gold
   Fonts: Syne (display) + DM Mono (body/code)
═══════════════════════════════════════════ */

/* ── CSS Variables ── */
:root {
  --bg:       #0c0c0c;
  --bg-alt:   #111111;
  --bg-card:  #151515;
  --border:   #222222;
  --text:     #d4d4d4;
  --text-dim: #777777;
  --accent:   #e8b84b;
  --accent-2: #c99a35;
  --white:    #f0ece4;
  --font-display: 'Syne', sans-serif;
  --font-mono:    'DM Mono', monospace;
  --radius:   8px;
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  line-height: 1.7;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── Utility ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}
.accent { color: var(--accent); }
.centered { text-align: center; }
.hidden { display: none !important; }
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }

/* ── Section Labels ── */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 3rem;
}

/* ════════════════════════
   NAVBAR
════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(12, 12, 12, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}
#navbar.scrolled {
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
}
.nav-logo .dot { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--bg-alt);
  padding: 1rem 2rem 1.5rem;
  border-top: 1px solid var(--border);
  gap: 0.2rem;
}
.mobile-menu.open { display: flex; }
.mob-link {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}
.mob-link:hover { color: var(--accent); }

/* ════════════════════════
   HERO
════════════════════════ */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: 120px 2rem 80px;
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(232,184,75,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
}
.hero-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 1.2rem;
}
.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800;
  line-height: 0.95;
  color: var(--white);
  margin-bottom: 1.2rem;
}
.hero-role {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  margin-bottom: 1.5rem;
  border-left: 2px solid var(--accent);
  padding-left: 1rem;
}
.hero-desc {
  max-width: 500px;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 2.5rem;
}
.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-block;
  padding: 0.75rem 1.8rem;
  background: var(--accent);
  color: #0c0c0c;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-primary:hover {
  background: var(--accent-2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232,184,75,0.25);
}
.btn-ghost {
  display: inline-block;
  padding: 0.75rem 1.8rem;
  background: transparent;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition), transform var(--transition);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.full-width { width: 100%; text-align: center; }

/* ── Hero Image ── */
.hero-image {
  position: relative;
  flex-shrink: 0;
}
.img-frame {
  position: relative;
  width: 300px;
  height: 300px;
}
.profile-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  position: relative;
  z-index: 1;
}
.img-ring {
  position: absolute;
  top: -12px; left: -12px;
  width: calc(100% + 24px);
  height: calc(100% + 24px);
  border-radius: 50%;
  border: 1px dashed rgba(232,184,75,0.35);
  animation: spin 20s linear infinite;
  pointer-events: none;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── Scroll Hint ── */
.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.4;
}
.hero-scroll-hint span {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--text-dim);
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-dim), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 0.9; transform: scaleY(1.1); }
}

/* ════════════════════════
   ABOUT
════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: center;
}
.about-img-wrap {
  position: relative;
}
.about-img-inner {
  position: relative;
}
.about-img-inner img {
  width: 100%;
  max-width: 340px;
  height: 380px; /* control visible area */
  object-fit: cover;
  object-position: center 20%; /* shift focus upward */
  border-radius: 12px;
  border: 1px solid var(--border);
}
.about-badge {
  position: absolute;
  bottom: -16px;
  right: -16px;
  background: var(--accent);
  color: #0c0c0c;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(232,184,75,0.3);
}
.about-text p {
  margin-bottom: 1.2rem;
  font-size: 0.93rem;
  color: var(--text);
}
.about-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.stat { display: flex; flex-direction: column; gap: 0.2rem; }
.stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}

/* ════════════════════════
   SKILLS
════════════════════════ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1rem;
}
.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  cursor: default;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.skill-card:hover {
  border-color: var(--accent);
  background: rgba(232,184,75,0.05);
  transform: translateY(-4px);
}
.skill-icon { font-size: 1.6rem; }
.skill-name {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.04em;
}

/* ════════════════════════
   PROJECTS
════════════════════════ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  cursor: pointer;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}
.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.project-card:hover {
  border-color: rgba(232,184,75,0.35);
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}
.project-card:hover::before { opacity: 1; }
.project-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.project-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
}
.project-sub {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}
.project-desc {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.65;
  flex: 1;
}
.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}
.project-tech span {
  padding: 0.25rem 0.6rem;
  background: rgba(232,184,75,0.08);
  border: 1px solid rgba(232,184,75,0.2);
  border-radius: 4px;
  font-size: 0.68rem;
  color: var(--accent);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.project-more {
  background: none;
  border: none;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  cursor: pointer;
  text-align: left;
  padding: 0;
  margin-top: 0.5rem;
  transition: letter-spacing var(--transition);
}
.project-more:hover { letter-spacing: 0.08em; }

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  max-width: 540px;
  width: 100%;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}
.modal-overlay.open .modal-box { transform: translateY(0); }
.modal-close {
  position: absolute;
  top: 1.2rem; right: 1.5rem;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.1rem;
  cursor: pointer;
  transition: color var(--transition);
}
.modal-close:hover { color: var(--white); }
.modal-content-inner h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.4rem;
}
.modal-content-inner .modal-sub {
  font-size: 0.75rem;
  color: var(--accent);
  font-family: var(--font-mono);
  margin-bottom: 1.2rem;
}
.modal-content-inner .modal-section {
  margin-bottom: 1rem;
}
.modal-content-inner .modal-section h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.modal-content-inner .modal-section p {
  font-size: 0.9rem;
  color: var(--text);
}
.modal-tech { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.5rem; }
.modal-tech span {
  padding: 0.3rem 0.7rem;
  background: rgba(232,184,75,0.08);
  border: 1px solid rgba(232,184,75,0.2);
  border-radius: 4px;
  font-size: 0.72rem;
  color: var(--accent);
  font-family: var(--font-mono);
}

/* ════════════════════════
   RESUME
════════════════════════ */
.resume-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 1.5rem;
}
.resume-section-head {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.resume-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 1rem;
  border-left: 1px solid var(--border);
}
.resume-item {
  position: relative;
  padding: 0 0 1.5rem 1.5rem;
}
.resume-item:last-child { padding-bottom: 0; }
.resume-dot {
  position: absolute;
  top: 5px; left: -5px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg-card);
}
.resume-info h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.2rem;
}
.resume-place {
  font-size: 0.82rem;
  color: var(--text-dim);
}
.resume-year {
  font-size: 0.72rem;
  color: var(--accent);
  font-family: var(--font-mono);
  margin-top: 0.2rem;
}
.resume-proj-list { display: flex; flex-direction: column; gap: 0.9rem; }
.resume-proj-item {
  font-size: 0.88rem;
  color: var(--text);
  padding: 0.8rem 1rem;
  background: rgba(255,255,255,0.02);
  border-left: 2px solid var(--accent);
  border-radius: 0 6px 6px 0;
}
.tech-inline {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  opacity: 0.8;
}
.resume-exp-text {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.8;
}
.resume-download-wrap {
  text-align: center;
  margin-top: 2rem;
}

/* ════════════════════════
   CONTACT
════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}
.contact-intro {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text);
  font-size: 0.85rem;
  transition: color var(--transition);
}
.contact-link:hover { color: var(--accent); }
.contact-link-icon {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  flex-shrink: 0;
  transition: border-color var(--transition), background var(--transition);
}
.contact-link:hover .contact-link-icon {
  border-color: var(--accent);
  background: rgba(232,184,75,0.08);
}

/* Contact Form */
.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-transform: uppercase;
}
.form-group input,
.form-group textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  padding: 0.85rem 1rem;
  outline: none;
  transition: border-color var(--transition);
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-dim); }
.form-success {
  text-align: center;
  color: #6bcb77;
  font-size: 0.85rem;
  padding: 0.6rem;
  border-radius: var(--radius);
  background: rgba(107, 203, 119, 0.08);
  border: 1px solid rgba(107, 203, 119, 0.2);
}

/* ════════════════════════
   FOOTER
════════════════════════ */
#footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}
.footer-label {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.04em;
}
.footer-socials {
  display: flex;
  gap: 0.8rem;
}
.social-icon {
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-dim);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.social-icon:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(232,184,75,0.06);
}
.footer-copy {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

/* ════════════════════════
   ANIMATIONS
════════════════════════ */
.fade-left {
  opacity: 0;
  transform: translateX(-40px);
  animation: fadeLeft 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s forwards;
}
.fade-right {
  opacity: 0;
  transform: translateX(40px);
  animation: fadeRight 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s forwards;
}
@keyframes fadeLeft {
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeRight {
  to { opacity: 1; transform: translateX(0); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.reveal-delay  { transition-delay: 0.12s; }
.reveal.reveal-delay-2{ transition-delay: 0.24s; }
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ════════════════════════
   RESPONSIVE
════════════════════════ */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
  .hero-text { order: 2; }
  .hero-image { order: 1; }
  .hero-role { text-align: left; display: inline-block; }
  .hero-desc { margin: 0 auto 2.5rem; }
  .hero-btns { justify-content: center; }
  .img-frame { width: 220px; height: 220px; }

  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-img-inner img { max-width: 240px; margin: 0 auto; }
  .about-badge { right: calc(50% - 200px); }

  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 640px) {
  .section { padding: 70px 0; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .about-stats { gap: 1.5rem; }
  .resume-download-wrap { text-align: left; }
}
/* Smooth animation */
.img-frame {
  overflow: hidden; /* ensures zoom stays inside circle */
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 5%; /* push focus strongly upward */
  border-radius: 50%;
  display: block;
}

/* Hover effect */
.img-frame:hover .profile-img {
  transform: scale(1.08); /* slight zoom */
  filter: brightness(1.05);
}

/* Glow effect */
.img-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(232,184,75,0.15);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.img-frame:hover::after {
  opacity: 1;
}