/* ===============================
   GLOBAL RESET
================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}
html, body{
  overflow-x: hidden;
}

:root {
  --navHeight: 78px;
  --nav: #000000c1;
  --text: #ffffff;
  --muted: rgb(234, 242, 255);
  --border: rgba(232, 228, 228, 0.275);
  --accent: #f9d836;
}

/* Section scroll fix */
section {
  scroll-margin-top: calc(var(--navHeight) + 16px);
}

body {
  background: black url('images/background.avif') no-repeat fixed;
  background-size: cover;
  background-position: center;
  color: var(--text);
  line-height: 1.6;
}

/* ===============================
   NAVBAR
================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 999;
  height: var(--navHeight);
  background: var(--nav);
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.logo-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  font-size: 22px;
  font-weight: 900;
  color: var(--accent);
}

/* NAV LINKS */
.nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  transition: 0.3s;
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

/* ===============================
   HERO SECTION
================================= */
.hero {
  min-height: calc(100vh - var(--navHeight));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  overflow: hidden;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

/* Profile Image */
.hero-image img {
  width: 360px;
  height: 360px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.9);
  cursor: pointer;
  animation: fadeSlide 2.2s ease forwards;
}



/* Hero Text */
.hero-text {
  max-width: 500px;
  animation: fadeSlide 2.2s ease forwards;
}

.hero-text h1 {
  font-size: 40px;
  margin-bottom: 12px;
}

.highlight {
  color: var(--accent);
}

.hero-text p {
  color: var(--muted);
  font-size: 18px;
  margin-bottom: 24px;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 12px;
  background: cyan;
  color: #04110b;
  font-weight: 900;
  text-decoration: none;
  transition: 0.3s;
  
}

.btn:hover {
  transform: scale(1.05);
}

/* Text animation */
@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===============================
   SECTION COMMON
================================= */
.section {
  padding: 75px 40px;
}

.section-title {
  text-align: center;
  font-size: 28px;
  margin-bottom: 30px;
}

.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  margin: 10px auto 0;
  background: var(--accent);
}

/* ===============================
   CARD
================================= */
.card {
  max-width: 820px;
  margin: auto;
  text-align: justify;
  background: rgba(0, 0, 0, 0.305);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}

.resume-center {
  display: flex;
  justify-content: center;
  margin-top: 15px;
}

.resume-btn {
  background: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  padding: 12px 26px;
}

/* ===============================
   SKILLS SECTION
================================= */
.skills-grid {
  max-width: 980px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.skill-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 20px;
}

.skill-card span {
  display: block;
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 12px;
  color: var(--text);
}

/* Progress Bar */
.progress {
  width: 100%;
  height: 15px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #00ff99, #00cc66);
  border-radius: 20px;
  transition: width 0.6s ease;
}

/* ===============================
   PROJECTS
================================= */
.projects {
  max-width: 900px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.project-card {
  background: rgba(0, 0, 0, 0.305);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  text-align: justify;
}

.project-card p {
  color: var(--muted);
}

.links {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.links a {
  text-decoration: none;
  padding: 9px 14px;
  border-radius: 12px;
  font-weight: 900;
  font-size: 14px;
  color: var(--accent);
  border: 1px solid rgba(255, 255, 255, 0.884);
}

/* ===============================
   CONTACT
================================= */
#contact .card p {
  margin-bottom: 10px;
}

/* ===============================
   FOOTER
================================= */
.footer {
  text-align: center;
  padding: 22px;
  background: var(--nav);
  border-top: 1px solid var(--border);
  color: var(--muted);
}


/* ===============================
   IMAGE POPUP
================================= */
.img-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.804);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 3000;
}

.img-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.img-popup {
  width: min(70vw, 520px);
  height: min(70vw, 520px);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.9);
  animation: zoomIn 0.25s ease;
}

@keyframes zoomIn {
  from { transform: scale(0.75); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ===============================
   MOBILE RESPONSIVE
================================= */
@media (max-width: 700px) {

  :root {
    --navHeight: 120px;
  }

  .header {
    flex-direction: column;
   align-items: center;
   height: auto;
  }

  .nav {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 4px;
  }
  .nav::-webkit-scrollbar{
    display: none;
  }
  .nav a{
    flex: 0 0 auto;
    font-size: 14px;
    padding: 6px 8px;
  }

  section {
    padding: 60px 16px;
  }

  .projects {
    grid-template-columns: 1fr;
  }

  .hero-container {
    flex-direction: column;
    gap: 30px;
  }

  .hero-image img {
    width: 200px;
    height: 200px;
  }
}