/* ===============================
   RESET
=============================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===============================
   GLOBAL
=============================== */
html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #ffffff;
  background: #000; /* ✅ ONLY CHANGE */
  overflow-x: hidden;
}

/* ===============================
   BACKGROUND GLOW
=============================== */
body::before {
  content: "";
  position: fixed;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.06), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.04), transparent 40%);
  z-index: -1;
}

/* ===============================
   HEADER (GLASS)
=============================== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 15px 40px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.1);

  z-index: 1000;
}

header h1 {
  font-size: 18px;
  font-weight: 600;
}

/* ===============================
   NAVIGATION
=============================== */
.nav-links {
  display: flex;
  gap: 25px;
}

.nav-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: 0.3s;
}

.nav-links a:hover {
  color: #fff;
}

/* ===============================
   HAMBURGER
=============================== */
.menu-toggle {
  display: none;
  font-size: 22px;
  cursor: pointer;
}

/* ===============================
   SECTIONS
=============================== */
.section {
  min-height: 100vh;
  scroll-snap-align: start;

  display: flex;
  justify-content: center;
  align-items: center;

  padding: 80px 20px;

  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.section.show {
  opacity: 1;
  transform: translateY(0);
}

/* ===============================
   HERO
=============================== */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.profile {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.2);
}

.hero p {
  color: #bbb;
}

/* HERO ICONS (NO BOX) */
.hero-icons a {
  background: none;
  width: auto;
  height: auto;
  border: none;
  font-size: 22px;
  color: #ccc;
}

.hero-icons a:hover {
  color: #fff;
}

/* ===============================
   GLASS CONTAINER
=============================== */
.glass {
  width: 100%;
  max-width: 950px;
  padding: 40px;

  border-radius: 20px;

  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(25px);

  border: 1px solid rgba(255,255,255,0.1);

  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

/* ===============================
   TITLES
=============================== */
.section-title {
  font-size: 28px;
  margin-bottom: 25px;
}

.about-text {
  margin-bottom: 25px;
  color: #ccc;
}

/* ===============================
   GRID SYSTEM
=============================== */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ===============================
   CARDS (GLASS)
=============================== */
.card,
.cert-card,
.project-item {
  padding: 20px;
  border-radius: 16px;

  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(15px);

  border: 1px solid rgba(255,255,255,0.1);

  transition: 0.3s ease;
}

/* HOVER */
.card:hover,
.cert-card:hover,
.project-item:hover {
  transform: translateY(-6px) scale(1.02);
  background: rgba(255,255,255,0.08);
}

/* ===============================
   ABOUT DROPDOWN
=============================== */
.about-card {
  cursor: pointer;
}

.about-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.about-dropdown {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-10px);
  transition: all 0.4s ease;
  margin-top: 10px;
  text-align: left;
  color: #ccc;
}

.about-card.active .about-dropdown {
  max-height: 500px;
  opacity: 1;
  transform: translateY(0);
}

/* ===============================
   PROJECT SECTION
=============================== */
.project-item {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.project-header span {
  display: flex;
  align-items: center;
  gap: 10px;
}

.project-header a {
  color: #aaa;
}

.project-header a:hover {
  color: #fff;
}

.project-dropdown {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-10px);
  transition: all 0.4s ease;
  margin-top: 10px;
  text-align: left;
  color: #ccc;
}

.project-item.active .project-dropdown {
  max-height: 200px;
  opacity: 1;
  transform: translateY(0);
}

/* ===============================
   ARROW
=============================== */
.arrow {
  transition: transform 0.3s ease;
}

.project-item.active .arrow,
.about-card.active .arrow {
  transform: rotate(180deg);
}

/* ===============================
   CERTIFICATIONS ALIGNMENT
=============================== */
.cert-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

.cert-card h3 {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-card p {
  min-height: 30px;
}

.cert-card .btn {
  margin-top: auto;
}

/* ===============================
   CONTACT ICONS (GLASS)
=============================== */
.icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.icons a {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 60px;
  height: 60px;

  border-radius: 12px;

  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);

  border: 1px solid rgba(255,255,255,0.1);

  color: #ccc;
  font-size: 20px;

  transition: 0.3s ease;
}

.icons a:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
  transform: translateY(-5px);
}

/* ===============================
   BUTTON
=============================== */
.btn {
  padding: 10px 20px;
  border-radius: 10px;

  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);

  color: #fff;
  text-decoration: none;
  transition: 0.3s ease;
}

.btn:hover {
  background: rgba(255,255,255,0.2);
  transform: scale(1.05);
}

/* ===============================
   FOOTER
=============================== */
footer {
  text-align: center;
  padding: 20px;
  color: #888;
}

/* ===============================
   TABLET
=============================== */
@media (max-width: 1024px) {
  .projects {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===============================
   MOBILE
=============================== */
@media (max-width: 768px) {

  header {
    padding: 15px 20px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 20px;

    background: rgba(0,0,0,0.9);
    padding: 15px;
    border-radius: 10px;
  }

  .nav-links.active {
    display: flex;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cert-grid {
    grid-template-columns: 1fr;
  }

  .projects {
    grid-template-columns: 1fr;
  }
}