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

:root {
  --bg: #0f172a;
  --text: #ffffff;
  --card: rgba(255, 255, 255, 0.08);
  --primary: #38bdf8;
  --shadow: rgba(0, 0, 0, 0.3);
}

body.light {
  --bg: #f8fafc;
  --text: #0f172a;
  --card: rgba(0, 0, 0, 0.06);
  --primary: #2563eb;
}

body {
  background: var(--bg);
  color: var(--text);
  transition: 0.3s ease;
}

/* Navbar */
.header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
}

.logo {
  font-size: 22px;
  font-weight: bold;
}
.logo span {
  color: var(--primary);
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links li a {
  text-decoration: none;
  color: var(--text);
  padding: 8px 14px;
  border-radius: 8px;
  transition: 0.3s;
}

.nav-links li a:hover,
.nav-links li a.active {
  background: var(--primary);
  color: white;
}

.menu {
  display: none;
  font-size: 26px;
  cursor: pointer;
}

.toggle {
  border: none;
  background: var(--card);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
}

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

.hero-content h1 {
  font-size: 45px;
}
.hero-content h1 span {
  color: var(--primary);
}

.hero-content p {
  margin: 15px 0;
  font-size: 18px;
  opacity: 0.85;
}

.btn {
  padding: 12px 20px;
  border: none;
  border-radius: 12px;
  background: var(--primary);
  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 10px 25px var(--shadow);
}

.btn:hover {
  transform: translateY(-3px);
}

.small-btn {
  padding: 8px 14px;
  font-size: 14px;
}

.hero-image {
  width: 300px;
  height: 300px;
  position: relative;
}

.blob {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  justify-content: center;
  align-items: center;
  animation: blobMove 4s infinite alternate;
  overflow: hidden;
  box-shadow: 0 20px 40px var(--shadow);
}

.blob img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* Services */
.services {
  padding: 60px 30px;
  text-align: center;
}

.section-title {
  font-size: 32px;
  margin-bottom: 30px;
}

.service-box {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.card {
  background: var(--card);
  padding: 20px;
  border-radius: 18px;
  width: 280px;
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px var(--shadow);
}

/* Pages */
.page {
  padding: 80px 30px;
  text-align: center;
}

.page h1 {
  font-size: 40px;
  margin-bottom: 15px;
}

.page p {
  max-width: 700px;
  margin: auto;
  opacity: 0.85;
}

/* About Cards */
.about-cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}

/* Contact Form */
.contact-form {
  max-width: 450px;
  margin: 30px auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border-radius: 12px;
  border: none;
  outline: none;
  background: var(--card);
  color: var(--text);
}

.contact-form textarea {
  height: 120px;
  resize: none;
}

/* Footer */
.footer {
  text-align: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.25);
  margin-top: 40px;
}

/* Popup */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 1000;
}

.popup-overlay.show {
  opacity: 1;
  visibility: visible;
}

.popup {
  background: var(--bg);
  padding: 25px;
  border-radius: 18px;
  text-align: center;
  width: 320px;
  box-shadow: 0 10px 40px var(--shadow);
  animation: popupZoom 0.3s ease;
}

@keyframes popupZoom {
  from {
    transform: scale(0.8);
  }
  to {
    transform: scale(1);
  }
}

/* Scroll Animations */
.animate {
  opacity: 0;
  transform: translateY(30px);
  transition: 0.7s ease;
}

.animate.show {
  opacity: 1;
  transform: translateY(0);
}
/* =========================
   LOADER
========================= */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  transition: 0.4s ease;
}

#loader h2 {
  margin-top: 15px;
  font-size: 20px;
  opacity: 0.85;
}

.spinner {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 7px solid rgba(255, 255, 255, 0.2);
  border-top: 7px solid var(--primary);
  animation: spin 1s linear infinite;
}

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



/* =========================
   PROGRESS BAR
========================= */
#progressBar {
  position: fixed;
  top: 0;
  left: 0;
  height: 5px;
  width: 0%;
  background: var(--primary);
  z-index: 3000;
  transition: 0.1s;
}

/* =========================
   BACK TO TOP BUTTON
========================= */
#topBtn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-size: 20px;
  cursor: pointer;
  display: none;
  box-shadow: 0 10px 25px var(--shadow);
  transition: 0.3s;
  z-index: 3000;
}

#topBtn:hover {
  transform: translateY(-5px) scale(1.05);
}

/* =========================
   LOGIN POPUP
========================= */
.login-popup {
  background: var(--bg);
  padding: 30px 25px;
  border-radius: 20px;
  width: 320px;
  text-align: center;
  box-shadow: 0 15px 40px var(--shadow);
  animation: popupZoom 0.3s ease;
}

.login-popup h2 {
  margin-bottom: 15px;
}

.login-popup form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.login-popup input {
  padding: 12px;
  border-radius: 12px;
  border: none;
  outline: none;
  background: var(--card);
  color: var(--text);
}

.close-text {
  margin-top: 15px;
  font-size: 14px;
  opacity: 0.7;
  cursor: pointer;
}

.close-text:hover {
  opacity: 1;
  color: var(--primary);
}

/* FAQ */
.faq {
  padding: 60px 30px;
  max-width: 800px;
  margin: auto;
}

.faq-item {
  background: var(--card);
  margin-bottom: 15px;
  padding: 18px;
  border-radius: 15px;
  cursor: pointer;
}

.faq-item h3 {
  margin-bottom: 8px;
}

.faq-item p {
  display: none;
  opacity: 0.85;
}

.faq-item.active p {
  display: block;
}

/* =========================
   GALLERY PAGE
========================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
  margin-top: 30px;
}

.gallery-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 16px;
  cursor: pointer;
  transition: 0.3s ease;
  box-shadow: 0 10px 25px var(--shadow);
}

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

/* Popup Image Viewer */
.img-popup-box {
  position: relative;
  background: var(--bg);
  padding: 12px;
  border-radius: 18px;
  max-width: 700px;
  width: 90%;
  box-shadow: 0 15px 40px var(--shadow);
}

.img-popup-box img {
  width: 100%;
  border-radius: 14px;
  max-height: 75vh;
  object-fit: cover;
}

#closeImgPopup {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 20px;
  cursor: pointer;
  background: var(--primary);
  color: white;
  padding: 6px 10px;
  border-radius: 10px;
}

/* =========================
   ABOUT PAGE
========================= */
.about-page {
  padding: 80px 30px;
  max-width: 1100px;
  margin: auto;
}

.about-hero {
  text-align: center;
  margin-bottom: 40px;
}

.about-hero h1 {
  font-size: 42px;
  margin-bottom: 10px;
}

.about-hero p {
  max-width: 750px;
  margin: auto;
  opacity: 0.85;
  line-height: 1.6;
}

/* Counters */
.counter-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
  margin: 30px 0;
}

.counter-card {
  background: var(--card);
  padding: 25px;
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 10px 25px var(--shadow);
}

.counter-card h2 {
  font-size: 38px;
  color: var(--primary);
}

/* Skills */
.skills-section {
  margin-top: 50px;
}

.skill {
  margin: 15px 0;
  text-align: left;
}

.skill p {
  margin-bottom: 6px;
  font-weight: bold;
}

.bar {
  width: 100%;
  height: 12px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  background: var(--primary);
  border-radius: 20px;
}

/* Team */
.team-section {
  margin-top: 60px;
  text-align: center;
}

.team-cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 25px;
}

.team-card {
  width: 260px;
  padding: 20px;
  background: var(--card);
  border-radius: 18px;
  transition: 0.3s;
  box-shadow: 0 10px 25px var(--shadow);
}

.team-card:hover {
  transform: translateY(-6px);
}

.team-card h3 {
  color: var(--primary);
  margin-bottom: 8px;
}

/* CTA */
.about-cta {
  margin-top: 60px;
  text-align: center;
  background: var(--card);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 25px var(--shadow);
}

.about-cta h2 {
  margin-bottom: 10px;
}


/* Responsive */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }

  .nav-links {
    position: absolute;
    top: 60px;
    right: -100%;
    width: 220px;
    flex-direction: column;
    background: var(--bg);
    padding: 20px;
    border-radius: 18px;
    transition: 0.3s;
  }

  .nav-links.show {
    right: 20px;
  }

  .menu {
    display: block;
  }
}
