@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
  :root {
    /* Updated light theme to use soft gray instead of white */
    --background: 0 0% 94%; /* Light gray background */
    --foreground: 0 0% 15%; /* Dark text for light theme */

    --card: 0 0% 97%; /* Slightly lighter gray for cards */
    --card-foreground: 0 0% 15%;

    --popover: 0 0% 97%;
    --popover-foreground: 0 0% 15%;

    --primary: 187 100% 33%; /* Cyan stays the same */
    --primary-foreground: 0 0% 100%;

    --secondary: 0 0% 88%; /* Medium gray for secondary elements */
    --secondary-foreground: 0 0% 15%;

    --muted: 0 0% 88%;
    --muted-foreground: 0 0% 40%;

    --accent: 0 0% 88%;
    --accent-foreground: 0 0% 15%;

    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 0 0% 100%;

    --border: 0 0% 85%; /* Darker border for better visibility */
    --input: 0 0% 90%;
    --ring: 187 100% 33%;

    --contact-banner: 0 0% 88%;

    --radius: 0.5rem;
  }

  .dark {
    /* Updated dark theme to match original design */
    --background: 0 0% 0%; /* Pure black */
    --foreground: 210 40% 98%; /* Light text */

    --card: 0 0% 7%;
    --card-foreground: 210 40% 98%;

    --popover: 0 0% 7%;
    --popover-foreground: 210 40% 98%;

    --primary: 187 100% 33%;
    --primary-foreground: 0 0% 100%;

    --secondary: 217.2 32.6% 17.5%;
    --secondary-foreground: 210 40% 98%;

    --muted: 217.2 32.6% 17.5%;
    --muted-foreground: 215 20.2% 65.1%;

    --accent: 217.2 32.6% 17.5%;
    --accent-foreground: 210 40% 98%;

    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 210 40% 98%;

    --border: 217.2 32.6% 17.5%;
    --input: 217.2 32.6% 17.5%;
    --ring: 212.7 26.8% 83.9%;

    --contact-banner: 0 0% 47%;
  }
}

@layer base {
  * {
    @apply border-border;
  }
  body {
    @apply bg-background text-foreground;
    font-family: "Helvetica", Arial, sans-serif;
    padding-top: 80px; /* Add padding to account for fixed header */
  }
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-family: var(--font-fahkwang), sans-serif;
  }
  p {
    font-family: "Helvetica Light", "Helvetica", Arial, sans-serif;
    font-weight: 300;
  }
  button {
    font-family: "Helvetica", Arial, sans-serif;
  }
  .container {
    @apply px-4 mx-auto max-w-7xl;
  }
}

/* Additional custom styles */
html {
  scroll-behavior: smooth;
}

section {
  scroll-margin-top: 80px;
}

/* Add backdrop filter support for Safari */
@supports (backdrop-filter: blur(10px)) {
  .backdrop-blur-sm {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }
}

/* Custom width classes for the about section */
.w-3\/8 {
  width: 37.5%;
}

.w-5\/8 {
  width: 62.5%;
}

@media (max-width: 768px) {
  .w-3\/8,
  .w-5\/8 {
    width: 100%;
  }
}

/* Add these styles at the end of the file to ensure smooth transitions between sections */
@layer utilities {
  .section-overlap {
    margin-top: -1px;
  }

  /* Ensure no white gaps between sections */
  section {
    position: relative;
    z-index: 1;
  }

  /* Improve parallax smoothness */
  html {
    overflow-x: hidden;
  }

  /* Prevent horizontal scrollbar */
  body {
    overflow-x: hidden;
    width: 100%;
  }

  /* Marquee animations for running partners */
  @keyframes marquee {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-33.33%);
    }
  }

  .marquee-container {
    width: 100%;
    overflow: hidden;
  }

  .animate-marquee {
    animation: marquee 30s linear infinite;
    display: flex;
    width: fit-content;
  }
}
