* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: #f7f7fb;
  color: #222;
}

h1, h2, h3 {
  font-family: 'Poppins', sans-serif;
}


/* =========================
   NAVBAR SECTION
========================= */
.navbar {
  background: #ffffff;
  padding: 16px 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

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

.logo {
  font-size: 1.2rem;
  font-weight: 700;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #8b84ff;
}

/* Active (strong + underline) */
.nav-links a.active {
  color: #6c63ff;
  font-weight: 600;
  position: relative;
}

/* Underline for active page */
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: #6c63ff;
  border-radius: 2px;
}

/* =========================
   Hero SECTION
========================= */
.hero {
  padding: 100px 20px;
  display: flex;
  justify-content: center;
  background: linear-gradient(180deg, #f7f7fb 0%, #eef0ff 100%);
}

.hero-box {
  background: #ffffff;
  padding: 40px 50px;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  text-align: center;
  max-width: 700px;
}

.hero-box h1 {
  margin-top: 0;
  font-size: 2.8rem;
}

.hero-box p {
  color: #555;
  margin: 16px 0 24px;
  line-height: 1.7;
}

.btn {
  display: inline-block;
  padding: 12px 20px;
  background: #6c63ff;
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
}

.btn:hover {
  background: #574fe0;
}

/* =========================
   ABOUT SECTION
========================= */
.about-section {
  padding: 80px 20px;
}

.about-container {
  max-width: 1000px;
  margin: 0 auto;
}

.about-header {
  margin-bottom: 28px;
}

.section-tag {
  margin: 0 0 10px;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #6c63ff;
}

.about-header h2 {
  margin: 0 0 12px;
  font-size: 2.2rem;
}

.about-intro {
  max-width: 700px;
  margin: 0;
  color: #555;
  line-height: 1.7;
}

.about-switcher {
  margin-bottom: 24px;
}

.about-switcher label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.about-switcher select {
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 1rem;
  background: #fff;
  min-width: 240px;
}

.about-card {
  background: #fff;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.about-content {
  display: none;
}

.about-content.active {
  display: block;
}

.about-content h3 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 1.4rem;
}

.about-content p {
  color: #555;
  line-height: 1.8;
  margin-bottom: 18px;
}

.about-content ul {
  padding-left: 20px;
  margin: 0;
  line-height: 1.8;
  color: #444;
}

.about-content li {
  margin-bottom: 8px;
}

@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 12px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .about-header h2 {
    font-size: 1.8rem;
  }

  .about-switcher select {
    width: 100%;
    min-width: 0;
  }
}

/* =========================
   PROJECTS SECTION
========================= */
.projects-preview {
  padding: 80px 20px;
  background: #eef0ff;
}

.projects-container {
  max-width: 1100px;
  margin: 0 auto;
}

.projects-header {
  margin-bottom: 32px;
}

.projects-header h2 {
  margin: 10px 0 12px;
  font-size: 2.2rem;
  color: #222;
}

.projects-intro {
  max-width: 700px;
  margin: 0;
  color: #555;
  line-height: 1.7;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  background: #fff;
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.project-card h3 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 1.25rem;
  color: #222;
}

.project-card p {
  color: #555;
  line-height: 1.7;
  margin-bottom: 18px;
}

.project-card ul {
  margin: 0;
  padding-left: 20px;
  color: #444;
  line-height: 1.8;
}

.projects-actions {
  margin-top: 32px;
  text-align: center;
}

@media (max-width: 900px) {
  .project-grid {
    grid-template-columns: 1fr;
  }

  .projects-header h2 {
    font-size: 1.8rem;
  }
}

/* =========================
   RESUME SECTION
========================= */
.resume {
  padding: 120px 20px 80px;
  background: linear-gradient(180deg, #f7f7fb 0%, #eef0ff 100%);
}

.resume-container {
  max-width: 850px;
  margin: 0 auto;
  background: #ffffff;
  padding: 50px;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.resume h1 {
  font-size: 2.6rem;
  margin-bottom: 10px;
  text-align: center;
  color: #222;
  position: relative;
}

.resume h1::after {
  content: "";
  display: block;
  width: 70px;
  height: 3px;
  margin: 10px auto 0;
  background: #6c63ff; 
  border-radius: 2px;
}

.resume .contact {
  color: #555;
  margin-bottom: 30px;
  text-align: center;
  font-size: 1rem;
}

.resume hr {
  border: none;
  height: 1px;
  background: #e5e7eb;
  margin: 30px 0;
}


.resume h2 {
  margin-top: 32px;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid #e5e7eb;
  color: #6c63ff; 
  font-size: 1.4rem;
}

.resume p {
  color: #444;
  line-height: 1.7;
  margin-bottom: 14px;
}

.resume ul {
  margin-top: 6px;
  margin-bottom: 16px;
  padding-left: 20px;
}

.resume li {
  margin-bottom: 6px;
  line-height: 1.6;
}

.resume-download {
  margin-top: 40px;
  text-align: center;
}

.resume-download .btn {
  background: #6c63ff; 
}

.resume-download .btn:hover {
  background: #574fe0;
}

/* Mobile */
@media (max-width: 768px) {
  .resume {
    padding: 100px 15px 60px;
  }

  .resume-container {
    padding: 30px 20px;
  }
}


/* =========================
   CONTACT SECTION
========================= */

.contact-box {
    background: white;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    max-width: 600px;
    margin: 40px auto 0;
    text-align: center;
    padding: 40px;
    border-radius: 12px;
}

.contact {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #111;
}

.contact-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-links li {
    margin: 15px 0;
}

.contact-btn {
    display: inline-block;
    width: 280px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    background: #1e3a8a;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    transition: all 0.25s ease;
}

.contact-btn:hover {
    transform: translateY(-2px);
    background: #1d4ed8;
}

.contact-section {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-header {
    margin-bottom: 30px;
}

.contact-header h1 {
    margin-bottom: 10px;
}

.contact-header p {
    max-width: 600px;
    margin: 0 auto;
}

.contact-box {
    background: white;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 40px;
    border-radius: 12px;
}


/* =========================
   PROJECTS SECTION
========================= */
.projects-page {
  padding: 130px 20px 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.projects-hero {
  text-align: center;
  margin-bottom: 50px;
}

.projects-hero h1 {
  font-size: 42px;
  margin-bottom: 15px;
  font-family: 'Poppins', sans-serif;
  color: #1e2a38;
}

.projects-hero p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.7;
  color: #555;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.project-card {
  background: white;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.12);
}

.project-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.project-content {
  padding: 24px;
}

.project-content h2 {
  font-size: 24px;
  margin-bottom: 12px;
  font-family: 'Poppins', sans-serif;
  color: #1e2a38;
}

.project-content p {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 20px;
}

.project-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.project-btn {
  display: inline-block;
  padding: 10px 18px;
  background: #dbeafe;
  color: #1e3a8a;
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.project-btn:hover {
  background: #bfdbfe;
  transform: translateY(-2px);
}

/* Tablet */
@media (max-width: 992px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-card:nth-child(4),
  .project-card:nth-child(5) {
    grid-column: auto;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .projects-page {
    padding: 110px 16px 50px;
  }

  .projects-hero h1 {
    font-size: 34px;
  }

  .projects-hero p {
    font-size: 16px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .project-img {
    height: 200px;
  }

  .project-content h2 {
    font-size: 22px;
  }
}

/* =========================
   INDIVIDUAL PROJECTS SECTION
========================= */
/* Individual Project Pages */
.project-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 130px 20px 60px;
}

.project-hero {
  text-align: center;
  margin-bottom: 40px;
}

.project-hero h1 {
  font-size: 40px;
  margin-bottom: 12px;
  font-family: 'Poppins', sans-serif;
  color: #1e2a38;
}

.project-hero p {
  font-size: 18px;
  color: #555;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto;
}

.project-image-section {
  margin-bottom: 35px;
}

.project-image-wrapper {
  text-align: center;
}

.project-detail-img {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.project-detail-img-small{
  width: 100%;
  max-width: 500px;
  max-height: 400px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.project-details {
  background: white;
  padding: 35px;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.project-details h2 {
  margin-top: 28px;
  margin-bottom: 10px;
  font-size: 24px;
  font-family: 'Poppins', sans-serif;
  color: #1e2a38;
}

.project-details h2:first-child {
  margin-top: 0;
}

.project-details p {
  font-size: 16px;
  color: #555;
  line-height: 1.7;
  margin-bottom: 16px;
}

.project-details ul {
  padding-left: 22px;
  margin-bottom: 16px;
}

.project-details li {
  margin-bottom: 10px;
  color: #555;
  line-height: 1.6;
}

.project-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.secondary-btn {
  background: #f1f5f9;
  color: #1e2a38;
}

.secondary-btn:hover {
  background: #e2e8f0;
}

.project-image-wrapper {
  text-align: center;
}

.project-image-caption {
  margin-top: 10px;
  color: #666;
  font-size: 14px;
}

/* Tablet */
@media (max-width: 768px) {
  .project-page {
    padding: 110px 16px 50px;
  }

  .project-hero h1 {
    font-size: 32px;
  }

  .project-hero p {
    font-size: 16px;
  }

  .project-details {
    padding: 24px;
  }

  .project-details h2 {
    font-size: 22px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .project-buttons {
    flex-direction: column;
  }

  .project-buttons .project-btn {
    width: 100%;
    text-align: center;
  }
}