:root {
  --blue: #4285f4;
  --red: #ea4335;
  --yellow: #fbbc05;
  --green: #34a853;
  --dark: #111827;
  --gray: #6b7280;
  --purple: #8b5cf6;
  --pink: #ec4899;
  --cyan: #06b6d4;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes glow {
  0%,
  100% {
    box-shadow: 0 0 5px rgba(66, 133, 244, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(66, 133, 244, 0.6);
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(135deg, #f5f7fb 0%, #eef3ff 100%);
  color: var(--dark);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(
      circle at 20% 50%,
      rgba(66, 133, 244, 0.05),
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(139, 92, 246, 0.05),
      transparent 50%
    );
  pointer-events: none;
  z-index: -1;
}

/* Navbar Styles */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  padding: 15px 20px;
  z-index: 1000;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(66, 133, 244, 0.1);
  animation: slideDown 0.5s ease;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.navbar-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-logo {
  font-weight: 700;
  font-size: 24px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  transition: 0.3s;
  animation: fadeInUp 0.6s ease;
}

.navbar-logo:hover {
  transform: scale(1.1) rotateZ(2deg);
}

.nav-menu {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 8px 0;
}

.nav-link:hover {
  color: var(--blue);
  transform: translateY(-2px);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  transition: width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-radius: 2px;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--purple) 100%);
  color: white;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
}

.nav-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.3s ease;
  z-index: 0;
}

.nav-cta:hover {
  box-shadow: 0 8px 25px rgba(66, 133, 244, 0.5);
  transform: translateY(-3px);
}

.nav-cta:hover::before {
  left: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--dark);
  margin: 5px 0;
  border-radius: 3px;
  transition: 0.3s;
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 60px;
    flex-direction: column;
    background-color: white;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    gap: 0;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.1);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-link {
    display: block;
    padding: 15px;
    border-bottom: 1px solid #f5f7fb;
  }

  .hamburger {
    display: flex;
  }
}

header {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ffffff 0%, #e8f0ff 40%, #f0e8ff 100%);
  position: relative;
  overflow: hidden;
}

header::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(66, 133, 244, 0.15), transparent);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

header::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15), transparent);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 20px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.8s ease;
}

.hero h1 {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.1;
  background: linear-gradient(
    135deg,
    var(--dark) 0%,
    var(--blue) 50%,
    var(--purple) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: slideInLeft 0.8s ease 0.2s both;
}

.hero span {
  background: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  color: var(--gray);
  margin-top: 15px;
  text-align: left;
  font-size: 1.05rem;
  line-height: 1.8;
  animation: slideInLeft 0.8s ease 0.3s both;
}

.badge {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--purple) 100%);
  color: white;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(66, 133, 244, 0.3);
  animation: slideInLeft 0.8s ease 0.4s both;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.badge::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  transition: left 0.3s ease;
}

.badge:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(66, 133, 244, 0.4);
}

.badge:hover::before {
  left: 100%;
}

.profile-img {
  width: 100%;
  max-width: 300px; /* prevent the profile picture from growing too large */
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  z-index: 1;
  animation: slideInRight 0.8s ease 0.3s both;
}

.profile-img:hover {
  transform: scale(1.05) rotateY(5deg);
  box-shadow: 0 20px 40px rgba(66, 133, 244, 0.3);
}

.profile-container {
  position: relative;
  display: inline-block;
  width: 100%;
  animation: slideInRight 0.8s ease 0.2s both;
}

.profile-container::before {
  content: "";
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(66, 133, 244, 0.3),
    rgba(139, 92, 246, 0.3)
  );
  border-radius: 20px;
  z-index: 0;
  transition: all 0.4s ease;
  filter: blur(20px);
}

.profile-container:hover::before {
  top: -40px;
  right: -40px;
  box-shadow: 0 30px 60px rgba(66, 133, 244, 0.4);
  filter: blur(30px);
}

.profile-img-wrapper {
  position: relative;
  z-index: 2;
}

.gallery-mini {
  display: none; /* legacy container, replaced by gallery-row */
  gap: 15px;
  margin-top: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.gallery-mini img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  border: 3px solid transparent;
  animation: fadeInUp 0.8s ease 0.5s both;
  position: relative;
  overflow: hidden;
}

.gallery-mini img::before {
  content: "🔍";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  font-size: 28px;
  transition: transform 0.3s ease;
  z-index: 2;
}

.gallery-mini img:hover::before {
  transform: translate(-50%, -50%) scale(1);
}

.gallery-mini img:hover {
  transform: translateY(-15px) scale(1.1) rotateZ(-5deg);
  box-shadow: 0 15px 35px rgba(66, 133, 244, 0.4);
  border-color: var(--blue);
}

section {
  padding: 80px 0;
}

section:nth-child(even) {
  background: linear-gradient(180deg, #ffffff 0%, #f1f5ff 100%);
}

.title {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 40px;
  text-align: center;
  position: relative;
  display: inline-block;
  background: linear-gradient(135deg, var(--dark) 0%, var(--blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
  animation: fadeInUp 0.8s ease;
}

.title:after {
  content: "";
  width: 80px;
  height: 5px;
  background: linear-gradient(90deg, var(--blue), var(--purple), var(--cyan));
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -15px;
  border-radius: 5px;
  animation: slideInLeft 0.8s ease 0.3s both;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(66, 133, 244, 0.1);
  backdrop-filter: blur(8px);
  animation: fadeInUp 0.8s ease;
}

.card:nth-child(1) {
  animation-delay: 0.1s;
}

.card:nth-child(2) {
  animation-delay: 0.2s;
}

.card:nth-child(3) {
  animation-delay: 0.3s;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(66, 133, 244, 0.15),
    transparent
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(66, 133, 244, 0.2), transparent);
  opacity: 0;
  transition: all 0.4s ease;
}

.card:hover::before {
  opacity: 1;
}

.card:hover::after {
  top: -20%;
  right: -20%;
  opacity: 1;
}

.card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 50px rgba(66, 133, 244, 0.2);
  border-color: rgba(66, 133, 244, 0.3);
}

.card h3 {
  color: var(--dark);
  font-size: 1.3rem;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.timeline {
  border-left: 3px solid;
  border-image: linear-gradient(180deg, var(--blue), var(--purple), var(--cyan))
    1;
  padding-left: 30px;
  position: relative;
  animation: fadeInUp 0.8s ease;
}

.timeline-item {
  margin-bottom: 35px;
  position: relative;
  padding-left: 15px;
  transition: all 0.3s ease;
  animation: fadeInUp 0.8s ease;
}

.timeline-item:hover {
  transform: translateX(10px);
}

.timeline-item:before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  position: absolute;
  left: -38px;
  top: 6px;
  box-shadow: 0 0 0 6px rgba(66, 133, 244, 0.2);
  transition: all 0.3s ease;
  animation: pulse 2s ease-in-out infinite;
}

.timeline-item:hover:before {
  box-shadow: 0 0 0 12px rgba(66, 133, 244, 0.3);
  transform: scale(1.3);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
/* Image column for hero */
.image-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.gallery-row {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* enforce reasonable thumbnail dimensions */
.gallery-thumbnail {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
}

/* make sure all images scale to their containers */
img {
  max-width: 100%;
  height: auto;
}

footer {
  text-align: center;
  padding: 50px 20px;
  background: linear-gradient(135deg, #111827 0%, #1f2937 50%, #1a202c 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
}

footer p {
  position: relative;
  z-index: 1;
  font-weight: 500;
  letter-spacing: 0.5px;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero p {
    text-align: left;
  }

  .image-column {
    width: 100%;
  }

  .gallery-row {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* Center only requested sections */
body > section:nth-of-type(1) .container,
body > section:nth-of-type(3) .container,
body > section:nth-of-type(4) .container,
body > section:nth-of-type(5) .container,
body > section:nth-of-type(6) .container,
body > section:nth-of-type(7) .container,
body > section:nth-of-type(8) .container {
  text-align: center;
}

body > section:nth-of-type(1) p,
body > section:nth-of-type(3) p,
body > section:nth-of-type(6) p {
  margin-left: auto;
  margin-right: auto;
}

body > section:nth-of-type(5) ul,
body > section:nth-of-type(7) ul {
  display: inline-block;
  text-align: left;
}

.centered .container {
  text-align: center;
}

.centered p {
  margin-left: auto;
  margin-right: auto;
}

.centered ul {
  display: inline-block;
  text-align: left;
}

.clean-list {
  line-height: 1.9;
  color: #374151;
  list-style: none;
  padding-left: 0;
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

.clean-list li {
  padding: 8px 0 8px 28px;
  position: relative;
}

.clean-list li:before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  position: absolute;
  left: 0;
  top: 14px;
}

.clean-list.wide {
  max-width: 650px;
  display: block;
  margin: 20px auto;
  text-align: left;
}

.clean-list.wide li {
  display: block;
  width: 100%;
}

/* Modal Lightbox Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  padding: 40px 0;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
  overflow: auto;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  position: relative;
  background-color: rgba(255, 255, 255, 0.05);
  margin: auto;
  padding: 40px;
  width: 90%;
  max-width: 900px;
  border-radius: 20px;
  border: 1px solid rgba(66, 133, 244, 0.3);
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(66, 133, 244, 0.2);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 15px;
  display: block;
  margin: 0 auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modal-caption {
  color: white;
  padding: 20px 0;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  font-weight: bold;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  z-index: 2001;
}

.close:hover,
.close:focus {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg) scale(1.1);
  color: #f1f1f1;
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 16px 20px;
  background-color: rgba(66, 133, 244, 0.3);
  color: white;
  border: none;
  font-size: 24px;
  cursor: pointer;
  border-radius: 10px;
  transition: all 0.3s ease;
  font-weight: bold;
  z-index: 2001;
}

.modal-nav:hover {
  background-color: rgba(66, 133, 244, 0.6);
  transform: translateY(-50%) scale(1.2);
}

.prev {
  left: 20px;
}

.next {
  right: 20px;
}

@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    padding: 30px 20px;
    margin-top: 60px;
  }

  .modal-nav {
    padding: 12px 16px;
    font-size: 20px;
  }

  .prev {
    left: 10px;
  }

  .next {
    right: 10px;
  }

  .close {
    font-size: 30px;
    width: 40px;
    height: 40px;
    top: 10px;
    right: 10px;
  }
}
