* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
  scroll-behavior: smooth;
}

body {
  background: radial-gradient(circle at top, #0f172a, #020617);
  color: white;
}

a {
  text-decoration: none;
  color: white;
}

/* ✅ Page Loading Animation */
body.loading {
  overflow: hidden;
}

#loader {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, #0f172a, #020617);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

.loader-box {
  text-align: center;
}

.loader-box h2 {
  font-size: 22px;
  color: #38bdf8;
  margin-top: 10px;
}

.spinner {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 4px solid rgba(56, 189, 248, 0.2);
  border-top: 4px solid #38bdf8;
  animation: spin 0.8s linear infinite;
  margin: auto;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

/* Navbar */
.header {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(17, 24, 39, 0.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.navbar {
  max-width: 1150px;
  margin: auto;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 26px;
  font-weight: bold;
}

.logo span {
  color: #38bdf8;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 22px;
}

.nav-links li a {
  font-size: 16px;
  transition: 0.3s;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: #38bdf8;
}

.menu-btn {
  display: none;
  font-size: 26px;
  cursor: pointer;
}

/* Common Sections */
section {
  max-width: 1150px;
  margin: auto;
  padding: 70px 20px;
}

.section-title {
  text-align: center;
  font-size: 34px;
  margin-bottom: 35px;
  color: #38bdf8;
}

/* Hero */
.hero {
  display: flex;
  gap: 50px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.hero-content {
  flex: 1;
  min-width: 280px;
}

.badge {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 50px;
  font-size: 14px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  margin-bottom: 14px;
}

.hero-content h1 {
  font-size: 46px;
  margin-bottom: 10px;
}

.hero-content h1 span {
  color: #38bdf8;
}

.hero-content h2 {
  font-size: 24px;
  margin-bottom: 14px;
  color: #cbd5e1;
}

.hero-content h2 span {
  color: #38bdf8;
}

.hero-content p {
  color: #94a3b8;
  line-height: 1.7;
  margin-bottom: 14px;
  max-width: 560px;
}

/* ✅ Mini Info Chips */
.mini-info {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.mini-info span {
  font-size: 13px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  transition: 0.3s;
}

.mini-info span:hover {
  transform: translateY(-2px);
  background: rgba(56, 189, 248, 0.2);
  border-color: rgba(56, 189, 248, 0.5);
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  background: #38bdf8;
  padding: 12px 18px;
  border-radius: 12px;
  color: black;
  font-weight: bold;
  transition: 0.3s;
  display: inline-block;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: #0ea5e9;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid #38bdf8;
  color: #38bdf8;
}

.btn-outline:hover {
  background: #38bdf8;
  color: black;
}

.small-btn {
  padding: 10px 14px;
  font-size: 14px;
}

/* Social Icons */
.social-links {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.social {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.social img {
  width: 26px;
  height: 26px;
}

/* ✅ Instagram PNG fix (clean look) */
.social img[alt="Instagram"] {
  border-radius: 6px;
}

.social:hover {
  transform: translateY(-3px);
  background: rgba(56, 189, 248, 0.22);
  border-color: rgba(56, 189, 248, 0.65);
}

/* Hero Image */
.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 280px;
}

.hero-image img {
  width: 360px;
  max-width: 100%;
  border-radius: 50%;
  border: 4px solid rgba(56, 189, 248, 0.8);
  box-shadow: 0px 0px 30px rgba(56, 189, 248, 0.3);
}

/* About */
.about-content {
  text-align: center;
  max-width: 900px;
  margin: auto;
  color: #cbd5e1;
  line-height: 1.8;
}

.about-cards {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.about-card {
  padding: 18px;
  border-radius: 16px;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.18);
  transition: 0.3s;
}

.about-card:hover {
  transform: translateY(-6px);
  background: rgba(51, 65, 85, 0.7);
}

.about-card h3 {
  color: #38bdf8;
  margin-bottom: 10px;
}

/* Skills Progress */
.skills-bars {
  max-width: 750px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.skill-box {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.18);
  padding: 18px;
  border-radius: 16px;
}

.skill-title {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-weight: bold;
  color: #cbd5e1;
}

.progress {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.2);
  overflow: hidden;
}

.progress-bar {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: #38bdf8;
  transition: width 1.2s ease;
}

/* ✅ Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.service-card {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.18);
  padding: 22px;
  border-radius: 18px;
  transition: 0.3s;
}

.service-card:hover {
  transform: translateY(-8px);
  background: rgba(51, 65, 85, 0.75);
}

.service-card h3 {
  color: #38bdf8;
  margin-bottom: 10px;
}

.service-card p {
  color: #cbd5e1;
  line-height: 1.6;
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

/* ✅ Project Card Premium Animation (Glow + Scale) */
.project-card {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.18);
  padding: 22px;
  border-radius: 18px;
  transition: 0.35s ease;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.25), transparent 60%);
  opacity: 0;
  transition: 0.35s ease;
}

.project-card:hover {
  transform: translateY(-10px) scale(1.02);
  background: rgba(51, 65, 85, 0.75);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0px 0px 25px rgba(56, 189, 248, 0.2);
}

.project-card:hover::before {
  opacity: 1;
}

.project-card h3 {
  color: #38bdf8;
  margin-bottom: 10px;
  position: relative;
  z-index: 2;
}

.project-card p {
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 14px;
  position: relative;
  z-index: 2;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  position: relative;
  z-index: 2;
}

.tags span {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.28);
  transition: 0.3s ease;
}

.project-card:hover .tags span {
  background: rgba(56, 189, 248, 0.22);
  border-color: rgba(56, 189, 248, 0.5);
}

.project-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.project-card .btn {
  transition: 0.3s ease;
}

.project-card:hover .btn {
  transform: translateY(-2px);
}

/* ✅ Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.testimonial-card {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.18);
  padding: 22px;
  border-radius: 18px;
  transition: 0.3s;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  background: rgba(51, 65, 85, 0.75);
}

.testimonial-card p {
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 15px;
}

.testimonial-card h4 {
  color: #38bdf8;
  font-size: 14px;
  font-weight: bold;
}

/* Contact */
.contact-form {
  max-width: 650px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  outline: none;
  background: rgba(15, 23, 42, 0.65);
  color: white;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #94a3b8;
}

.footer {
  text-align: center;
  padding: 20px;
  background: rgba(17, 24, 39, 0.7);
  color: #94a3b8;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
}

/* Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: 0.7s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Back To Top Button */
#topBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 45px;
  height: 45px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  display: none;
  background: rgba(56, 189, 248, 0.22);
  color: #38bdf8;
  font-size: 20px;
  backdrop-filter: blur(10px);
  transition: 0.3s;
}

#topBtn:hover {
  transform: translateY(-4px);
  background: rgba(56, 189, 248, 0.35);
}

/* Responsive */
@media (max-width: 768px) {
  .menu-btn {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 65px;
    right: 15px;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    width: 230px;
    padding: 18px;
    gap: 14px;
    display: none;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.15);
  }

  .nav-links.active {
    display: flex;
  }

  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .social-links {
    justify-content: center;
  }

  .mini-info {
    justify-content: center;
  }
}
