/* =========================================================
   ANKIT GIRI — PORTFOLIO STYLES
   Palette reference:
   - Deep teal (background)
   - Slate (secondary background / muted text)
   - Terracotta (primary accent)
   - Peach (secondary accent)
   ========================================================= */

:root {
  --deep-teal: #0f2e3a;
  --deep-teal-darker: #0a2029;
  --slate: #5a5d70;
  --slate-light: #8b8ea3;
  --terracotta: #b5765f;
  --peach: #e0a97f;

  --bg-main: var(--deep-teal);
  --bg-alt: #12333f;
  --text-light: #f3efe9;
  --text-muted: #b9c5c8;

  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --container-pad: 1.5rem;

  --transition: 0.25s ease;
}

/* =========================================================
   RESET / BASE
   ========================================================= */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-main);
  color: var(--text-light);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

::selection {
  background: var(--terracotta);
  color: var(--text-light);
}

/* Accessible focus states */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--peach);
  outline-offset: 3px;
  border-radius: 3px;
}

/* =========================================================
   NAVBAR
   ========================================================= */
#mainNav {
  padding: 1.4rem 0;
  transition: background-color var(--transition), padding var(--transition), border-color var(--transition);
  background-color: transparent;
  border-bottom: 1px solid transparent;
}

#mainNav.scrolled {
  background-color: rgba(10, 32, 41, 0.92);
  backdrop-filter: blur(6px);
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(224, 169, 127, 0.15);
}

.navbar-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--text-light);
}

.navbar-brand span {
  color: var(--terracotta);
}

.navbar-nav .nav-link {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  margin-left: 1.75rem;
  padding: 0.25rem 0;
  position: relative;
  transition: color var(--transition);
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background-color: var(--peach);
  transition: width var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--text-light);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 100%;
}

.navbar-toggler {
  border: 1px solid rgba(243, 239, 233, 0.25);
  padding: 0.35rem 0.55rem;
}

.navbar-toggler:focus {
  box-shadow: none;
  outline: 2px solid var(--peach);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(243, 239, 233, 0.9)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* =========================================================
   SECTION SPACING / SHARED
   ========================================================= */
.section {
  padding: 6.5rem 0;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--terracotta);
  margin-bottom: 0.75rem;
}

.section-eyebrow.light {
  color: var(--peach);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--text-light);
  margin-bottom: 1rem;
}

.section-title.light {
  color: var(--text-light);
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 3rem;
  max-width: 34rem;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn-primary-custom,
.btn-secondary-custom {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-sm);
  transition: transform var(--transition), background-color var(--transition), border-color var(--transition), color var(--transition);
}

.btn-primary-custom {
  background-color: var(--terracotta);
  color: #fff;
  border: 1px solid var(--terracotta);
}

.btn-primary-custom:hover {
  background-color: var(--peach);
  border-color: var(--peach);
  color: var(--deep-teal-darker);
  transform: translateY(-2px);
}

.btn-secondary-custom {
  background-color: transparent;
  color: var(--text-light);
  border: 1px solid rgba(243, 239, 233, 0.3);
}

.btn-secondary-custom:hover {
  border-color: var(--peach);
  color: var(--peach);
  transform: translateY(-2px);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 6rem;
  padding-bottom: 3rem;
  background-color: var(--bg-main);
  position: relative;
}

.hero-row {
  min-height: 70vh;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--peach);
  margin-bottom: 0.5rem;
  letter-spacing: 0.03em;
}

.hero-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  line-height: 1.05;
  margin-bottom: 0.6rem;
  color: var(--text-light);
}

.hero-role {
  font-size: 1.05rem;
  color: var(--terracotta);
  font-weight: 600;
  margin-bottom: 1.4rem;
}

.hero-desc {
  color: var(--text-muted);
  font-size: 1.02rem;
  max-width: 30rem;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.2rem;
}

.hero-socials,
.contact-socials {
  display: flex;
  gap: 0.9rem;
}

.social-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(243, 239, 233, 0.25);
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  color: var(--text-light);
  transition: border-color var(--transition), color var(--transition), transform var(--transition), background-color var(--transition);
}

.social-icon:hover {
  border-color: var(--peach);
  color: var(--deep-teal-darker);
  background-color: var(--peach);
  transform: translateY(-3px);
}

/* Hero image */
.hero-image-col {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.hero-image-wrap {
  position: relative;
  width: 100%;
  max-width: 380px;
}

.hero-image-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--slate-light);
  margin-bottom: 0.9rem;
  text-align: right;
}

.hero-image-placeholder {
  position: relative;
  aspect-ratio: 5/5;
  width: 100%;
  border-radius: var(--radius-md);
  background: linear-gradient(155deg, var(--bg-alt) 0%, var(--deep-teal-darker) 100%);
  border: 1px solid rgba(224, 169, 127, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  overflow: hidden;
}

.hero-image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-image-placeholder::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px dashed rgba(224, 169, 127, 0.35);
  border-radius: calc(var(--radius-md) - 4px);
}

.placeholder-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  color: var(--slate-light);
  text-align: center;
}

.hero-dot-grid {
  position: absolute;
  bottom: -22px;
  left: -22px;
  width: 100px;
  height: 100px;
  background-image: radial-gradient(var(--terracotta) 1.5px, transparent 1.5px);
  background-size: 12px 12px;
  opacity: 0.55;
  z-index: 1;
}

/* =========================================================
   ABOUT
   ========================================================= */
.about-section {
  background-color: var(--bg-main);
}

.about-text {
  color: var(--text-muted);
  margin-bottom: 1.1rem;
  max-width: 32rem;
}

.info-box {
  border: 1px solid rgba(243, 239, 233, 0.12);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  background-color: var(--bg-alt);
  margin-top: 2rem;
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(243, 239, 233, 0.08);
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  color: var(--slate-light);
  font-size: 0.9rem;
}

.info-value {
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.92rem;
}

.status-badge {
  color: var(--peach);
}

/* =========================================================
   SKILLS
   ========================================================= */
.skills-section {
  background-color: var(--bg-alt);
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.skill-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.3rem;
  border: 1px solid rgba(243, 239, 233, 0.15);
  border-radius: var(--radius-sm);
  background-color: var(--bg-main);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-light);
  transition: border-color var(--transition), transform var(--transition);
}

.skill-badge i {
  color: var(--terracotta);
  font-size: 1.15rem;
}

.skill-badge:hover {
  border-color: var(--peach);
  transform: translateY(-3px);
}

/* =========================================================
   PROJECTS
   ========================================================= */
.projects-section {
  background-color: var(--bg-main);
}

.project-card {
  height: 100%;
  border: 1px solid rgba(243, 239, 233, 0.12);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  background-color: var(--bg-alt);
  transition: transform var(--transition), border-color var(--transition);
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--terracotta);
}

.project-number {
  font-family: var(--font-mono);
  color: var(--terracotta);
  font-size: 0.85rem;
  margin-bottom: 0.9rem;
}

.project-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 0.6rem;
}

.project-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 1.3rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  background-color: rgba(224, 169, 127, 0.12);
  color: var(--peach);
}

.project-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.project-btn {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--terracotta);
  border-bottom: 1px solid var(--terracotta);
  padding-bottom: 2px;
  transition: color var(--transition), border-color var(--transition);
}

.project-btn:hover {
  color: var(--peach);
  border-color: var(--peach);
}

.project-btn-outline {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(243, 239, 233, 0.2);
  border-radius: var(--radius-sm);
  color: var(--text-light);
  transition: border-color var(--transition), color var(--transition);
}

.project-btn-outline:hover {
  border-color: var(--peach);
  color: var(--peach);
}

/* =========================================================
   CURRENTLY EXPLORING
   ========================================================= */
.exploring-section {
  background-color: var(--deep-teal-darker);
  padding: 0;
}

.exploring-box {
  padding: 5rem 0;
}

.exploring-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  margin-top: 1.5rem;
}

.exploring-list li {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.exploring-list i {
  color: var(--peach);
  font-size: 1rem;
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact-section {
  background-color: var(--bg-main);
}

.contact-text {
  color: var(--text-muted);
  max-width: 30rem;
  margin-bottom: 2rem;
}

.contact-email-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--slate-light);
  margin-bottom: 0.2rem;
}

.contact-email {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--peach);
  margin-bottom: 1.8rem;
  word-break: break-word;
}

.contact-socials {
  margin-top: 2.2rem;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  padding: 2rem 0;
  border-top: 1px solid rgba(243, 239, 233, 0.1);
  background-color: var(--deep-teal-darker);
}

.footer p {
  margin: 0;
  text-align: center;
  color: var(--slate-light);
  font-size: 0.85rem;
}

/* =========================================================
   REVEAL ON SCROLL
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =========================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================= */
@media (max-width: 991.98px) {
  .hero {
    padding-top: 7rem;
    min-height: auto;
  }

  .hero-text {
    text-align: center;
  }

  .hero-buttons,
  .hero-socials {
    justify-content: center;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-image-wrap {
    margin: 0 auto;
  }

  .hero-image-tag {
    text-align: center;
  }

  .navbar-collapse {
    background-color: var(--bg-alt);
    margin-top: 1rem;
    padding: 1rem 1.2rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(243, 239, 233, 0.1);
  }

  .navbar-nav .nav-link {
    margin-left: 0;
    padding: 0.6rem 0;
  }
}

@media (max-width: 767.98px) {
  .section {
    padding: 4.5rem 0;
  }

  .info-row {
    flex-direction: column;
    gap: 0.2rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn-primary-custom,
  .hero-buttons .btn-secondary-custom {
    text-align: center;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-name {
    font-size: 2.3rem;
  }

  .contact-email {
    font-size: 1.1rem;
  }
}