/* ========================================
   RAYAVRITI DESIGN SYSTEM
   Dark, Futuristic, High-Contrast
   ======================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=League+Spartan:wght@600;700&family=Space+Grotesk:wght@400;500;600&display=swap');

/* ========================================
   CSS CUSTOM PROPERTIES
   ======================================== */
:root {
  /* Brand Colors */
  --primary: #d9fd3a;
  --primary-hover: #C3E800;
  --primary-active: #B2D700;

  /* Background Colors */
  --bg-default: #11110B;
  --bg-surface: #161612;
  --bg-elevated: #1C1C16;

  /* Text Colors */
  --text-primary: #d9fd3a;
  --text-secondary: #B8C94D;
  --text-muted: #7A7A66;
  --text-body: #C5C5B0;
  --text-inverse: #11110B;

  /* Border Colors */
  --border-default: #2A2A22;
  --border-active: #d9fd3a;
  --border-subtle: #1F1F18;

  /* Typography */
  --font-heading: 'League Spartan', system-ui, sans-serif;
  --font-body: 'Space Grotesk', system-ui, sans-serif;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Shadows - More refined, layered */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-soft: 0 4px 16px rgba(0, 0, 0, 0.25), 0 8px 32px rgba(0, 0, 0, 0.15);
  --shadow-hard: 0 8px 24px rgba(0, 0, 0, 0.35), 0 16px 48px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 0 20px rgba(217, 253, 58, 0.25), 0 0 40px rgba(217, 253, 58, 0.1);

  /* Motion */
  --duration-fast: 120ms;
  --duration-normal: 220ms;
  --duration-slow: 400ms;
  --easing-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --easing-emphasized: cubic-bezier(0.2, 0, 0, 1);

  /* Layout */
  --max-width: 1280px;
  --gutter: 32px;
}

/* ========================================
   RESET & BASE
   ======================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
  background-color: var(--bg-default);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(40px, 8vw, 64px);
  font-weight: 700;
  line-height: 1.1;
}

h2 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.15;
}

h3 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 600;
  line-height: 1.2;
}

h4 {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.25;
}

h5 {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
}

p {
  margin-bottom: var(--space-md);
}

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

/* ========================================
   LAYOUT
   ======================================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section {
  padding: 80px 0;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--duration-normal) var(--easing-standard);
}

.btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(211, 249, 4, 0.4);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-inverse);
  border-color: var(--primary);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  box-shadow: var(--shadow-glow);
}

.btn-primary:active {
  background-color: var(--primary-active);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-secondary:hover {
  background-color: rgba(211, 249, 4, 0.1);
}

/* ========================================
   HEADER
   ======================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--bg-default);
  border-bottom: 1px solid var(--border-subtle);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) 0;
}

.header__logo {
  height: 40px;
  width: auto;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.header__nav-list {
  display: none;
  gap: var(--space-lg);
}

.header__nav-link {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  transition: color var(--duration-fast) var(--easing-standard);
}

.header__nav-link:hover,
.header__nav-link:focus {
  color: var(--text-primary);
}

.header__cta .btn {
  padding: var(--space-sm) var(--space-lg);
  font-size: 14px;
}

/* Hide CTA on mobile, show hamburger instead */
@media (max-width: 767px) {
  .header__cta {
    display: none;
  }
}

/* Hamburger Menu Button */
.header__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--duration-fast) var(--easing-standard);
}

.header__hamburger:hover {
  border-color: var(--primary);
}

.header__hamburger:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(211, 249, 4, 0.3);
}

.header__hamburger-line {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--primary);
  transition: all var(--duration-normal) var(--easing-standard);
}

.header__hamburger-line+.header__hamburger-line {
  margin-top: 4px;
}

/* Hamburger animation when open */
.header__hamburger.is-active .header__hamburger-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.header__hamburger.is-active .header__hamburger-line:nth-child(2) {
  opacity: 0;
}

.header__hamburger.is-active .header__hamburger-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Hide hamburger on desktop */
@media (min-width: 768px) {
  .header__hamburger {
    display: none;
  }
}

/* Mobile Navigation Menu */
.header__mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-default);
  padding: var(--space-lg) var(--gutter);
  transform: translateY(-10px);
  opacity: 0;
  transition: all var(--duration-normal) var(--easing-standard);
}

.header__mobile-nav.is-open {
  display: block;
  transform: translateY(0);
  opacity: 1;
}

.header__mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.header__mobile-nav-link {
  display: block;
  padding: var(--space-sm) 0;
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  transition: color var(--duration-fast) var(--easing-standard);
}

.header__mobile-nav-link:hover,
.header__mobile-nav-link:focus,
.header__mobile-nav-link--active {
  color: var(--text-primary);
}

.header__mobile-cta .btn {
  width: 100%;
}

/* Hide mobile nav on desktop */
@media (min-width: 768px) {
  .header__mobile-nav {
    display: none !important;
  }
}

/* ========================================
   HERO
   ======================================== */
.hero {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  padding: var(--space-3xl) 0;
}

.hero__content {
  max-width: 800px;
}

.hero__headline {
  margin-bottom: var(--space-lg);
}

.hero__subtext {
  font-size: clamp(18px, 2.5vw, 22px);
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
  max-width: 600px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

/* ========================================
   ABOUT / VALUE SECTION
   ======================================== */
.about {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.about__header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.about__title {
  margin-bottom: var(--space-md);
}

.about__subtitle {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.about__card {
  background-color: var(--bg-default);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  transition: all var(--duration-normal) var(--easing-standard);
}

.about__card:hover {
  border-color: var(--border-active);
  box-shadow: var(--shadow-soft);
}

.about__card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-lg);
  color: var(--primary);
  overflow: visible;
}

.about__card-title {
  font-size: 22px;
  margin-bottom: var(--space-sm);
}

.about__card-text {
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ========================================
   SERVICES
   ======================================== */
.services__header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.services__title {
  margin-bottom: var(--space-md);
}

.services__subtitle {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.services__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  padding: var(--space-lg);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  transition: all var(--duration-normal) var(--easing-standard);
}

.services__item:hover {
  border-color: var(--border-active);
}

.services__item-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  color: var(--primary);
}

.services__item-content {
  flex: 1;
}

.services__item-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.services__item-text {
  color: var(--text-muted);
  margin-bottom: 0;
  font-size: 14px;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background-color: var(--bg-default);
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-2xl) 0;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  text-align: center;
}

.footer__logo {
  height: 48px;
  width: auto;
}

.footer__tagline {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 400px;
}

.footer__copyright {
  color: var(--text-muted);
  font-size: 12px;
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */
@media (min-width: 768px) {
  .header__nav-list {
    display: flex;
  }

  .about__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .services__item {
    flex-direction: column;
    text-align: center;
    padding: var(--space-xl);
  }

  .services__item-icon {
    margin: 0 auto;
  }
}

/* ========================================
   HERO PATTERN BACKGROUND
   ======================================== */
.hero {
  position: relative;
  overflow: hidden;
}

.hero__pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 1;
}

/* ========================================
   PAGE HERO (Internal Pages)
   ======================================== */
.page-hero {
  padding: var(--space-3xl) 0 var(--space-2xl);
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
}

.page-hero__title {
  margin-bottom: var(--space-md);
}

.page-hero__subtitle {
  color: var(--text-muted);
  font-size: clamp(18px, 2.5vw, 22px);
  max-width: 600px;
  margin: 0 auto;
}

/* ========================================
   SERVICES DETAIL PAGE
   ======================================== */
.services-detail {
  padding: var(--space-3xl) 0;
}

.service-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: start;
  gap: var(--space-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  transition: all var(--duration-normal) var(--easing-standard);
}

.service-card:hover {
  border-color: var(--border-active);
}

.service-card:last-child {
  margin-bottom: 0;
}

.service-card__icon {
  width: 64px;
  height: 64px;
  color: var(--primary);
  flex-shrink: 0;
  overflow: visible;
}

.service-card__icon svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.service-card__title {
  font-size: clamp(24px, 4vw, 32px);
  margin-bottom: var(--space-md);
}

.service-card__text {
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

.service-card__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
}

.service-card__list li {
  position: relative;
  padding-left: var(--space-lg);
  color: var(--text-secondary);
  font-size: 14px;
}

.service-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 2px;
  background-color: var(--primary);
}

@media (min-width: 768px) {
  .service-card {
    grid-template-columns: 80px 1fr;
    align-items: start;
  }

  .service-card__list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--space-3xl) 0;
}

.cta-section__inner {
  text-align: center;
}

.cta-section__title {
  margin-bottom: var(--space-md);
}

.cta-section__text {
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto var(--space-xl);
}

/* ========================================
   CONTACT PAGE
   ======================================== */
.contact {
  padding: var(--space-3xl) 0;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

@media (min-width: 768px) {
  .contact__grid {
    grid-template-columns: 2fr 1fr;
    gap: var(--space-3xl);
  }
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.form-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.form-input {
  padding: var(--space-md);
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-primary);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  transition: all var(--duration-fast) var(--easing-standard);
}

.form-input:focus {
  outline: none;
  border-color: var(--border-active);
  box-shadow: 0 0 0 3px rgba(211, 249, 4, 0.2);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236F6F5A' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 48px;
  cursor: pointer;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-full {
  width: 100%;
}

/* Contact Info */
.contact__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.contact__info-card {
  padding: var(--space-lg);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
}

.contact__info-icon {
  width: 32px;
  height: 32px;
  color: var(--primary);
  margin-bottom: var(--space-md);
}

.contact__info-title {
  font-size: 16px;
  margin-bottom: var(--space-xs);
}

.contact__info-link {
  color: var(--text-secondary);
  font-size: 14px;
  transition: color var(--duration-fast) var(--easing-standard);
}

.contact__info-link:hover {
  color: var(--text-primary);
}

.contact__info-text {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 0;
}

/* ========================================
   ACTIVE NAV LINK
   ======================================== */
.header__nav-link--active {
  color: var(--text-primary);
}

/* ========================================
   404 ERROR PAGE
   ======================================== */
.error-page {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-3xl) 0;
}

.error-page__content {
  max-width: 500px;
}

.error-page__code {
  font-size: clamp(80px, 20vw, 160px);
  font-weight: 700;
  line-height: 1;
  margin-bottom: var(--space-md);
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-active) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.error-page__title {
  margin-bottom: var(--space-md);
}

.error-page__text {
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
}

/* ========================================
   FOOTER SOCIAL LINKS
   ======================================== */
.footer__social {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  margin: var(--space-md) 0;
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--text-muted);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  transition: all var(--duration-normal) var(--easing-standard);
}

.footer__social-link svg {
  width: 20px;
  height: 20px;
}

.footer__social-link:hover {
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(211, 249, 4, 0.2);
}

.footer__social-link:active {
  transform: translateY(0);
}

/* ========================================
   CONTACT PAGE SOCIAL SECTION
   ======================================== */
.contact__social {
  margin-top: var(--space-lg);
}

.contact__social-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
}

.contact__social-links {
  display: flex;
  gap: var(--space-md);
}

.contact__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--text-muted);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  transition: all var(--duration-normal) var(--easing-standard);
}

.contact__social-link svg {
  width: 22px;
  height: 22px;
}

.contact__social-link:hover {
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(211, 249, 4, 0.2);
}

/* ========================================
   ANIMATIONS - KEYFRAMES
   ======================================== */

/* Fade in with upward motion */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade in with scale */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Shimmer effect for text */
@keyframes shimmer {
  0% {
    background-position: -200% center;
  }

  100% {
    background-position: 200% center;
  }
}

/* Floating animation */
@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* Gentle pulse */
@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }
}

/* Grid pattern movement */
@keyframes gridMove {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(60px);
  }
}

/* Glow pulse for buttons */
@keyframes glowPulse {

  0%,
  100% {
    box-shadow: var(--shadow-glow);
  }

  50% {
    box-shadow: 0 0 32px rgba(217, 253, 58, 0.5);
  }
}

/* Icon spin */
@keyframes iconSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Slide in from left */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Slide in from right */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Line drawing animation */
@keyframes drawLine {
  from {
    stroke-dashoffset: 100;
  }

  to {
    stroke-dashoffset: 0;
  }
}

/* ========================================
   HERO ANIMATIONS
   ======================================== */

/* Animated hero headline */
.hero__headline {
  animation: fadeInUp 0.8s var(--easing-emphasized) forwards;
  opacity: 0;
}

/* Animated hero subtext */
.hero__subtext {
  animation: fadeInUp 0.8s var(--easing-emphasized) 0.15s forwards;
  opacity: 0;
}

/* Animated hero CTA buttons */
.hero__cta {
  animation: fadeInUp 0.8s var(--easing-emphasized) 0.3s forwards;
  opacity: 0;
}

/* Animated background grid */
.hero__pattern svg {
  overflow: visible;
}

/* Hero pattern image styles */
.hero__pattern-image {
  position: absolute;
  top: 50%;
  right: -5%;
  transform: translateY(-50%);
  width: auto;
  height: 90%;
  max-height: 600px;
  object-fit: contain;
  opacity: 0.15;
  animation: patternFloat 8s ease-in-out infinite;
  filter: brightness(0.8);
  pointer-events: none;
}

@keyframes patternFloat {

  0%,
  100% {
    transform: translateY(-50%) translateX(0);
  }

  50% {
    transform: translateY(-50%) translateX(-10px);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero__pattern-image {
    right: -20%;
    opacity: 0.1;
  }
}

.hero__pattern-tiles {
  animation: patternDrift 30s linear infinite;
}

.hero__pattern-accents rect {
  animation: float 8s ease-in-out infinite;
}

.hero__pattern-accents rect:nth-child(1) {
  animation-delay: 0s;
}

.hero__pattern-accents rect:nth-child(2) {
  animation-delay: 2s;
}

.hero__pattern-accents rect:nth-child(3) {
  animation-delay: 4s;
}

.hero__pattern-accents rect:nth-child(4) {
  animation-delay: 6s;
}

@keyframes patternDrift {
  0% {
    transform: translateX(0) translateY(0);
  }

  100% {
    transform: translateX(-120px) translateY(-60px);
  }
}

/* ========================================
   SCROLL REVEAL ANIMATIONS
   ======================================== */

/* Base reveal class - starts hidden */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--easing-emphasized),
    transform 0.6s var(--easing-emphasized);
}

/* When element is visible */
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reveal variations */
.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s var(--easing-emphasized),
    transform 0.6s var(--easing-emphasized);
}

.reveal-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s var(--easing-emphasized),
    transform 0.6s var(--easing-emphasized);
}

.reveal-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s var(--easing-emphasized),
    transform 0.6s var(--easing-emphasized);
}

.reveal-scale.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays for grid items */
.reveal-stagger>*:nth-child(1) {
  transition-delay: 0s;
}

.reveal-stagger>*:nth-child(2) {
  transition-delay: 0.1s;
}

.reveal-stagger>*:nth-child(3) {
  transition-delay: 0.2s;
}

.reveal-stagger>*:nth-child(4) {
  transition-delay: 0.3s;
}

.reveal-stagger>*:nth-child(5) {
  transition-delay: 0.4s;
}

.reveal-stagger>*:nth-child(6) {
  transition-delay: 0.5s;
}

/* ========================================
   ENHANCED BUTTON INTERACTIONS
   ======================================== */

.btn-primary {
  position: relative;
  overflow: hidden;
  transition: all var(--duration-normal) var(--easing-standard),
    box-shadow var(--duration-normal) var(--easing-standard);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  animation: glowPulse 2s ease-in-out infinite;
}

.btn-primary:active {
  transform: translateY(0);
  animation: none;
}

.btn-secondary {
  position: relative;
  overflow: hidden;
}

.btn-secondary::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--duration-normal) var(--easing-standard);
}

.btn-secondary:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.btn-secondary:hover {
  transform: translateY(-2px);
}

/* ========================================
   ENHANCED CARD INTERACTIONS
   ======================================== */

.about__card {
  transition: all var(--duration-slow) var(--easing-emphasized);
  transform-style: preserve-3d;
  perspective: 1000px;
}

.about__card:hover {
  transform: translateY(-8px);
  border-color: var(--border-active);
  box-shadow:
    var(--shadow-hard),
    0 0 30px rgba(217, 253, 58, 0.15);
}

.about__card-icon {
  transition: all var(--duration-normal) var(--easing-standard);
}

.about__card:hover .about__card-icon {
  transform: scale(1.1) rotate(5deg);
  filter: drop-shadow(0 0 8px rgba(217, 253, 58, 0.5));
}

/* Services items enhanced */
.services__item {
  transition: all var(--duration-slow) var(--easing-emphasized);
}

.services__item:hover {
  transform: translateY(-6px);
  box-shadow:
    var(--shadow-soft),
    0 0 20px rgba(217, 253, 58, 0.1);
}

.services__item-icon {
  transition: all var(--duration-normal) var(--easing-standard);
}

.services__item:hover .services__item-icon {
  transform: scale(1.15);
  color: var(--primary);
  filter: drop-shadow(0 0 6px rgba(217, 253, 58, 0.4));
}

/* Service detail cards */
.service-card {
  transition: all var(--duration-slow) var(--easing-emphasized);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow:
    var(--shadow-soft),
    0 0 20px rgba(217, 253, 58, 0.1);
}

.service-card:hover .service-card__icon {
  transform: scale(1.1);
  filter: drop-shadow(0 0 8px rgba(217, 253, 58, 0.4));
}

.service-card__icon {
  transition: all var(--duration-normal) var(--easing-standard);
}

/* Contact info cards */
.contact__info-card {
  transition: all var(--duration-slow) var(--easing-emphasized);
}

.contact__info-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-active);
  box-shadow: var(--shadow-soft);
}

.contact__info-icon {
  transition: all var(--duration-normal) var(--easing-standard);
}

.contact__info-card:hover .contact__info-icon {
  transform: scale(1.1);
  filter: drop-shadow(0 0 6px rgba(217, 253, 58, 0.4));
}

/* ========================================
   ENHANCED SOCIAL LINKS
   ======================================== */

.footer__social-link,
.contact__social-link {
  transition: all var(--duration-normal) var(--easing-standard);
}

.footer__social-link:hover,
.contact__social-link:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 20px rgba(217, 253, 58, 0.25);
}

.footer__social-link:hover svg,
.contact__social-link:hover svg {
  animation: pulse 0.5s ease-in-out;
}

/* ========================================
   ENHANCED NAV LINKS
   ======================================== */

.header__nav-link {
  position: relative;
}

.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--duration-normal) var(--easing-standard);
}

.header__nav-link:hover::after,
.header__nav-link--active::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ========================================
   FORM INPUT ANIMATIONS
   ======================================== */

.form-input {
  transition: all var(--duration-normal) var(--easing-standard);
}

.form-input:focus {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 3px rgba(217, 253, 58, 0.2),
    0 4px 12px rgba(0, 0, 0, 0.2);
}

.form-label {
  transition: color var(--duration-fast) var(--easing-standard);
}

.form-group:focus-within .form-label {
  color: var(--primary);
}

/* ========================================
   PAGE TRANSITION
   ======================================== */

body {
  animation: fadeInUp 0.5s var(--easing-emphasized);
}

/* ========================================
   FLOATING ELEMENTS (Decorative)
   ======================================== */

.floating-element {
  animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(2) {
  animation-delay: 1s;
  animation-duration: 7s;
}

.floating-element:nth-child(3) {
  animation-delay: 2s;
  animation-duration: 8s;
}

/* ========================================
   LOGO ANIMATION
   ======================================== */

.header__logo {
  transition: all var(--duration-normal) var(--easing-standard);
}

.header__logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 8px rgba(217, 253, 58, 0.3));
}

.footer__logo {
  transition: all var(--duration-normal) var(--easing-standard);
  animation: float 6s ease-in-out infinite;
}

.footer__logo:hover {
  animation-play-state: paused;
  transform: scale(1.1);
  filter: drop-shadow(0 0 12px rgba(217, 253, 58, 0.4));
}

/* ========================================
   CTA SECTION ANIMATION
   ======================================== */

.cta-section__title {
  transition: all var(--duration-normal) var(--easing-standard);
}

.cta-section:hover .cta-section__title {
  text-shadow: 0 0 20px rgba(217, 253, 58, 0.3);
}

/* ========================================
   ACCESSIBILITY - REDUCED MOTION
   ======================================== */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1;
    transform: none;
  }

  .hero__headline,
  .hero__subtext,
  .hero__cta {
    opacity: 1;
  }
}