/*////////////////////////
SCOPEDATA.ai teaser site
3/Jun/25 e@co8.com
------------
scopedata colors:
purple #4d1354 rgb(77, 19, 84)
pink #a50c7b
teal #5b6b9e 
gradient #270a2a, #731c7e
////////////////////////*/

:root {
  --color-primary: rgb(77, 19, 84);
  --color-pink: #a50c7b;
  --color-teal: #5b6b9e;
  --color-gradient-start: #270a2a;
  --color-gradient-end: #731c7e;
  --color-white: rgb(255, 255, 255);
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --font-size-base: 1rem;
  --font-size-lg: clamp(1.25rem, 4vw, 1.8rem);
  --font-size-xl: clamp(1.8rem, 6vw, 3rem);
  --font-size-mobile-lg: clamp(1rem, 4vw, 1.6rem);
  --font-size-mobile-xl: clamp(1.2rem, 5vw, 2rem);
  --shadow-text: 0px 5px 10px rgba(0, 0, 0, 0.3);
  --container-max-width: 1200px;
  --container-padding: clamp(1rem, 5vw, 3rem);
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
  --focus-outline: 3px solid #5b6b9e;
  --border-radius: 8px;
}

body {
  background-color: var(--color-primary);
  color: var(--color-white);
  overflow: hidden;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  /* Prevent horizontal scroll on mobile */
  overflow-x: hidden;
  line-height: 1.6;
  text-align: center;
}

/* Skip link for accessibility */
/* .skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--color-white);
  color: var(--color-primary);
  padding: 8px;
  text-decoration: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  z-index: 9999;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 6px;
} */

/* Focus styles for accessibility */
a:focus,
button:focus {
  outline: var(--focus-outline);
  outline-offset: 2px;
  border-radius: var(--border-radius);
}

/* Remove outline for mouse users, keep for keyboard */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}
canvas {
  position: fixed;
  z-index: -1000;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  pointer-events: none;
  overflow: hidden;
}
.montserrat-normal,
.montserrat-normal-italic,
.montserrat-light,
.montserrat-light-italic,
.montserrat-semibold,
.montserrat-semibold-italic,
.montserrat-bold-italic {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
}
.montserrat-normal,
.montserrat-normal-italic {
  font-weight: 400;
}
.montserrat-semibold,
.montserrat-semibold-italic {
  font-weight: 500;
}
.montserrat-bold,
.montserrat-bold-italic {
  font-weight: 700;
}
.montserrat-light,
.montserrat-light-italic {
  font-weight: 200;
}
.montserrat-normal-italic,
.montserrat-light-italic,
.montserrat-semibold-italic,
.montserrat-bold-italic {
  font-style: italic;
}
#main-content {
  background-color: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  align-content: center;
  height: 100vh;
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: var(--container-padding);
}
.shadow {
  /* Fallback for older browsers */
  text-shadow: var(--shadow-text);
  /* Modern browsers */
  filter: drop-shadow(var(--shadow-text));
}
.nowrap {
  white-space: nowrap;
  flex-wrap: nowrap;
}
sup {
  vertical-align: baseline;
  position: relative;
  top: -2em; /* linear scaling */
  font-size: 0.3em;
  font-weight: 400;
}
#logo,
#logo-mobile,
#tagline,
#tagline-mobile {
  position: absolute;
  /* left: 50%; */
  transform: translate(-50%, -50%);
  z-index: 1;
}
#logo {
  top: 35%;
  width: clamp(60%, 80vw, 800px);
  max-width: 800px;
  animation: fadeInDown 1s var(--transition-slow) both;
}
#tagline {
  top: 48%;
  font-size: var(--font-size-xl);
  text-align: center;
  width: 100%;
  line-height: 1.2;
  animation: fadeInUp 1s var(--transition-slow) both;
}
/* LinkedIn section layout */
#linkedin-section {
  position: absolute;
  top: 72%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  /* gap: var(--spacing-lg); */
  z-index: 1;
  animation: fadeIn 1.5s var(--transition-slow) both;
}

#join {
  font-size: var(--font-size-lg);
  text-align: center;
  margin: 4rem 0 0 0; /* margin: 0; */
  order: 1;
  position: static;
  transform: none;
}

#join-mobile {
  position: static;
  transform: none;
}

#linkedin-link {
  order: 2;
  position: static;
  transform: none;
}

#linkedin {
  opacity: 0.8;
  width: clamp(80px, 8vw, 120px);
  height: auto;
  transition: all var(--transition-medium);
  position: static;
  transform: none;
}

#linkedin:hover {
  opacity: 1;
  transform: scale(1.05);
}

#logo-mobile,
#tagline-mobile,
#join-mobile {
  display: none;
}

/* Tablet and mobile styles */
@media screen and (max-width: 768px) {
  #logo,
  #tagline,
  #join {
    display: none;
  }
  #logo-mobile,
  #tagline-mobile,
  #join-mobile {
    display: block;
    text-align: center;
  }
  #logo-mobile {
    top: clamp(15%, 20vh, 25%);
    max-width: min(400px, 90vw);
    animation: fadeInDown 1s var(--transition-slow) both;
  }
  #tagline-mobile {
    width: 100%;
    font-size: var(--font-size-mobile-xl);
    top: clamp(40%, 45vh, 50%);
    line-height: 1.2;
    animation: fadeInUp 1s var(--transition-slow) both;
  }
  /* Mobile LinkedIn section */
  #linkedin-section {
    top: clamp(65%, 70vh, 75%);
    gap: var(--spacing-md);
  }

  #join {
    display: none;
  }

  #join-mobile {
    display: block;
    font-size: var(--font-size-lg);
    width: 90%;
    text-align: center;
    margin: 0;
    order: 1;
  }

  #linkedin-link {
    order: 2;
  }

  #linkedin {
    opacity: 1;
    width: clamp(100px, 15vw, 150px);
    height: auto;
  }
}

/* Small mobile devices */
@media screen and (max-width: 480px) {
  #main-content {
    padding: var(--spacing-md);
  }
  #tagline-mobile {
    line-height: 1.2;
  }
  #linkedin-section {
    top: clamp(75%, 80vh, 85%);
    gap: var(--spacing-sm);
  }
  sup {
    font-size: 0.3em;
  }
}

/* Large screens */
@media screen and (min-width: 1200px) {
  #tagline {
    font-size: 3rem;
  }
  #join {
    font-size: 1.8rem;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translate(-50%, -60%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate(-50%, -40%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

/* CSS Fallbacks for older browsers */
@supports not (gap: 1rem) {
  #linkedin-section > * + * {
    margin-top: var(--spacing-lg);
  }

  @media screen and (max-width: 768px) {
    #linkedin-section > * + * {
      margin-top: var(--spacing-md);
    }
  }

  @media screen and (max-width: 480px) {
    #linkedin-section > * + * {
      margin-top: var(--spacing-sm);
    }
  }
}

@supports not (clamp(1rem, 4vw, 2rem)) {
  #tagline {
    font-size: 2.5rem;
  }

  #join {
    font-size: 1.5rem;
  }

  @media screen and (max-width: 768px) {
    #tagline-mobile {
      font-size: 2.2rem;
    }

    #join-mobile {
      font-size: 1.8rem;
    }
  }

  @media screen and (max-width: 480px) {
    #tagline-mobile {
      font-size: 1.8rem;
    }

    #join-mobile {
      font-size: 1.3rem;
    }
  }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
  #linkedin {
    opacity: 1;
    padding: var(--spacing-sm);
    margin: calc(-1 * var(--spacing-sm));
  }

  #linkedin:active {
    transform: scale(0.95);
  }
}

/* Print styles */
@media print {
  body {
    background: white !important;
    color: black !important;
  }

  canvas {
    display: none !important;
  }

  #linkedin-section {
    display: none !important;
  }

  .shadow {
    filter: none !important;
    text-shadow: none !important;
  }

  #tagline::after {
    content: " - ScopeData.ai";
    font-size: 0.8em;
    font-style: normal;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --shadow-text: 0px 2px 4px rgba(0, 0, 0, 0.8);
  }

  body {
    background: black !important;
    color: white !important;
  }

  #linkedin {
    filter: brightness(1.5);
  }
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
  canvas {
    display: none;
  }
  body {
    background: linear-gradient(
      135deg,
      var(--color-gradient-start),
      var(--color-gradient-end)
    );
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
