/* Reset & Basic Setup */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
}

/* Navbar */
.navbar {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: #fff;
  padding: 15px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(0, 123, 255, 0.3);
}

.nav-content {
  width: 90%;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  background: linear-gradient(45deg, #fff, #e3f2fd);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.2);
}

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

.nav-links a {
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 8px 16px;
  border-radius: 20px;
  position: relative;
}

.nav-links a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(255, 255, 255, 0.2);
}

/* Hamburger (for responsiveness) */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  background: #fff;
  height: 3px;
  width: 25px;
}

/* Section */
.section {
  padding: 100px 20px 60px;
}

.container {
  max-width: 1200px;
  margin: auto;
}

/* Hero Section */
#home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}

.hero-content {
  text-align: center;
  padding-top: 0;
  animation: fadeInUp 1s ease-out;
  max-width: 1000px;
}

.hero-content h1 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 30px;
  line-height: 1.2;
}

.subtitle {
  font-size: 1.8rem;
  margin-bottom: 25px;
  font-weight: 500;
  color: #555;
}

.description {
  margin-bottom: 40px;
  font-size: 1.4rem;
  line-height: 1.6;
  color: #666;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.skill-tag {
  background-color: #e0e0e0;
  padding: 12px 20px;
  border-radius: 25px;
  font-size: 1.1rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.skill-tag:hover {
  background-color: #007bff;
  color: white;
  transform: translateY(-2px);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s ease-out;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s ease-out;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.6s ease-out;
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

.highlight {
  color: #007bff;
  background: linear-gradient(45deg, #007bff, #0056b3);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Projects */
h2 {
  text-align: center;
  margin-bottom: 40px;
}

.project-categories {
  display: flex;
  flex-direction: row;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.project-category {
  flex: 1;
  min-width: 300px;
  max-width: 350px;
}

.project-card {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
  transform: translateY(0);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #007bff;
  background: linear-gradient(135deg, #007bff, #0056b3);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

.stats {
  margin-top: 10px;
}

.stat-item span {
  display: block;
  font-weight: bold;
}

/* GitHub Button */
.projects-cta {
  margin-top: 50px; /* <- This line was added to give more space above the button */
  text-align: center;
}

.github-btn {
  display: inline-block;
  padding: 14px 28px;
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.github-btn:hover {
  background: linear-gradient(135deg, #0056b3, #004085);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
}

/* Resume */
.resume-categories {
  display: flex;
  flex-direction: row;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.resume-categories .project-category {
  flex: 1;
  min-width: 300px;
  max-width: 450px;
}

.education-card,
.skills-card {
  background-color: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
  transform: translateY(0);
  border: 1px solid #f0f0f0;
}

.education-card:hover,
.skills-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  border-color: #007bff;
}

.education-card .card-icon,
.skills-card .card-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: #007bff;
}

.education-card h4 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.education-card p {
  color: #666;
  margin-bottom: 15px;
  line-height: 1.5;
}

.stats {
  margin-top: auto;
  padding-top: 15px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.stat-item i {
  color: #007bff;
  width: 20px;
}

.stat-item span {
  font-weight: 500;
  color: #555;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 15px;
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
}

.skill-item:hover {
  background-color: #e3f2fd;
  transform: translateY(-2px);
  border-color: #007bff;
}

.skill-item i {
  font-size: 1.5rem;
  color: #007bff;
  width: 24px;
  text-align: center;
}

.skill-item span {
  font-weight: 500;
  color: #333;
  font-size: 1rem;
}

.resume-cta {
  margin-top: 50px;
  text-align: center;
}

/* Contact */
.contact-content {
  display: flex;
  flex-direction: row;
  gap: 40px;
  align-items: flex-start;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-form {
  flex: 2;
  background-color: #fff;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid #f0f0f0;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 16px 20px;
  margin-bottom: 20px;
  border: 2px solid #e1e5e9;
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  background-color: #fafbfc;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #007bff;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
  transform: translateY(-2px);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form button {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: #fff;
  padding: 16px 32px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.contact-form button:hover {
  background: linear-gradient(135deg, #0056b3, #004085);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
}

.contact-form button:active {
  transform: translateY(0);
}

.contact-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  font-size: 1.8rem;
  color: #333;
  background-color: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
}

.social-links a:hover {
  color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.social-links a[href*="linkedin"]:hover {
  background-color: #0077b5;
}

.social-links a[href*="github"]:hover {
  background-color: #333;
}

.social-links a[href*="twitter"]:hover,
.social-links a[href*="x.com"]:hover {
  background-color: #1da1f2;
}

/* Footer */
footer {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: #fff;
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
  box-shadow: 0 -2px 10px rgba(0, 123, 255, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .project-categories,
  .resume-categories {
    flex-direction: column;
  }

  .project-category,
  .resume-categories .project-category {
    min-width: auto;
    max-width: none;
  }

  /* Hero responsive */
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .subtitle {
    font-size: 1.3rem;
  }

  .description {
    font-size: 1.1rem;
    margin-bottom: 30px;
  }

  .skill-tag {
    padding: 10px 16px;
    font-size: 1rem;
  }

  /* Skills grid responsive */
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .skill-item {
    padding: 12px;
  }

  /* Contact responsive */
  .contact-content {
    flex-direction: column;
    gap: 30px;
  }

  .contact-form {
    padding: 30px 25px;
  }

  .social-links a {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .subtitle {
    font-size: 1.1rem;
  }

  .description {
    font-size: 1rem;
  }

  .skills {
    gap: 10px;
  }

  .skill-tag {
    padding: 8px 14px;
    font-size: 0.9rem;
  }

  /* Contact mobile responsive */
  .contact-form {
    padding: 25px 20px;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 14px 16px;
  }

  .contact-form button {
    padding: 14px 24px;
    font-size: 1rem;
  }

  .social-links {
    gap: 15px;
  }

  .social-links a {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
}
