:root {
  --bg: #0a0a0a;
  --text: #f5f5f5;
  --accent: #fa00af;
  --card-bg: #151515;
}

[data-theme="light"] {
  --bg: #fafafa;
  --text: #111;
  --accent: #c30082;
  --card-bg: #fff;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  margin: 0;
  overflow-x: hidden;
}

/* ===== HEADER SECTION ===== */
.header {
  position: relative;
  width: 100%;
  height: 80px;
  overflow: hidden;
}

.header-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4);
  z-index: -1;
}

.header-overlay {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0 8%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 20; /* ensures nav and logo stay above the video */
}
/* Logo */
.logo {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
}
.logo .dot {
  color: #fa00af;
}
/* ===== THEME TOGGLE BUTTON ===== */
.theme-toggle {
  background: var(--accent);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px var(--accent);
  transition: all 0.3s ease;
  z-index: 999; /* stays above video */
}

.theme-toggle:hover {
  transform: rotate(15deg) scale(1.1);
  box-shadow: 0 0 20px var(--accent);
}

/* Light mode appearance */
[data-theme="light"] .theme-toggle {
  background: #111;
  color: var(--accent);
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}


/* ABOUT PAGE */
.about-container {
  padding: 4rem 10%;
}

.about-intro {
  text-align: center;
  margin-bottom: 3rem;
}

.about-intro h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

.about-intro span {
  color: var(--accent);
}

.about-intro p {
  max-width: 700px;
  margin: 1rem auto;
  line-height: 1.6;
  color: var(--text);
}

/* CARDS */
.about-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 1.2rem;
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
  transition: all 0.4s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 30px rgba(250, 0, 175, 0.2);
}

.card i {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 0.8rem;
  transition: transform 0.4s ease;
}

.card:hover i {
  transform: rotate(10deg);
}

.card h2 {
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
}

.card p, .card ul {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.6;
}

.card ul {
  list-style: none;
  padding: 0;
}

.card ul li {
  margin-bottom: 0.5rem;
}

/* CERTIFICATE GALLERY */
.cert-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}

.cert-gallery img {
  width: 100%;
  border-radius: 0.8rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cert-gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(250, 0, 175, 0.25);
}

/* FOOTER */
.footer {
  text-align: center;
  padding: 2rem 0;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* CURSOR */
.cursor {
  position: fixed;
  width: 25px;
  height: 25px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease-out;
  z-index: 9999;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .about-container {
    padding: 2rem 1.5rem;
  }

  .about-intro h1 {
    font-size: 2rem;
  }
}

/* ===== CERTIFICATES SECTION ===== */
.certificates-section {
  padding: 4rem 10%;
  text-align: center;
  background: var(--bg);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--text);
}

.section-title i {
  color: var(--accent);
  margin-right: 10px;
}

/* Certificates grid */
.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

/* Certificate card */
.certificate-card {
  position: relative;
  background: var(--card-bg);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(0,0,0,0.25);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.certificate-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 25px rgba(250, 0, 175, 0.3);
}

/* PDF frame */
.certificate-card iframe {
  width: 100%;
  height: 340px;
  border: none;
  border-radius: 1rem;
  filter: brightness(0.85);
  transition: filter 0.3s ease;
}

.certificate-card:hover iframe {
  filter: brightness(1);
}

/* Overlay with title + link */
.cert-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1rem;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.85));
  text-align: left;
  color: #fff;
  border-radius: 0 0 1rem 1rem;
  transition: all 0.3s ease;
}

.cert-overlay h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.cert-overlay a {
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--accent);
  font-weight: 500;
  transition: color 0.3s ease;
}

.cert-overlay a:hover {
  color: #fff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .certificates-section {
    padding: 2.5rem 1.5rem;
  }
  .certificates-grid {
    display: flex;
    overflow-x: auto;
    gap: 1.2rem;
    scroll-snap-type: x mandatory;
    padding-bottom: 1rem;
  }
  .certificate-card {
    min-width: 280px;
    flex: 0 0 auto;
    scroll-snap-align: start;
  }
}
