/* Base */
:root {
  --primary-color: #0a2540;
  --accent-color: #0077b5;
  --hover-color: #64b5f6;
  --light-bg: #f9f9f9;
  --text-color: #222;
  --body-bg: #ffffff;
}
*, *::before, *::after {
  box-sizing: border-box; /* More intuitive box model */
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  background: var(--body-bg);
  color: var(--text-color);
  line-height: 1.6;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow-x: hidden; /* Prevent horizontal scrollbars if something unexpectedly overflows */
}

main {
  flex: 1;
}

p {
  margin-bottom: 1rem;
  line-height: 1.5;
}

/* Header */
.site-header {
  background: var(--primary-color);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 999;
}

/* About page uses a lighter header color */
.about-header {
  background: var(--hover-color);
}

.about-header .nav-overlay {
  background: var(--hover-color);
}

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

.logo-img {
  height: 40px;
}

/* Banner */
.hero-img-block {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.hero-img-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-img-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: clamp(1.5rem, 4vw, 2rem); /* Responsive font size */
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  width: 90%; /* Ensure text wraps on smaller screens */
}

/* Desktop Navigation */
.desktop-nav {
  display: flex;
  gap: 2rem;
}

.desktop-nav a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.desktop-nav a:hover {
  color: var(--hover-color);
}

/* Hamburger Menu */
.hamburger {
  display: none; /* Hidden by default, shown in media query */
  flex-direction: column;
  justify-content: space-around; /* Adjusted for better span distribution with padding */
  width: 30px;  /* Increased width */
  height: 24px; /* Increased height */
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 2px; /* Added padding to increase tap area and visual separation */
  z-index: 1001;
  box-sizing: content-box; /* Ensure padding adds to width/height if that's intended for tap area */
}

.hamburger span {
  height: 3px; /* Increased height/thickness of lines */
  width: 100%; /* Ensure spans take full width of the button */
  background: white;
  border-radius: 2px; /* Slightly larger radius for thicker lines */
  transition: all 0.3s ease;
  display: block;
}

/* Adjustments for active (X) state if lines are thicker */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 5px); /* Adjusted translate for thicker lines */
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -5px); /* Adjusted translate for thicker lines */
}

/* Mobile Navigation Overlay */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 100%;
  width: 100%;
  height: 100vh;
  background: var(--primary-color);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: left 0.3s ease-in-out;
}

.nav-overlay.open {
  left: 0;
}

.nav-overlay ul {
  list-style: none;
  padding: 0;
  text-align: center;
}

.nav-overlay li {
  margin: 2rem 0;
}

.nav-overlay a {
  font-size: 2rem;
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav-overlay a:hover {
  color: var(--hover-color);
}

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

  .hamburger {
    display: flex; /* Show hamburger on mobile */
  }

  .nav-overlay {
    display: flex; /* Ensure overlay is flex for centering content */
  }
}

/* Hero Section */
.hero {
  padding: 2rem 1rem;
}
@media (min-width: 768px) {
  .hero {
    padding: 4rem 2rem;
  }
}

.hero-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-text {
  flex: 1 1 55%;
  min-width: 280px;
  text-align: left;
}

.hero-text h1 {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  margin-bottom: 1rem;
  text-align: justify;
  line-height: 1.6;
}

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

.hero-image img {
  max-width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .hero-row {
    flex-direction: column;
    text-align: center;
  }

  .hero-text,
  .hero-image {
    flex: 1 1 100%;
  }

  .hero-text p {
    text-align: left;
  }
}

/*
#animated-name {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  font-weight: 700;
}
*/

/* Social Icons */
.social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  color: var(--primary-color);
  text-decoration: none;
}

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

.social-link svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

/* Gallery */
.gallery-section {
  background: var(--light-bg);
  padding: 2rem 1rem;
  text-align: center;
  overflow: hidden;
}

.gallery-wrapper {
  overflow: hidden;
  max-width: 100%;
  margin: 0 auto;
  padding: 2rem 0;
}

.gallery-track {
  display: flex;
  width: max-content;
  gap: 1rem;
  animation: scrollGalleryDesktop 30s linear infinite;
}

.gallery-slide {
  flex-shrink: 0;
  flex-grow: 0;
  flex-basis: 45%;
  max-width: 18rem;
}

.gallery-slide img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-slide:hover img {
  transform: scale(1.03);
}

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

@media (max-width: 768px) {
  .gallery-slide {
    width: 80vw;
    max-width: 320px;
    flex-basis: auto;
  }

  .gallery-track {
    animation-name: scrollGalleryMobile;
    animation-duration: 40s;
  }

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


/* Blog Section & General Section Styling */
.section {
  padding: 2rem 1rem;
  max-width: 900px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .section {
    padding: 4rem 2rem;
  }
}

.section h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 1rem;
}

.blog-list {
  display: grid;
  gap: 2rem;
}

.blog-post {
  background: #fff;
  padding: 1.5rem;
  border-left: 4px solid var(--accent-color);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.blog-post a {
  color: inherit;
  text-decoration: none;
  display: block;
}

.blog-post a:hover h3 {
  color: var(--hover-color);
}

.blog-post h3 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.1rem, 3vw, 1.4rem);
}

.blog-post .date {
  font-size: 0.85rem;
  color: #777;
}

.blog-article {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
  line-height: 1.6;
}

.blog-article h2 {
  margin-top: 0;
}

/* Contact Page */
.contact-section {
  background-color: #f3f8fe;
  padding: 2rem 1rem;
  max-width: 800px;
  margin: auto;
  text-align: center;
}
@media (min-width: 768px) {
  .contact-section {
    padding: 4rem 2rem;
  }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.form-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.form-row input {
  flex: 1 1 calc(50% - 0.5rem);
  min-width: 200px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
}

.contact-form button {
  align-self: center;
  padding: 0.75rem 2rem;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid var(--primary-color);
  background-color: transparent;
  color: var(--primary-color);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.contact-form button:hover {
  background-color: var(--primary-color);
  color: #fff;
}


/* Footer */
.site-footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  margin-top: auto;
  background-color: var(--primary-color);
  color: #fff;
}

.footer-content {
  max-width: 1000px;
  margin: 0 auto;
}

.footer-nav {
  margin: 1rem 0;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: var(--hover-color);
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 1rem;
}

.footer-socials a {
  font-size: 1.5rem;
  color: #ffffff;
  transition: color 0.3s ease;
}

.footer-socials a:hover {
  color: var(--hover-color);
}

/* Timeline Sections */
.timeline-section, .timeline-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}
@media (min-width: 768px) {
  .timeline-section, .timeline-container {
    padding: 3rem 1rem;
  }
}


.timeline-section {
  gap: 4rem;
}

.timeline-container {
  gap: 3rem;
}

.timeline-column {
  flex: 1 1 45%;
  min-width: 300px;
}

.timeline-column h2 {
  font-size: clamp(1.4rem, 3.5vw, 1.8rem);
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  border-bottom: 2px solid #eee;
  padding-bottom: 0.5rem;
}


.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
  position: relative;
}

.timeline-year {
  background: #2e2e4d;
  color: white;
  font-weight: 600;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  min-width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.2rem;
  flex-shrink: 0;
  position: relative;
}

.timeline-content {
  background: var(--light-bg);
  padding: 1rem 1.2rem;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  flex: 1;
}

.timeline-content h3 {
  font-size: clamp(1rem, 2.8vw, 1.2rem);
  margin-bottom: 0.3rem;
  color: var(--primary-color);
}

.timeline-content h3 span {
  font-weight: 400;
  font-size: clamp(0.85rem, 2.2vw, 0.95rem);
  color: #444;
  display: block;
  margin-top: 0.2rem;
}

.timeline-content p {
  margin: 0.5rem 0 0;
  font-size: clamp(0.85rem, 2.3vw, 0.95rem);
  line-height: 1.5;
}

.timeline-content span:not(h3 span) {
  display: block;
  font-weight: 400;
  font-size: clamp(0.85rem, 2.2vw, 0.95rem);
  color: #666;
}


@media (max-width: 768px) {
  .timeline-section, .timeline-container {
    flex-direction: column;
    gap: 2rem;
  }

  .timeline-column {
    flex: 1 1 100%;
  }
}

.timeline-logo {
  width: 48px;
  height: 48px;
}

.timeline-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.experience-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 1.5rem;
  margin: 2rem auto 3rem;
  max-width: 900px;
  background: #f0f0f0;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.experience-logos img {
  height: 40px;
  max-width: 100px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.experience-logos img:hover {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .experience-logos img {
    height: 32px;
  }
  .experience-logos {
    gap: 1rem;
    padding: 1rem;
  }
}
