/* ═══════════════════════════════════════════════════════
   style.css — Shamsun Nahar Nitu Portfolio
   Structure: Variables → Reset → Utilities → Components
═══════════════════════════════════════════════════════ */

/* ── VARIABLES ── */
:root {
  --bg:       #0a0e17;
  --bg2:      #0f1524;
  --bg3:      #151d30;
  --bg4:      #1a2540;
  --accent:   #00e5c0;
  --accent2:  #4f9eff;
  --accent3:  #f7c948;
  --text:     #e8edf5;
  --muted:    #7a8aaa;
  --border:   rgba(255, 255, 255, 0.07);
  --card:     rgba(255, 255, 255, 0.03);
  --glow-g:   rgba(0, 229, 192, 0.12);
  --glow-b:   rgba(79, 158, 255, 0.12);
  --radius:   3px;
  --nav-h:    68px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html   { scroll-behavior: smooth; font-size: 16px; }
img    { display: block; max-width: 100%; }
a      { color: var(--accent); text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
ul     { list-style: none; }

/* ── BODY & GRID BG ── */
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* ── CUSTOM CURSOR ── */
.cursor-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed; pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid rgba(0, 229, 192, 0.4);
  border-radius: 50%;
  position: fixed; pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  transition: left 0.14s ease, top 0.14s ease;
}

/* ── NAVBAR ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 4rem;
  background: rgba(10, 14, 23, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.nav-logo {
  font-family: 'DM Mono', monospace;
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.nav-links {
  display: flex; gap: 2.5rem;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: color 0.25s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--accent); }

.nav-cta {
  padding: 0.45rem 1.2rem;
  font-size: 0.75rem;
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
}

/* ── MOBILE NAV ── */
.mobile-nav {
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg2);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2.5rem;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.77, 0, 0.18, 1);
}

.mobile-nav.open { transform: translateX(0); }

.mobile-nav a {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--text);
  transition: color 0.2s;
}
.mobile-nav a:hover { color: var(--accent); }

.mobile-nav-close {
  position: absolute; top: 1.5rem; right: 2rem;
  background: none; border: none;
  color: var(--muted); font-size: 1.6rem;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: all 0.3s;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn-primary:hover {
  background: #00ffda;
  box-shadow: 0 0 28px rgba(0, 229, 192, 0.45);
  transform: translateY(-2px);
  color: var(--bg);
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ── HERO ── */
#hero {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: var(--nav-h) 10vw 0;
  overflow: hidden;
}

.hero-content { max-width: 640px; }

.hero-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
  opacity: 0; animation: fadeUp 0.8s 0.2s forwards;
}

.hero-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 6.5vw, 6rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
  opacity: 0; animation: fadeUp 0.9s 0.4s forwards;
}

.hero-name span {
  display: block;
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  font-size: 0.68em;
}

.hero-tagline {
  margin-top: 1.6rem;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.75;
  opacity: 0; animation: fadeUp 0.9s 0.6s forwards;
}

.hero-social {
  margin-top: 1.8rem;
  display: flex; gap: 0.8rem; flex-wrap: wrap;
  opacity: 0; animation: fadeUp 0.9s 0.75s forwards;
}

.social-pill {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 0.75rem;
  color: var(--muted);
  transition: border-color 0.25s, color 0.25s;
}
.social-pill svg { width: 14px; height: 14px; }
.social-pill:hover { border-color: var(--accent); color: var(--accent); }

.hero-cta {
  margin-top: 2.4rem;
  display: flex; gap: 1rem; flex-wrap: wrap;
  opacity: 0; animation: fadeUp 0.9s 0.9s forwards;
}

/* Hero stats */
.hero-stats {
  position: absolute; right: 8vw; top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 1.4rem;
  opacity: 0; animation: fadeLeft 1s 1.1s forwards;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  padding: 1.1rem 1.7rem;
  min-width: 164px;
  position: relative; overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,229,192,0.04), transparent);
}

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.66rem;
  color: var(--muted);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-top: 0.3rem;
}

/* ── SECTION LAYOUT ── */
.section-wrap {
  position: relative; z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 7rem 2rem;
}

.section-alt {
  max-width: 100%;
  padding: 0;
  background: var(--bg2);
}

.section-alt > * {
  max-width: 1100px;
  margin: 0 auto;
  padding: 7rem 2rem;
}

.section-header {
  display: flex; align-items: center; gap: 1.4rem;
  margin-bottom: 3.8rem;
}

.section-num {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.22em;
  flex-shrink: 0;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.section-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── DIVIDER ── */
.divider {
  position: relative; z-index: 1;
  width: 100%; height: 1px;
  background: var(--border);
}

/* ── ABOUT ── */
.about-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 5rem;
  align-items: start;
}

.about-photo-col { position: relative; }

.about-photo-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}

.about-photo-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(0,229,192,0.15);
  border-radius: var(--radius);
  pointer-events: none;
}

.about-photo-wrap::before {
  content: '';
  position: absolute;
  inset: -10px;
  border: 1px solid var(--accent);
  opacity: 0.18;
  border-radius: 2px;
  transform: translate(10px, 10px);
  z-index: -1;
}

.about-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top;
  filter: grayscale(20%);
  display: block;
  border-radius: var(--radius);
}

.photo-placeholder {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--bg3);
  border: 2px dashed rgba(0,229,192,0.25);
  border-radius: var(--radius);
  gap: 0.8rem;
  text-align: center;
  padding: 1.5rem;
}

.ph-icon { font-size: 2.5rem; opacity: 0.4; }

.ph-text {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  color: var(--muted);
  line-height: 1.7;
}
.ph-text code {
  color: var(--accent);
  font-size: 0.68rem;
}

.about-name-tag {
  margin-top: 0.9rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  padding: 0.75rem 1rem;
  text-align: center;
  border-radius: var(--radius);
}

.about-name-tag strong {
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.about-name-tag span { font-size: 0.7rem; color: var(--muted); }

.about-text p {
  color: var(--muted);
  line-height: 1.85;
  font-size: 1rem;
  margin-bottom: 1.1rem;
}
.about-text p strong { color: var(--text); font-weight: 500; }

.about-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin-top: 2.3rem;
}

.fact { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.84rem; }

.fact-key {
  font-family: 'DM Mono', monospace;
  font-size: 0.66rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  min-width: 74px;
  padding-top: 2px;
  flex-shrink: 0;
}

.fact-val { color: var(--text); line-height: 1.5; }
.fact-val a { color: var(--accent); }
.fact-val a:hover { text-decoration: underline; }

/* ── SKILLS ── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.skill-category {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 2rem;
  border-radius: var(--radius);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.skill-category:hover {
  border-color: rgba(0, 229, 192, 0.28);
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.skill-cat-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.67rem;
  color: var(--accent);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.6rem;
  display: flex; align-items: center; gap: 0.7rem;
}

.skill-cat-label::after {
  content: '';
  flex: 1; height: 1px;
  background: var(--border);
}

.skill-pill-grid {
  display: flex; flex-wrap: wrap; gap: 0.55rem;
}

.skill-pill {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 0.3rem 0.75rem;
  border-radius: 99px;
  letter-spacing: 0.06em;
  background: var(--bg3);
  transition: border-color 0.2s, color 0.2s;
}

.skill-pill:hover { border-color: var(--accent); color: var(--accent); }

/* ── PROJECT TABS ── */
.project-tabs {
  display: flex; gap: 0.6rem; flex-wrap: wrap;
  margin-bottom: 2.8rem;
}

.tab-btn {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.5rem 1.2rem;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: var(--radius);
  transition: all 0.25s;
}

.tab-btn:hover { border-color: var(--accent); color: var(--accent); }

.tab-btn.active {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

/* ── PROJECT CARDS ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.7rem;
}

.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 1.8rem 2rem;
  position: relative; overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
  border-radius: var(--radius);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.project-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}

.project-card:hover {
  border-color: rgba(79, 158, 255, 0.3);
  transform: translateY(-5px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.35);
}

.project-card:hover::before { transform: scaleX(1); }

.project-arrow {
  position: absolute; top: 1.5rem; right: 1.5rem;
  color: var(--muted); font-size: 1.1rem;
  transition: color 0.3s, transform 0.3s;
}
.project-card:hover .project-arrow { color: var(--accent); transform: translate(3px, -3px); }

.project-tag {
  font-family: 'DM Mono', monospace;
  font-size: 0.63rem;
  color: var(--accent2);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.project-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.22rem;
  font-weight: 600;
  margin-bottom: 0.7rem;
  line-height: 1.35;
  padding-right: 1.8rem;
}

.project-desc {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.72;
  margin-bottom: 1.4rem;
}

.project-tech {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
}

.tech-tag {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 0.18rem 0.55rem;
  border-radius: 2px;
  letter-spacing: 0.08em;
}

/* status badge */
.project-status {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  padding: 0.15rem 0.5rem;
  border-radius: 99px;
  margin-left: 0.5rem;
  vertical-align: middle;
}
.status-wip  { background: rgba(247,201,72,0.12); color: var(--accent3); border: 1px solid rgba(247,201,72,0.3); }

/* ── ACHIEVEMENTS ── */
.achievements-note {
  font-family: 'DM Mono', monospace;
  font-size: 0.78rem;
  color: var(--muted);
  border: 1px dashed rgba(0,229,192,0.2);
  background: rgba(0,229,192,0.03);
  padding: 1.2rem 1.6rem;
  border-radius: var(--radius);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.achievements-note code { color: var(--accent); }

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.cert-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}

.cert-card:hover { border-color: rgba(247,201,72,0.3); transform: translateY(-4px); }

.cert-img-wrap {
  width: 100%; aspect-ratio: 16/9;
  background: var(--bg3);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  position: relative;
}

.cert-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.cert-placeholder {
  display: flex; flex-direction: column;
  align-items: center; gap: 0.5rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  color: var(--muted);
  text-align: center;
  padding: 1rem;
}
.cert-placeholder .cert-icon { font-size: 2rem; }

.cert-body { padding: 1.1rem 1.3rem; }

.cert-issuer {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  color: var(--accent3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.cert-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.2rem;
  line-height: 1.4;
}

.cert-date {
  font-size: 0.72rem;
  color: var(--muted);
  font-family: 'DM Mono', monospace;
}

/* ── CONTACT ── */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.contact-intro {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 1.3rem;
}
.contact-intro em { color: var(--accent); font-style: italic; }

.contact-sub {
  color: var(--muted);
  line-height: 1.82;
  font-size: 0.94rem;
  margin-bottom: 2.4rem;
}

.contact-links { display: flex; flex-direction: column; gap: 1rem; }

.contact-link {
  display: flex; align-items: center; gap: 1.1rem;
  color: var(--text);
  padding: 1rem 1.4rem;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius);
  transition: border-color 0.3s, transform 0.3s, color 0.3s;
}
.contact-link:hover { border-color: var(--accent); transform: translateX(6px); color: var(--accent); }

.contact-link-icon {
  width: 34px; height: 34px;
  background: var(--bg3);
  border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
  font-style: normal;
}

.contact-link-text { font-size: 0.86rem; }

.contact-link-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  display: block; margin-bottom: 0.1rem;
}

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }

.form-group { display: flex; flex-direction: column; gap: 0.45rem; }

.form-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.form-input, .form-textarea {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  padding: 0.82rem 1rem;
  outline: none;
  transition: border-color 0.25s;
  resize: none;
  border-radius: var(--radius);
}

.form-input:focus, .form-textarea:focus { border-color: var(--accent); }

.form-textarea { min-height: 126px; }

.form-note {
  font-size: 0.7rem;
  color: var(--muted);
  font-family: 'DM Mono', monospace;
  margin-top: -0.5rem;
}

/* ── FOOTER ── */
footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border);
  padding: 2rem 4rem;
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  color: var(--muted);
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeLeft {
  from { opacity: 0; transform: translate(28px, -50%); }
  to   { opacity: 1; transform: translateY(-50%); }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible { opacity: 1; transform: none; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  nav { padding: 0 1.5rem; }
  .nav-links { display: none; }
  .nav-cta   { display: none; }
  .nav-hamburger { display: block; }

  #hero { padding: 0 6vw; padding-top: var(--nav-h); }
  .hero-stats { display: none; }

  .about-grid { grid-template-columns: 1fr; }
  .about-photo-col { max-width: 230px; }

  .contact-inner { grid-template-columns: 1fr; gap: 3rem; }

  footer { flex-direction: column; gap: 0.7rem; text-align: center; padding: 1.5rem; }

  .section-alt > * { padding: 5rem 1.5rem; }
  .section-wrap { padding: 5rem 1.5rem; }
}

@media (max-width: 600px) {
  .hero-name { font-size: 2.6rem; }
  .projects-grid  { grid-template-columns: 1fr; }
  .achievements-grid { grid-template-columns: 1fr; }
  .about-facts { grid-template-columns: 1fr; }
}
