/* style.css */

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

img {
  max-width: 100%;
  height: auto;
}

:root {
  --primary-color: #0a3d62;
  --secondary-color: #3c6382;
  --accent-color: #f9ca24;
  --light-color: #f5f6fa;
  --dark-color: #2d3436;
  --text-color: #333;
  --text-light: #777;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --card-radius: 12px;
  --transition: all 0.3s ease;
}

html {
  /* scroll-behavior: smooth; - Disabled to let Lenis handle smoothing */
}

/* Lenis Smooth Scroll Styles */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  line-height: 1.2;
}

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

.section-padding {
  padding: 80px 0;
}

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

.section-title {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.section-title span {
  color: var(--accent-color);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
}

.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 14px 35px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 1rem;
  letter-spacing: 0.5px;
}

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

.btn-primary:hover {
  background-color: #e1b10f;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(249, 202, 36, 0.4);
}

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

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

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 15px 0;
  transition: var(--transition);
}

.header.scrolled {
  background-color: white;
  box-shadow: var(--shadow);
  padding: 10px 0;
}

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

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img-wrapper {
  width: 50px;
  height: 50px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  padding: 5px;
  overflow: hidden;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
  transition: var(--transition);
}

.logo:hover img {
  transform: scale(1.1);
}

.logo h2 {
  font-size: 1.5rem;
  color: white;
  margin-bottom: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.logo h2 span {
  color: var(--accent-color);
}

.header.scrolled .logo h2 {
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.header.scrolled .nav-links a {
  color: var(--primary-color);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-color);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
}

.header.scrolled .mobile-menu-btn {
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  color: white;
  overflow: hidden;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 700px;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.1;
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.2s forwards;
}

.hero-title span {
  color: var(--accent-color);
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.4s forwards;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  margin-bottom: 50px;
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.6s forwards;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 50px;
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.8s forwards;
}

.stat-item h3 {
  font-size: 2.5rem;
  margin-bottom: 5px;
  color: var(--accent-color);
}

.stat-item p {
  font-size: 0.9rem;
  opacity: 0.9;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(10, 61, 98, 0.8), rgba(10, 61, 98, 0.4));
  z-index: 1;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  will-change: transform;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}

.slide.active {
  opacity: 1;
}

.slide:nth-child(1) {
  background-image: url('https://images.unsplash.com/photo-1545324418-cc1a3fa10c00?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1170&q=80');
}

.slide:nth-child(2) {
  background-image: url('https://images.unsplash.com/photo-1513584684374-8bab748fbf90?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1168&q=80');
}

.slide:nth-child(3) {
  background-image: url('https://images.unsplash.com/photo-1487956382158-bb926046304a?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1172&q=80');
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: flex-start;
}

.about-text h3 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: var(--primary-color);
  position: relative;
  padding-bottom: 15px;
}

.about-text h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 3px;
  background-color: var(--accent-color);
}

.about-text p {
  margin-bottom: 35px;
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.8;
}

.about-features-flat {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 35px;
}

.flat-feature {
  background-color: #fff;
  padding: 25px 20px;
  border-radius: 12px;
  border: 1px solid #eee;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.flat-feature:hover {
  border-color: var(--accent-color);
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

.flat-icon {
  width: 45px;
  height: 45px;
  background-color: rgba(249, 202, 36, 0.15);
  color: var(--primary-color);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 15px;
  transition: var(--transition);
}

.flat-feature:hover .flat-icon {
  background-color: var(--primary-color);
  color: var(--accent-color);
}

.flat-info h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--primary-color);
  font-weight: 600;
}

.flat-info p {
  font-size: 0.9rem;
  margin-bottom: 0;
  line-height: 1.5;
  color: var(--text-light);
}

/* About Collage */
.about-collage {
  position: relative;
}

.collage-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(12, 1fr);
  height: 500px;
  gap: 15px;
}

.collage-item {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}

.collage-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

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

.item-main {
  grid-column: 1 / 9;
  grid-row: 1 / 10;
  z-index: 1;
}

.item-top {
  grid-column: 9 / 13;
  grid-row: 1 / 7;
  z-index: 1;
}

.item-bottom {
  grid-column: 8 / 13;
  grid-row: 7 / 13;
  z-index: 2;
  border: 5px solid white;
}

.experience-badge-floating {
  position: absolute;
  bottom: 40px;
  left: -20px;
  background-color: var(--primary-color);
  color: white;
  padding: 20px 30px;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 15px;
  border: 4px solid white;
}

.experience-badge-floating h3 {
  font-size: 2.5rem;
  margin: 0;
  color: var(--accent-color);
  line-height: 1;
  font-weight: 700;
}

.experience-badge-floating p {
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.2;
  font-weight: 500;
  text-align: left;
}

/* Projects Section */
.projects {
  background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
  position: relative;
  z-index: 0;
}

.projects::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle, var(--primary-color) 2px, transparent 2.5px);
  background-size: 30px 30px;
  opacity: 0.1;
  z-index: -1;
  animation: gridFloat 20s linear infinite;
}

@keyframes gridFloat {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 30px 30px;
  }
}

.project-search {
  max-width: 600px;
  margin: 0 auto 40px;
  position: relative;
}

.project-search input {
  width: 100%;
  padding: 15px 25px;
  padding-right: 50px;
  border: 2px solid transparent;
  background: white;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.project-search input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.project-search i {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  pointer-events: none;
}

.project-filters {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin: 0 auto 50px;
  flex-wrap: wrap;
  background: #f1f3f5;
  padding: 8px;
  border-radius: 50px;
  width: fit-content;
  max-width: 100%;
}

.filter-btn {
  padding: 10px 25px;
  background-color: transparent;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
  color: var(--text-light);
  font-size: 0.95rem;
}

.filter-btn.active,
.filter-btn.active {
  background-color: var(--primary-color);
  color: white;
  box-shadow: 0 4px 10px rgba(10, 61, 98, 0.2);
}

.filter-btn:hover:not(.active) {
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--primary-color);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.project-card {
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  background-color: white;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

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

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.project-overlay-badges {
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  display: flex;
  justify-content: space-between;
  z-index: 2;
  pointer-events: none;
}

.project-info {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-status {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(4px);
}

.status-completed {
  background-color: rgba(209, 247, 196, 0.95);
  color: #1b5e20;
}

.status-ongoing {
  background-color: rgba(255, 234, 167, 0.95);
  color: #d35400;
}

.status-upcoming {
  background-color: rgba(223, 230, 233, 0.95);
  color: #2d3436;
}

.project-type-badge {
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary-color);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  letter-spacing: 0.5px;
}

.project-info h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
  color: var(--primary-color);
  font-weight: 700;
}

.project-location {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-desc {
  color: var(--text-light);
  margin-bottom: 25px;
  font-size: 0.95rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-features {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 25px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.feature-item i {
  font-size: 1.2rem;
  color: var(--accent-color);
  margin-bottom: 3px;
}

.feature-item span {
  font-size: 0.85rem;
  color: var(--primary-color);
  font-weight: 700;
  line-height: 1.2;
}

.feature-item small {
  font-size: 0.7rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-buttons {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.quick-view-btn {
  flex: 1;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: white;
  color: var(--primary-color);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Poppins', sans-serif;
}

.quick-view-btn:hover {
  background-color: #f8f9fa;
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.project-card .btn-primary {
  flex: 1;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  padding: 12px;
  font-size: 0.9rem;
}

.project-card .btn-primary i {
  transition: transform 0.3s ease;
}

.project-card .btn-primary:hover i {
  transform: translateX(5px);
}

.load-more-container {
  text-align: center;
  margin-top: 40px;
}

.load-more-container .btn-secondary {
  border-color: var(--primary-color);
  color: var(--primary-color);
  min-width: 200px;
  display: none;
  /* Hidden by default, controlled by JS */
}

.load-more-container .btn-secondary:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Features Section */
.features {
  background: rgba(235, 237, 240, 0.7);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.6);
}

.features::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(249, 202, 36, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.features::after {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(10, 61, 98, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.features .container {
  position: relative;
  z-index: 1;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.feature-card {
  padding: 40px 30px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background-color: white;
  border: 1px solid rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(10, 61, 98, 0.1);
  border-color: transparent;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 65px;
  height: 65px;
  background-color: white;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 25px 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.4s ease;
  border: 1px solid #f0f0f0;
  position: relative;
  z-index: 2;
}

.feature-icon i {
  font-size: 1.8rem;
  color: var(--primary-color);
  transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
  background-color: var(--primary-color);
  transform: rotate(-5deg) scale(1.1);
  box-shadow: 0 10px 25px rgba(10, 61, 98, 0.2);
}

.feature-card:hover .feature-icon i {
  color: var(--accent-color);
}

.feature-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--primary-color);
  font-weight: 700;
}

.feature-card p {
  color: var(--text-light);
  line-height: 1.7;
  font-size: 0.95rem;
}

.feature-card::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
  opacity: 0;
  transition: all 0.5s ease;
  border-radius: 50%;
  z-index: 0;
}

.feature-card:hover::after {
  opacity: 0.15;
  transform: scale(1.5);
}

/* Gallery Section */
.gallery-ticker-wrapper {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px 0;
  position: relative;
}

.gallery-ticker-wrapper::before,
.gallery-ticker-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.gallery-ticker-wrapper::before {
  left: 0;
  background: linear-gradient(to right, white, transparent);
}

.gallery-ticker-wrapper::after {
  right: 0;
  background: linear-gradient(to left, white, transparent);
}

.gallery-track {
  display: flex;
  gap: 20px;
  width: max-content;
}

.gallery-track:hover {
  animation-play-state: paused;
}

.gallery-item-ticker {
  position: relative;
  overflow: hidden;
  border-radius: var(--card-radius);
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.gallery-item-ticker:hover {
  transform: scale(0.98);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.gallery-item-ticker img {
  height: 100%;
  width: auto;
  object-fit: cover;
  display: block;
}

/* Track specific heights for collage feel */
#gallery-track-1 .gallery-item-ticker {
  height: 240px;
}

#gallery-track-2 .gallery-item-ticker {
  height: 300px;
}

.gallery-overlay-ticker {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

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

.gallery-overlay-ticker i {
  color: white;
  font-size: 2rem;
}

/* Animations */
.ticker-left {
  animation: scrollLeft 60s linear infinite;
}

.ticker-right {
  animation: scrollRight 60s linear infinite;
}

@keyframes scrollLeft {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

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

  100% {
    transform: translateX(0);
  }
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  padding-top: 80px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
}

.lightbox.active {
  display: block;
  animation: fadeIn 0.3s;
}

.lightbox-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 900px;
  max-height: 80vh;
  object-fit: contain;
}

.close-lightbox {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.close-lightbox:hover,
.close-lightbox:focus {
  color: var(--accent-color);
  text-decoration: none;
  cursor: pointer;
}

#caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  font-size: 1.1rem;
}

/* EMI Calculator Styles */
.emi-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  position: relative;
  overflow: hidden;
}

.emi-section::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.emi-section::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(249, 202, 36, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.emi-section .section-title {
  color: white;
}

.emi-section .section-subtitle {
  color: rgba(255, 255, 255, 0.9);
}

.emi-container {
  background: white;
  padding: 50px;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.input-group {
  margin-bottom: 30px;
}

.input-group label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-weight: 600;
  color: var(--primary-color);
}

.input-group input[type="range"] {
  width: 100%;
  height: 6px;
  background: #ddd;
  border-radius: 5px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.input-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-color);
  cursor: pointer;
  transition: var(--transition);
}

.input-group input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.emi-results {
  text-align: center;
  background: var(--primary-color);
  padding: 40px;
  border-radius: var(--card-radius);
  color: white;
}

.emi-circle {
  width: 180px;
  height: 180px;
  border: 8px solid var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
}

.emi-value h3 {
  font-size: 1.8rem;
  color: white;
}

.emi-breakdown p {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  opacity: 0.9;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 5px;
}

.total-payable {
  font-weight: 700;
  color: var(--accent-color);
  font-size: 1.1rem;
  margin-top: 15px;
  border-bottom: none !important;
}

/* FAQ Styles */
.faq {
  background-color: #f4f6f8;
}

.faq-grid {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.faq-item {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  margin-bottom: 0;
}

.faq-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.faq-item.active {
  box-shadow: 0 15px 30px rgba(10, 61, 98, 0.15);
  border-color: transparent;
}

.faq-question {
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: white;
  transition: all 0.3s ease;
}

.faq-item.active .faq-question {
  background: var(--primary-color);
}

.faq-question h4 {
  font-size: 1.1rem;
  color: var(--primary-color);
  margin: 0;
  font-weight: 600;
  transition: color 0.3s ease;
}

.faq-item.active .faq-question h4 {
  color: white;
}

.faq-question i {
  color: var(--primary-color);
  transition: all 0.3s ease;
  width: 30px;
  height: 30px;
  background-color: rgba(10, 61, 98, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-left: 15px;
}

.faq-item.active .faq-question i {
  transform: rotate(45deg);
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--accent-color);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: white;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 25px;
  color: var(--text-light);
  line-height: 1.7;
  margin: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Testimonials Section */
.testimonials {
  background-color: #f4f7f6;
  position: relative;
  background-image: radial-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
}

.testimonials-slider {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.testimonial {
  display: none;
  background-color: white;
  padding: 50px 40px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: none;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.testimonial::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent-color);
}

.testimonial:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.testimonial.active {
  display: block;
  animation: fadeInUpTestimonial 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes fadeInUpTestimonial {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.testimonial-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-content i {
  font-size: 4rem;
  color: var(--accent-color);
  opacity: 0.15;
  display: block;
  margin: 0 auto 10px;
}

.testimonial-content p {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-color);
  margin-bottom: 30px;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

.testimonial-author h4 {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-bottom: 5px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.testimonial-author p {
  font-size: 0.9rem;
  color: var(--accent-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.slider-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
  gap: 20px;
}

.slider-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: transparent;
  border: 1px solid #e0e0e0;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-light);
}

.slider-btn:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  transform: scale(1.05);
}

.slider-dots {
  display: flex;
  gap: 8px;
  background: #f5f5f5;
  padding: 8px 12px;
  border-radius: 20px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ccc;
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background-color: var(--primary-color);
  transform: scale(1.2);
}

/* Blog Section */
.blog-slider-wrapper {
  position: relative;
  padding: 0 20px;
  overflow: hidden;
}

.blog-slider-wrapper::before,
.blog-slider-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.blog-slider-wrapper::before {
  left: 0;
  background: linear-gradient(to right, white, transparent);
}

.blog-slider-wrapper::after {
  right: 0;
  background: linear-gradient(to left, white, transparent);
}

.blog-slider {
  overflow: hidden;
  margin: 0 -15px;
  padding: 20px 15px;
}

.blog-track {
  display: flex;
  gap: 30px;
  width: max-content;
  animation: scrollLeft 40s linear infinite;
  transition: none;
}

.blog-track:hover {
  animation-play-state: paused;
}

.blog-card {
  background: white;
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.03);
  flex: 0 0 350px;
  min-width: 350px;
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.blog-image {
  height: 220px;
  overflow: hidden;
  position: relative;
}

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

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

.blog-date {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--accent-color);
  color: var(--primary-color);
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

.blog-content {
  padding: 25px;
}

.blog-category {
  color: var(--accent-color);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}

.blog-title {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: var(--primary-color);
  line-height: 1.4;
}

.blog-excerpt {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.read-more {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}

.read-more:hover {
  color: var(--accent-color);
  gap: 10px;
}

.blog-controls {
  display: none;
}

/* Contact Section */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.info-item {
  display: flex;
  gap: 20px;
}

.info-item i {
  font-size: 1.5rem;
  color: var(--accent-color);
  margin-top: 5px;
}

.info-item h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.info-item p {
  color: var(--text-light);
  line-height: 1.8;
}

.contact-form {
  background-color: white;
  padding: 40px;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: 'Poppins', sans-serif;
  transition: var(--transition);
}

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

/* Footer */
.footer {
  background-color: var(--primary-color);
  color: white;
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h3 {
  font-size: 1.3rem;
  margin-bottom: 25px;
  color: white;
}

.footer-col p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
  line-height: 1.8;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 15px;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--accent-color);
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--accent-color);
  color: var(--primary-color);
}

.newsletter-form {
  display: flex;
  margin-top: 20px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 15px;
  border: none;
  border-radius: 4px 0 0 4px;
  font-family: 'Poppins', sans-serif;
}

.newsletter-form button {
  background-color: var(--accent-color);
  color: var(--primary-color);
  border: none;
  padding: 0 20px;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition);
}

.newsletter-form button:hover {
  background-color: #e1b10f;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

.footer-bottom i {
  color: #ff6b6b;
  margin: 0 5px;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--accent-color);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 999;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

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

/* Responsive Styles */
@media (max-width: 992px) {
  .section-title {
    font-size: 2.2rem;
  }

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

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

  .project-grid,
  .features-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    flex-direction: column;
    background-color: white;
    padding: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    gap: 0;
  }

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

  .nav-links a {
    padding: 15px 0;
    color: var(--primary-color);
    border-bottom: 1px solid #eee;
  }

  .mobile-menu-btn {
    display: block;
  }

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

  .hero-buttons {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 25px;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .collage-grid {
    height: 400px;
  }

  .experience-badge-floating {
    left: 20px;
    bottom: 20px;
  }

  .emi-container {
    grid-template-columns: 1fr;
  }

  .project-filters {
    gap: 10px;
  }
}

/* =============================================
   TIMELINE SECTION STYLES
   Brand-Adaptive Company Timeline Component
   ============================================= */

.timeline-section {
  position: relative;
  overflow: visible;
  background: linear-gradient(135deg, rgba(10, 61, 98, 0.03) 0%, rgba(249, 202, 36, 0.03) 100%);
}

/* Timeline Container */
.timeline-container {
  position: relative;
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== DESKTOP/TABLET LAYOUT (Vertical Timeline) ===== */
.timeline-wrapper {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 60px;
  align-items: flex-start;
  position: relative;
}

/* Timeline Years Navigation */
.timeline-years {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 100px;
  z-index: 10;
}

.timeline-years::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 50%;
  width: 2px;
  background-color: #e0e0e0;
  transform: translateX(-50%);
  z-index: -1;
}

.timeline-year-btn {
  position: relative;
  padding: 16px 20px;
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: var(--card-radius);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  overflow: hidden;
  letter-spacing: 0.5px;
}

.timeline-year-btn::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background-color: var(--accent-color);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease;
}

.timeline-year-btn:hover {
  border-color: var(--accent-color);
  background-color: #fafafa;
  color: var(--primary-color);
  transform: translateX(5px);
}

.timeline-year-btn.active {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  border-color: var(--primary-color);
  box-shadow: 0 8px 20px rgba(10, 61, 98, 0.2);
  transform: scale(1.05);
  z-index: 2;
}

.timeline-year-btn.active::before {
  transform: scaleY(1);
  background-color: var(--accent-color);
}

/* Year Badge */
.timeline-year-badge {
  display: inline-block;
  font-size: 0.65rem;
  background-color: var(--accent-color);
  color: var(--primary-color);
  padding: 3px 8px;
  border-radius: 12px;
  font-weight: 700;
  margin-left: 8px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Content Panel */
.timeline-content-panel {
  background: white;
  border-radius: var(--card-radius);
  padding: 40px;
  box-shadow: var(--shadow);
  border: 1px solid #f0f0f0;
  animation: fadeInUp 0.5s ease-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.timeline-content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
}

.timeline-year-title {
  font-size: 2.2rem;
  font-family: 'Playfair Display', serif;
  color: var(--primary-color);
  margin: 0;
}

/* Achievements Container */
.timeline-achievements {
  display: grid;
  gap: 20px;
  min-height: 200px;
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.achievement-item {
  padding: 20px;
  background: linear-gradient(135deg, rgba(10, 61, 98, 0.05) 0%, rgba(249, 202, 36, 0.05) 100%);
  border-left: 4px solid var(--accent-color);
  border-radius: 8px;
  transition: var(--transition);
  animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.achievement-item:nth-child(2) {
  animation-delay: 0.1s;
}

.achievement-item:nth-child(3) {
  animation-delay: 0.2s;
}

.achievement-item:hover {
  transform: translateX(5px);
  background: linear-gradient(135deg, rgba(10, 61, 98, 0.1) 0%, rgba(249, 202, 36, 0.1) 100%);
  box-shadow: 0 4px 12px rgba(10, 61, 98, 0.1);
}

.achievement-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: var(--accent-color);
  border-radius: 50%;
  color: var(--primary-color);
  font-size: 1rem;
  margin-right: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.achievement-header {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.achievement-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
  margin: 0;
  flex: 1;
}

.achievement-tag {
  display: inline-block;
  font-size: 0.7rem;
  background-color: var(--primary-color);
  color: white;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.2px;
  margin-left: 10px;
}

.achievement-description {
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
  font-size: 0.95rem;
}

/* Navigation Buttons */
.timeline-nav-buttons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid #f0f0f0;
  justify-content: flex-end;
}

.timeline-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.95rem;
}

.timeline-nav-btn:hover:not(:disabled) {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(10, 61, 98, 0.2);
}

.timeline-nav-btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  opacity: 0.6;
}

.timeline-nav-btn i {
  font-size: 0.85rem;
}

/* ===== MOBILE LAYOUT (Horizontal Scrollable Timeline) ===== */
.timeline-mobile-scroll,
.timeline-mobile-content {
  display: none;
}

.timeline-mobile-years {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 20px 0;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}

.timeline-mobile-years::-webkit-scrollbar {
  height: 4px;
}

.timeline-mobile-years::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.timeline-mobile-years::-webkit-scrollbar-thumb {
  background: var(--accent-color);
  border-radius: 10px;
}

.timeline-mobile-year-btn {
  flex-shrink: 0;
  padding: 12px 20px;
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  color: var(--text-light);
  scroll-snap-align: center;
}

.timeline-mobile-year-btn:hover {
  border-color: var(--accent-color);
  color: var(--primary-color);
}

.timeline-mobile-year-btn.active {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  border-color: var(--primary-color);
}

.timeline-mobile-year-display {
  text-align: center;
  margin: 20px 0;
}

.timeline-mobile-year-display h3 {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin: 0;
}

.timeline-mobile-achievements {
  display: grid;
  gap: 15px;
}

/* Timeline Dot Connector (Visual Enhancement) */
.timeline-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  background-color: var(--accent-color);
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--accent-color);
  left: -30px;
  top: 20px;
  opacity: 0;
  animation: dotPulse 0.6s ease-out;
}

@keyframes dotPulse {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===== ACCESSIBILITY & FOCUS STATES ===== */
.timeline-year-btn:focus-visible,
.timeline-nav-btn:focus-visible,
.timeline-mobile-year-btn:focus-visible {
  outline: 3px solid var(--accent-color);
  outline-offset: 2px;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== TABLET RESPONSIVE (768px) ===== */
@media (max-width: 1024px) {
  .timeline-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .timeline-years {
    flex-direction: row;
    flex-wrap: wrap;
    position: static;
  }

  .timeline-years::before {
    display: none;
  }

  .timeline-year-btn {
    flex: 1;
    min-width: 120px;
  }

  .timeline-content-panel {
    padding: 30px;
  }

  .timeline-year-title {
    font-size: 1.8rem;
  }
}

/* ===== MOBILE RESPONSIVE (max-width: 768px) ===== */
@media (max-width: 768px) {
  .timeline-wrapper {
    display: none;
  }

  .timeline-mobile-scroll,
  .timeline-mobile-content {
    display: block;
  }

  .timeline-mobile-scroll {
    margin-bottom: 30px;
    background: white;
    padding: 15px;
    border-radius: var(--card-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  }

  .timeline-mobile-content {
    background: white;
    padding: 25px;
    border-radius: var(--card-radius);
    box-shadow: var(--shadow);
    border: 1px solid #f0f0f0;
  }

  .achievement-item {
    padding: 15px;
    border-left-width: 3px;
  }

  .achievement-title {
    font-size: 1rem;
  }

  .achievement-description {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .section-padding {
    padding: 60px 0;
  }

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

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

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

  .stat-item h3 {
    font-size: 2rem;
  }

  .project-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .testimonial {
    padding: 30px 20px;
  }

  .contact-form {
    padding: 30px 20px;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input {
    border-radius: 4px;
    margin-bottom: 10px;
    width: 100%;
  }

  .newsletter-form button {
    border-radius: 4px;
    width: 100%;
    padding: 12px;
  }

  .blog-card {
    min-width: 85vw;
    flex: 0 0 85vw;
  }
}

/* =============================================
   SCROLL REVEAL ANIMATIONS
   ============================================= */

.reveal-up,
.reveal-left,
.reveal-right,
.reveal-scale {
  opacity: 0;
  transition: all 1s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal-up {
  transform: translateY(50px);
}

.reveal-left {
  transform: translateX(-50px);
}

.reveal-right {
  transform: translateX(50px);
}

.reveal-scale {
  transform: scale(0.9);
}

.reveal-active {
  opacity: 1;
  transform: translate(0) scale(1);
}

.reveal-delay-100 {
  transition-delay: 0.1s;
}

.reveal-delay-200 {
  transition-delay: 0.2s;
}

.reveal-delay-300 {
  transition-delay: 0.3s;
}

/* =============================================
   PROJECT MODAL STYLES
   ============================================= */

.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: white;
  margin: auto;
  padding: 0;
  border-radius: var(--card-radius);
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: slideInUp 0.4s ease-out;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.8);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-modal:hover {
  color: var(--accent-color);
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.modal-image {
  height: 100%;
  min-height: 300px;
}

.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-details {
  padding: 40px;
}

.modal-details h3 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.modal-location {
  color: var(--text-light);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-tags {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
}

.modal-description {
  margin-bottom: 30px;
  line-height: 1.8;
  color: var(--text-color);
}

.modal-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.modal-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-feature-item i {
  color: var(--accent-color);
  font-size: 1.2rem;
}

.modal-feature-item div {
  display: flex;
  flex-direction: column;
}

.modal-feature-item strong {
  font-size: 0.9rem;
  color: var(--primary-color);
}

.modal-feature-item span {
  font-size: 0.8rem;
  color: var(--text-light);
}

@media (max-width: 768px) {
  .modal-grid {
    grid-template-columns: 1fr;
  }

  .modal-image {
    height: 250px;
  }

  .modal-details {
    padding: 25px;
  }
}