/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(to right, #e0e7ff, #f8fafc);
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
}

.nav-links a {
  color: #666;
  text-decoration: none;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
  font-weight: 500;
}

.nav-links a:hover {
  color: #3b82f6;
}

.menu-btn {
  display: none;
  cursor: pointer;
}

/* Hero Section */
.hero {
  padding: 8rem 2rem 5rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2rem;
}

.hero-text {
  flex: 1;
}

.greeting {
  color: #3b82f6;
  font-weight: 500;
  margin-bottom: 1rem;
}

.hero-text h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1f2937;
}

.hero-text h2 {
  font-size: 2rem;
  color: #4b5563;
  margin-bottom: 2rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-info a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #4b5563;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-info a:hover {
  color: #3b82f6;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.profile-img {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.profile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Sections */
section {
  padding: 5rem 0;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: #1f2937;
}

/* About Section */
.about {
  background-color: white;
}

.about-text {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.1rem;
  color: #4b5563;
}

/* Skills Section */
.skills {
    background-color: #f8f9ff;
    padding: 4rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #1a237e;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #1a237e, #3949ab);
    border-radius: 2px;
}

.skills-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.skills-category {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.skills-category:hover {
    transform: translateY(-5px);
}

.skills-category h3 {
    font-size: 1.5rem;
    color: #1a237e;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #3949ab;
    display: inline-block;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skills-list span {
    background: #f8f9ff;
    color: #1a237e;
    padding: 0.6rem 1.2rem;
    border-radius: 2rem;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid #e8eaf6;
}

.skills-list span:hover {
    background: linear-gradient(135deg, #1a237e, #3949ab);
    color: white;
    transform: translateY(-2px);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(26, 35, 126, 0.2);
}

@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .skills-category {
        padding: 1.5rem;
    }
}

/* Projects Section */
.projects {
  background-color: white;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 0 auto;
  max-width: 1000px;
}

.project-card {
  background-color: #f8fafc;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.project-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #1f2937;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tech-tags span {
  background-color: #dbeafe;
  color: #1e40af;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
}

/* Experience Section */
.experience-timeline {
  max-width: 800px;
  margin: 0 auto;
}

.experience-card {
  background-color: white;
  padding: 2rem;
  border-radius: 1rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.experience-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.company {
  color: #4b5563;
}

.experience-meta {
  text-align: right;
  color: #6b7280;
}

.experience-points {
  list-style: none;
}

.experience-points li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

/* Experience Section (continued) */
.experience-points li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: #3b82f6;
}

/* Contact Section */
.contact {
  background-color: white;
}

.contact-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  max-width: 600px;
  margin: 0 auto;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #4b5563;
  text-decoration: none;
  padding: 1rem;
  width: 100%;
  max-width: 400px;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.contact-item:hover {
  background-color: #f8fafc;
  color: #3b82f6;
  transform: translateY(-2px);
}

.contact-item i {
  font-size: 1.5rem;
}

/* Footer */
footer {
  background-color: #f8fafc;
  padding: 2rem 0;
  text-align: center;
  color: #6b7280;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background-color: white;
      padding: 1rem;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
      display: flex;
      flex-direction: column;
  }

  .menu-btn {
      display: block;
  }

  .hero-content {
      flex-direction: column-reverse;
      text-align: center;
      padding: 2rem 1rem;
  }

  .hero-text h1 {
      font-size: 2.5rem;
  }

  .hero-text h2 {
      font-size: 1.5rem;
  }

  .profile-img {
      width: 300px;
      height: 300px;
  }

  .contact-info {
      align-items: center;
  }

  .experience-header {
      flex-direction: column;
      text-align: left;
  }

  .experience-meta {
      text-align: left;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
      opacity: 0;
      transform: translateY(20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background-color: #3b82f6;
  z-index: 1001;
  transition: width 0.1s ease;
}