/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #15803d;
  --secondary-color: #166534;
  --text-color: #1f2937;
  --light-text: #6b7280;
  --background: #ffffff;
  --section-bg: #f3f4f6;
  --transition: all 0.3s ease;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  overflow-x: hidden;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(240, 249, 244, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(21, 128, 61, 0.1);
  border-bottom: 1px solid rgba(21, 128, 61, 0.1);
}

.nav-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.nav-links {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: var(--transition);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
}

.nav-links a:hover {
  color: var(--primary-color);
  background: rgba(21, 128, 61, 0.1);
}

/* Hero section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 2rem;
  background: url('/static/IMG_0477.JPG') center center/cover no-repeat;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1300px;
  display: flex;
  align-items: center;
  gap: 4rem;
  background: rgba(255, 255, 255, 0.85);
  padding: 3rem;
  margin-top: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hero-text {
  flex: 1;
  text-align: left;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-profile-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  object-fit: cover;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.subtitle {
  font-size: 1.25rem;
  color: var(--light-text);
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.cta-btn:first-child {
  background: var(--primary-color);
  color: white;
}

.cta-btn:last-child {
  background: white;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

/* Sections */
.section {
  padding: 6rem 2rem;
}

.section:nth-child(even) {
  background: var(--section-bg);
}

.section-content {
  max-width: 1200px;
  margin: 0 auto;
}

#about .section-content {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.career-statement {
  flex: 1;
  text-align: left;
  font-size: 1.1rem;
  line-height: 1.8;
}

.profile-image {
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

@media (max-width: 768px) {
  #about .section-content {
    flex-direction: column;
    gap: 2rem;
  }
  
  .profile-image {
    width: 100%;
    max-width: 300px;
    height: auto;
  }
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--text-color);
}

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

.skill-category h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.skills-list {
  list-style: none;
}

.skills-list li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.skills-list li::before {
  content: "•";
  color: var(--primary-color);
  position: absolute;
  left: 0;
}

/* Resume section */
.resume-section {
  margin-bottom: 3rem;
}

.resume-section h3 {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.education-item,
.experience-item {
  background: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.education-item:hover,
.experience-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.edu-header,
.exp-header {
  margin-bottom: 1rem;
}

.edu-header h4,
.exp-header h4 {
  font-size: 1.25rem;
  color: var(--text-color);
  margin-bottom: 0.25rem;
}

.institution,
.company {
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.date {
  color: var(--light-text);
  font-size: 0.875rem;
}

.edu-details,
.exp-details {
  list-style: none;
  margin-top: 1rem;
}

.edu-details li,
.exp-details li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.edu-details li::before,
.exp-details li::before {
  content: "→";
  color: var(--primary-color);
  position: absolute;
  left: 0;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.cert-item {
  background: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.cert-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cert-item h4 {
  font-size: 1.1rem;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.cert-item .date {
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.cert-item p {
  color: var(--light-text);
  font-size: 0.875rem;
}

.resume-cta {
  text-align: center;
  margin-top: 3rem;
}

.resume-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--primary-color);
  color: white;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.resume-btn:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

/* Projects section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.project-card {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

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

.project-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.project-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.project-tags span {
  background: var(--section-bg);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
}

.project-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.project-links a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

/* Contact section */
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
  text-align: center;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.contact-item a {
  color: var(--text-color);
  text-decoration: none;
  transition: var(--transition);
}

.contact-item a:hover {
  color: var(--primary-color);
}

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

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

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

.submit-btn {
  background: var(--primary-color);
  color: white;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
}

.submit-btn:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
}

/* Resume section */
.resume-section {
  margin-bottom: 3rem;
}

.resume-section h3 {
  font-size: 1.75rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--section-bg);
}

.education-item,
.experience-item {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.education-item:hover,
.experience-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.edu-header,
.exp-header {
  margin-bottom: 1rem;
}

.edu-header h4,
.exp-header h4 {
  font-size: 1.25rem;
  color: var(--text-color);
  margin-bottom: 0.25rem;
}

.institution,
.company {
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.date {
  color: var(--light-text);
  font-size: 0.875rem;
}

.edu-details,
.exp-details {
  list-style: none;
  margin-left: 1rem;
}

.edu-details li,
.exp-details li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.edu-details li::before,
.exp-details li::before {
  content: "→";
  color: var(--primary-color);
  position: absolute;
  left: 0;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.cert-item {
  padding: 1.25rem;
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.cert-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cert-item h4 {
  font-size: 1.1rem;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.cert-item p {
  color: var(--light-text);
  font-size: 0.875rem;
}

.resume-cta {
  text-align: center;
  margin-top: 3rem;
}

.resume-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: var(--transition);
}

.resume-btn:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.resume-btn i {
  font-size: 1.25rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  background: var(--section-bg);
  color: var(--light-text);
}

/* Responsive design */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero h2 {
    font-size: 2rem;
  }
  
  .section {
    padding: 4rem 1.5rem;
  }
  
  .nav-links {
    gap: 1rem;
  }
  
  .hero-content {
    flex-direction: column;
    padding: 2rem;
    gap: 2rem;
  }

  .hero-text {
    text-align: center;
  }

  .hero-profile-image {
    max-width: 300px;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
  
  .contact-info {
    grid-template-columns: 1fr;
  }

  .cert-grid {
    grid-template-columns: 1fr;
  }

  .education-item,
  .experience-item,
  .cert-item {
    padding: 1rem;
  }
}