
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  scroll-behavior: smooth;
}

body {
  background: #0b0f1a;
  color: white;
}

/* Loader */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0b0f1a;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loader h2 {
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); opacity: 0.4; }
}

/* Navbar */
header {
  position: sticky;
  top: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 50px;
}

.logo {
  font-size: 28px;
  font-weight: bold;
}

.logo span {
  color: #00ffd5;
}

.nav-links {
  display: flex;
  gap: 25px;
  list-style: none;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  transition: 0.3s;
}

.nav-links li a:hover {
  color: #00ffd5;
}

/* Buttons */
.btn {
  padding: 10px 18px;
  border: none;
  cursor: pointer;
  border-radius: 12px;
  font-weight: 600;
  transition: 0.3s;
  text-decoration: none;
  display: inline-block;
}

.btn.glow {
  background: #00ffd5;
  color: black;
  box-shadow: 0 0 20px #00ffd5;
}

.btn.glow:hover {
  transform: scale(1.05);
}

.btn.outline {
  background: transparent;
  border: 2px solid #00ffd5;
  color: #00ffd5;
}

.btn.outline:hover {
  background: #00ffd5;
  color: black;
}

.btn.small {
  padding: 8px 14px;
  font-size: 14px;
}

/* Hero */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 80px 50px;
  gap: 40px;
}

.hero-text h1 {
  font-size: 48px;
  margin-bottom: 10px;
}

.hero-text span {
  color: #00ffd5;
}

.hero-text p {
  margin-top: 15px;
  line-height: 1.6;
  opacity: 0.8;
  max-width: 520px;
}

.hero-btns {
  margin-top: 20px;
  display: flex;
  gap: 15px;
}

/* Phone box */
.phone-box {
  margin-top: 20px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: fit-content;
}

.phone-btns {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

/* Hero Image */
.hero-image img {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #00ffd5;
  box-shadow: 0 0 30px rgba(0, 255, 213, 0.4);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0); }
}

/* Sections */
section {
  padding: 80px 50px;
}

.section-title {
  text-align: center;
  font-size: 34px;
  margin-bottom: 35px;
  color: #00ffd5;
}

/* About */
.about-box {
  max-width: 800px;
  margin: auto;
  padding: 25px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  line-height: 1.8;
}

/* Skills */
.skills-container {
  max-width: 700px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.skill p {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
}

.bar {
  width: 100%;
  height: 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.fill {
  height: 100%;
  width: 0%;
  border-radius: 10px;
  transition: width 2s ease;
}

.fill.html { background: #00ffd5; }
.fill.css { background: #00b7ff; }
.fill.js { background: #ffe600; }
.fill.py { background: #ff4f9a; }

/* Projects */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.project-card {
  padding: 25px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: 0.3s;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: #00ffd5;
}

/* Contact */
.contact-info {
  text-align: center;
  margin-bottom: 18px;
  opacity: 0.9;
}

.contact-form {
  max-width: 600px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 14px;
  border-radius: 14px;
  border: none;
  outline: none;
  background: rgba(255, 255, 255, 0.06);
  color: white;
  font-size: 15px;
}

textarea {
  height: 130px;
  resize: none;
}

/* Footer */
footer {
  padding: 20px;
  text-align: center;
  opacity: 0.6;
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }

  .nav-links {
    display: none;
  }

  .phone-box {
    margin: 20px auto 0;
  }
}
