/* ===================================
   TASKINTERN SOFTWORKS - MAIN STYLES
   =================================== */

/* ===== CSS RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 0;
  height: 100%;
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: "League Spartan", sans-serif;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  width: 100%;
  position: relative;
  height: 100%;
}

/* ===== BACKGROUND EFFECTS ===== */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background: radial-gradient(
      circle at 20% 30%,
      rgba(0, 153, 255, 0.1),
      transparent 50%
    ),
    radial-gradient(circle at 80% 70%, rgba(255, 0, 204, 0.08), transparent 50%);
  z-index: -3;
}

body::after {
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.02),
    transparent 60%
  );
  animation: ambientGlow 12s ease-in-out infinite alternate;
  z-index: -4;
}

@keyframes ambientGlow {
  from {
    opacity: 0.05;
    transform: scale(1);
  }
  to {
    opacity: 0.15;
    transform: scale(1.1);
  }
}

/* ===== GLASS MORPHISM COMPONENTS ===== */
.glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(0.75rem);
  -webkit-backdrop-filter: blur(0.75rem);
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  margin: 0 auto;
  padding: clamp(1rem, 3vh, 3rem) clamp(1.25rem, 5vw, 3rem);
  box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.nav-glass {
  background: linear-gradient(135deg, #0047ab, #1e90ff);
  box-shadow: 0 4px 15px rgba(0, 71, 171, 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 1rem;
  border: none;
  padding: clamp(0.5rem, 2vw, 0.75rem) clamp(1rem, 3vw, 1.5rem);
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  transform: translateY(-2px);
}

.nav-glass::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transform: skewX(-25deg);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% {
    left: -100%;
  }
  20% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}

.nav-glass img {
  display: inline-block;
  vertical-align: middle;
  border-radius: 50%;
  height: clamp(1.5rem, 4vw, 2rem);
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.nav-glass span {
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
  margin-top: 0.125rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* ===== NAVIGATION ===== */
nav {
  padding: 1rem 0;
  position: relative;
}

.nav-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 0.75rem 1rem;
  position: relative;
  font-weight: 500;
}

/* Desktop Navigation Styles */
@media (min-width: 1280px) {
  .nav-link {
    border-radius: 0.5rem;
  }

  .nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
  }

  .nav-link.active {
    color: white;
    background: rgba(255, 255, 255, 0.1);
  }
}

/* Mobile Navigation Styles */
@media (max-width: 1279px) {
  .nav-link {
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  .nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
  }

  .nav-link.active {
    color: white;
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid #1e90ff;
  }
}

/* ===== MOBILE MENU ===== */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 100;
}

.hamburger-line {
  width: 100%;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 6rem 1rem 1rem;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  visibility: hidden;
}

.mobile-menu.active {
  transform: translateX(0);
  visibility: visible;
}

.mobile-menu .nav-link {
  display: block;
  padding: 1rem 1.5rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu .nav-link:last-child {
  border-bottom: none;
}

.mobile-menu .nav-link:hover,
.mobile-menu .nav-link.active {
  color: white;
  background: rgba(255, 255, 255, 0.05);
  padding-left: 2rem;
}

.mobile-menu .contact-btn {
  margin: 1rem 1.5rem;
  width: calc(100% - 3rem);
  justify-content: center;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, #0047ab, #1e90ff);
  padding: 1rem;
  text-align: center;
  font-weight: 500;
}

/* Responsive Navigation */
@media (max-width: 1023px) {
  .mobile-menu-btn {
    display: flex;
  }

  .mobile-menu {
    display: flex;
  }
}

@media (min-width: 1024px) {
  .mobile-menu {
    display: none;
  }
}

/* ===== CONTACT BUTTON ===== */
.contact-btn {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: clamp(0.5rem, 1.5vw, 0.75rem);
  color: #ffffff;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(2.5rem, 6vw, 3rem);
  height: clamp(2.5rem, 6vw, 3rem);
}

.contact-btn svg {
  width: clamp(1.25rem, 3vw, 1.5rem);
  height: clamp(1.25rem, 3vw, 1.5rem);
}

.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(96, 165, 250, 0.3);
  background: rgba(255, 255, 255, 0.1);
}

.contact-btn:hover::before {
  left: 100%;
}

.contact-btn:active {
  transform: translateY(0);
}

/* ===== ANIMATED BACKGROUND ELEMENTS ===== */
.animated-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -1;
  perspective: 1px;
}

.star {
  position: absolute;
  width: 0.125rem;
  height: 0.125rem;
  background: white;
  border-radius: 50%;
  animation: twinkle 1s infinite ease-in-out;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.2;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.2);
  }
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      to right,
      rgba(255, 255, 255, 0.015) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: clamp(1rem, 2vw, 1.5rem) clamp(1rem, 2vw, 1.5rem);
  mask-image: radial-gradient(
    circle at center,
    rgba(0, 0, 0, 1) 40%,
    rgba(0, 0, 0, 0) 100%
  );
  -webkit-mask-image: radial-gradient(
    circle at center,
    rgba(0, 0, 0, 1) 40%,
    rgba(0, 0, 0, 0) 100%
  );
  pointer-events: none;
  z-index: -2;
}

.neon-stripe {
  z-index: -5;
  position: absolute;
  width: 0.03125rem;
  height: 17.5rem;
  background: linear-gradient(
    to bottom,
    transparent,
    #cf0f47,
    #fff085,
    #102e50,
    transparent
  );
  animation: moveStripe 3s linear infinite;
  opacity: 0;
  animation-delay: calc(var(--i) * 1.5s);
}

@keyframes moveStripe {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  10%,
  90% {
    opacity: 0.7;
  }
  100% {
    transform: translateY(100%);
    opacity: 0;
  }
}

/* ===== LAYOUT COMPONENTS ===== */
.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
  min-height: 100vh;
  box-sizing: border-box;
}

/* Each section is a block with spacing and padding */
.section {
  width: 100%;
  max-width: 70rem;
  background: rgba(255,255,255,0.03);
  border-radius: 1.5rem;
  margin-bottom: 3rem;
  padding: 4rem 2rem;
  box-sizing: border-box;
  box-shadow: 0 2px 16px 0 rgba(0,0,0,0.04);
  position: relative;
  z-index: 1;
}

.section:last-child {
  margin-bottom: 0;
}

.section-content {
  width: 100%;
  max-width: 60rem;
  margin: 0 auto;
  padding: 0;
}

.section-divider {
  width: 100%;
  max-width: 70rem;
  height: 2px;
  margin: 2rem auto 3rem auto;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15) 20%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.15) 80%, transparent);
  border-radius: 1px;
}

.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  margin-bottom: 3rem;
  padding: 4rem 2rem;
  border-radius: 1.5rem;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
}

/* ===== SECTIONS ===== */
.careers-section {
  min-height: 100vh;
  width: 100%;
  padding: 6rem 0;
  position: relative;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.3));
}

/* ===== BUTTONS ===== */
.cta-button {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #0047ab, #1e90ff);
  color: white;
  border-radius: 9999px;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
  margin-top: 2rem;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 71, 171, 0.3);
}

.apply-btn {
  background: linear-gradient(90deg, #0047ab 0%, #1e90ff 50%, #cf0f47 100%);
  color: #fff;
  font-weight: 500;
  border: none;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.95;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: 1.5rem;
  min-width: unset;
  margin-top: 1rem;
  align-self: flex-start;
  position: relative;
  overflow: hidden;
}

.apply-btn:hover {
  background: linear-gradient(90deg, #cf0f47 0%, #1e90ff 60%, #0047ab 100%);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2),
    0 4px 6px -2px rgba(0, 0, 0, 0.1);
  opacity: 1;
  transform: translateY(-2px);
}

.apply-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: 0.5s;
}

.apply-btn:hover::before {
  left: 100%;
}

/* ===== CARDS ===== */
.internship-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.remote-badge {
  background: linear-gradient(135deg, #1e90ff, #0047ab);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  box-shadow: 0 2px 4px rgba(30, 144, 255, 0.2);
}

.remote-badge::before {
  content: "🌍";
  font-size: 0.875rem;
  margin-right: 0.25rem;
}

.internship-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.05),
    transparent
  );
  transform: translateX(-100%);
  transition: 0.6s;
}

.internship-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2),
    0 10px 10px -5px rgba(0, 0, 0, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.internship-card:hover::before {
  transform: translateX(100%);
}

.internship-card .icon-wrapper {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.5rem;
  transition: all 0.3s ease;
}

.internship-card:hover .icon-wrapper {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
}

.internship-card .icon-wrapper svg {
  width: 100%;
  height: 100%;
  color: #1e90ff;
  transition: all 0.3s ease;
}

.internship-card:hover .icon-wrapper svg {
  color: #60a5fa;
}

.internship-card h4 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.internship-card .responsibilities,
.internship-card .perks {
  margin-bottom: 1.5rem;
}

.internship-card strong {
  color: #fff;
  font-size: 1.1rem;
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.internship-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.internship-card li {
  color: #a8b2d1;
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.6;
}

.internship-card li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #1e90ff;
}

.internship-card .emoji-icon {
  font-size: 2rem;
  margin-right: 0.5rem;
  vertical-align: middle;
}

/* ===== SOCIAL & FORM ELEMENTS ===== */
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-link {
  color: white;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.social-link:hover {
  opacity: 1;
}

.newsletter-form {
  max-width: 400px;
  margin: 2rem auto;
}

.newsletter-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  color: white;
  margin-bottom: 1rem;
}

.newsletter-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.4);
}

/* ===== FOOTER ===== */
.footer {
  width: 100%;
  padding: 1.5rem 0 0.5rem 0;
  margin-top: auto;
  position: relative;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}

.footer-line {
  width: 90%;
  max-width: 700px;
  height: 1.5px;
  margin-bottom: 1.25rem;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.18),
    transparent
  );
  border-radius: 1px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.footer-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.footer-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: white;
}

/* ===== UTILITIES ===== */
.gradient-pill {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  background: linear-gradient(90deg, #0047ab 0%, #1e90ff 60%, #cf0f47 100%);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 8px rgba(30, 144, 255, 0.1);
  border: none;
}

/* ===== SMOOTH SCROLLING & TRANSITIONS ===== */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 0; /* Remove the padding-top */
}

/* Scroll Progress Indicator */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #0047ab, #1e90ff);
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 1000;
  transition: transform 0.1s ease-out;
}

/* Section Transitions */
section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

section.fade-in {
  opacity: 1;
  transform: translateY(0);
}

section.fade-out {
  opacity: 0;
  transform: translateY(20px);
}

/* Active Navigation Link */
.nav-link.active {
  color: white;
  position: relative;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #0047ab, #1e90ff);
  transform: scaleX(1);
  transition: transform 0.3s ease;
}

/* Floating Action Button */
.floating-action-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #0047ab, #1e90ff);
  border: none;
  box-shadow: 0 4px 15px rgba(0, 71, 171, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 1000;
  opacity: 0;
  transform: translateY(20px);
  visibility: hidden;
}

.floating-action-btn.visible {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.floating-action-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 71, 171, 0.4);
  background: linear-gradient(135deg, #1e90ff, #0047ab);
}

.floating-action-btn svg {
  width: 1.5rem;
  height: 1.5rem;
  color: white;
  transition: transform 0.3s ease;
}

/* Remove the rotation effect on hover */
.floating-action-btn:hover svg {
  transform: none;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
  html {
    scroll-padding-top: 60px; /* Smaller offset for mobile */
  }

  .floating-action-btn {
    width: 3rem;
    height: 3rem;
    bottom: 1.5rem;
    right: 1.5rem;
  }

  .floating-action-btn svg {
    width: 1.25rem;
    height: 1.25rem;
  }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 640px) {
  .nav-glass {
    padding: 0.5rem 1rem;
  }
  .nav-glass span {
    font-size: 1rem;
    margin-top: 0.125rem;
  }
  .nav-glass img {
    height: 1.5rem;
  }
  .glass {
    padding: 2rem 1.5rem;
    margin: 1rem auto;
    width: 95%;
  }
  .hero-section {
    min-height: 100vh;
    padding: 1rem;
  }
  .hero-section .glass {
    margin: 0 auto;
  }
  h1 {
    font-size: clamp(2rem, 5vw, 4.5rem) !important;
    white-space: normal !important;
    line-height: 1.2;
  }
  p {
    font-size: clamp(1rem, 3vw, 2.25rem) !important;
    line-height: 1.5;
  }
  .internship-card {
    padding: 1.5rem;
  }
  .internship-card h4 {
    font-size: 1.25rem;
  }
  .section-content,
  .about-content {
    padding: 0 1rem;
  }

  .glass,
  .about-card {
    padding: 1.5rem;
    margin: 1rem 0;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .glass {
    padding: 2.5rem 2rem;
  }
  .hero-section {
    padding: 2rem;
  }
  h1 {
    font-size: 3.5rem !important;
  }
  p {
    font-size: 1.75rem !important;
  }
  .section-content,
  .about-content {
    padding: 0 2rem;
  }

  .glass,
  .about-card {
    padding: 2rem;
  }
}

@media (min-width: 1025px) and (max-width: 1279px) {
  .glass {
    padding: 3rem;
  }
  .hero-section {
    padding: 3rem;
  }
}

@media (min-width: 1280px) {
  .glass {
    max-width: 75rem;
    padding: 3rem;
  }
  .hero-section {
    padding: 3rem;
  }
}

/* About Section Specific Styles */
.about-content {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.about-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(0.75rem);
  -webkit-backdrop-filter: blur(0.75rem);
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem;
  margin-bottom: 2rem;
}

/* Mission, Vision, Values Grid */
.mission-vision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* ===== ANIMATIONS & TRANSITIONS ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-out {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* Hero Section Button Container */
.hero-section .flex {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.hero-section .cta-button {
  width: auto;
  min-width: 200px;
  text-align: center;
  justify-content: center;
  margin: 2rem auto 0;
}

@media (max-width: 640px) {
  .hero-section .glass {
    padding: 2rem 1.5rem;
    margin: 1rem auto;
    width: 95%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-section .flex {
    width: 100%;
    align-items: center;
  }

  .hero-section .cta-button {
    width: 100%;
    max-width: 280px;
    margin: 2rem auto 0;
  }
}

/* Ensure the page starts at the top */
html, body {
  scroll-behavior: smooth;
  scroll-padding-top: 0;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

#products .section-content {
  max-width: 60rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.product-card {
  display: block;
  width: 100%;
  margin-bottom: 2rem;
  padding: 2rem;
  border-radius: 1.5rem;
  background: rgba(255,255,255,0.05);
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  border: 1px solid rgba(255,255,255,0.10);
  position: relative;
}

#products .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 900px) {
  #products .grid {
    grid-template-columns: 1fr;
  }
  .product-card {
    padding: 1.25rem;
  }
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .section, .hero-section {
    padding: 2.5rem 1rem;
    max-width: 98vw;
  }
  .section-content {
    max-width: 98vw;
  }
  .section-divider {
    max-width: 98vw;
  }
}

@media (max-width: 600px) {
  .section, .hero-section {
    padding: 1.5rem 0.5rem;
    border-radius: 1rem;
  }
}

/* ===== JOB POST CARDS (JOIN OUR TEAM) ===== */
.role-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 1.5rem;
  border: 1px solid rgba(255,255,255,0.13);
  box-shadow: 0 4px 24px 0 rgba(30, 144, 255, 0.08), 0 1.5px 6px 0 rgba(0,0,0,0.08);
  padding: 2.5rem 2rem 2rem 2rem;
  margin-bottom: 2rem;
  transition: box-shadow 0.3s, transform 0.3s;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.role-card:hover {
  box-shadow: 0 8px 32px 0 rgba(30, 144, 255, 0.16), 0 3px 12px 0 rgba(0,0,0,0.12);
  transform: translateY(-4px) scale(1.01);
}

.role-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.role-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
}

.role-card-badge {
  background: linear-gradient(90deg, #ff512f 0%, #dd2476 100%);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.3rem 0.9rem;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(221,36,118,0.12);
  margin-left: 1rem;
  letter-spacing: 0.02em;
}

.role-card-subtitle {
  color: #a8b2d1;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.role-section-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #60a5fa;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.01em;
}

.role-list {
  list-style: disc inside;
  color: #e0e6f6;
  margin-bottom: 0.5rem;
  padding-left: 1.2rem;
}

.role-list li {
  margin-bottom: 0.3rem;
  line-height: 1.6;
}

.role-perks-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.role-perk-tag {
  background: linear-gradient(90deg, #1e90ff 0%, #a259ec 100%);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.3rem 0.9rem;
  border-radius: 9999px;
  margin-right: 0.3rem;
  margin-bottom: 0.3rem;
  letter-spacing: 0.01em;
}

.role-quick-info {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-bottom: 0.5rem;
}

.role-quick-info-item {
  background: rgba(30,144,255,0.08);
  color: #fff;
  border-radius: 0.75rem;
  padding: 0.4rem 1rem;
  font-size: 0.98rem;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.role-quick-info-label {
  color: #60a5fa;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.1rem;
}

.role-highlight {
  background: linear-gradient(90deg, #0047ab 0%, #1e90ff 100%);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 0.75rem;
  padding: 0.7rem 1.2rem;
  margin: 0.5rem 0 0.5rem 0;
  box-shadow: 0 2px 8px rgba(30,144,255,0.08);
}

.role-cta {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-top: 1rem;
}

.role-apply-btn {
  background: linear-gradient(90deg, #1e90ff 0%, #a259ec 100%);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  border: none;
  border-radius: 9999px;
  padding: 0.7rem 2rem;
  box-shadow: 0 2px 8px rgba(30,144,255,0.12);
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.role-apply-btn:hover {
  background: linear-gradient(90deg, #a259ec 0%, #1e90ff 100%);
  transform: translateY(-2px) scale(1.04);
}

.role-cta-info {
  color: #a8b2d1;
  font-size: 0.98rem;
  font-weight: 500;
}

@media (max-width: 900px) {
  .role-card {
    padding: 1.5rem 1rem;
    border-radius: 1rem;
  }
}

@media (max-width: 600px) {
  .role-card {
    padding: 1rem 0.5rem;
    border-radius: 0.75rem;
  }
  .role-card-title {
    font-size: 1.1rem;
  }
  .role-highlight {
    font-size: 0.98rem;
    padding: 0.5rem 0.7rem;
  }
  .role-apply-btn {
    font-size: 0.98rem;
    padding: 0.6rem 1.2rem;
  }
}
