:root {
  --primary: #ffffff;
  --dark: #000000;
  --gray: #1a1a1a;
  --text: #e0e0e0;
  --accent: #a0d0ff;
  --transition: all 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

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

header {
  position: fixed;
  inset: 0 0 auto 0;
  padding: 1.4rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  transition: padding 0.8s ease, box-shadow 0.8s ease;
}

header.scrolled {
  padding: 1rem 5%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
}

.nav-list {
  display: flex;
  gap: 2.2rem;
  list-style: none;
}

.nav a {
  transition: color 0.4s ease;
}

.nav a:hover,
.nav a:focus {
  color: var(--accent);
}

.cta-button {
  background: var(--primary);
  color: var(--dark);
  padding: 0.55rem 1.3rem;
  border-radius: 50px;
  font-weight: 550;
  transition: var(--transition);
}

.cta-button:hover,
.cta-button:focus {
  background: var(--accent);
  transform: translateY(-1px);
}

/* ── Hero ─────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.85)),
    url('https://images.unsplash.com/photo-1555066931-4365d14bab8c?auto=format&fit=crop&q=80') center/cover fixed;
  padding: 0 5%;
}

.hero-content {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.3s cubic-bezier(0.22, 1, 0.36, 1), transform 1.3s cubic-bezier(0.22, 1, 0.36, 1);
  max-width: 780px;
}

.hero-content.visible {
  opacity: 1;
  transform: translateY(0);
}

h1 {
  font-size: clamp(2.8rem, 9vw, 5.4rem);
  font-weight: 750;
  letter-spacing: -1.5px;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: clamp(1.15rem, 4vw, 1.45rem);
  opacity: 0.9;
  max-width: 50ch;
  margin: 0 auto 2rem;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  justify-content: center;
}

.button {
  padding: 0.75rem 1.8rem;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  transition: var(--transition);
}

.button:hover,
.button:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
}

/* ── About ────────────────────────────── */
#about {
  padding: 10rem 5% 8rem;
}

.about-wrapper {
  display: flex;
  align-items: center;
  gap: 5rem;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

.profile-img {
  width: min(320px, 45vw);
  height: min(320px, 45vw);
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #222;
  transition: border-color 0.6s ease, transform 0.6s ease;
}

.profile-img:hover {
  border-color: var(--accent);
  transform: scale(1.03);
}

.content {
  flex: 1;
  min-width: 320px;
  max-width: 620px;
}

h2 {
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  margin-bottom: 1.4rem;
  font-weight: 650;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 2rem;
}

.tech-stack img {
  width: 44px;
  height: 44px;
  opacity: 0.9;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.tech-stack img:hover {
  transform: translateY(-6px);
  opacity: 1;
}

/* ── Projects ─────────────────────────── */
#projects {
  padding: 6rem 5% 9rem;
  text-align: center;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1300px;
  margin: 0 auto;
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #111;
  transition: transform 0.75s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.75s ease;
  opacity: 0;
  transform: translateY(35px);
}

.project-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.project-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42);
}

.project-card img {
  width: 100%;
  display: block;
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card:hover img {
  transform: scale(1.06);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.94) 0%, transparent 70%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.8rem;
  opacity: 0;
  transition: opacity 0.65s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

/* ── Contact ──────────────────────────── */
#contact {
  padding: 7rem 5% 9rem;
  text-align: center;
}

.contact-form {
  max-width: 620px;
  margin: 2.5rem auto;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

input,
textarea {
  padding: 1rem 1.4rem;
  background: #1e1e1e;
  border: 1px solid #333;
  border-radius: 10px;
  color: white;
  font-size: 1.05rem;
  transition: border-color 0.5s ease, box-shadow 0.5s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(160, 208, 255, 0.15);
}

button[type="submit"] {
  padding: 1.1rem;
  background: var(--primary);
  color: var(--dark);
  border: none;
  border-radius: 10px;
  font-weight: 580;
  cursor: pointer;
  transition: var(--transition);
}

button[type="submit"]:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

/* ── Footer ───────────────────────────── */
footer {
  padding: 3rem 5% 2.5rem;
  text-align: center;
  color: #777;
  font-size: 0.95rem;
}

/* ── Reveal animation ─────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1), transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* ── Mobile-first responsive adjustments ──────── */
@media (max-width: 900px) {
  header {
    padding: 1.2rem 6%;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .nav-list {
    gap: 1.4rem;
    font-size: 0.98rem;
  }

  .about-wrapper {
    flex-direction: column;
    text-align: center;
    gap: 3.5rem;
  }

  .profile-img {
    width: 240px;
    height: 240px;
  }
}

@media (max-width: 600px) {
  header {
    padding: 1rem 5%;
    flex-direction: column;
    gap: 1.2rem;
  }

  .nav-list {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  h1 {
    font-size: clamp(2.4rem, 10vw, 3.8rem);
  }

  .hero-content p {
    font-size: 1.2rem;
  }

  .buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .button {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }

  #about,
  #projects,
  #contact {
    padding-left: 6%;
    padding-right: 6%;
  }
}
/* Active nav link styling – both desktop and mobile */
nav a.active,
.mobile-bottom-nav a.active {
  color: var(--accent) !important;
  font-weight: 600;
}

header .nav-list a.active {
  position: relative;
}

header .nav-list a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.mobile-bottom-nav a.active svg {
  transform: scale(1.15);
  transition: transform 0.3s ease;
}

.mobile-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 0.75rem;
  gap: 4px;
  transition: color 0.3s ease;
  width: 25%;
  padding: 8px 0;
}

.mobile-bottom-nav svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

/* Mobile bottom nav container */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 68px;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid #222;
  z-index: 999;
}

.mobile-bottom-nav ul {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 100%;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Show only on mobile */
@media (max-width: 768px) {
  header {
    display: none;
  }

  .mobile-bottom-nav {
    display: flex;
  }

  main {
    padding-bottom: 80px;
  }

  #hero {
    min-height: calc(100vh - 68px);
  }
}
/* ── Mobile Bottom Navigation – Elegant & Spacious Version ──────── */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 82px;                       /* taller = more elegant */
  padding-bottom: env(safe-area-inset-bottom); /* notch / home indicator */
  background: rgba(8, 8, 12, 0.94);   /* deeper black, slightly translucent */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(40, 40, 50, 0.6);
  z-index: 999;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.35);
}

.mobile-bottom-nav ul {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 100%;
  list-style: none;
  padding: 0 10px;
  margin: 0;
}

.mobile-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #a0a0b0;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.2px;
  gap: 6px;                           /* more space between icon & label */
  width: 64px;                        /* generous touch target */
  height: 100%;
  padding: 8px 0 12px;
  transition: color 0.35s ease, transform 0.25s ease;
}

.mobile-bottom-nav a:hover,
.mobile-bottom-nav a:focus {
  color: var(--accent);
}

.mobile-bottom-nav a.active {
  color: var(--accent);
  font-weight: 600;
}

.mobile-bottom-nav a.active svg {
  transform: scale(1.18) translateY(-2px);   /* gentle lift + scale */
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mobile-bottom-nav svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Show only on mobile + make space for bar ──────── */
@media (max-width: 768px) {
  header {
    display: none;
  }

  .mobile-bottom-nav {
    display: flex;
  }

  main {
    padding-bottom: 94px;           /* bar height + safe area buffer */
  }

  #hero {
    min-height: calc(100vh - 82px);
  }

  /* Slightly more generous section padding on small screens */
  #about, #projects, #contact {
    padding: 7rem 6% 8rem;
  }
}

/* Optional: very subtle background highlight on active item */
.mobile-bottom-nav a.active::before {
  content: "";
  position: absolute;
  bottom: 6px;
  width: 36px;
  height: 3px;
  background: var(--accent);
  border-radius: 3px;
  opacity: 0.7;
  transform: scaleX(0.6);
  transition: transform 0.4s ease;
}

.mobile-bottom-nav a.active:hover::before,
.mobile-bottom-nav a.active:focus::before {
  transform: scaleX(1);
}
.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 30%, transparent 70%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.8rem 1.5rem 1.6rem;
  opacity: 0;
  transition: opacity 0.4s ease;
  color: white;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-title {
  font-size: 1.45rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.project-overlay p {
  font-size: 0.98rem;
  opacity: 0.9;
  margin-bottom: 1.2rem;
  line-height: 1.4;
}

.project-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.project-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.project-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.demo-btn {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.demo-btn:hover {
  background: rgba(160, 208, 255, 0.25);
  border-color: var(--accent);
}

.github-btn {
  background: rgba(255, 255, 255, 0.08);
  color: white;
  padding: 0.6rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.github-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.github-icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* Optional: disable demo button styling when no link */
.project-btn[style*="opacity:0.5"] {
  cursor: not-allowed;
  pointer-events: none;
}
/* Hero social icons container */
.hero-social {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1.4rem;
}

/* Individual icon links */
.hero-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-social a:hover,
.hero-social a:focus {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  border-color: var(--accent);
}

/* Social icons size & color */
.social-icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Optional: specific brand colors on hover (uncomment if desired) */
.hero-social a.github:hover {
  color: #ffffff;
  background: #333;
}

.hero-social a.linkedin:hover {
  color: #ffffff;
  background: #0a66c2;
}

.hero-social a.gmail:hover {
  color: #ffffff;
  background: #c71610;
}

/* Mobile adjustments */
@media (max-width: 640px) {
  .hero-social {
    gap: 1.2rem;
    margin-top: 1.8rem;
  }

  .hero-social a {
    width: 44px;
    height: 44px;
  }

  .social-icon {
    width: 22px;
    height: 22px;
  }
}
/* Contact info – icon + plain text, no boxes */
.contact-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.2rem 3rem;
  margin: 2rem 0 3rem;
  font-size: 1.05rem;
  color: #ddd;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-icon {
  width: 24px;
  height: 24px;
  fill: var(--accent);
  /* or #aaa / #ccc if you prefer neutral */
  flex-shrink: 0;
}

/* Make email icon match Gmail red if desired */
.contact-item:has(.gmail) .contact-icon {
  fill: #c71610;
}

/* Mobile adjustments */
@media (max-width: 640px) {
  .contact-info {
    flex-direction: column;
    align-items: center;
    gap: 1.4rem;
    margin: 1.8rem 0 2.5rem;
  }

  .contact-item {
    font-size: 1rem;
  }

  .contact-icon {
    width: 22px;
    height: 22px;
  }
}
.form-message {
  margin-top: 1.2rem;
  padding: 1rem 1.4rem;
  border-radius: 10px;
  font-size: 1.05rem;
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease;
}

.form-message.visible {
  opacity: 1;
  transform: translateY(0);
}

.form-message.success {
  background: rgba(0, 200, 100, 0.15);
  color: #a0ffcc;
  border: 1px solid rgba(0, 200, 100, 0.3);
}

.form-message.error {
  background: rgba(255, 80, 80, 0.15);
  color: #ffaaaa;
  border: 1px solid rgba(255, 80, 80, 0.3);
}