* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: #050505;
  color: #fff;
  overflow-x: hidden;
}

/* ================= SCROLL PROGRESS ================= */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(to right, #a855f7, #7c3aed);
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ================= PRELOADER ================= */
#preloader {
  position: fixed;
  inset: 0;
  background: #050505;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-inner {
  text-align: center;
}

.preloader-logo {
  font-size: 60px;
  font-weight: 700;
  color: #a855f7;
  text-shadow: 0 0 30px rgba(168,85,247,0.6);
  margin-bottom: 20px;
  animation: preloader-pulse 1s ease-in-out infinite;
}

@keyframes preloader-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.7; }
}

.preloader-bar {
  width: 150px;
  height: 3px;
  background: rgba(168,85,247,0.2);
  border-radius: 3px;
  margin: 0 auto;
  overflow: hidden;
}

.preloader-bar::after {
  content: "";
  display: block;
  height: 100%;
  width: 0%;
  background: #a855f7;
  border-radius: 3px;
  animation: preloader-fill 1.5s ease forwards;
}

@keyframes preloader-fill {
  to { width: 100%; }
}

/* ================= NAVBAR ================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 8%;
  background: #000;
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 35px;
  list-style: none;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  color: #aaa;
  font-size: 15px;
  transition: 0.3s;
}

.nav-links a:hover { color: #fff; }

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0%;
  height: 2px;
  background: #a855f7;
  transition: 0.3s;
}

.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: #a855f7; }
.nav-links a.active::after { width: 100%; }

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================= HERO ================= */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 70px;
  overflow: hidden;
  background: radial-gradient(ellipse at 20% 50%, rgba(168,85,247,0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(124,58,237,0.12) 0%, transparent 50%),
              #050505;
}

.hero::before {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  background: #a855f7;
  filter: blur(150px);
  opacity: 0.2;
  top: 20%;
  left: 10%;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  background: #7c3aed;
  filter: blur(120px);
  opacity: 0.15;
  bottom: 10%;
  right: 10%;
  pointer-events: none;
}

.hero-content {
  max-width: 700px;
  margin: auto;
  position: relative;
  z-index: 2;
  padding: 0 20px;
}

.hero h1 {
  font-size: 60px;
  line-height: 1.2;
  min-height: 80px;
}

.hero span {
  color: #a855f7;
  text-shadow: 0 0 8px rgba(168,85,247,0.6), 0 0 18px rgba(168,85,247,0.4);
}

.cursor {
  display: inline-block;
  color: #a855f7;
  animation: blink 0.8s infinite;
  font-weight: 300;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero p {
  color: #ccc;
  margin-top: 15px;
  font-size: 15px;
  line-height: 1.6;
}

/* ================= OPEN TO WORK BADGE ================= */
.open-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(168,85,247,0.1);
  border: 1px solid rgba(168,85,247,0.4);
  color: #a855f7;
  font-size: 13px;
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 18px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a855f7;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.4); }
}

/* ================= HERO BUTTONS ================= */
.hero-btns {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
}

.btn-primary {
  background: #a855f7;
  color: #fff;
  padding: 12px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: 0.3s;
  box-shadow: 0 0 20px rgba(168,85,247,0.4);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: #9333ea;
  box-shadow: 0 0 30px rgba(168,85,247,0.7);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: #a855f7;
  padding: 12px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid #a855f7;
  transition: 0.3s;
}

.btn-outline:hover {
  background: #a855f7;
  color: #fff;
  transform: translateY(-2px);
}

/* ================= SECTION ================= */
.section {
  padding: 100px 20px;
  max-width: 1100px;
  margin: auto;
}

.section h2 {
  color: #a855f7;
  margin-bottom: 30px;
  font-size: 28px;
}

/* ================= GRIDS ================= */
.about-grid,
.projects,
.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

/* ================= CARD ================= */
.card {
  background: rgba(20,20,20,0.6);
  padding: 20px;
  border-radius: 15px;
  backdrop-filter: blur(15px);
  position: relative;
  overflow: hidden;
  transition: 0.4s;
  border: 1px solid rgba(255,255,255,0.05);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(168,85,247,0.5), transparent);
  transition: 0.6s;
}

.card:hover::before { left: 100%; }

.card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow:
    0 0 20px rgba(168,85,247,0.4),
    0 0 40px rgba(168,85,247,0.3),
    0 0 60px rgba(168,85,247,0.2);
  border-color: #a855f7;
}

.card h3 { color: #a855f7; margin-bottom: 10px; }
.card p { color: #ccc; font-size: 14px; line-height: 1.6; }
.card img { width: 100%; border-radius: 10px; margin-bottom: 10px; }

/* ================= TAGS ================= */
.tags { margin-top: 10px; }

.tags span {
  border: 1px solid #a855f7;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 12px;
  margin-right: 5px;
  display: inline-block;
  margin-top: 5px;
}

/* ================= LINKS ================= */
.links { margin-top: 12px; }

.links a {
  margin-right: 10px;
  text-decoration: none;
  color: #a855f7;
  font-size: 14px;
}

.links a:hover { text-decoration: underline; }

/* ================= SKILLS ================= */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.skill-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(20,20,20,0.8);
  border: 1px solid rgba(168,85,247,0.3);
  color: #ccc;
  padding: 10px 18px;
  border-radius: 30px;
  font-size: 14px;
  transition: 0.3s;
  cursor: default;
}

.skill-badge i { color: #a855f7; font-size: 16px; }

.skill-badge:hover {
  border-color: #a855f7;
  color: #fff;
  background: rgba(168,85,247,0.1);
  box-shadow: 0 0 15px rgba(168,85,247,0.2);
  transform: translateY(-3px);
}

/* ================= REVIEWS ================= */
.review {
  background: rgba(20,20,20,0.6);
  padding: 20px;
  border-radius: 15px;
  backdrop-filter: blur(15px);
  transition: 0.4s;
}

.review:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 25px rgba(168,85,247,0.2);
}

.review h4 { color: #a855f7; margin-top: 10px; }
.review p { color: #ccc; }

.review-project {
  display: inline-block;
  font-size: 12px;
  color: #a855f7;
  background: rgba(168,85,247,0.1);
  border: 1px solid rgba(168,85,247,0.3);
  padding: 3px 10px;
  border-radius: 20px;
  margin-top: 6px;
}

.stars { color: gold; margin-top: 5px; }

/* ================= CONTACT FORM ================= */
.contact-wrapper {
  background: rgba(20,20,20,0.6);
  border: 1px solid rgba(168,85,247,0.2);
  border-radius: 20px;
  padding: 40px;
  backdrop-filter: blur(15px);
  max-width: 750px;
  margin: 0 auto;
}

.contact-sub {
  color: #aaa;
  margin-bottom: 30px;
  font-size: 15px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 13px;
  color: #aaa;
}

.form-group input,
.form-group textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(168,85,247,0.3);
  border-radius: 10px;
  padding: 12px 16px;
  color: #fff;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  transition: 0.3s;
  outline: none;
  resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #a855f7;
  background: rgba(168,85,247,0.05);
  box-shadow: 0 0 15px rgba(168,85,247,0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #555;
}

.submit-btn {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Poppins', sans-serif;
}

/* ================= FOOTER ================= */
.footer {
  background: #0a0a0a;
  padding: 50px 20px 0;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
  padding-bottom: 40px;
}

.footer-item {
  display: flex;
  gap: 10px;
  color: #ccc;
  margin-bottom: 8px;
}

.footer-right h3 { color: #a855f7; margin-bottom: 10px; }
.footer-right p { color: #aaa; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  text-align: center;
  padding: 20px;
  color: #555;
  font-size: 13px;
}

/* ================= SOCIALS ================= */
.socials {
  margin-top: 15px;
  display: flex;
  gap: 10px;
}

.socials a {
  background: #111;
  padding: 10px;
  border-radius: 8px;
  color: #fff;
  font-size: 16px;
  transition: 0.3s;
  border: 1px solid rgba(255,255,255,0.05);
}

.socials a:nth-child(1):hover {
  background: #333;
  box-shadow: 0 0 15px rgba(255,255,255,0.2);
}

.socials a:nth-child(2):hover {
  background: #0077b5;
  box-shadow: 0 0 15px rgba(0,119,181,0.4);
}

.socials a:nth-child(3):hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  box-shadow: 0 0 15px rgba(220,39,67,0.4);
}

.socials a:nth-child(4):hover {
  background: #a855f7;
  box-shadow: 0 0 15px rgba(168,85,247,0.4);
}

/* ================= MOBILE RESPONSIVE ================= */
@media (max-width: 768px) {

  /* NAV */
  .hamburger { display: flex; }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: #000;
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  .nav-links.open { max-height: 400px; }

  .nav-links li {
    width: 100%;
    text-align: center;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  /* HERO */
  .hero { height: auto; padding: 60px 20px; margin-top: 70px; }
  .hero h1 { font-size: 34px; min-height: 50px; }
  .hero p { font-size: 14px; }

  /* BUTTONS */
  .hero-btns { flex-direction: column; align-items: center; }
  .btn-primary, .btn-outline { width: 100%; text-align: center; }

  /* GRIDS */
  .about-grid,
  .projects,
  .reviews {
    grid-template-columns: 1fr;
  }

  /* SECTION */
  .section { padding: 60px 16px; }

  /* CONTACT FORM */
  .contact-wrapper { padding: 24px 16px; }
  .form-row { grid-template-columns: 1fr; }
  .submit-btn { width: 100%; justify-content: center; }

  /* FOOTER */
  .footer-container { flex-direction: column; }

  /* SKILLS */
  .skills-grid { gap: 8px; }
  .skill-badge { font-size: 13px; padding: 8px 14px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 28px; }
  .open-badge { font-size: 11px; padding: 5px 12px; }
  .section h2 { font-size: 22px; }
}

html { scroll-behavior: smooth; }