body {
  margin: 0;
  /* font-family: "Segoe UI", Arial, sans-serif; */
  background: #f3f4f6;
  color: #222;
  padding-top: 56px;
  font-family: 'Inter', sans-serif;
}


.logo, h2, .farhankhan {
  font-family: 'Syne', sans-serif;
}

#about,
#skills,
#projects,
#resume,
#contact {
  scroll-margin-top: 56px;
}

#hero {
  scroll-margin-top: 100px;
}

.hero-sub {
  font-size: 1rem;
  color: #e0e0e0;
  /* color: #ffffff; */
  max-width: 480px;
  margin: 0 auto 2rem;
  line-height: 1.7;
  justify-content: center;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
  background: #30336b;
  color: #fff;
  padding: 12px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
}

html {
  scroll-behavior: smooth;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1050px;
  margin: 0 auto;
  padding: 0 18px;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style-type: none;
}

.nav-links li a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s;
}

.nav-links li a:hover {
  color: #f9ca24;
}

.menu-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
}

#hero {
  background: linear-gradient(90deg, #686de0 60%, #30336b 100%);
  color: #fff;
  text-align: center;
  padding: 80px 20px 70px 20px;
}

.hero-content h1 {
  font-size: 2.8rem;
}

.hero-content p {
  font-size: 1.2rem;
  margin: 12px 0 20px 0;
}

.btn {
  display: inline-block;
  padding: 10px 28px;
  background: #f9ca24;
  color: #30336b;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.btn:hover {
  background: #fff;
}

section {
  max-width: 1000px;
  margin: 40px auto;
  background: #fff;
  padding: 34px 24px 30px 24px;
  border-radius: 8px;
  box-shadow: 0 6px 36px rgba(50, 50, 100, 0.07);
}

h2 {
  color: #30336b;
  margin-bottom: 14px;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  padding: 0;
}

.skills-list li {
  background: #f9ca24;
  color: #30336b;
  font-weight: 500;
  border-radius: 4px;
  padding: 8px 17px;
  margin-bottom: 8px;
}

.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 15px;
  margin-top: 18px;
}

.project-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #686de0;
  color: #fff;
  padding: 19px 11px;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(60, 60, 100, 0.13);
  transition: transform 0.18s;
  min-height: 260px;
}

.project-card:hover {
  transform: translateY(-4px) scale(1.03);
  background: #30336b;
}

.project-btn {
  margin-top: 20px;
  align-self: center;
  padding: 8px 22px;
  background: #f9ca24;
  color: #30336b;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
  cursor: pointer;
  display: inline-block;
}

.project-btn:hover {
  background: #fff;
}

iframe {
  border: none;
  border-radius: 5px;
  margin-top: 17px;
}

footer {
  background: #30336b;
  color: #fff;
  text-align: center;
  padding: 14px 0;
  border-radius: 0 0 8px 8px;
  font-size: 1rem;
  margin-top: -12px;
}

footer a {
    color: white;
}

footer p {
  font-size: 0.9rem;
  /* letter-spacing: 0.px; */
  color: #dcdde1;
  line-height: 1.5;
}

.social {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin: 30px 0 5px 0;
}

.social a {
  background: #0b0c10;
  color: #6ea8fe;
  font-size: 30px;
  width: 54px;
  height: 54px;
  border-radius: 60%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.social a:hover {
  background: #6ea8fe;
  color: #0b0c10;
}

/* ------------------------------------- */
.icons {
  display: flex;
  gap: 7px;
  /* justify-content: center; */
  margin: 30px 0 5px 0;
}

.icons a {
  background: #0b0c10;
  color: #6ea8fe;
  font-size: 25px;
  width: 35px;
  height: 35px;
  border-radius: 60%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.icons a:hover {
  background: #6ea8fe;
  color: #0b0c10;
}

/* ── Contact Section ── */
.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  /* letter-spacing: 0.1em; */
  text-transform: uppercase;
  color: #999;
  margin-bottom: 1.25rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 16px;
}

.contact-info{
  padding: 1.5rem;
  background: #1a1a1a;
  border-radius: 10px;
  color: #fff;
  
}
/* .hover a:hover { color: #fff; } */

/* .contact-info h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1.25rem;
}

.contact-info p {
  font-size: 0.875rem !important;
  color: #aaa !important;
  font-weight: 400 !important;
  margin-bottom: 10px !important;
}

.contact-info a {
  color: #aaa;
  text-decoration: none;
}

.contact-info a:hover {
  color: #fff;
} */

.contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: #aaa;
  margin-bottom: 10px;
}

.contact-row a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.2s;
}

.contact-row a:hover {
  color: #fff;
}

.contact-form-card {
  padding: 1.5rem;
  background: #fafaf8;
  border: 1px solid #e0e0d8;
  border-radius: 10px;
}

.contact-form-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 1.25rem;
}

.form-field {
  margin-bottom: 0.875rem;
}

.form-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: #666;
  margin-bottom: 5px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 9px 12px;
  font-size: 0.875rem;
  border: 1px solid #e0e0d8;
  border-radius: 8px;
  background: #fff;
  color: #1a1a1a;
  outline: none;
  transition: border-color 0.2s;
  font-family: "Segoe UI", Arial, sans-serif;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: #aaa;
}

.form-field textarea {
  resize: vertical;
  min-height: 90px;
}

.contact-form-card button[type="submit"] {
  width: 100%;
  padding: 10px;
  background: #1a1a1a;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
  font-family: "Segoe UI", Arial, sans-serif;
}

.contact-form-card button[type="submit"]:hover {
  opacity: 0.8;
}

/* ── Mobile ── */
@media (max-width: 700px) {
  .nav-links {
    flex-direction: column;
    top: 60px;
    left: 0;
    background: #30336b;
    position: absolute;
    width: 100%;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  section {
    margin: 22px 5px;
    padding: 16px 5px 12px 5px;
  }

  .projects-container {
    grid-template-columns: 1fr;
  }

  #hero {
    padding: 45px 10px 50px 10px;
  }

  footer p {
    font-size: 0.85rem;
    text-align: center;
    padding: 0 10px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

#about {
  font-size: 22px;
  /* font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; */
}

#aichat, p {
  letter-spacing: 1px;
  line-height: 1.4;
}