/* ============================================
   CSS RESET & BASE STYLES
   ============================================ */

/* CSS Variables */
:root {
  /* Layout */
  --maxw: 1024px;
  --maxw-xl: 1600px;
  --maxw-lg: 1440px;
  --maxw-md: 1200px;
  --border-radius: 12px;

  --animation-delay: 500ms;

  /* Colors - Background */
  --bg-default: #00081f;
  --bg-surface: #010a25;
  --bg-alt: #1a2035;
  --bg-darker: #050612;

  /* Colors - Text */
  --text-default: #ffffff;
  --text-default-alt: #e8f0fe;
  --text-secondary: #a0c8ff;
  --text-muted: #545f7f;
  --text-accent: #d9d800;
  --text-muted-alt: rgba(255, 255, 255, 0.7);
  --text-muted-alt2: #808492;

  /* Gradients */
  --text-fancy: linear-gradient(
    90deg,
    hsla(186, 89%, 61%, 1) -33%,
    hsla(219, 74%, 65%, 1) 52%,
    hsla(245, 88%, 75%, 1) 133%
  );
  --gradient1: linear-gradient(
    180deg,
    hsla(0, 0%, 100%, 1) 0%,
    hsla(219, 100%, 60%, 1) 100%,
    hsla(245, 88%, 75%, 1) 100%
  );
  --gradient2: radial-gradient(circle, hsl(221, 94%, 6%) 0%, hsl(228, 67%, 12%) 100%);
  --text-silver: linear-gradient(152deg, hsla(190, 22%, 89%, 1) 13%, hsla(200, 11%, 83%, 1) 100%);
  --hr-gradient: linear-gradient(90deg, #010a25, rgb(23, 42, 96) 50%, #010a25 100%);
  --cta-gradient: linear-gradient(135deg, #ffffff -20%, #a0c8ff 150%);
  --video-bg: linear-gradient(0deg, hsl(200, 86%, 83%) -50%, hsl(19, 90%, 96%)) 150%;
  --section-gradient-bg: linear-gradient(180deg, #050612 0%, #050612 100%);
}

/* Box Model Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Base HTML & Body */
html,
body {
  font-family: "Rubik", sans-serif;
  background-color: var(--bg-default);
  color: var(--text-default);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: none;
  -ms-text-size-adjust: none;
  line-height: 1.5;
  overflow-x: hidden;
  font-size: 16px;
}

/* Typography - Headings */
h1 {
  font-size: 2.986rem;
}

h2 {
  font-size: 2.488rem;
  color: white;
  font-weight: 300;
  line-height: 3.6624rem;
}

h3 {
  font-size: 2.074rem;
  font-weight: 300;
}

h4 {
  font-size: 1.728rem;
  line-height: 1.2;
  font-weight: 400;
}

h5 {
  font-size: 1.44rem;
  font-weight: 400;
}

h6 {
  font-size: 1.2rem;
  font-weight: 500;
}

/* Typography - Body Text */
p {
  color: var(--text-muted-alt);
  max-width: 800px;
  font-size: 1rem;
}

small {
  font-size: 0.833rem;
}

/* Links */
a,
a:hover,
a:active,
a:focus {
  text-decoration: none;
  color: white;
  transition: color 0.3s;
}

/* Form Elements */
input,
textarea {
  width: 100%;
  padding: 16px 1em 16px 48px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(200, 200, 200, 0.05);
  color: white;
  font-family: inherit;
  outline: none;
  font-size: 1rem;
  transition: border-color 0.3s, filter 0.3s, background-color 0.3s;
  height: 70px;
  font-weight: 500;
}

input:hover,
textarea:hover {
  filter: brightness(1.3);
}

input:focus,
textarea:focus {
  border-color: var(--text-secondary);
  background-color: rgba(0, 0, 0, 0.05);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-default);
  opacity: 0.75;
  font-weight: 400;
}

textarea {
  min-height: 120px;
  resize: none;
}

/* Sections */
section {
  padding: 70px 0 120px;
}

/* Containers */
.container,
.container-xl,
.container-lg,
.container-md {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  /* padding: 0 12px; */
  padding: 0;
}

.container-xl {
  max-width: var(--maxw-xl);
}

.container-lg {
  max-width: var(--maxw-lg);
}

.container-md {
  max-width: var(--maxw-md);
}

/* Navigation */
nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

nav a {
  margin-left: 18px;
  text-decoration: none;
  color: var(--text-muted-alt);
  font-weight: 400;
  transition: color 0.3s;
}

nav a:hover,
nav a:active {
  color: white;
}

nav a.cta {
  color: var(--accent);
}

/* Horizontal Rule */
hr {
  width: 100%;
  height: 1px;
  background: var(--hr-gradient);
  border: none;
}

/* Footer */
footer {
  text-align: center;
  padding: 50px 24px 20px;
  font-size: 0.86rem;
  background: var(--bg-darker);
}

.footer-bottom {
  margin-top: 40px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer,
.footer-bottom,
footer *,
.footer-bottom * {
  color: var(--text-muted-alt2);
}

/* Material Icons Configuration */
.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 24;
}

/* ============================================
       UTILITY CLASSES
       ============================================ */

/* Font Weights */
.fw300 {
  font-weight: 300;
}

.fw400 {
  font-weight: 400;
}

.fw500 {
  font-weight: 500;
}

.fw600 {
  font-weight: 600;
}

/* Alignment */
.astart {
  align-items: flex-start;
  text-align: left;
}

.acenter {
  align-items: center;
  text-align: center;
}

.aend {
  align-items: flex-end;
  text-align: right;
}

.mauto {
  margin: 0 auto;
}

.vcenter {
  align-items: center !important;
}

/* Flex Utilities */
.flex-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
}

.flex-row-responsive {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
}

.flex-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Text Colors */
.text-accent {
  color: var(--text-accent);
}

.text-secondary {
  color: var(--text-secondary);
}

.text-fancy {
  background: var(--text-fancy);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.cta-gradient {
  background: var(--cta-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

/* Visibility Utilities */

@media (max-width: 768px) {
  .mobile-hidden {
    display: none;
  }
}

@media (min-width: 768px) {
  .desktop-hidden {
    display: none !important;
  }
}

/* ============================================
       ANIMATIONS & KEYFRAMES
       ============================================ */

/* Fade In Animation */
.fade-in {
  transform: translateY(30px);
  transition: all 1s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* General Keyframes */
@keyframes fade-in {
  0% {
    opacity: 0;
    transform: scale(1.2);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fade-out {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.8);
  }
}

/* Terminal Cursor Animation */
.typing-cursor {
  display: inline-block;
  color: var(--text-default);
  margin-left: 2px;
  animation: blink 1s step-end infinite;
  vertical-align: baseline;
  font-weight: 400;
}

.typing-cursor.typing {
  animation: none;
  opacity: 1;
}

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

/* Hero Title Word Reveal Animation */
@keyframes word-reveal {
  0% {
    opacity: 0;
    transform: translateY(-20px);
    filter: blur(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.hero-title span {
  display: inline-block;
  opacity: 0;
  animation: word-reveal 1.2s cubic-bezier(0.2, 1, 0.2, 1) forwards;
  animation-delay: var(--animation-delay);
}

/* Staggered Animation Delays */
.hero-title span:nth-child(1) {
  animation-delay: var(--animation-delay);
}
.hero-title span:nth-child(2) {
  animation-delay: calc(50ms + var(--animation-delay));
}
.hero-title span:nth-child(3) {
  animation-delay: calc(100ms + var(--animation-delay));
}
.hero-title span:nth-child(4) {
  animation-delay: calc(150ms + var(--animation-delay));
}
.hero-title span:nth-child(5) {
  animation-delay: calc(200ms + var(--animation-delay));
}
.hero-title span:nth-child(6) {
  animation-delay: calc(250ms + var(--animation-delay));
}
.hero-title span:nth-child(7) {
  animation-delay: calc(300ms + var(--animation-delay));
}
.hero-title span:nth-child(8) {
  animation-delay: calc(350ms + var(--animation-delay));
}
.hero-title span:nth-child(9) {
  animation-delay: calc(400ms + var(--animation-delay));
}
.hero-title span:nth-child(10) {
  animation-delay: calc(450ms + var(--animation-delay));
}
.hero-title span:nth-child(11) {
  animation-delay: calc(500ms + var(--animation-delay));
}
.hero-title span:nth-child(12) {
  animation-delay: calc(550ms + var(--animation-delay));
}
