@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}


body, html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  background-color: #0a192f;
  color: white;
  text-align: center; /* ✅ sab text center */
}

a { text-decoration: none; color: inherit; }
li { list-style: none; }
img { max-width: 100%; height: auto; }

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  background: #0f172b;
  padding: 0 20px;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.navbar .logo img { width: 140px; }

nav {
  display: flex;
  align-items: center;
  gap: 50px;
}

nav ul {
  display: flex;
  gap: 30px;
}

nav a {
  font-weight: 500;
  transition: 0.3s;
}
nav a:hover { color: #facc15; }

.g-link button {
  background: linear-gradient(to right, #facc15, #f97316);
  color: #fff;
  padding: 10px 18px;
  border-radius: 25px;
  cursor: pointer;
  transition: 0.2s;
}
.g-link button:hover { scale: 1.1; }

.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: #fff;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 20px 40px; /* ✅ top gap nav ke liye */
}

.container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px; /* ✅ thoda gap */
  max-width: 1200px;
  margin: auto;
  flex-wrap: wrap;
}

.content h1 {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: bold;
  line-height: 1.3;
}
.content h1 span { color: #facc15; }

.subtitle {
  font-size: clamp(18px, 2vw, 22px);
  color: #f97316;
  font-weight: 600;
  margin: 12px 0;
  min-height: 28px;
}

.description {
  margin-top: 20px;
  line-height: 1.6;
  color: #d1d5db;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-block;
  margin-top: 25px;
  padding: 12px 28px;
  border: 2px solid #facc15;
  border-radius: 30px;
  color: #facc15;
  font-weight: bold;
  transition: 0.3s;
}
.btn:hover { background: #facc15; color: #000; }

.image {
  display: flex;
  justify-content: center;
}
.image img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid #0a192f;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

/* About */
.about { padding: 80px 20px; }
.about h1 {
  color: #facc15;
  margin-bottom: 40px;
  font-size: clamp(24px, 4vw, 32px);
}
.content-ab {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.about .left-side, .skills {
  flex: 1;
  min-width: 280px;
}
.about .left-side p { margin-bottom: 20px; width: 70%; }
.about .left-side span { color: #f97316; font-weight: bold; }

.skills h3 { color: #facc15; margin-bottom: 20px; }
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px,1fr));
  gap: 20px;
}
.skill { transition: 0.3s; }
.skill:hover { transform: scale(1.05); }
.skill img { width: 60px; margin-bottom: 8px; }

.projects-section { padding: 80px 20px; }
.projects-section h2 { color: #ffb400; font-size: clamp(24px,4vw,32px); margin-bottom: 10px; }
.projects-section p {  margin: 0 auto 40px; color: #ccc; line-height: 1.7; }

.project-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.project-details, .project-image {
  flex: 1;
  min-width: 280px;
}
.project-image img { width: 700px;border-radius: 12px; box-shadow: 0 0 15px rgba(255,180,0,0.5); }

.arrows { margin-top: 30px; display: flex; justify-content: center; gap: 12px; }
.arrows button {
  width: 45px; height: 45px;
  border: 2px solid #fff; border-radius: 50%;
  background: none; color: #fff;
  font-size: 18px; cursor: pointer; transition: 0.3s;
  padding: 1px;
}
.arrows button:hover { background: #ffb400; color: #000; }

/* Contact */
.heading { margin-bottom: 30px; }
.heading h1 { color: #ffcc00; font-size: clamp(24px,4vw,32px); }

.container.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1100px;
  margin: auto;
  padding: 40px 20px;
  justify-content: center;
}
.contact-text, form { flex: 1; min-width: 280px; }

.contact-info div { margin-bottom: 10px; color: #ccc; display: flex; justify-content: center; gap: 10px; }
.contact-info i { color: #ffcc00; }

input, textarea {
  width: 100%; padding: 12px;
  border: 2px solid #1a2b3c; border-radius: 6px;
  background: #162635; color: #fff;
  text-align: center;
}
button {
  background: #ffcc00; color: #000;
  padding: 12px 20px; border-radius: 6px;
  font-weight: bold; cursor: pointer; transition: 0.3s;
}
button:hover { background: #e6b800; }

/* ✅ Responsive Fix */
@media (max-width: 992px) {
  nav { display: none; flex-direction: column; background: #0f172b; position: absolute; top: 70px; right: 0; width: 100%; padding: 20px 0; }
  nav ul { flex-direction: column; gap: 20px; }
  nav.show { display: flex; }
  .menu-toggle { display: block; }

  .container { flex-direction: column-reverse; gap: 30px; }
  input {
    margin-bottom: 10px;
  }
}
