/* Modern CSS Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #ffffff;
}

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

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
}

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

.nav-logo h2 {
  color: #2563eb;
  font-weight: 600;
  font-size: 1.5rem;
}

.nav-menu {
  display: flex;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: #2563eb;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #2563eb;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 3px;
  background: #333;
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  animation: fadeInUp 1s ease;
}

.highlight {
  background: linear-gradient(45deg, #ffd700, #ffed4e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  opacity: 0.9;
  animation: fadeInUp 1s ease 0.2s both;
}

.hero-description {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 1s ease 0.4s both;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease 0.6s both;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: #2563eb;
  color: white;
}

.btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: white;
  color: #2563eb;
  transform: translateY(-2px);
}

.btn-green {
  background: #10b981;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(16,185,129,0.08);
  text-decoration: none;
  display: inline-block;
}

.btn-green:hover,
.btn-green:focus {
  background: #059669;
  color: #fff;
  text-decoration: none;
}

/* Section Styles */
section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1f2937;
}

.section-header p {
  font-size: 1.1rem;
  color: #6b7280;
  max-width: 600px;
  margin: 0 auto;
}

/* About Section */
.about {
  background: #f8fafc;
}

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #4b5563;
  line-height: 1.8;
}

.quick-stats {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.stat-item {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-weight: 500;
  color: #6b7280;
}

/* Experience Section */
.experience-category {
  margin-bottom: 60px;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}
.experience-category h3 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: #1f2937;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e5e7eb;
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  padding-left: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  background: #2563eb;
  border-radius: 50%;
  transform: translateX(-50%);
}

.timeline-date {
  font-weight: 600;
  color: #2563eb;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.timeline-content h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1f2937;
}

.timeline-content p {
  color: #6b7280;
  line-height: 1.6;
}

/* Award Card */
.award-card {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  padding: 2rem;
  border-radius: 16px;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.award-year {
  font-size: 1.5rem;
  font-weight: 700;
  color: #d97706;
  min-width: 80px;
}

.award-content h4 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #92400e;
}

.award-content p {
  color: #a16207;
  line-height: 1.6;
}

/* Certification Card - Red Style */
.certification-card {
    background: linear-gradient(135deg, #ffeaea 0%, #ffcdd2 100%);
    padding: 2rem;
    border-radius: 16px;
    display: flex;
    gap: 2rem;
    align-items: center;
    box-shadow: 0 2px 8px rgba(229,57,53,0.08);
    margin-bottom: 2rem;
}

.certification-year {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e53935;
    min-width: 80px;
}

.certification-content h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #b71c1c;
}

.certification-content p {
    color: #7f1d1d;
    line-height: 1.6;
}

/* Leadership Grid */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  width: 100%;
  margin: 0 auto;
  max-width: 100%; /* Match the award/certification cards' edge-to-edge look */
  padding-left: 0;
  padding-right: 0;
}

.leadership-card {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  border-left: 4px solid #2563eb;
  width: 100%;        /* Fill grid cell */
  max-width: 100%;    /* No extra margin inside grid cell */
  margin: 0;          /* Remove auto margin */
}

.leadership-card:hover {
  transform: translateY(-5px);
}

.leadership-card h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1f2937;
}

.period {
  background: #dbeafe;
  color: #1d4ed8;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  display: inline-block;
  margin-bottom: 1rem;
}

.leadership-card p {
  color: #6b7280;
  line-height: 1.6;
}

/* Skills Section */
.skills {
  background: #ffffff;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 60px;
}

.skill-card {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  text-align: center;
}

.skill-card:hover {
  transform: translateY(-5px);
}

.skill-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.skill-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #1f2937;
}

.skill-card p {
  color: #6b7280;
  line-height: 1.6;
}

/* Tech Skills */
.tech-skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.tech-category h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #1f2937;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  background: #e0e7ff;
  color: #3730a3;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.tech-tag:hover {
  background: #c7d2fe;
  transform: translateY(-2px);
}

/* Volunteer Section */
.volunteer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.volunteer-card {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  border-top: 4px solid #10b981;
}

.volunteer-card:hover {
  transform: translateY(-5px);
}

.volunteer-year {
  background: #d1fae5;
  color: #047857;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 1rem;
}

.volunteer-card h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #1f2937;
}

.volunteer-card p {
  color: #6b7280;
  line-height: 1.6;
}

/* Hobbies Section */
.hobbies {
  background: #f8fafc;
}

.hobbies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 60px;
}

.hobby-card {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  text-align: center;
}

.hobby-card:hover {
  transform: translateY(-5px);
}

.hobby-card i {
  font-size: 2.5rem;
  color: #8b5cf6;
  margin-bottom: 1rem;
}

.hobby-card h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #1f2937;
}

.hobby-card p {
  color: #6b7280;
  line-height: 1.6;
}

.sports-section {
  margin-top: 60px;
}

.sports-section h3 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: #1f2937;
  text-align: center;
}

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

.sport-card {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  transition: transform 0.3s ease;
}

.sport-card:hover {
  transform: translateY(-5px);
}

.sport-card i {
  font-size: 2.5rem;
  color: #d97706;
  margin-bottom: 1rem;
}

.sport-card h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #92400e;
}

.sport-card p {
  color: #a16207;
  line-height: 1.6;
}

/* Services Section */
.services-intro {
  font-size: 1.1rem;
  color: #6b7280;
  text-align: center;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.service-card {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  text-align: center;
  border: 2px solid transparent;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: #2563eb;
}

.service-card i {
  font-size: 2.5rem;
  color: #2563eb;
  margin-bottom: 1rem;
}

.service-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1f2937;
}

/* Contact Section */
.contact {
  background: #ffffff;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.contact-item i {
  font-size: 2rem;
  color: #2563eb;
  min-width: 40px;
}

.contact-item h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1f2937;
}

.contact-item a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

.contact-item a:hover {
  text-decoration: underline;
}

.contact-item p {
  color: #6b7280;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.contact-form {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #2563eb;
}

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

/* Footer */
.footer {
  background: #1f2937;
  color: white;
  padding: 2rem 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  color: #9ca3af;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

/* Add this to your CSS file to make award and certification cards display two per row */
.experience-category {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.certification-card,
.award-card {
  flex: 1 1 45%;
  max-width: 48%;
  box-sizing: border-box;
  margin-bottom: 0;
}

/* Ensure the heading stays full width */
.experience-category > h3 {
  flex-basis: 100%;
  width: 100%;
}

/* Responsive: stack cards on small screens */
@media (max-width: 900px) {
  .certification-card,
  .award-card {
    flex-basis: 100%;
    max-width: 100%;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: white;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
    z-index: 1000; /* Ensure menu appears above other content */
  }

  .nav-menu.active {
    left: 0;
  }

  .hero-content {
    padding: 120px 20px 60px; /* Add more padding on top to account for fixed navbar */
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }

  .hero-text {
    width: 100%;
    max-width: 100%;
  }

  .hero-title {
    font-size: 2.5rem;
    word-break: break-word; /* Prevent overflow of text */
    line-height: 1.2; /* Improve line spacing */
  }

  .hero-subtitle {
    font-size: 1rem;
    line-height: 1.5;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 250px;
    justify-content: center;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-content {
    flex-direction: column !important;
    gap: 2rem;
  }

  .contact-info {
    width: 100% !important;
  }

  .footer-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .skills-grid,
  .volunteer-grid,
  .hobbies-grid,
  .leadership-grid {
    grid-template-columns: 1fr;
  }

  .tech-skills {
    grid-template-columns: 1fr;
  }

  .award-card {
    flex-direction: column;
    text-align: center;
  }

  /* Ensure project cards stack properly */
  .project-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .section-header h2 {
    font-size: 1.8rem;
    word-break: break-word;
  }

  .nav-container {
    padding: 0 15px;
  }

  /* Smaller font sizes for better mobile readability */
  p, .hero-description {
    font-size: 0.95rem;
  }

  /* Better touch targets for mobile */
  .btn, .nav-link {
    padding: 0.8rem 1.2rem;
  }

  /* Ensure stats display well on mobile */
  .quick-stats {
    grid-template-columns: 1fr;
  }
}

/* Project Card - Green Border Style */
.project-card {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  border-left: 4px solid #10b981; /* Green border */
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-card h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1f2937;
}

.project-card p {
  color: #6b7280;
  line-height: 1.6;
}

.project-year {
  background: #d1fae5;
  color: #047857;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 1rem;
}

/* Project Grid - 2 columns like leadership */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

/* Add grey background to experience and services sections */
.experience,
.services {
  background: #f8fafc;
}

/* Remove grey background from skills and contact sections */
.skills,
.contact {
  background: #ffffff;
}
