/* ===================================
   CSS Variables & Reset
   =================================== */
:root {
  /* Modern Dark Theme Colors */
  --bg-primary: #000;        /* Main background */
  --bg-secondary: #1E293B;      /* Section backgrounds */
  --bg-card: #1E293B;           /* Card/container background */
  --text-primary: #F8FAFC;      /* Main text */
  --text-secondary: #94A3B8;    /* Muted/subtle text */
  --accent-blue: #27ae60;       /* Buttons & highlights */
  --accent-cyan: #1e8448;       /* Links or interactive elements */
  --border-color: #334155;      /* Borders & dividers */
  --shadow-color: rgba(0, 0, 0, 0); /* Soft shadows for depth */

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;

  /* Typography */
  --font-primary:'Inter', sans-serif;;
  --font-size-base: 16px;
  --font-size-lg: 1.125rem;    /* 18px */
  --font-size-xl: 1.5rem;      /* 24px */
  --font-size-2xl: 2rem;       /* 32px */
  --font-size-3xl: 3rem;       /* 48px */
  --font-size-4xl: 4rem;       /* 64px */
  --line-height-base: 1.6;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Shadows */
  --shadow-sm: 0 1px 3px var(--shadow-color);
  --shadow-md: 0 4px 6px var(--shadow-color);
  --shadow-lg: 0 10px 15px var(--shadow-color);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Z-index */
  --z-navbar: 1000;
  --z-lightbox: 2000;
  --z-theme-toggle: 1001;
  --z-tooltip: 2500;
}


/* Light Theme */
body.light-mode {
  --bg-primary: #F8FAFC;      /* Soft white/gray background */
  --bg-secondary: #E5E7EB;    /* Light section backgrounds */
  --bg-card: #FFFFFF;          /* Card/container background */
  --text-primary: #111827;    /* Dark text for readability */
  --text-secondary: #6B7280;  /* Muted gray for secondary text */
  --accent-blue: #27ae60;     /* Bright accent consistent with dark theme */
  --accent-cyan: #1e8448;     /* Accent for links/interactions */
  --border-color: #D1D5DB;    /* Subtle borders for separation */
  --shadow-color: rgba(0, 0, 0, 0.1); /* Soft shadows for depth */
}

/* Global Reset */
* {
  margin: 0;
  padding: 0;
  
}

html {
  scroll-behavior: smooth;
  font-size: var(--font-size-base);
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: var(--line-height-base);
  overflow-x: hidden;
  transition: background-color var(--transition-base), color var(--transition-base);
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Links */
a {
  text-decoration: none;
  color: black;
  transition: color var(--transition-fast);
}

/* Buttons */
button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  transition: background-color var(--transition-base), color var(--transition-base);
}

/* Cards */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: var(--spacing-md);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}


/* ===================================
   Theme Toggle
   =================================== */
.theme-toggle {
  position: fixed;
  bottom: 2rem;      /* distance from bottom */
  left: 2rem;        /* move to bottom-left */
  top: auto;         /* remove top */
  right: auto;       /* remove right */
  z-index: var(--z-theme-toggle);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: var(--bg-card);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.theme-toggle:hover {
  background-color: var(--accent-blue); /* Modern accent */
  border-color: var(--accent-blue);
  transform: rotate(180deg);
}

.theme-toggle svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.theme-toggle .moon-icon {
  display: none;
}

body.light-mode .theme-toggle .sun-icon {
  display: none;
}

body.light-mode .theme-toggle .moon-icon {
  display: block;
}

/* Optional: adjust for smaller screens */
@media (max-width: 768px) {
  .theme-toggle {
    bottom: 2rem;   /* distance from bottom */
    left: 2rem;     /* move to bottom-left */
    top: auto;      /* remove top positioning */
    right: auto;    /* remove right positioning */
  }
}

/* For all screens smaller than 480px */
@media (max-width: 480px) {
  .theme-toggle {
    position: fixed;
    bottom: 2rem;   /* place it at bottom */
    left: 2rem;     /* left corner */
    top: auto !important;    /* remove any top */
    right: auto !important;  /* remove any right */
    width: 2.5rem;
    height: 2.5rem;
  }
}





/* ===================================
   Navigation
   =================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-navbar);
  padding: 1.5rem 0;
  transition: all var(--transition-base);
}

.navbar.scrolled {
  background-color: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

body.light-mode .navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: #000;
}

.nav-menu {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-blue);
  transition: width var(--transition-base);
  color: black;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  height: 24px;
}

.nav-toggle span {
  width: 100%;
  height: 3px;
  background-color: var(--text-primary);
  transition: all var(--transition-base);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-image: url(../assets/img/Img7.jpg);
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
}

@media (max-width: 480px) {
  .hero {
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
  }
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("/placeholder.svg?height=1080&width=1920");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  filter: brightness(0.4);
  z-index: -1;
}

.hero-content {
  text-align: center;
  z-index: 1;
  padding: 0 2rem;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 900;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  animation: fadeInUp 1s ease;
  color: #FFFFFF;
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.5rem);
  color: var(--text-secondary);
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease 0.2s backwards;
  color: #FFFFFF;
}

.hero-button {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: var(--accent-blue);
  color: var(--bg-primary);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 5px;
  transition: all var(--transition-base);
  animation: fadeInUp 1s ease 0.4s backwards;
}

.hero-button:hover {
  transform: translateY(-3px);
  box-shadow:  0 10px 30px rgba(59, 130, 246, 0.3);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 50px;
  border: 2px solid var(--text-primary);
  border-radius: 25px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-indicator span {
  width: 6px;
  height: 10px;
  background-color: var(--accent-gold);
  border-radius: 3px;
  animation: scroll 2s infinite;
}

/* ===================================
   Sections
   =================================== */
.section {
  padding: 3rem 0;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero .container,
.footer .container {
  padding: 0;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--spacing-lg);
  text-align: center;
  color: var(--accent-blue);
}

/* ===================================
   About Section
   =================================== */
.about {
  background-color: var(--bg-secondary);
  
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  align-items: center;
}

.about-text p {
  font-size: var(--font-size-lg);
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
}

.about-image {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

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

/* ===================================
   Achievements Section
   =================================== */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
}

.achievement-card {
  background-color: var(--bg-card);
  padding: var(--spacing-md);
  border-radius: 10px;
  border: 1px solid var(--border-color);
  text-align: center;
  transition: all var(--transition-base);
}

.achievement-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-gold);
  box-shadow: var(--bg-primary);
}

.achievement-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-sm);
}

.achievement-card h3 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--spacing-sm);
  color: var(--accent-gold);
}

.achievement-count {
  font-size: var(--font-size-3xl);
  font-weight: 900;
  margin-bottom: var(--spacing-sm);
}

.achievement-description {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===================================
   Gallery Section
   =================================== */
.gallery {
  background-color: var(--bg-secondary);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--spacing-md);
  width: auto;
}

.gallery-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform var(--transition-slow);
  display: block;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.gallery-overlay span {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--bg-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* ===================================
   Lightbox
   =================================== */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: var(--z-lightbox);
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-image {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  color: var(--text-primary);
  font-size: 3rem;
  background-color: var(--accent-blue);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all var(--transition-base);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background-color: var(--accent-blue);
  translate: 20%;
  background-color: #FFFFFF;
}

.lightbox-close {
  top: 2rem;
  right: 2rem;
}

.lightbox-prev {
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-counter {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-primary);
  font-size: var(--font-size-lg);
  background-color: rgba(0, 0, 0, 0.5);
  padding: 0.5rem 1rem;
  border-radius: 20px;
}

/* ===================================
   News Section
   =================================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--spacing-md);
}

.news-card {
  background-color: var(--bg-card);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: all var(--transition-base);
}

.news-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px var(--accent-blue);
}

.news-card img {
  width: auto;
  height: auto;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.news-content {
  padding: var(--spacing-md);
}

.news-date {
  display: inline-block;
  font-size: 0.875rem;
  color: var(--accent-gold);
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.news-card h3 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--spacing-sm);
  line-height: 1.3;
}

.news-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
}

.news-link {
  color: var(--accent-gold);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap var(--transition-fast);
}

.news-link:hover {
  gap: 1rem;
}

/* ===================================
   Contact Section
   =================================== */
.contact {
  background-color: var(--bg-secondary);
}

.contact-content {
  display: grid;

  gap: var(--spacing-lg);
}

.contact-form {
  background-color: var(--bg-card);
  padding: 10%;
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-group label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
  color: var(--accent-blue);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  padding-left: 0;
  background-color: var(--bg-primary);
  border: 1px solid var();
  border-radius: 5px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition-base);
}

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

.submit-button {
  width: 100%;
  padding: 1rem;
  background-color: var(--accent-blue);
  color: var(--bg-primary);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 5px;
  transition: all var(--transition-base);
}

.submit-button:hover {
  background-color: var(--accent-blue);
  transform: translateY(-2px);
  box-shadow:var(--accent-blue);
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-info h3 {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--spacing-md);
}

.contact-info p {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--spacing-md);
}

.social-links {
  display: flex;
  gap: var(--spacing-md);
}

.social-link {
  width: 50px;
  height: 50px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  color: var(--accent-blue);
}

.social-link:hover {
  background-color: var(--accent-blue);
  border-color: var(--accent-gold);
  transform: translateY(-5px);
  color: #FFFFFF;
}

.social-link svg {
  width: 24px;
  height: 24px;
}

/* ===================================
   Footer
   =================================== */
.footer {
  background-color: var(--bg-primary);
  padding: var(--spacing-md) 0;
  border-top: 1px solid var(--border-color);
}

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

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

.footer-social {
  display: flex;
  gap: var(--spacing-md);
}

.footer-social a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  transition: color var(--transition-fast);
}

.footer-social a:hover {
  color: var(--accent-blue);
}

/* ===================================
   Back to Top Button
   =================================== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background-color: var(--accent-blue);
  color: var(--bg-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--accent-blue);
  transform: translateY(-5px);
}

/* ===================================
   Animations
   =================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scroll {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateY(20px);
    opacity: 0;
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s ease;
}

.fade-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s ease;
}

.fade-in.visible,
.fade-in-left.visible,
.fade-in-right.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1024px) {
  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 40%;
    height: 100vh;
    background-color: var(--bg-primary);
    flex-direction: column;
    padding: 5rem 2rem;
    gap: 2rem;
    transition: right var(--transition-base);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
  }

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

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  .achievements-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

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

  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;
    font-size: 2rem;
  }

  .lightbox-prev {
    left: 1rem;
  }

  .lightbox-next {
    right: 1rem;
  }

  .footer .container {
    flex-direction: column;
    gap: var(--spacing-sm);
    text-align: center;
  }
}

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

  .section {
    padding: var(--spacing-lg) 0;
  }

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

  .section-title {
    font-size: 2rem;
  }

  /* Keep toggle at bottom-left for small screens */
  .theme-toggle {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    top: auto !important;
    right: auto !important;
    width: 2.5rem;
    height: 2.5rem;
  }
}

.nav-toggle,
.cancel-btn {
  position: fixed;
  z-index: 3000;
  right: 10px;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    rgba(15, 23, 42, 0.7), 
    rgba(15, 23, 42, 0.7)
  );
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
}

/* ===================================
   Navbar Color Adaptation for Theme
   =================================== */

/* Default (Dark Mode) */
.navbar {
  background: transparent;
}

.nav-logo {
  color: var(--accent-blue);
}

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

.nav-toggle span {
  background-color: var(--text-primary);
}

/* Light Mode Navbar */
body.light-mode .navbar {
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body.light-mode .nav-logo {
  color: #000; /* keep the nice blue highlight */
}

body.light-mode .nav-link {
  color: var(--text-primary);
}

body.light-mode .nav-link:hover::after {
  background-color: var(--accent-blue);
}

/* Toggle Icon Adaptation */
body.light-mode .nav-toggle span {
  background-color: var(--text-primary); /* dark lines */
}

body:not(.light-mode) .nav-toggle span {
  background-color: var(--text-primary); /* light lines */
}

/* When nav is scrolled, add subtle background */
.navbar.scrolled {
  background-color: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
}

body.light-mode .navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
}

/* Experience Section */
.experience {
    padding: var(--spacing-xl) var(--spacing-md);
    background-color: var(--color-white);
}

@media (max-width: 992px) {
  .timeline-item {
    grid-template-columns: 1fr;
  }
  .timeline-item::before {
    display: none;
  }
}


/* Experience Section */
.experience {
    padding: var(--spacing-xl) var(--spacing-md);
    background-color: var(--bg-secondary); /* Changed from var(--color-white) to match theme */
}

.timeline {
    max-width: 800px;
    margin: var(--spacing-md) auto 0;
    position: relative; /* Ensure positioning context for the line */
}

.timeline-item {
    display: grid;
    grid-template-columns: 200px 1fr; /* Keep year width but allow content to adjust */
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    position: relative;
    align-items: flex-start; /* Align items at the top for better flow */
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: 200px; /* Align with the year column */
    top: 0;
    bottom: -4rem;
    width: 2px;
    background-color: var(--accent-blue); /* Changed to match theme accent */
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-year {
    font-weight: 600;
    color: var(--accent-blue);
    font-size: 1.125rem;
    text-align: right; /* Keep year aligned right */
    padding-right: var(--spacing-sm); /* Add some padding for spacing */
}

.timeline-content {
    padding-left: var(--spacing-sm); /* Move text left by increasing padding */
    text-align: left;
}

.timeline-content h3 {
    font-size: 1.25rem;
    color: var(--text-primary); /* Changed to match theme text */
    margin-bottom: var(--spacing-xs);
}

.timeline-content p {
    color: var(--text-secondary); /* Changed to match theme muted text */
    line-height: 1.8;
    text-indent: 15px; /* Add indentation for a less rigid look */
    padding-left: 10px; /* Further shift text left */
}

/* Responsive Adjustment */
@media (max-width: 992px) {
    .timeline-item {
        grid-template-columns: 1fr; /* Stack on smaller screens */
    }
    .timeline-item::before {
        display: none; /* Hide the vertical line on mobile */
    }
    .timeline-year {
        text-align: left; /* Adjust year alignment on mobile */
        padding-right: 0;
    }
    .timeline-content {
        padding-left: 0; /* Reset padding on mobile */
        text-indent: 0; /* Reset indentation on mobile */
    }
}

/* Testimonials Section */
.testimonials {
    padding: var(--spacing-xl) var(--spacing-md);
    background-color: var(--color-secondary);
}

.testimonials .section-title {
    color: var(--accent-blue);
    text-align: center;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.testimonial-card {
    background-color: var(--accent-blue);
    padding: var(--spacing-md);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    border-radius: 10px;
}

.testimonial-stars {
    color: #F8FAFC;
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
    font-style: italic;
    color: #F8FAFC;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    color: #F8FAFC;
}

.testimonial-author strong {
    color: var(--color-white);
    margin-bottom: 0.25rem;
}

.testimonial-author span {
    color: var(--color-light);
    font-size: 0.875rem;
}

.section-title{
  color: var(--accent-blue);
}
.contact-details {
    margin-bottom: var(--spacing-md);
}

.contact-item {
    margin-bottom: var(--spacing-sm);
}

.contact-item strong {
    display: block;
    color: var(--color-secondary);
    margin-bottom: 0.25rem;
}

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

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

.contact-item span {
    color: var(--color-gray);
}
