/* ============================================
   Premium Futuristic IT Company Design
   incodingo.pro - Light Theme Professional
   ============================================ */

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  /* Premium light gradient background */
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 25%, #f0f2f5 50%, #e9ecef 75%, #ffffff 100%);
  background-size: 400% 400%;
  animation: gradient-shift-bg 20s ease infinite;
  color: #1a1a1a;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}

@keyframes gradient-shift-bg {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Subtle animated background particles - AI/IT Professional Style */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.02) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.015) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(59, 130, 246, 0.01) 0%, transparent 50%),
    radial-gradient(circle at 60% 70%, rgba(6, 182, 212, 0.01) 0%, transparent 50%);
  z-index: 0;
  pointer-events: none;
  animation: pulse-glow 12s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Matrix Canvas Background - Light Theme */
#matrix-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.15;
  pointer-events: none;
  mix-blend-mode: multiply;
}

/* Fluid Cursor Animation */
#fluid-cursor-container {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

#fluid-cursor {
  width: 100vw;
  height: 100vh;
  display: block;
}

/* Page Loader - Professional Loading Animation */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 25%, #f0f2f5 50%, #e9ecef 75%, #ffffff 100%);
  background-size: 400% 400%;
  animation: gradient-shift-bg 20s ease infinite;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

#loader-matrix-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6; /* Дополнительная приглушенность через CSS */
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.loader-logo-wrapper {
  position: relative;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1),
              transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.loader-logo-wrapper.show {
  opacity: 1;
  transform: translateY(0);
}

.loader-logo-wrapper.hide {
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1),
              transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.loader-logo {
  max-width: 200px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.1)) 
          drop-shadow(0 8px 40px rgba(0, 0, 0, 0.05));
}

/* Abstergo Loader Styles */
.ui-abstergo {
  --primary: #1a1a1a;
  --secondary: rgba(0, 0, 0, 0.4);
  --shadow-blur: 8px;
  --text-shadow-blur: 6px;
  --animation-duration: 2s;
  --size: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 30px;
  scale: var(--size);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15))
          drop-shadow(0 8px 24px rgba(0, 0, 0, 0.1));
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1),
              transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.ui-abstergo.show {
  opacity: 1;
  transform: translateY(0);
}

.ui-abstergo.hide {
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1),
              transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.abstergo-loader * {
  box-sizing: content-box;
}

.ui-abstergo .ui-text {
  color: var(--primary);
  text-shadow: 0 0 var(--text-shadow-blur) var(--secondary),
               0 2px 4px rgba(0, 0, 0, 0.2),
               0 4px 8px rgba(0, 0, 0, 0.15);
  font-family: 'JetBrains Mono', 'Menlo', monospace;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  display: flex;
  align-items: baseline;
  column-gap: 3px;
}

.ui-abstergo .ui-dot {
  content: "";
  display: block;
  width: 3px;
  height: 3px;
  animation: dots var(--animation-duration) infinite linear;
  animation-delay: 0.4s;
  background-color: var(--primary);
  border-radius: 50%;
}

.ui-abstergo .ui-dot:nth-child(2) {
  animation-delay: 0.8s;
}

.ui-abstergo .ui-dot:nth-child(3) {
  animation-delay: 1.2s;
}

.ui-abstergo .ui-dot + .ui-dot {
  margin-left: 3px;
}

.abstergo-loader {
  width: 103px;
  height: 90px;
  position: relative;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2))
          drop-shadow(0 8px 20px rgba(0, 0, 0, 0.15));
}

.abstergo-loader div {
  width: 50px;
  border-right: 12px solid transparent;
  border-left: 12px solid transparent;
  border-top: 21px solid var(--primary);
  position: absolute;
  filter: drop-shadow(0 0 var(--shadow-blur) var(--secondary))
          drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25))
          drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
}

.abstergo-loader div:nth-child(1) {
  top: 27px;
  left: 7px;
  rotate: -60deg;
  animation: line1 var(--animation-duration) linear infinite alternate;
}

.abstergo-loader div:nth-child(2) {
  bottom: 2px;
  left: 0;
  rotate: 180deg;
  animation: line2 var(--animation-duration) linear infinite alternate;
}

.abstergo-loader div:nth-child(3) {
  bottom: 16px;
  right: -9px;
  rotate: 60deg;
  animation: line3 var(--animation-duration) linear infinite alternate;
}

@keyframes line1 {
  0%, 40% {
    top: 27px;
    left: 7px;
    rotate: -60deg;
  }
  60%, 100% {
    top: 22px;
    left: 14px;
    rotate: 60deg;
  }
}

@keyframes line2 {
  0%, 40% {
    bottom: 2px;
    left: 0;
    rotate: 180deg;
  }
  60%, 100% {
    bottom: 5px;
    left: -8px;
    rotate: 300deg;
  }
}

@keyframes line3 {
  0%, 40% {
    bottom: 16px;
    right: -9px;
    rotate: 60deg;
  }
  60%, 100% {
    bottom: 7px;
    right: -11px;
    rotate: 180deg;
  }
}

@keyframes dots {
  0% {
    background-color: var(--secondary);
  }
  30% {
    background-color: var(--primary);
  }
  70%, 100% {
    background-color: var(--secondary);
  }
}

/* Loaded Box Styles */
.loader-loaded {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-loaded.show {
  opacity: 1;
  visibility: visible;
  animation: loaded-appear 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.loader-loaded.hide {
  opacity: 0;
  animation: loaded-disappear 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.loaded-box {
  background: #ffffff;
  border: 3px solid #1a1a1a;
  padding: 2rem 4rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15),
              0 16px 64px rgba(0, 0, 0, 0.1),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: scale(0.8) translateY(30px);
  transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.loader-loaded.show .loaded-box {
  transform: scale(1) translateY(0);
  animation: loaded-box-pulse 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.5s;
}

.loaded-text {
  font-family: 'JetBrains Mono', 'Menlo', monospace;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: #1a1a1a;
  text-transform: uppercase;
  display: block;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@keyframes loaded-appear {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes loaded-disappear {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
  }
}

@keyframes loaded-box-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Hide main content during loading */
#main-content {
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  filter: blur(10px);
  transition: opacity 2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              filter 2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform, filter;
}

#main-content.loaded {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* Container - Fullscreen Centered Layout */
.container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  position: relative;
  z-index: 1;
}

/* Logo Section - Professional Premium Animation */
.logo-container {
  margin-bottom: 4rem;
  text-align: center;
  position: relative;
  z-index: 2;
  perspective: 1200px;
}

.logo {
  max-width: 380px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  position: relative;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.08)) 
          drop-shadow(0 8px 40px rgba(0, 0, 0, 0.04));
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  animation: logo-professional 8s ease-in-out infinite;
  will-change: transform, filter;
  transform-style: preserve-3d;
}

/* Professional logo animation - Elegant 3D */
@keyframes logo-professional {
  0%, 100% {
    transform: translateY(0) scale(1) rotateY(0deg);
    filter: 
      drop-shadow(0 4px 20px rgba(0, 0, 0, 0.08)) 
      drop-shadow(0 8px 40px rgba(0, 0, 0, 0.04));
  }
  12.5% {
    transform: translateY(-4px) scale(1.01) rotateY(2deg);
    filter: 
      drop-shadow(0 6px 30px rgba(0, 0, 0, 0.12)) 
      drop-shadow(0 12px 50px rgba(0, 0, 0, 0.06));
  }
  25% {
    transform: translateY(-6px) scale(1.015) rotateY(0deg);
    filter: 
      drop-shadow(0 8px 40px rgba(0, 0, 0, 0.15)) 
      drop-shadow(0 16px 60px rgba(0, 0, 0, 0.08));
  }
  37.5% {
    transform: translateY(-4px) scale(1.01) rotateY(-2deg);
    filter: 
      drop-shadow(0 6px 30px rgba(0, 0, 0, 0.12)) 
      drop-shadow(0 12px 50px rgba(0, 0, 0, 0.06));
  }
  50% {
    transform: translateY(0) scale(1) rotateY(0deg);
    filter: 
      drop-shadow(0 4px 20px rgba(0, 0, 0, 0.08)) 
      drop-shadow(0 8px 40px rgba(0, 0, 0, 0.04));
  }
  62.5% {
    transform: translateY(-3px) scale(1.008) rotateY(-1.5deg);
    filter: 
      drop-shadow(0 5px 25px rgba(0, 0, 0, 0.1)) 
      drop-shadow(0 10px 45px rgba(0, 0, 0, 0.05));
  }
  75% {
    transform: translateY(-5px) scale(1.012) rotateY(0deg);
    filter: 
      drop-shadow(0 7px 35px rgba(0, 0, 0, 0.13)) 
      drop-shadow(0 14px 55px rgba(0, 0, 0, 0.07));
  }
  87.5% {
    transform: translateY(-3px) scale(1.008) rotateY(1.5deg);
    filter: 
      drop-shadow(0 5px 25px rgba(0, 0, 0, 0.1)) 
      drop-shadow(0 10px 45px rgba(0, 0, 0, 0.05));
  }
}


/* Glassmorphism Content Container - 2025 AI/IT Professional Style */
.content {
  text-align: center;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.7) 0%, 
    rgba(248, 250, 252, 0.65) 25%,
    rgba(241, 245, 249, 0.6) 50%,
    rgba(248, 250, 252, 0.65) 75%,
    rgba(255, 255, 255, 0.7) 100%);
  backdrop-filter: blur(50px) saturate(200%);
  -webkit-backdrop-filter: blur(50px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 36px;
  padding: 4.5rem 3.5rem;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.08),
    0 8px 24px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(0, 0, 0, 0.02),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  overflow: visible;
  animation: content-float 8s ease-in-out infinite;
  transform-style: preserve-3d;
}

@keyframes content-float {
  0%, 100% {
    transform: translateY(0) rotateX(0deg);
  }
  50% {
    transform: translateY(-5px) rotateX(1deg);
  }
}

/* Professional Progress Border Animation - Smooth Running Light */
.progress-border-wrapper {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  width: calc(100% + 8px);
  height: calc(100% + 8px);
  z-index: 1;
  pointer-events: none;
  border-radius: 40px;
  overflow: hidden;
}

.progress-border {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.progress-path {
  stroke: url(#laser-gradient);
  stroke-width: 0.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  stroke-dasharray: 16 384;
  stroke-dashoffset: 400;
  filter: drop-shadow(0 0 2px rgba(99, 102, 241, 0.6))
          drop-shadow(0 0 4px rgba(139, 92, 246, 0.4))
          drop-shadow(0 0 8px rgba(59, 130, 246, 0.3));
  animation: laser-scan 3.5s linear infinite;
  will-change: stroke-dashoffset;
}


/* Laser scan animation - smooth and efficient */
@keyframes laser-scan {
  0% {
    stroke-dashoffset: 400;
  }
  100% {
    stroke-dashoffset: 0;
  }
}


/* Additional glow effect */
.content::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 32px;
  z-index: -2;
  pointer-events: none;
  background: 
    /* Top edge glow */
    linear-gradient(90deg, 
      transparent 0%,
      transparent calc(0% - 10%),
      rgba(99, 102, 241, 0) calc(0% - 6%),
      rgba(139, 92, 246, 0.3) 0%,
      rgba(59, 130, 246, 0) calc(0% + 6%),
      transparent calc(0% + 10%),
      transparent 100%
    ) 0% 0% / 100% 3px,
    /* Right edge glow */
    linear-gradient(180deg, 
      transparent 0%,
      transparent calc(0% - 10%),
      rgba(139, 92, 246, 0) calc(0% - 6%),
      rgba(59, 130, 246, 0.3) 0%,
      rgba(6, 182, 212, 0) calc(0% + 6%),
      transparent calc(0% + 10%),
      transparent 100%
    ) 100% 0% / 3px 100%,
    /* Bottom edge glow */
    linear-gradient(270deg, 
      transparent 0%,
      transparent calc(0% - 10%),
      rgba(6, 182, 212, 0) calc(0% - 6%),
      rgba(59, 130, 246, 0.3) 0%,
      rgba(99, 102, 241, 0) calc(0% + 6%),
      transparent calc(0% + 10%),
      transparent 100%
    ) 100% 100% / 100% 3px,
    /* Left edge glow */
    linear-gradient(0deg, 
      transparent 0%,
      transparent calc(0% - 10%),
      rgba(99, 102, 241, 0) calc(0% - 6%),
      rgba(139, 92, 246, 0.3) 0%,
      rgba(59, 130, 246, 0) calc(0% + 6%),
      transparent calc(0% + 10%),
      transparent 100%
    ) 0% 100% / 3px 100%;
  background-repeat: no-repeat;
  animation: laser-perimeter-glow 4s linear infinite;
  filter: blur(3px);
  opacity: 0.8;
}

@keyframes laser-perimeter-glow {
  0% {
    background-position: 
      -10% 0%,
      100% -10%,
      200% 100%,
      0% 200%;
  }
  25% {
    background-position: 
      110% 0%,
      100% -10%,
      200% 100%,
      0% 200%;
  }
  50% {
    background-position: 
      110% 0%,
      100% 110%,
      200% 100%,
      0% 200%;
  }
  75% {
    background-position: 
      110% 0%,
      100% 110%,
      0% 100%,
      0% 200%;
  }
  100% {
    background-position: 
      -10% 0%,
      100% -10%,
      200% 100%,
      0% 0%;
  }
}

/* Neon glow effect on border - AI/IT Professional Style */
.content {
  animation: neon-pulse 4s ease-in-out infinite;
}

@keyframes neon-pulse {
  0%, 100% {
    box-shadow: 
      0 20px 60px rgba(0, 0, 0, 0.08),
      0 8px 24px rgba(0, 0, 0, 0.04),
      inset 0 1px 0 rgba(255, 255, 255, 0.9),
      inset 0 -1px 0 rgba(0, 0, 0, 0.02),
      0 0 0 1px rgba(255, 255, 255, 0.1),
      0 0 20px rgba(99, 102, 241, 0.06),
      0 0 40px rgba(139, 92, 246, 0.03);
  }
  50% {
    box-shadow: 
      0 20px 60px rgba(0, 0, 0, 0.08),
      0 8px 24px rgba(0, 0, 0, 0.04),
      inset 0 1px 0 rgba(255, 255, 255, 0.9),
      inset 0 -1px 0 rgba(0, 0, 0, 0.02),
      0 0 0 1px rgba(255, 255, 255, 0.1),
      0 0 30px rgba(99, 102, 241, 0.1),
      0 0 60px rgba(139, 92, 246, 0.06);
  }
}

/* Main Title - Premium Gradient with Letter Animation - 3 Lines */
.main-title {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: clamp(1.8rem, 4.5vw, 3.5rem);
  font-weight: 600;
  margin-bottom: 2.5rem;
  letter-spacing: 0.08em;
  line-height: 1.3;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-transform: uppercase;
}

.title-highlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  gap: 0.3rem;
}

.title-line {
  display: inline-block;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  animation: line-appear 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: var(--delay);
}

.title-char {
  display: inline-block;
  background: linear-gradient(135deg, 
    #1e293b 0%, 
    #334155 25%,
    #6366f1 50%, 
    #8b5cf6 75%,
    #3b82f6 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: char-appear 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
             text-shimmer 4s ease-in-out infinite,
             text-pulse 3s ease-in-out infinite;
  opacity: 0;
  transform: translateY(30px) rotateX(90deg) scale(0.8);
  transform-origin: center bottom;
  animation-delay: calc(var(--delay) + 0.3s), calc(var(--delay) + 0.3s), calc(var(--delay) + 0.3s);
  transition: all 0.3s ease;
  margin: 0 0.05em;
  position: relative;
  filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.3));
}

.title-char::before {
  content: attr(data-char);
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #3b82f6 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  z-index: -1;
  filter: blur(15px);
  opacity: 0.5;
  animation: text-shimmer 4s ease-in-out infinite;
}

.title-char::after {
  content: attr(data-char);
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 50%, #6366f1 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  z-index: -2;
  filter: blur(25px);
  opacity: 0.3;
  animation: text-shimmer 4s ease-in-out infinite reverse;
}

.title-char:hover {
  transform: translateY(-5px) scale(1.15);
  filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.5))
          drop-shadow(0 0 30px rgba(139, 92, 246, 0.3));
}

@keyframes text-shimmer {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes text-pulse {
  0%, 100% {
    filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.3))
            drop-shadow(0 0 20px rgba(139, 92, 246, 0.2));
  }
  50% {
    filter: drop-shadow(0 0 15px rgba(99, 102, 241, 0.5))
            drop-shadow(0 0 30px rgba(139, 92, 246, 0.3));
  }
}

@keyframes line-appear {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}


@keyframes char-appear {
  0% {
    opacity: 0;
    transform: translateY(50px) rotateX(90deg) scale(0.5);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotateX(0deg) scale(1);
  }
}

/* Call to Action Text - AI/IT Professional Style */
.cta-text {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.1rem, 2.8vw, 1.35rem);
  font-weight: 500;
  background: linear-gradient(135deg, 
    #475569 0%, 
    #64748b 50%,
    #475569 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 2.5rem;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  animation: fade-in-up 0.8s ease-out forwards,
             gradient-shift 4s ease-in-out infinite;
  animation-delay: 1.2s, 2s;
  letter-spacing: 0.01em;
  line-height: 1.6;
}

/* Main Title - Premium Gradient with Letter Animation - 3 Lines (Legacy - kept for compatibility) */
.main-title {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: clamp(1.8rem, 4.5vw, 3.5rem);
  font-weight: 600;
  margin-bottom: 2.5rem;
  letter-spacing: 0.08em;
  line-height: 1.3;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-transform: uppercase;
}

.title-highlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  gap: 0.3rem;
}

.title-line {
  display: inline-block;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  animation: line-appear 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: var(--delay);
}

.title-char {
  display: inline-block;
  background: linear-gradient(135deg, 
    #1e293b 0%, 
    #334155 25%,
    #6366f1 50%, 
    #8b5cf6 75%,
    #3b82f6 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: char-appear 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
             text-shimmer 4s ease-in-out infinite,
             text-pulse 3s ease-in-out infinite;
  opacity: 0;
  transform: translateY(30px) rotateX(90deg) scale(0.8);
  transform-origin: center bottom;
  animation-delay: calc(var(--delay) + 0.3s), calc(var(--delay) + 0.3s), calc(var(--delay) + 0.3s);
  transition: all 0.3s ease;
  margin: 0 0.05em;
  position: relative;
  filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.3));
}

.title-char::before {
  content: attr(data-char);
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #3b82f6 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  z-index: -1;
  filter: blur(15px);
  opacity: 0.5;
  animation: text-shimmer 4s ease-in-out infinite;
}

.title-char::after {
  content: attr(data-char);
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 50%, #6366f1 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  z-index: -2;
  filter: blur(25px);
  opacity: 0.3;
  animation: text-shimmer 4s ease-in-out infinite reverse;
}

.title-char:hover {
  transform: translateY(-5px) scale(1.15);
  filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.5))
          drop-shadow(0 0 30px rgba(139, 92, 246, 0.3));
}

@keyframes text-shimmer {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes text-pulse {
  0%, 100% {
    filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.3))
            drop-shadow(0 0 20px rgba(139, 92, 246, 0.2));
  }
  50% {
    filter: drop-shadow(0 0 15px rgba(99, 102, 241, 0.5))
            drop-shadow(0 0 30px rgba(139, 92, 246, 0.3));
  }
}

@keyframes line-appear {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}


@keyframes char-appear {
  0% {
    opacity: 0;
    transform: translateY(50px) rotateX(90deg) scale(0.5);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotateX(0deg) scale(1);
  }
}

/* Subtitle - Professional Text with Animation */
.subtitle {
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  font-weight: 400;
  color: #2d3748;
  margin-bottom: 1.75rem;
  line-height: 1.9;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.subtitle-line {
  display: block;
  opacity: 0;
  transform: translateX(-30px);
  animation: subtitle-appear 0.8s ease-out forwards;
  animation-delay: calc(var(--line-index, 0) * 0.25s + 2s);
}

@keyframes subtitle-appear {
  0% {
    opacity: 0;
    transform: translateX(-30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Additional Text - Animated with 3D Effect */
.additional-text {
  font-size: clamp(1.3rem, 3.5vw, 1.8rem);
  font-weight: 700;
  margin-bottom: 3.5rem;
  line-height: 2.2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1rem;
  position: relative;
  perspective: 1000px;
}

.text-word {
  position: relative;
  display: inline-block;
  background: linear-gradient(135deg, #c1121f 0%, #e63946 30%, #ff6b7a 50%, #e63946 70%, #c1121f 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 3s ease-in-out infinite, 
             word-appear 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
             text-glow 2.5s ease-in-out infinite alternate;
  opacity: 0;
  transform: translateY(30px) rotateY(45deg) scale(0.8);
  transform-style: preserve-3d;
  filter: drop-shadow(0 0 8px rgba(193, 18, 31, 0.4))
          drop-shadow(0 0 15px rgba(193, 18, 31, 0.2));
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: default;
}

.text-word::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #c1121f 0%, #e63946 50%, #c1121f 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  filter: blur(15px);
  opacity: 0.5;
  z-index: -1;
  animation: gradient-shift 3s ease-in-out infinite;
}

.text-word:hover {
  transform: translateY(-8px) rotateY(0deg) scale(1.15);
  filter: drop-shadow(0 0 12px rgba(193, 18, 31, 0.6))
          drop-shadow(0 0 20px rgba(193, 18, 31, 0.4))
          drop-shadow(0 0 30px rgba(193, 18, 31, 0.2));
}

.text-word:nth-child(1) {
  animation-delay: 0.2s, 0.2s, 0s;
}

.text-word:nth-child(2) {
  animation-delay: 0.4s, 0.4s, 0.2s;
}

.text-word:nth-child(3) {
  animation-delay: 0.6s, 0.6s, 0.4s;
}

.text-word:nth-child(4) {
  animation-delay: 0.8s, 0.8s, 0.6s;
}

/* Gradient animation */
@keyframes gradient-shift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Word appear animation with 3D effect */
@keyframes word-appear {
  0% {
    opacity: 0;
    transform: translateY(30px) rotateY(45deg) scale(0.8);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotateY(0deg) scale(1);
  }
}

/* Text glow animation */
@keyframes text-glow {
  0% {
    filter: drop-shadow(0 0 8px rgba(193, 18, 31, 0.4))
            drop-shadow(0 0 15px rgba(193, 18, 31, 0.2))
            drop-shadow(0 0 25px rgba(193, 18, 31, 0.1));
  }
  100% {
    filter: drop-shadow(0 0 12px rgba(193, 18, 31, 0.6))
            drop-shadow(0 0 20px rgba(193, 18, 31, 0.4))
            drop-shadow(0 0 35px rgba(193, 18, 31, 0.2));
  }
}


/* Call to Action Text - AI/IT Professional Style (Legacy - kept for compatibility) */
.cta-text {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.1rem, 2.8vw, 1.35rem);
  font-weight: 500;
  background: linear-gradient(135deg, 
    #475569 0%, 
    #64748b 50%,
    #475569 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 2.5rem;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  animation: fade-in-up 0.8s ease-out forwards,
             gradient-shift 4s ease-in-out infinite;
  animation-delay: 1.2s, 2s;
  letter-spacing: 0.01em;
  line-height: 1.6;
}

@keyframes fade-in-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Buttons Container */
.buttons-container {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

/* Premium Contact Buttons - 2025 Trend Style (Glassmorphism + Neomorphism) */
.contact-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.2rem 2.8rem;
  text-decoration: none;
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  font-weight: 600;
  border-radius: 24px;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  letter-spacing: 0.03em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    0 4px 16px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -1px 0 rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(30px) saturate(200%);
  -webkit-backdrop-filter: blur(30px) saturate(200%);
  animation: button-float 4s ease-in-out infinite;
}

.contact-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.5) 50%, 
    transparent 100%);
  transition: left 0.7s ease;
  z-index: 1;
}

.contact-button:hover::before {
  left: 100%;
}

.contact-button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: width 0.8s ease, height 0.8s ease;
  z-index: 0;
}

.contact-button:hover::after {
  width: 400px;
  height: 400px;
}

.button-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  z-index: 2;
  animation: icon-pulse 2s ease-in-out infinite;
}

.contact-button:hover .button-icon {
  transform: scale(1.2) rotate(5deg);
}

@keyframes button-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@keyframes icon-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

/* Email Button - 2025 Trend Style (Soft Purple-Blue Gradient) */
.email-button {
  background: linear-gradient(135deg, 
    rgba(139, 92, 246, 0.15) 0%, 
    rgba(99, 102, 241, 0.12) 50%,
    rgba(59, 130, 246, 0.15) 100%);
  color: #6366f1;
  border-color: rgba(139, 92, 246, 0.3);
}

.email-button:hover {
  background: linear-gradient(135deg, 
    rgba(139, 92, 246, 0.25) 0%, 
    rgba(99, 102, 241, 0.22) 50%,
    rgba(59, 130, 246, 0.25) 100%);
  color: #4f46e5;
  border-color: rgba(139, 92, 246, 0.5);
  transform: translateY(-6px) scale(1.06);
  box-shadow: 
    0 16px 48px rgba(139, 92, 246, 0.25),
    0 8px 24px rgba(99, 102, 241, 0.2),
    0 0 40px rgba(139, 92, 246, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}

.email-button:hover .button-icon {
  color: #6366f1;
  transform: scale(1.25) rotate(5deg);
  filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.5));
}

/* Telegram Button - 2025 Trend Style (Soft Cyan-Blue Gradient) */
.telegram-button {
  background: linear-gradient(135deg, 
    rgba(6, 182, 212, 0.15) 0%, 
    rgba(14, 165, 233, 0.12) 50%,
    rgba(59, 130, 246, 0.15) 100%);
  color: #06b6d4;
  border-color: rgba(6, 182, 212, 0.3);
}

.telegram-button:hover {
  background: linear-gradient(135deg, 
    rgba(6, 182, 212, 0.25) 0%, 
    rgba(14, 165, 233, 0.22) 50%,
    rgba(59, 130, 246, 0.25) 100%);
  color: #0891b2;
  border-color: rgba(6, 182, 212, 0.5);
  transform: translateY(-6px) scale(1.06);
  box-shadow: 
    0 16px 48px rgba(6, 182, 212, 0.25),
    0 8px 24px rgba(14, 165, 233, 0.2),
    0 0 40px rgba(6, 182, 212, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}

.telegram-button:hover .button-icon {
  color: #06b6d4;
  transform: scale(1.25) rotate(-5deg);
  filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.5));
}


.contact-button:active {
  transform: translateY(-1px) scale(1.01);
}

/* Footer - Professional Style */
.footer {
  margin-top: auto;
  padding-top: 3.5rem;
  text-align: center;
  width: 100%;
  position: relative;
  z-index: 2;
}

.footer p {
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.9rem, 2vw, 1rem);
  color: #64748b;
  font-weight: 400;
  letter-spacing: 0.01em;
  opacity: 0.8;
  transition: opacity 0.3s ease, color 0.3s ease;
}

.footer p:hover {
  opacity: 1;
  color: #475569;
}

/* Fade-in Animations - Enhanced */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.fade-in {
  animation: fadeIn 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  opacity: 0;
}

.fade-in-delay-1 {
  animation: fadeIn 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
  opacity: 0;
}

.fade-in-delay-2 {
  animation: fadeIn 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.8s forwards;
  opacity: 0;
}

.fade-in-delay-3 {
  animation: fadeIn 1.2s cubic-bezier(0.4, 0, 0.2, 1) 1.2s forwards;
  opacity: 0;
}

/* Responsive Design - Tablet */
@media (max-width: 768px) {
  .container {
    padding: 1.5rem 1rem;
  }

  .logo {
    max-width: 300px;
  }

  .logo-container {
    margin-bottom: 3rem;
  }

  .content {
    padding: 2.5rem 2rem;
    border-radius: 24px;
  }

  .buttons-container {
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
  }

  .contact-button {
    padding: 1.15rem 2.5rem;
    width: 100%;
    max-width: 340px;
    justify-content: center;
  }

  .footer {
    padding-top: 2.5rem;
  }
}

/* Responsive Design - Mobile */
@media (max-width: 480px) {
  .container {
    padding: 1rem 0.75rem;
  }

  .logo {
    max-width: 250px;
  }

  .logo-container {
    margin-bottom: 2.5rem;
  }

  .content {
    padding: 2rem 1.5rem;
    border-radius: 20px;
  }

  .main-title {
    margin-bottom: 2rem;
  }

  .subtitle {
    margin-bottom: 1.5rem;
  }

  .additional-text {
    margin-bottom: 3rem;
  }

  .contact-button {
    padding: 1.05rem 2rem;
    font-size: 1.05rem;
  }

  .footer {
    padding-top: 2rem;
  }
}

/* Extra Small Devices */
@media (max-width: 320px) {
  .logo {
    max-width: 200px;
  }

  .content {
    padding: 1.5rem 1.25rem;
  }

  .contact-button {
    padding: 1rem 1.75rem;
  }
  
}

/* High contrast for accessibility */
@media (prefers-contrast: high) {
  .title-highlight {
    -webkit-text-fill-color: #0066ff;
    background: none;
  }
}
