/* ================= GLOBAL ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s ease;
}


body {
  background: #000;
  color: #fff;
  overflow-x: hidden;
}

/* ================= NAVBAR ================= */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  border-bottom: 1px solid rgba(255,255,255,0.08);

  position: sticky;
  top: 0;
  backdrop-filter: blur(12px);
  background: rgba(0,0,0,0.6);
  z-index: 1000;
}

.logo {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: #fff;
}

.logo:hover {
  color: #38bdf8;
}

nav {
  display: flex;
  gap: 20px;
}

nav a {
  text-decoration: none;
  color: #aaa;
  font-size: 14px;
}

nav a.active {
  color: #fff;
}

/* NAV BUTTON */
.nav-btn {
  background: #fff;
  color: #000;
  padding: 8px 18px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 14px;
}

.nav-btn:hover {
  transform: translateY(-2px);
  background: #e5e5e5;
}

/* ================= HERO ================= */
.hero {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;

  animation: fadeUp 1s ease;
}

.hero h1 {
  font-size: 80px;
  font-weight: 600;
}

.hero p {
  margin-top: 10px;
  color: #aaa;
  font-size: 16px;
}

/* HERO ANIMATION */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================= SECTION WRAPPER ================= */
.info-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 80px 20px;
}

/* ================= CARD SYSTEM ================= */
.about-card,
.contact-card,
.project-card.big {
  width: 100%;
  max-width: 700px;
  padding: 40px;

  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);

  backdrop-filter: blur(10px);
  text-align: center;
}

/* HOVER */
.about-card:hover,
.contact-card:hover,
.project-card.big:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: #38bdf8;
  box-shadow: 0 0 40px rgba(56,189,248,0.25);
}

/* ================= TEXT ================= */
.about-card h2,
.contact-card h2 {
  font-size: 24px;
  margin-bottom: 15px;
}

.intro {
  color: #aaa;
  margin-bottom: 30px;
  line-height: 1.6;
}

/* ================= INFO GRID ================= */
.info-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px; /* 🔥 pushes button down nicely */
}
.info-item {
  padding: 20px;
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
}

.info-item span {
  font-size: 11px;
  color: #38bdf8;
  text-transform: uppercase;
}

.info-item p {
  margin-top: 5px;
  font-size: 15px;
}

/* ================= PROJECTS ================= */
.projects-section {
  width: 100%;

  display: flex;
  justify-content: center;  /* 🔥 CENTER */
  align-items: center;

  padding: 80px 20px;
}

.projects-wrapper {
  width: 100%;
  max-width: 700px;

  margin: 0 auto; /* 🔥 FORCE CENTER */

  display: flex;
  flex-direction: column;
  gap: 25px;
}
.project-card.big h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.project-card.big p {
  color: #aaa;
  margin-bottom: 15px;
}

/* LINKS */
.project-links a {
  margin-right: 20px;
  color: #38bdf8;
  text-decoration: none;
}

.project-links a:hover {
  text-decoration: underline;
}

/* ================= SOCIAL ================= */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 25px;
}

.social-icons a {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);

  color: white;
  font-size: 18px;
}

.social-icons a:hover {
  transform: translateY(-4px);
  border-color: #38bdf8;
  box-shadow: 0 0 20px rgba(56,189,248,0.3);
}

/* ================= FOOTER ================= */
.footer {
  text-align: center;
  padding: 25px 10px;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: #777;
  font-size: 13px;
}

.footer .quote {
  margin-top: 6px;
  font-size: 12px;
  color: #888;
}

/* ================= TRANSITION ================= */
#transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 9999;
  transform: translateY(-100%);
  transition: transform 0.6s ease;
}

#transition.active {
  transform: translateY(0);
}

/* ================= SCROLL ANIMATION ================= */
.reveal {
  opacity: 0;
  transform: translateY(80px) scale(0.98);
  transition: all 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  header {
    padding: 15px 20px;
  }

  .hero h1 {
    font-size: 50px;
  }

  .about-card,
  .contact-card,
  .project-card.big {
    padding: 25px;
  }
}

.btn-primary {
  display: inline-block;

  background: #fff;
  color: #000;

  padding: 10px 22px;
  border-radius: 25px;

  text-decoration: none; /* 🔥 THIS FIXES PURPLE LINK */

  font-size: 14px;
  font-weight: 500;

  transition: 0.3s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #e5e5e5;
}
.reveal {
  opacity: 0;
  transform: translateY(80px) scale(0.95);
  transition: all 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}
/* RESUME ALIGN FIX */
.resume-card {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* SECTION SPACING */
.resume-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* HEADINGS */
.resume-section h3 {
  text-align: center;
  margin-bottom: 10px;
}

/* CENTER TEXT */
.center {
  text-align: center;
}

/* SKILLS GRID (FIXED LOOK) */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 15px;
}

.skills-grid div {
  padding: 15px;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  text-align: center;
}

/* BUTTON ALIGN */
.hero-actions {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}
/* ===== FINAL RESUME FIX ===== */

/* SECTION SPACING */
.resume-section {
  margin-top: 30px;
  text-align: center;
}

/* SKILLS FIX (THIS IS THE MAIN FIX) */
.skills-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 15px;
}

.skills-flex span {
  padding: 10px 16px;
  border-radius: 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 14px;
}

/* PROJECT + EDUCATION FIX */
.resume-section .info-grid {
  margin-top: 15px;
}

/* BUTTON FIX */
.hero-actions {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}
/* ===== EDUCATION FIX ===== */

.education-section {
  margin-top: 50px; /* 🔥 space from above */
  text-align: center;
}

/* TITLE */
.education-section h3 {
  margin-bottom: 20px; /* 🔥 space below heading */
}

/* CARD */
.education-card {
  padding: 25px;
  border-radius: 14px;

  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);

  max-width: 400px;
  margin: 0 auto; /* 🔥 center */
}

/* LABEL */
.education-card span {
  display: block;
  color: #38bdf8;
  font-size: 12px;
  margin-bottom: 6px;
}

/* TEXT */
.education-card p {
  font-size: 16px;
  color: #ddd;
}
/* RESUME UNIFORM STYLE */
.resume-card {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* SECTION */
.resume-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
  text-align: center;
}

/* HEADINGS */
.resume-section h3 {
  margin-bottom: 10px;
}

/* GRID FIX */
.info-grid {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* ITEM IMPROVE */
.info-item {
  padding: 20px;
  border-radius: 12px;

  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}

/* CENTER TEXT */
.center {
  text-align: center;
}
.social-icons a {
  text-decoration: none;  /* 🔥 removes underline */
}
* {
  box-sizing: border-box;
}

body {
  overflow-x: hidden; /* 🔥 prevents horizontal scroll */
}

@media (max-width: 768px) {

  header {
    flex-direction: row;          /* 🔥 KEEP IN ONE LINE */
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
  }

  nav {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;            /* 🔥 PREVENT WRAPPING */
  }

  nav a {
    font-size: 12px;              /* 🔥 smaller text to fit */
  }

  .nav-btn {
    padding: 6px 12px;
    font-size: 12px;
    white-space: nowrap;          /* 🔥 prevents breaking */
  }
}