/*************************************
  Design Palette
 *************************************/

@font-face {
  font-display: swap;
  font-family: 'Varino';
  font-style: normal;
  font-weight: 400;
  src: url('../assets/Varino-Regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Comfortaa';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('../assets/Comfortaa-Regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Rock Salt';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('../assets/RockSalt-Regular.woff2') format('woff2');
}

:root {
  --sc-company-color: #00b0f0;
  --sc-red-color: #f43971;
  --sc-subtitle-color: #dedede;
  --sc-text-color: #e2e8f0;

  --sc-bg-card: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(51, 65, 85, 0.6) 100%);
  --sc-border-card: 1px solid rgba(148, 163, 184, 0.1);

  --sc-blur-bg: blur(10px);
  --sc-gradient-blue: linear-gradient(135deg, var(--sc-company-color) 0%, #8b5cf6 50%, #ec4899 100%);
  --sc-hero-gradient-blue: linear-gradient(135deg, rgba(59, 130, 246, 0.7) 0%, rgba(59, 130, 246, 0.9) 30%, #8b5cf6 70%, rgba(236, 72, 153, 0.5) 100%);
  --sc-shadow-blue-light: 0 0 20px rgba(59, 130, 246, 0.3);
  --sc-shadow-blue: 0 0 30px rgba(59, 130, 246, 0.3);

  --sc-gap: 4rem;
  --sc-radius-large: 2rem;
  --sc-radius-medium: 1rem;

  --sc-logo-font-family: 'Varino', ui-sans-serif, system-ui, sans-serif;
  --sc-main-font-family: 'Comfortaa', ui-sans-serif, system-ui, sans-serif;
  --sc-signature-font-family: 'Rock Salt', cursive;
  --sc-story-num-font-family: 'Varino', ui-sans-serif, system-ui, sans-serif;
  --sc-button-font-family: 'Varino', ui-sans-serif, system-ui, sans-serif;
}

@media (max-width: 1024px) {
  :root {
    --sc-gap: 3rem;
  }
}

@media (max-width: 450px) {
  :root {
    --sc-gap: 2rem;
  }
}

/*************************************
  Global Styles
 *************************************/

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin-top: var(--sc-gap);
  height: 100%;
  width: 100%;
  max-width: 100vw;
  background: rgba(21, 24, 30, 0.95);
  color: var(--sc-text-color);
  font-family: var(--sc-main-font-family);
  opacity: 0;
  transition: opacity 150ms ease-in;
}

body::before {
  animation: backgroundShift 5s ease-in-out infinite;
  background:
    radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.1) 0%, transparent 50%);
  content: '';
  height: 100%;
  width: 100%;
  left: 0;
  position: fixed;
  top: 0;
  z-index: -1;
}

@keyframes backgroundShift {
  0%, 100% {
    opacity: 1;
  }

  50% {
    opacity: 0.8;
  }
}

header, main, section, footer {
  width: 100%;
}

p {
  font-size: clamp(1rem, calc(0.8rem + 1.2vmin), 1.25rem);
  line-height: 1.6;
}

/*************************************
  Container & Layout
 *************************************/

.Layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sc-gap);
}

.LayoutTight {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.Container {
  max-width: 1440px;
  padding-inline: var(--sc-gap);
  margin: 0 auto;
}

/*************************************
  Header
 *************************************/

.LogoLayout {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .LogoLayout {
    flex-direction: column;
  }
}

.LogoLayout>.Logo {
  height: 6rem;
  padding: 5px;
  width: auto;
}

.LogoLayout>.Logo:hover {
  filter: drop-shadow(0 12px 24px rgba(59, 130, 246, 0.5));
  transform: scale(1.1) rotate(5deg);
}

.CompanyName {
  display: inline-block;
  background: var(--sc-gradient-blue);
  color: var(--sc-company-color);
  font-family: var(--sc-logo-font-family);
  font-size: 2rem;
  letter-spacing: 1.5px;
  line-height: 1;
  text-shadow: var(--sc-shadow-blue);
  white-space: nowrap;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.CompanyTagline {
  color: var(--sc-subtitle-color);
  font-family: var(--sc-logo-font-family);
  font-size: 13px;
  letter-spacing: 4px;
  white-space: nowrap;
  margin-inline-start: 2px;
}

/*
For CompanyName & CompanyTagline only.

I've given up on finding the exact voodoo for clamp() to obtain 
the UX I desire. I've tried a dizzying array of get-AI from
various vendors and source samples. Eyeballing it here. 

Verbose & sadly it is tacky but it is aesthetically 
superior to clamp() in this circumstance. In general, 
I'm a fan of clamp() as a design tool.
*/

@media (max-width: 565px) {
  .CompanyName {
    font-size: 1.75rem;
    letter-spacing: 1px;
  }

  .CompanyTagline {
    font-size: 12px;
    letter-spacing: 3px;
  }
}

@media (max-width: 465px) {
  .CompanyName {
    font-size: 1.5rem;
    letter-spacing: 1px;
  }

  .CompanyTagline {
    font-size: 10px;
    letter-spacing: 2.8px;
  }
}

@media (max-width: 400px) {
  .CompanyName {
    font-size: 1.25rem;
    letter-spacing: 1px;
  }

  .CompanyTagline {
    font-size: 9px;
    letter-spacing: 1.75px;
  }
}

@media (max-width: 300px) {
  .CompanyName {
    font-size: 1.15rem;
    letter-spacing: 1px;
  }

  .CompanyTagline {
    font-size: 8.5px;
    letter-spacing: 1.75px;
  }
}

/*************************************
  Hero
 *************************************/

.Hero>.Carousel {
  background: var(--sc-hero-gradient-blue);
  height: 13rem;
}

.HeroContents {
  max-width: 1024px;
  margin: 0 var(--sc-gap) 2rem;
  text-align: left;
}

.HeroContents>p {
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .Hero>.Carousel {
    height: 15.5rem;
  }

  .HeroContents>p {
    line-height: 1.45;
  }
}

@media (max-width: 450px) {
  .HeroContents {
    text-align: center;
  }
}

/*************************************
  Story
 *************************************/

.Story>.Container {
  max-width: 1440px;
}

.StoryLayout {
  display: grid;
  gap: var(--sc-gap);
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

@media (max-width: 768px) {
  .StoryLayout {
    grid-template-columns: 1fr;
  }
}

.StoryCard {
  background: var(--sc-bg-card);
  border: var(--sc-border-card);
  border-radius: var(--sc-radius-medium);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  width: 100%;
  height: 100%;
  overflow: hidden;
  padding: var(--sc-gap);
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: var(--sc-blur-bg);
}

.StoryCard::before {
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
  content: '';
  height: 3px;
  left: 0;
  opacity: 0.8;
  position: absolute;
  right: 0;
  top: 0;
}

.StoryCard::after {
  background: linear-gradient(45deg, transparent, rgba(59, 130, 246, 0.1), transparent);
  content: '';
  height: 200%;
  left: -50%;
  opacity: 0;
  position: absolute;
  top: -50%;
  transform: rotate(45deg);
  transition: all 0.6s ease;
  width: 200%;
}

.StoryCard:hover {
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(59, 130, 246, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-8px) scale(1.02);
}

.StoryCard:hover::after {
  animation: shimmer 1.5s ease-in-out;
  opacity: 1;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }

  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

.StoryNumber {
  background: var(--sc-gradient-blue);
  background-clip: text;
  font-family: var(--sc-story-num-font-family);
  font-size: clamp(2rem, calc(2rem + 0.5vw), 3rem);
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 1.5rem;
  opacity: 0.6;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: var(--sc-shadow-blue-light);
}

.StoryCard h3 {
  color: #f1f5f9;
  font-size: clamp(1.2rem, calc(1.2rem + 0.5vw), 1.5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.StoryCard p {
  color: #cbd5e1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/*************************************
  Contact
 *************************************/

.Contact>.Container {
  max-width: 1024px;
}

@media (max-width: 450px) {
  .Contact>.Container {
    padding-inline: 1.5rem;
  }
}

.ContactHeader>p {
  text-align: center;
}

.ContactCard {
  width: 100%;
  overflow: hidden;
  display: grid;
  gap: var(--sc-gap);
  padding: var(--sc-gap);
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  justify-content: center;
  background: #0a0a0a33;
  border: var(--sc-border-card);
  border-radius: var(--sc-radius-medium);
  backdrop-filter: var(--sc-blur-bg);
}

.ContactCard>.LogoLayout {
  flex-direction: column;
}

.ContactCard .Logo {
  height: 4.5rem;
}

.ContactCard .CompanyName {
  font-size: clamp(1.1rem, calc(1.1rem + 0.9vw), 1.3rem);
  letter-spacing: clamp(1.1px, calc(1px + 0.8vw), 1.3px);
}

.ContactCard .CompanyTagline {
  font-size: clamp(0.62rem, calc(0.6rem + 0.2vw), 0.66rem);
  letter-spacing: clamp(0px, calc(0.6px + 0.15vw), 1.15px);
}

.ContactSignature {
  color: var(--sc-text-color);
  font-family: var(--sc-signature-font-family);
  font-size: 1.65rem;
  font-weight: normal;
}

.ContactSignature>.Accent {
  color: var(--sc-red-color);
}

.ContactCard a, .ContactCard span {
  color: #e0e0e0;
  font-size: 1.1rem;
  line-height: 1.5rem;
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.ContactCard a:hover {
  background: var(--sc-gradient-blue);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transform: scale(1.05);
}

.ContactLearnMore {
  width: 100%;
  text-align: center;
}

.BtnResume {
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
  border-radius: var(--sc-radius-large);
  box-shadow:
    0 10px 30px rgba(59, 130, 246, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  color: white;
  display: inline-block;
  font-family: var(--sc-button-font-family);
  font-size: 14px;
  line-height: 14px;
  font-weight: 400;
  letter-spacing: 1px;
  overflow: hidden;
  padding-block: 1.25rem;
  position: relative;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  width: 100%;
  max-width: 400px;
}

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

.BtnResume:hover {
  box-shadow:
    0 15px 40px rgba(59, 130, 246, 0.4),
    0 0 40px rgba(139, 92, 246, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
}

.BtnResume:hover::before {
  left: 100%;
}

/*************************************
  Footer
 *************************************/

.FooterLayout {
  padding: 1.25rem;
  text-align: center;
  background: #0a0a0a33;
  border-top: var(--sc-border-card);
  backdrop-filter: var(--sc-blur-bg);
}

.FooterLayout>.CompanyName {
  font-size: 14px;
  letter-spacing: 1px;
}