/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Skip to main content link (hidden by default, visible on focus) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.sr-only.focus\:not-sr-only:focus {
  position: static;
  width: auto;
  height: auto;
  padding: inherit;
  margin: inherit;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* Typography */
body {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  line-height: 1.6;
}

/* Hero Section - Ensure it's below the Navbar and spans the entire viewport height */
body,
html {
  margin: 0;
  padding: 0;
}

.font-display {
  font-family: "Playfair Display", serif;
  font-weight: 600;
}

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

/* Custom font weights */
.font-light {
  font-weight: 300;
}
.font-normal {
  font-weight: 400;
}
.font-medium {
  font-weight: 500;
}
.font-semibold {
  font-weight: 600;
}
.font-bold {
  font-weight: 700;
}



/* Hero section animations */
.hero-animation {
  animation: fadeInUp 1s ease-out;
}

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

/* Card hover effects */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-5px);
}

/* Button animations */
.btn-animate {
  transition: all 0.3s ease;
}

.btn-animate:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Loading animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Mobile menu animations */
.mobile-menu {
  transition: all 0.3s ease;
}

/* Custom focus styles */
.focus-ring:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Text selection */
::selection {
  background-color: #3b82f6;
  color: white;
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }
}

/* Hero slider removed */

/* hero container removed */

/* Hide the extra margin space from the navbar on scroll */
.navbar {
  margin-bottom: 0;
  padding-bottom: 0;
}

/* slide styles removed */

/* slide background removed */

/* hero viewport rules removed */

/* hero dynamic viewport rules removed */

/* hero mobile rules removed */

/* hero desktop rules removed */

/* Image Marquee Styles */
.image-marquee {
  animation: marquee 20s linear infinite;
  width: calc(200% + 2rem); /* Extra width for seamless loop */
}

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

/* Marquee Container */
.image-marquee-container {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Individual Image Styling */
.image-marquee img {
  transition: transform 0.3s ease;
}

/* Responsive Marquee */
@media (max-width: 1024px) {
  .image-marquee {
    animation-duration: 15s;
  }
}

@media (max-width: 768px) {
  .image-marquee {
    animation-duration: 12s;
  }

  .image-marquee > div {
    width: 16rem; /* Landscape format on mobile */
    height: 12rem;
  }
}

/* Smooth scrolling for reduced motion users */
@media (prefers-reduced-motion: reduce) {
  .image-marquee {
    animation: none;
  }
}

/* Placement Section */
/* Video reel hover play */
.placement-video {
  display: block;
  background: #000;
}
.placement-video::-webkit-media-controls {
  display: none !important;
}

/* Company logo marquees (two rows, staggered) */
.company-marquee {
  width: max-content;
  animation: marquee-logos 50s linear infinite;
}

.company-marquee-reverse {
  width: max-content;
  animation: marquee-logos-reverse 50s linear infinite;
}

.company-marquee-row1 {
  animation-duration: 50s;
}
.company-marquee-row2 {
  animation-duration: 50s;
  animation-delay: -9s;
}

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

@keyframes marquee-logos-reverse {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

@media (max-width: 1024px) {
  .company-marquee-row1 {
    animation-duration: 50s;
  }
  .company-marquee-row2 {
    animation-duration: 50s;
    animation-delay: -7s;
  }
}

@media (max-width: 768px) {
  .company-marquee-row1 {
    animation-duration: 50s;
  }
  .company-marquee-row2 {
    animation-duration: 50s;
    animation-delay: -6s;
  }
}

/* Hero Slider Styles */
/* Note: The hero slider uses a horizontal flex layout with transform translateX */
/* The track is a flex container, and slides are flex items arranged horizontally */
.hero-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease-out;
  will-change: transform;
}

.hero-slide {
  /* Slides are flex items, not absolutely positioned */
  /* Width is set dynamically by JavaScript */
  flex-shrink: 0;
}

/* Scroll to Top Button */
#scroll-to-top {
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  width: 2.5rem;
  height: 2.5rem;
  background-color: #3b82f6;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  opacity: 0;
  pointer-events: none;
  z-index: 1000;
  cursor: pointer;
}

#scroll-to-top:hover {
  background-color: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

#scroll-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Footer Newsletter Form */
footer input[type="email"] {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

footer input[type="email"]:focus {
  outline: none;
  border-color: #9ca3af;
  box-shadow: 0 0 0 3px rgba(156, 163, 175, 0.1);
}

/* Navbar Dropdown Transitions */
#about-dropdown-menu {
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform: translateY(-10px);
}

#about-dropdown-menu.opacity-100 {
  transform: translateY(0);
}

/* Mobile Menu Transitions */
#mobile-panel {
  transition: transform 0.3s ease;
}

#mobile-backdrop {
  transition: opacity 0.3s ease;
}

/* Hero Slider Navigation Buttons */
.hero-prev,
.hero-next {
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.hero-prev:hover,
.hero-next:hover {
  transform: scale(1.1);
}

/* Hero Slider Dots */
.hero-dot {
  transition: background-color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}

.hero-dot:hover {
  transform: scale(1.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #scroll-to-top {
    right: 1rem;
    bottom: 1rem;
    width: 2rem;
    height: 2rem;
  }
}
