/* =========================================================
   RESET & BASE
========================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #081b29;
  color: white;
  padding-top: 90px;
  overflow-x: hidden;
}

a {
  outline-offset: 4px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid #00abf0;
  outline-offset: 3px;
}

.eyebrow {
  color: #00abf0;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 10px;
}

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

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

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

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

/* =========================================================
   NAVBAR
========================================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 80px;
  background: rgba(8, 27, 41, 0.9);
  backdrop-filter: blur(12px);
  z-index: 1000;
  transition: 0.4s;
}

.logo {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #00abf0;
  text-shadow: 0 0 15px rgba(0, 171, 240, 0.45);
  text-decoration: none;
}

.navbar ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

.navbar a {
  color: white;
  text-decoration: none;
  transition: 0.3s;
  position: relative;
}

.navbar a:hover,
.navbar a.active {
  color: #00abf0;
}

.navbar a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: #00abf0;
  transition: 0.35s;
}

.navbar a:hover::after,
.navbar a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: white;
  transition: 0.35s;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =========================================================
   HERO
========================================================= */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 80px;
  gap: 40px;
}

.hero-text {
  width: 55%;
}

.hero-text h1 {
  font-size: 55px;
  margin-bottom: 15px;
  line-height: 1.15;
}

.hero-text h2 {
  color: #00abf0;
  margin-bottom: 25px;
}

.hero-text p {
  line-height: 1.8;
  margin-bottom: 35px;
  color: #cfe3ee;
}

.buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  background: #00abf0;
  color: white;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.35s;
  border: 2px solid #00abf0;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.btn-secondary {
  display: inline-block;
  border: 2px solid #00abf0;
  color: #00abf0;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.35s;
  background: transparent;
}

.btn-secondary:hover {
  background: #00abf0;
  color: white;
  transform: translateY(-3px);
}

.hero-image img {
  width: 320px;
  height: 320px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid #00abf0;
}

/* =========================================================
   ABOUT
========================================================= */
.about {
  padding: 100px 10%;
  background: #0d2438;
}

.about-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.about-image img {
  width: 100%;
  max-width: 360px;
  border-radius: 20px;
  border: 4px solid #00aaff;
  object-fit: cover;
  box-shadow: 0 0 30px rgba(0, 170, 255, 0.25);
}

.about-content {
  flex: 1;
}

.about-content h2 {
  font-size: 42px;
  color: white;
  margin-bottom: 25px;
}

.about-content p {
  font-size: 18px;
  line-height: 1.9;
  margin-bottom: 20px;
  color: #cfe3ee;
}

.about-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.card {
  background: #132f46;
  padding: 25px;
  border-radius: 15px;
  transition: 0.4s;
  border: 1px solid rgba(0, 171, 240, 0.25);
}

.card:hover {
  transform: translateY(-8px);
  border-color: #00abf0;
  box-shadow: 0 10px 25px rgba(0, 171, 240, 0.35);
}

.card h3 {
  color: #00abf0;
  margin-bottom: 12px;
}

.card p {
  font-size: 16px;
  line-height: 1.6;
  color: #cfe3ee;
  margin-bottom: 0;
}

/* =========================================================
   SECTION TITLE (shared)
========================================================= */
.section-title {
  text-align: center;
  font-size: 48px;
  color: white;
  margin-bottom: 60px;
}

/* =========================================================
   SKILLS
========================================================= */
.skills {
  padding: 100px 8%;
  background: #081b29;
  text-align: center;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.skill-group {
  background: #132f46;
  border: 1px solid rgba(0, 171, 240, 0.25);
  border-radius: 15px;
  padding: 30px 25px;
  text-align: left;
  transition: 0.4s;
}

.skill-group:hover {
  transform: translateY(-8px);
  border-color: #00abf0;
  box-shadow: 0 10px 25px rgba(0, 171, 240, 0.25);
}

.skill-group h3 {
  color: #00abf0;
  margin-bottom: 16px;
  font-size: 20px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tags span {
  background: rgba(0, 171, 240, 0.12);
  border: 1px solid rgba(0, 171, 240, 0.4);
  color: #e6f4fc;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
}

/* =========================================================
   PROJECTS
========================================================= */
.projects {
  padding: 100px 8%;
  background: #0d2438;
}

.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
}

.project-card {
  background: #173149;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(0, 171, 240, 0.2);
  transition: 0.35s ease;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 171, 240, 0.25);
}

.project-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: #08131f;
  transition: 0.4s;
}

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

.project-info {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-info h3 {
  color: #00abf0;
  font-size: 26px;
  margin-bottom: 15px;
}

.project-info p {
  color: #ddd;
  line-height: 1.7;
  margin-bottom: 20px;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 25px;
}

.project-tech span {
  background: #00abf0;
  color: #081b29;
  padding: 8px 14px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 14px;
}

.project-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: auto;
}

.project-buttons a {
  flex: 1;
  min-width: 160px;
  text-align: center;
}

.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* =========================================================
   CERTIFICATES
========================================================= */
.certificates {
  padding: 100px 10%;
  background: #081b29;
}

.certificates-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 35px;
}

.certificate-card {
  width: 340px;
  background: #173149;
  border-radius: 18px;
  overflow: hidden;
  transition: 0.4s;
  border: 1px solid rgba(0, 171, 240, 0.2);
  display: flex;
  flex-direction: column;
}

.certificate-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 171, 240, 0.25);
}

.certificate-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: 0.4s;
}

.certificate-card:hover img {
  transform: scale(1.05);
}

.certificate-info {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.certificate-info h3 {
  color: #00abf0;
  margin-bottom: 10px;
  font-size: 26px;
}

.certificate-info p {
  color: white;
  margin-bottom: 8px;
}

.certificate-info span {
  color: #9fc7dd;
  display: block;
  margin-bottom: 20px;
}

.certificate-info a {
  margin-top: auto;
  text-align: center;
}

/* =========================================================
   CONTACT
========================================================= */
.contact {
  padding: 100px 8%;
  background: #0d2438;
  text-align: center;
}

.contact-container {
  max-width: 640px;
  margin: 0 auto;
}

.contact-text {
  color: #cfe3ee;
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 40px;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* =========================================================
   FOOTER
========================================================= */
.site-footer {
  padding: 30px 8%;
  text-align: center;
  background: #081b29;
  border-top: 1px solid rgba(0, 171, 240, 0.15);
  color: #9fc7dd;
  font-size: 14px;
}

/* =========================================================
   BACK TO TOP
========================================================= */
.back-to-top {
  position: fixed;
  right: 25px;
  bottom: 25px;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #00abf0;
  color: white;
  border-radius: 50%;
  text-decoration: none;
  font-size: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: 0.35s;
  z-index: 900;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1024px) {
  .hero {
    padding: 60px 40px;
  }

  .about {
    padding: 80px 6%;
  }
}

@media (max-width: 860px) {
  body {
    padding-top: 80px;
  }

  .navbar {
    padding: 18px 24px;
  }

  .nav-toggle {
    display: flex;
  }

  .navbar ul {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(75%, 300px);
    background: #0d2438;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 28px;
    padding: 100px 40px;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.35);
  }

  .navbar ul.open {
    transform: translateX(0);
  }

  .hero {
    flex-direction: column-reverse;
    text-align: center;
    padding: 60px 24px;
  }

  .hero-text {
    width: 100%;
  }

  .hero-text h1 {
    font-size: 40px;
  }

  .buttons {
    justify-content: center;
  }

  .hero-image img {
    width: 220px;
    height: 220px;
  }

  .about-container {
    flex-direction: column;
  }

  .about-cards {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 36px;
  }

  .certificate-card {
    width: 100%;
    max-width: 400px;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 32px;
  }

  .about-content h2 {
    font-size: 32px;
  }

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

  .buttons {
    flex-direction: column;
  }

  .project-buttons a {
    min-width: 0;
  }
}
/* ===== Project Badge ===== */

.project-card {
  position: relative;
}

.project-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #00abf0;
  color: #081b29;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  z-index: 5;
  box-shadow: 0 5px 15px rgba(0, 171, 240, 0.35);
}
