* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Space Grotesk", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #050b14;
  color: white;
  overflow-x: hidden;
}

/* CANVAS BACKGROUND */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -10;
  width: 100%;
  height: 100%;
}

/* LOADER */
#loader {
  position: fixed;
  width: 100%;
  height: 100%;
  background: #050b14;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: 0.5s;
}

.loader-box {
  text-align: center;
}

.spinner {
  width: 70px;
  height: 70px;
  border: 5px solid rgba(0, 255, 255, 0.2);
  border-top: 5px solid cyan;
  border-radius: 50%;
  margin: auto;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

/* GLASS BOX */
.glass-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(0, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  border-radius: 22px;
  box-shadow: 0px 0px 30px rgba(0, 255, 255, 0.12);
  transition: 0.3s;
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(5, 11, 20, 0.75);
  backdrop-filter: blur(14px);
  padding: 15px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 255, 255, 0.08);
}

.logo {
  font-size: 1.7rem;
  font-weight: 700;
  color: cyan;
}

.logo span {
  color: white;
}

.nav-links {
  display: flex;
  gap: 25px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

.nav-links a:hover {
  color: cyan;
  text-shadow: 0px 0px 15px cyan;
}

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: cyan;
  border-radius: 10px;
}

/* HERO */
.hero {
  min-height: 100vh;
  padding: 130px 50px 60px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: center;
}

.hero-content h1 {
  font-size: 3.3rem;
  margin-bottom: 10px;
}

.hero-content h1 span {
  color: cyan;
  text-shadow: 0px 0px 30px cyan;
}

.hero-content h2 {
  font-size: 1.35rem;
  font-weight: 500;
  opacity: 0.85;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.1rem;
  opacity: 0.75;
  line-height: 1.8;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

/* BUTTONS */
.btn {
  padding: 12px 20px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.25s;
  display: inline-block;
  cursor: pointer;
  border: none;
}

.btn.primary {
  background: cyan;
  color: #050b14;
}

.btn.primary:hover {
  box-shadow: 0px 0px 30px cyan;
  transform: translateY(-3px) scale(1.03);
}

.btn.secondary {
  border: 2px solid cyan;
  color: cyan;
  background: transparent;
}

.btn.secondary:hover {
  background: cyan;
  color: #050b14;
  box-shadow: 0px 0px 25px cyan;
  transform: translateY(-3px);
}

.btn.small {
  padding: 10px 14px;
  font-size: 0.9rem;
}

/* HERO CARD */
.hero-card {
  padding: 28px;
  border-radius: 22px;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(0, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  box-shadow: 0px 0px 25px rgba(0, 255, 255, 0.12);
}

.hero-card h3 {
  margin-bottom: 15px;
  color: cyan;
  font-size: 1.2rem;
}

.hero-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 1rem;
  opacity: 0.85;
}

.glow-circle {
  width: 200px;
  height: 200px;
  background: cyan;
  position: absolute;
  top: -70px;
  right: -70px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
}

/* SECTIONS */
section {
  padding: 90px 50px;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.5rem;
  color: cyan;
  text-shadow: 0px 0px 18px rgba(0, 255, 255, 0.6);
}

.section-title p {
  opacity: 0.7;
  margin-top: 8px;
}

/* ABOUT */
.about-content {
  max-width: 900px;
  margin: auto;
  font-size: 1.1rem;
  line-height: 1.9;
  opacity: 0.9;
  text-align: center;
  padding: 30px;
}

/* SKILLS */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
}

.skill-card {
  padding: 18px;
  border-radius: 18px;
  text-align: center;
  font-weight: 600;
  transition: 0.25s;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(0, 255, 255, 0.15);
  backdrop-filter: blur(12px);
}

.skill-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0px 0px 22px rgba(0, 255, 255, 0.25);
  border: 1px solid cyan;
}

/* PROJECTS */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.project-card {
  border-radius: 22px;
  overflow: hidden;
  transition: 0.25s;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(0, 255, 255, 0.15);
  backdrop-filter: blur(12px);
}

.project-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0px 0px 30px rgba(0, 255, 255, 0.22);
  border: 1px solid cyan;
}

.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.project-info {
  padding: 20px;
}

.project-info h3 {
  color: cyan;
  margin-bottom: 10px;
}

.project-info p {
  opacity: 0.75;
  margin-bottom: 12px;
  line-height: 1.5;
}

.project-info span {
  display: block;
  opacity: 0.7;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

/* CONTACT */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
  align-items: start;
}

.contact-form {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-title {
  color: cyan;
  margin-bottom: 8px;
  font-size: 1.3rem;
}

.contact-form input,
.contact-form textarea {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(0, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
  color: white;
  outline: none;
  transition: 0.25s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border: 1px solid cyan;
  box-shadow: 0px 0px 14px rgba(0, 255, 255, 0.35);
}

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

.status-text {
  opacity: 0.8;
  font-size: 0.95rem;
  color: cyan;
  margin-top: 6px;
}

/* SOCIAL */
.social-box {
  padding: 28px;
}

.social-box h3 {
  color: cyan;
  margin-bottom: 10px;
}

.social-box p {
  opacity: 0.75;
  margin-bottom: 15px;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social-links a {
  text-decoration: none;
  color: white;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(0, 255, 255, 0.15);
  transition: 0.25s;
}

.social-links a:hover {
  border: 1px solid cyan;
  box-shadow: 0px 0px 18px rgba(0, 255, 255, 0.25);
  color: cyan;
  transform: translateX(5px);
}

/* FOOTER */
.footer {
  padding: 25px;
  text-align: center;
  opacity: 0.6;
  border-top: 1px solid rgba(0, 255, 255, 0.1);
}

/* BACK TO TOP */
#backToTop {
  position: fixed;
  bottom: 25px;
  right: 25px;
  padding: 12px 16px;
  border: none;
  border-radius: 14px;
  background: cyan;
  color: #050b14;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: none;
  transition: 0.3s;
  z-index: 999;
}

#backToTop:hover {
  box-shadow: 0px 0px 22px cyan;
  transform: translateY(-4px);
}

/* REVEAL ANIMATION */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: 1s;
}

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

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .navbar {
    padding: 15px 25px;
  }

  .nav-links {
    position: absolute;
    top: 65px;
    right: 20px;
    flex-direction: column;
    background: rgba(5, 11, 20, 0.95);
    border: 1px solid rgba(0, 255, 255, 0.15);
    border-radius: 18px;
    padding: 18px;
    width: 200px;
    display: none;
  }

  .nav-links.show {
    display: flex;
  }

  .hamburger {
    display: flex;
  }
}
/* --- LOADER CINEMATIC DOT FLY INTRO --- */
#loader {
  position: fixed;
  inset: 0;
  background: #050509;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.6s ease;
}

.loader-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 3rem;
  font-weight: 700;
  color: white;
  letter-spacing: 2px;
  position: relative;
}

.loader-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #00f3ff;
  box-shadow: 0 0 25px #00f3ff;
  animation: dotPulse 1s infinite ease-in-out;
  position: relative;
}

.loader-bar {
  margin-top: 25px;
  width: 240px;
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  overflow: hidden;
}

.loader-progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #00f3ff, #bc13fe);
  border-radius: 50px;
  animation: loadBar 1.6s ease forwards;
}

/* Animations */
@keyframes dotPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.6); }
}

@keyframes loadBar {
  0% { width: 0%; }
  100% { width: 100%; }
}

/* Nav dot glow after loader ends */
#navDot.glow {
  color: #00f3ff;
  text-shadow: 0 0 15px #00f3ff, 0 0 35px #bc13fe;
  transition: 0.6s ease;
}

/* CERTIFICATE MODAL */
.cert-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

.cert-content {
  width: 90%;
  max-width: 650px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 255, 255, 0.25);
  padding: 25px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0px 0px 30px rgba(0, 255, 255, 0.25);
  position: relative;
  animation: popUp 0.4s ease;
}

@keyframes popUp {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.cert-close {
  position: absolute;
  top: 15px;
  right: 18px;
  font-size: 20px;
  cursor: pointer;
  color: cyan;
  transition: 0.3s;
}

.cert-close:hover {
  color: white;
  text-shadow: 0px 0px 15px cyan;
}

.cert-content h2 {
  color: cyan;
  margin-bottom: 18px;
}

.cert-slider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.cert-slider img {
  width: 100%;
  max-width: 450px;
  border-radius: 15px;
  border: 1px solid rgba(0, 255, 255, 0.25);
  box-shadow: 0px 0px 20px rgba(0, 255, 255, 0.15);
  transition: 0.3s;
}

.cert-btn {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(0, 255, 255, 0.15);
  padding: 12px 15px;
  border-radius: 12px;
  cursor: pointer;
  color: white;
  font-size: 18px;
  transition: 0.3s;
}

.cert-btn:hover {
  border: 1px solid cyan;
  box-shadow: 0px 0px 15px rgba(0, 255, 255, 0.25);
  color: cyan;
}

#certCount {
  margin-top: 12px;
  opacity: 0.7;
}

.cert-link-btn {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(0, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
  color: white;
  cursor: pointer;
  font-size: 1rem;
  font-family: "Space Grotesk", sans-serif;
  text-align: left;
  transition: 0.3s;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  outline: none;
}

.cert-link-btn:hover {
  border: 1px solid cyan;
  box-shadow: 0px 0px 15px rgba(0, 255, 255, 0.25);
  color: cyan;
}
.cert-link-btn:focus {
  outline: none;
  box-shadow: none;
}

.btn i{
  margin-right:6px;
}
