/* GENERAL */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

:root {
  --primary-color: #3498db;
  --text-color: #333;
  --text-light: #555;
  --bg-color: #fff;
  --section-bg: #fff;
  --experience-bg: #fff;
  --contact-bg: #fff;
  --card-bg: #fff;
  --modal-bg: #fff;
  --modal-overlay: rgba(0, 0, 0, 0.5);
  --accent-color: #e74c3c;
  --dark-color: #000;
  --box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

[data-theme="dark"] {
  --text-color: #fff;
  --text-light: #ccc;
  --bg-color: #111;
  --section-bg: #111;
  --experience-bg: #111;
  --contact-bg: #111;
  --card-bg: #222;
  --modal-bg: #222;
  --modal-overlay: rgba(0, 0, 0, 0.8);
  --dark-color: #fff;
  --box-shadow: 0 4px 8px rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .project-title,
[data-theme="dark"] .project-description,
[data-theme="dark"] .experience-sub-title,
[data-theme="dark"] .title,
[data-theme="dark"] .section__text__p2,
[data-theme="dark"] .section__text__p1,
[data-theme="dark"] .logo,
[data-theme="dark"] .nav-links a,
[data-theme="dark"] .theme-text,
[data-theme="dark"] a {
  color: var(--dark-color);
}

[data-theme="dark"] .icon {
  filter: invert(1) brightness(2);
}

[data-theme="dark"] .btn-color-2 {
  border-color: var(--text-color);
  color: var(--text-color);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-color);
  background-color: var(--bg-color);
  transition: var(--transition);
  padding-top: 17vh;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 17vh;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* NAV */
nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 17vh;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--bg-color);
  transition: var(--transition);
}

.nav-links {
  display: flex;
  gap: 2rem;
  font-size: 1.5rem;
}

.nav-links li a {
  position: relative;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s ease-in-out;
}

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

.nav-links li a:hover {
  color: var(--primary-color);
}

.logo {
  font-size: 2rem;
  font-weight: 600;
  cursor: pointer;
}

.theme-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#hamburger-nav {
  display: none;
}

.hamburger-menu {
  position: relative;
  display: inline-block;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 24px;
  width: 30px;
  cursor: pointer;
}

.hamburger-icon span {
  width: 100%;
  height: 2px;
  background-color: var(--text-color);
  transition: all 0.3s ease-in-out;
}

.menu-links {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: var(--modal-overlay);
  backdrop-filter: blur(10px);
  width: 250px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
  border-radius: 1rem;
  box-shadow: var(--box-shadow);
  z-index: 100;
  border: none;
}

.menu-links a {
  display: block;
  padding: 1rem;
  text-align: center;
  font-size: 1.2rem;
  color: white; /* Ensure visible on overlay */
  font-weight: 500;
  transition: var(--transition);
}

.menu-links a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--primary-color);
}

.menu-links li {
  list-style: none;
}

.menu-links .theme-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.8rem 1.5rem;
  margin: 0.5rem 1.5rem;
  font-size: 1.2rem;
  color: white;
  cursor: pointer;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.menu-links .theme-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.menu-links.open {
  max-height: 400px;
  padding: 1rem 0;
  border: none;
}

.hamburger-icon.open span:first-child {
  transform: rotate(45deg) translate(10px, 5px);
}

.hamburger-icon.open span:nth-child(2) {
  opacity: 0;
}

.hamburger-icon.open span:last-child {
  transform: rotate(-45deg) translate(10px, -5px);
}

/* PROFILE */
section {
  padding-top: 4vh;
  height: 96vh;
  margin: 0 10rem;
  box-sizing: border-box;
  min-height: fit-content;
}

#profile {
  display: flex;
  justify-content: center;
  gap: 5rem;
  height: 80vh;
}

.section__pic-container {
  display: flex;
  height: 400px;
  width: 400px;
  margin: auto 0;
}

.profile-pic {
  border-radius: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: var(--box-shadow);
}

.section__text {
  align-self: center;
  text-align: center;
}

.section__text__p1 {
  text-align: center;
  font-weight: 600;
}

.section__text__p2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.title {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 1rem;
}

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

.profile-icon {
  font-size: 2.5rem;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-color);
}

.profile-icon:hover {
  transform: scale(1.1);
  color: var(--primary-color);
}

.icon {
  cursor: pointer;
  height: 2rem;
  transition: var(--transition);
}

.icon:hover {
  transform: scale(1.1);
}

/* BUTTONS */
.btn-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn {
  font-weight: 600;
  transition: var(--transition);
  padding: 1rem;
  width: 8rem;
  border-radius: 2rem;
  border: 1px solid var(--text-color); /* fallback */
  cursor: pointer;
}

.btn:hover {
  background: var(--text-color);
  color: var(--bg-color);
}

.btn-color-1 {
  background: var(--text-color);
  color: var(--bg-color);
}

.btn-color-1:hover {
  background: var(--bg-color);
  color: var(--text-color);
  border: 1px solid var(--text-color);
}

.btn-color-2 {
  background: none;
  border: 1px solid var(--text-color);
}

.btn-color-2:hover {
  background: var(--text-color);
  color: var(--bg-color);
}

.contact-info-panel {
  display: none;
  position: absolute;
  background: var(--card-bg);
  padding: 1rem;
  border-radius: 1rem;
  box-shadow: var(--box-shadow);
  z-index: 10;
}
.contact-info-panel.open {
  display: block;
}

/* ABOUT */
.about-details-container {
  justify-content: center;
  flex-direction: column;
}

.about-containers,
.about-details-container {
  display: flex;
}

.about-pic {
  border-radius: 2rem;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.about-pic:hover {
  transform: scale(1.02);
}

.arrow {
  position: absolute;
  right: -5rem;
  bottom: 2.5rem;
  cursor: pointer;
  background: var(--primary-color);
  color: white;
  padding: 0.8rem;
  border-radius: 50%;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.arrow:hover {
  background: #2980b9;
  transform: translateX(5px);
}

.details-container {
  padding: 2rem;
  flex: 1;
  background: var(--card-bg);
  border-radius: 2rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--box-shadow);
}

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

.details-container img {
  margin-bottom: 1rem;
}

.details-container h3 {
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.section-container {
  gap: 4rem;
  height: 80%;
}

.section__pic-container {
  height: 400px;
  width: 400px;
  margin: auto 0;
}

.text-container {
  padding: 1.5rem;
  background: var(--card-bg);
  border-radius: 1rem;
  box-shadow: var(--box-shadow);
}

.text-container p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

/* TIMELINE */
.timeline {
  position: relative;
  margin-top: 2rem;
  padding-left: 2.5rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0.8rem;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(
    to bottom,
    rgba(52, 152, 219, 0.2),
    var(--primary-color),
    rgba(52, 152, 219, 0.2)
  );
  opacity: 0.6;
  background-size: 100% 300%;
  animation: timelineLineFlow 8s ease-in-out infinite;
  border-radius: 2px;
}

.timeline::after {
  content: '';
  position: absolute;
  inset: -10px 0;
  left: 50%;
  transform: translateX(-50%);
  max-width: 780px;
  margin: 0 auto;
  background: radial-gradient(circle at top, rgba(52, 152, 219, 0.12), transparent 60%);
  filter: blur(4px);
  opacity: 0.8;
  pointer-events: none;
  z-index: -1;
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  background: var(--card-bg);
  border-radius: 1rem;
  box-shadow: var(--box-shadow);
  padding: 1.2rem 1.4rem 1.2rem 2.6rem;
  transition: var(--transition);
}

.timeline-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.timeline-marker {
  position: absolute;
  left: 0;
  top: 1.4rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary-color);
  box-shadow: 0 0 0 6px rgba(52, 152, 219, 0.12);
  transform: translate(-120%, -50%);
  border: 2px solid #ffffff20;
  animation: timelineMarkerPulse 3s ease-in-out infinite;
}

.timeline-content h3 {
  color: var(--primary-color);
  margin-bottom: 0.25rem;
  font-size: 1.2rem;
}

.timeline-meta {
  color: var(--text-light);
  font-size: 0.95rem;
  font-weight: 500;
}

.timeline-content p {
  margin-top: 0.4rem;
  line-height: 1.7;
}

.publications {
  margin-top: 2.5rem;
}

.publication-item {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border-radius: 1.25rem;
  background: var(--card-bg);
  box-shadow: var(--box-shadow);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.publication-title {
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 0.75rem;
}

.publication-meta {
  color: var(--text-light);
  font-size: 0.95rem;
}

.publication-meta a {
  color: var(--primary-color);
}

.publication-meta a:hover {
  text-decoration: underline;
}

@keyframes timelineLineFlow {
  0% {
    background-position: 0 0;
  }
  50% {
    background-position: 0 50%;
  }
  100% {
    background-position: 0 100%;
  }
}

@keyframes timelineMarkerPulse {
  0% {
    transform: translate(-120%, -50%) scale(1);
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.12);
  }
  50% {
    transform: translate(-120%, -50%) scale(1.06);
    box-shadow: 0 0 0 8px rgba(52, 152, 219, 0.22);
  }
  100% {
    transform: translate(-120%, -50%) scale(1);
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.12);
  }
}

/* EXPERIENCE SECTION */

#experience {
  position: relative;
  background: var(--experience-bg);
  border-radius: 2rem;
  padding: 3rem;
}

.experience-sub-title {
  color: var(--dark-color);
  font-weight: 600;
  font-size: 1.75rem;
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
}

.experience-sub-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
}

.experience-details-container {
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.article-container {
  display: flex;
  text-align: initial;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 2.5rem;
  justify-content: space-around;
}

article {
  display: flex;
  width: 12rem;
  justify-content: flex-start;
  gap: 1rem;
  padding: 1rem;
  border-radius: 1rem;
  transition: var(--transition);
  background: var(--card-bg);
  box-shadow: var(--box-shadow);
}

article:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

article .icon {
  cursor: default;
  height: 2rem;
  width: 2rem;
}

.experience-icon {
  font-size: 2rem;
  color: var(--primary-color);
  transition: var(--transition);
}

article:hover .experience-icon {
  transform: scale(1.2) rotate(5deg);
  filter: drop-shadow(0 0 8px rgba(52, 152, 219, 0.4));
}

article:nth-child(1) { transition-delay: 0.05s; }
article:nth-child(2) { transition-delay: 0.1s; }
article:nth-child(3) { transition-delay: 0.15s; }
article:nth-child(4) { transition-delay: 0.2s; }
article:nth-child(5) { transition-delay: 0.25s; }
article:nth-child(6) { transition-delay: 0.3s; }
article:nth-child(7) { transition-delay: 0.35s; }
article:nth-child(8) { transition-delay: 0.4s; }
article:nth-child(9) { transition-delay: 0.45s; }
article:nth-child(10) { transition-delay: 0.5s; }

article div h3 {
  color: var(--primary-color);
  margin-bottom: 0.3rem;
}

article div p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* PROJECTS SECTION */

#projects {
  position: relative;
  background-color: var(--section-bg);
  border-radius: 2rem;
  padding: 3rem;
  box-shadow: var(--box-shadow);
}

.color-container {
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: var(--card-bg);
  border-radius: 2rem;
  padding: 1.5rem;
  transition: var(--transition);
  box-shadow: var(--box-shadow);
  display: flex;
  flex-direction: column;
}

.color-container:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 1rem;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.project-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.project-title {
  margin: 1rem 0;
  color: var(--dark-color);
  font-size: 1.5rem;
}

.project-description {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-size: 1rem;
  text-align: justify;
  line-height: 1.8;
}

.project-btn {
  color: var(--primary-color);
  border-color: var(--primary-color);
  font-weight: 600;
  padding: 0.8rem 1.5rem;
  margin-top: auto;
  align-self: center;
}

.more-text {
  display: none;
}

.more-text.show {
  display: inline;
}

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

/* CONTACT */

#contact {
  display: flex;
  justify-content: center;
  flex-direction: column;
  height: auto;
  min-height: 70vh;
  background: var(--contact-bg);
  border-radius: 2rem;
  padding: 3rem;
}

.contact-info-upper-container {
  display: flex;
  justify-content: center;
  border-radius: 2rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: var(--card-bg);
  margin: 0;
  padding: 1rem;
  box-shadow: var(--box-shadow);
}

.contact-info-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1rem;
  padding: 1rem;
  border-radius: 1rem;
  transition: var(--transition);
}

.contact-info-container:hover {
  background: rgba(52, 152, 219, 0.1);
  transform: translateY(-3px);
}

.background-cubes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.cube {
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 1.25rem;
  border: 1px solid rgba(52, 152, 219, 0.18);
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.18), transparent);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.08);
  transform: rotate(18deg);
  opacity: 0.6;
  animation: floatCube 28s linear infinite;
}

.cube-1 {
  top: 70%;
  left: 5%;
  animation-delay: 0s;
  transform: rotate(18deg) scale(0.9);
}

.cube-2 {
  top: 80%;
  left: 60%;
  animation-delay: -6s;
  transform: rotate(26deg) scale(1.1);
}

.cube-3 {
  top: 60%;
  left: 80%;
  animation-delay: -12s;
  transform: rotate(45deg) scale(0.8);
}

/* POLYBUS GPS VISUALIZATION */
.polybus-visual {
  background: #1a1a2e; /* Dark map background */
  overflow: hidden;
  position: relative;
  border-radius: 1rem;
}

.gps-map-bg {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-image: 
    linear-gradient(rgba(52, 152, 219, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(52, 152, 219, 0.1) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: mapGridScroll 20s linear infinite;
}

.map-route-line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(-15deg) scale(1.5);
  box-shadow: 0 0 10px rgba(52, 152, 219, 0.3);
}

.gps-bus-wrapper {
  position: absolute;
  top: 50%;
  left: -10%;
  transform: translate(-50%, -50%);
  animation: busDrive 8s linear infinite;
  z-index: 10;
}

.gps-bus-marker {
  font-size: 2.5rem;
  color: #3498db;
  filter: drop-shadow(0 0 10px rgba(52, 152, 219, 0.8));
  transform: rotate(-15deg); /* Match route angle */
  background: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(52, 152, 219, 0.5);
}

.gps-pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid rgba(52, 152, 219, 0.8);
  animation: gpsPulse 2s ease-out infinite;
}

.gps-hud {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-end;
}

.hud-item {
  background: rgba(0, 0, 0, 0.6);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  color: #3498db;
  font-family: monospace;
  font-size: 0.8rem;
  font-weight: bold;
  border: 1px solid rgba(52, 152, 219, 0.3);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  backdrop-filter: blur(4px);
}

.hud-item i {
  animation: blink 2s infinite;
}

/* Animations */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.floating {
  animation: float 6s ease-in-out infinite;
}

.bounce {
  animation: bounce 2s infinite;
}

.typing-cursor {
  display: inline-block;
  width: 3px;
  background-color: var(--primary-color);
  animation: cursor-blink 1s infinite;
  margin-left: 5px;
}

@keyframes mapGridScroll {
  0% { background-position: 0 0; }
  100% { background-position: -40px 40px; }
}

@keyframes busDrive {
  0% { left: -10%; top: 60%; }
  100% { left: 110%; top: 30%; } /* Moves diagonally across */
}

@keyframes gpsPulse {
  0% { width: 100%; height: 100%; opacity: 1; border-width: 2px; }
  100% { width: 300%; height: 300%; opacity: 0; border-width: 0px; }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Contact Button */
.contact-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin: 2rem auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--box-shadow);
}

.contact-btn:hover {
  background: #2980b9;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* MODAL STYLES */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: var(--modal-overlay);
  backdrop-filter: blur(5px);
  transition: var(--transition);
}

.modal-content {
  background-color: var(--modal-bg);
  margin: 10% auto;
  padding: 2rem;
  border-radius: 1rem;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: modalopen 0.5s;
}

@keyframes modalopen {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.close-btn {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2rem;
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition);
}

.close-btn:hover {
  color: var(--accent-color);
}

.modal-content h2 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  text-align: center;
}

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

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-family: inherit;
  background-color: var(--bg-color);
  color: var(--text-color);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

.submit-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  cursor: pointer;
  width: 100%;
  transition: var(--transition);
  font-weight: 600;
}

.submit-btn:hover {
  background: #2980b9;
}

@media screen and (max-width: 600px) {
  .modal-content {
    margin: 20% auto;
    width: 95%;
  }
}

/* FOOTER */
footer {
  height: auto;
  padding: 2rem 1rem;
  margin: 0 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

footer p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-top: 1rem;
  margin-bottom: 0;
}

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

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--card-bg);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  color: var(--text-color);
  font-size: 1.5rem;
  text-decoration: none;
}

.footer-socials a:hover {
  transform: translateY(-5px);
  color: var(--primary-color);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .footer-socials a {
  background: var(--card-bg);
  color: var(--text-color);
}

.video-disclaimer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  font-size: 0.8rem;
  padding: 0.5rem;
  text-align: center;
  backdrop-filter: blur(4px);
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 1rem;
  z-index: 10;
}

/* Scroll Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

.animate-on-scroll.show {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays for child elements */
.animate-delay-100 { transition-delay: 0.1s; }
.animate-delay-200 { transition-delay: 0.2s; }
.animate-delay-300 { transition-delay: 0.3s; }
.animate-delay-400 { transition-delay: 0.4s; }
.animate-delay-500 { transition-delay: 0.5s; }

/* Scale up animation */
.animate-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-scale.show {
  opacity: 1;
  transform: scale(1);
}

/* Slide in from left */
.animate-slide-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-slide-left.show {
  opacity: 1;
  transform: translateX(0);
}

/* Slide in from right */
.animate-slide-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-slide-right.show {
  opacity: 1;
  transform: translateX(0);
}
