/* Global Styles */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: 
  url('assets/leather.png') repeat;
  linear-gradient(135deg, #fcfbf7, #fcfbf7);
  scroll-behavior: smooth;
  opacity: 0;
  visibility: hidden;
  animation: fadeIn 0.8s ease-in forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    visibility: visible;
  }
}

a {
  color: #1a1a2e;
  text-decoration: none;
}

a:hover {
  color: #ff9900;
  text-decoration: none;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 999;
  background-color: #1a1a2e;
  padding: 0.8rem 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.navbar ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  padding: 0;
  margin: 0;
}

.navbar li {
  margin: 0;
}

.navbar a {
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.3rem;
  display: block;
  text-align: center;
}

.navbar a:hover {
  color: #ffde59;
}

/* About Section */
.about-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  padding: 5rem 2rem 3rem;
  background: linear-gradient(315deg, #fcfbf7, #fcfbf7);
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  animation: fadeIn 1s ease-in;
  max-width: 900px;
  margin: auto;
}

.about-section img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #d3dde5;
  box-shadow: 0 0 8px rgba(160, 170, 180, 0.15);
}

.about-section h1 {
  margin: 0;
  font-size: 2rem;
  color: #004e92;
}

.about-section p {
  margin-top: 0.5rem;
  line-height: 1.6;
}

.about-facts {
  margin-top: 1rem;
  padding-left: 1rem;
  list-style: none;
}

.about-facts li {
  margin: 0.3rem 0;
}

/* Education Section */
.edu-card {
  background: linear-gradient(315deg, #fcfbf7, #fcfbf7);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;

  
}

.edu-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}


.edu-subtitle {
  font-style: italic;
  color: #555;
  margin-bottom: 15px;
}

.edu-details {
  display: grid;
  gap: 15px;
  text-align: left;
  padding-left: 10px;
}

.edu-level h3 {
  margin: 5px 0;
  color: #1a237e;
  font-size: 1.1rem;
}

.edu-level p {
  margin: 0;
  color: #444;
  font-size: 0.95rem;
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.edu-card {
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  border-left: 5px solid #004e92;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.edu-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.edu-card h3 {
  font-size: 1.3rem;
  color: #004e92;
  margin-bottom: 0.3rem;
}

.edu-card span,
.edu-card time {
  display: block;
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}


/* Skills Section */
.skills-section {
  padding: 60px 20px;
  background: linear-gradient(315deg, #fcfbf7, #fcfbf7);
  text-align: center;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  max-width: 1000px;
  margin: 40px auto 0;
}

.skill-card {
  background: linear-gradient(315deg, #fcfbf7, #fcfbf7); /* same as edu-card */
  padding: 20px;
  border-radius: 12px;
  border-left: 3px solid #004e92; /* same blue line */
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.skill-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.skill-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1a237e;
  margin-bottom: 8px;
}

.skill-desc {
  font-size: 0.95rem;
  color: #555;
}

/* Portfolio Section */
.portfolio-section {
  padding: 60px 20px;
  background: linear-gradient(315deg, #fcfbf7, #fcfbf7);
  text-align: center;
}

.portfolio-section h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #002147;
}

.portfolio-section p {
  font-size: 1rem;
  color: #333;
  margin-bottom: 2rem;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.portfolio-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.portfolio-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background-color: #f9f9f9;
  padding: 10px;
  box-sizing: border-box;
  display: block;
  margin: 0 auto;
}



.portfolio-card p {
  margin: 1rem;
  font-size: 0.95rem;
  color: #333;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Contact Section */
#contact {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  max-width: 700px;
  margin: auto;
  text-align: center;
}

#contact h2 {
  color: #004e92;
}

#contact a {
  color: #007acc;
  text-decoration: none;
  display: block;
  margin: 0.5rem 0;
  font-weight: 500;
  transition: color 0.3s;
}

#contact a:hover {
  color: #ffde59;
}

.contact-card {
  padding: 30px;
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
  background: linear-gradient(315deg, #fcfbf7, #f5f6f7);
  border-left: 4px solid #6a7ba2; /* soft steel blue */
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-links-textual {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.social-links-textual a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  color: #1a237e;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.social-links-textual a img {
  width: 20px;
  height: 20px;
}

.social-links-textual a:hover {
  color: #ff9900;
}

.contact-info {
  font-size: 1rem;
  line-height: 1.6;
}

.contact-info a {
  color: #1a237e;
  font-weight: 500;
}

.social-links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.social-button {
  padding: 10px 18px;
  background-color: #1a237e;
  color: white;
  border-radius: 6px;
  font-weight: 500;
  transition: background 0.3s ease;
}

.social-button:hover {
  background-color: #3949ab;
}

.fade-in-card {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInCard 0.8s ease-out forwards;
}

@keyframes fadeInCard {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 768px) {
  .navbar ul {
    flex-direction: column;
    gap: 1rem;
  }

  .about-section,
  .skills-section,
  .portfolio-section,
  #contact {
    padding: 2rem 1rem;
  }

  .skill-grid,
  .portfolio-grid,
  .education-grid {
    grid-template-columns: 1fr;
  }

  .edu-card,
  .portfolio-card,
  .skill-card,
  .contact-card {
    padding: 1.2rem;
  }

  .about-section {
    flex-direction: column;
    text-align: center;
  }

  .about-section img {
    margin-bottom: 1rem;
  }

  .social-links-textual {
    align-items: center;
  }
}


/* Mobile Navbar Toggle */
.menu-toggle {
  display: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background-color: #1a1a2e;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    z-index: 1000;
  }

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

  .navbar ul {
    gap: 1rem;
  }
}
