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

:root {
  /* Colors - Green theme with 4 total colors */
  --primary: #16a34a;
  --primary-hover: #15803d;
  --background: #ffffff;
  --foreground: #0f172a;
  --muted: #64748b;
  --muted-light: #f1f5f9;
  --border: #e2e8f0;
  --card-bg: #ffffff;

  /* Typography */
  --font-heading: "Work Sans", sans-serif;
  --font-body: "Open Sans", sans-serif;

  /* Spacing */
  --section-padding: 5rem 0;
  --container-padding: 0 1rem;
  --max-width: 1200px;

  /* Transitions */
  --transition: all 0.3s ease;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--foreground);
  background-color: var(--background);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--container-padding);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4rem;
}

.nav-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary);
}

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

.nav-link {
  text-decoration: none;
  color: var(--foreground);
  font-weight: 500;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--primary);
}

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

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--foreground);
  margin: 3px 0;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--background) 0%, var(--muted-light) 100%);
  padding-top: 4rem;
}

.hero-container {
  text-align: center;
  max-width: 800px;
  padding: 0 1rem;
}

.hero-image {
  margin-bottom: 2rem;
}

.profile-image {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 4px solid var(--primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.text-primary {
  color: var(--primary);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

.btn-outline {
  background: transparent;
  color: var(--foreground);
  border-color: var(--border);
}

.btn-outline:hover {
  background: var(--muted-light);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-full {
  width: 100%;
}

.btn-icon {
  width: 1rem;
  height: 1rem;
  margin-right: 0.5rem;
}

/* Sections */
.section {
  padding: var(--section-padding);
}

.section-alt {
  background: var(--muted-light);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Cards */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* About Grid Layout */
.about-grid {
  display: grid;
  gap: 3rem;
  align-items: center; /* vertically center image and text */
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1fr; /* image left, text right */
    gap: 4rem;
  }
}

@media (max-width: 767px) {
  .about-grid {
    grid-template-columns: 1fr; /* stack image and text on mobile */
    gap: 2rem;
  }
}

/* About Card - Image Only */
.about-card {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.about-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15);
}

.about-card img {
  width: 100%;
  height: 100%;
  max-height: 400px; /* adjust as needed */
  object-fit: cover;
  border-radius: 1rem; /* fixes the “line” under the image */
  display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.about-card:hover img {
  transform: scale(1.05);
  filter: brightness(0.85);
}

/* About Text */
.about-text h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.about-text p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 1rem;
}

@media (max-width: 480px) {
  .about-text p {
    font-size: 1rem;
  }
}




/* Qualifications Section */
.qualifications-grid {
  display: grid;
  gap: 4rem;
}

.category-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: var(--foreground);
}

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

.timeline::before {
  content: "";
  position: absolute;
  left: 0.75rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

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

.timeline-marker {
  position: absolute;
  left: -2rem;
  top: 0.5rem;
  width: 1rem;
  height: 1rem;
  background: var(--primary);
  border-radius: 50%;
  border: 3px solid var(--background);
}

.timeline-content h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

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

.duration {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.description {
  line-height: 1.6;
}

.education-list {
  display: grid;
  gap: 1.5rem;
}

.education-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1.5rem;
}

.education-item h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

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

.year {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.details {
  line-height: 1.6;
}

/* New Organizations Section Styles */
.organizations-container {
  display: grid;
  gap: 4rem;
}

.organization-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.organization-item:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.organization-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2rem;
}

.organization-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.organization-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* .organization-logo {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  background: var(--primary);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
} */

.organization-logo svg {
  width: 1.5rem;
  height: 1.5rem;
  color: white;
}

.organization-info h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.position {
  color: var(--primary);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.organization-description {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--muted);
}

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

.org-photo {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Projects Section */
.projects-grid {
  display: grid;
  gap: 2rem;
}

.project-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: var(--transition);
}

.project-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.project-image {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-content {
  padding: 1.5rem;
}

.project-content h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.project-content p {
  color: var(--muted);
  margin-bottom: 1rem;
  line-height: 1.6;
}

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

.tag {
  background: var(--muted-light);
  color: var(--foreground);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.project-links {
  display: flex;
  gap: 0.75rem;
}

/* Photography Section Styles */
.photography-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.photo-item {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  transition: var(--transition);
}

.photo-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.photo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.photo-item:hover .photo-image {
  transform: scale(1.05);
}

.photo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 2rem 1.5rem 1.5rem;
  transform: translateY(100%);
  transition: var(--transition);
}

.photo-item:hover .photo-overlay {
  transform: translateY(0);
}

.photo-overlay h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.photo-overlay p {
  font-size: 0.875rem;
  opacity: 0.9;
}

/* Skills Section */
.skills-grid {
  display: grid;
  gap: 2rem;
}

.skill-category {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 2rem;
}

.skill-category h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.skill-tag {
  background: var(--primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
  font-size: 0.875rem;
}

/* Hobbies Section */
.hobbies-grid {
  display: grid;
  gap: 2rem;
}

.hobby-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
}

.hobby-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.hobby-icon {
  width: 3rem;
  height: 3rem;
  color: var(--primary);
  margin: 0 auto 1rem;
}

.hobby-card h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.hobby-card p {
  color: var(--muted);
  line-height: 1.6;
}

/* Contact Section */
.contact-grid {
  display: grid;
  gap: 3rem;
}

.contact-info h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.contact-description {
  font-size: 1.125rem;
  color: var(--muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.contact-links {
  display: grid;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary);
}

.contact-form-container {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 2rem;
}

.contact-form h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

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

/* Footer */
.footer {
  background: var(--background);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}

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

.footer-text {
  color: var(--muted);
}

.footer-social {
  display: flex;
  gap: 1.5rem;
}

.social-link {
  color: var(--muted);
  transition: var(--transition);
}

.social-link:hover {
  color: var(--primary);
}

.social-link svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Fade-in animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Responsive Design */
@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
    justify-content: center;
  }

  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }

  .hobbies-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .footer-content {
    flex-direction: row;
    justify-content: space-between;
  }

  /* Organizations responsive layout */
  .organization-content {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
  }

  .organization-content.reverse {
    direction: rtl;
  }

  .organization-content.reverse > * {
    direction: ltr;
  }
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

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

  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .hobbies-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .photography-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .hobbies-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .photography-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .nav-menu {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-menu.active {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--background);
    flex-direction: column;
    padding: 1rem;
    border-top: 1px solid var(--border);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Loading animation for images */
img {
  transition: opacity 0.3s ease;
}

img:not([src]) {
  opacity: 0;
}
