/* ==========================================================================
   Ludogorska.com - Stylish Logo Emblem + Clean Side Text System
   ========================================================================== */

:root {
  --bg-main: #06080e;
  --bg-box: rgba(13, 18, 30, 0.75);
  --border-card: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 242, 254, 0.35);
  
  --primary: #00f2fe;
  --secondary: #4facfe;
  --accent: #10b981;
  --purple: #8b5cf6;
  
  --text-main: #ffffff;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

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

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

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-family);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;

  /* 100% Perfect Flexbox Viewport Centering */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

/* Cyber Flash Scanline Effect on Intro */
.cyber-flash-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.3) 0%, rgba(139, 92, 246, 0.15) 50%, transparent 85%);
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
}

.cyber-flash-layer.flash-active {
  animation: flashPulse 0.8s ease-out forwards;
}

@keyframes flashPulse {
  0% { opacity: 0.9; transform: scale(1.15); }
  100% { opacity: 0; transform: scale(1); }
}

/* ==========================================================================
   Wild Multi-Directional Chaos State (body.is-loading) vs Assembled
   ========================================================================== */

body.is-loading .hero-box {
  transform: scale(0.3) rotateX(70deg) rotateZ(-25deg) translateY(400px);
  opacity: 0;
  filter: blur(40px);
}

body.is-loading .brand-logo-clean {
  transform: translateY(-150px) scale(0.3);
  opacity: 0;
  filter: blur(25px);
}

/* Badges Flying in from ALL Wild Directions */
body.is-loading .fb-1 { transform: translate(-750px, -450px) rotate(-220deg) scale(0.1); opacity: 0; }
body.is-loading .fb-2 { transform: translate(800px, -400px) rotate(260deg) scale(2.2); opacity: 0; }
body.is-loading .fb-3 { transform: translate(-900px, 200px) rotate(-340deg) scale(0.15); opacity: 0; }
body.is-loading .fb-4 { transform: translate(900px, 180px) rotate(310deg) scale(2.5); opacity: 0; }
body.is-loading .fb-5 { transform: translate(-650px, 700px) rotate(-190deg) scale(0.2); opacity: 0; }
body.is-loading .fb-6 { transform: translate(750px, 650px) rotate(380deg) scale(1.9); opacity: 0; }

body.is-loading .action-card {
  transform: translateY(300px) scale(0.2) rotate(45deg);
  opacity: 0;
  filter: blur(20px);
}

/* Assembly Magnetic Transitions (body.is-assembled) */
body.is-assembled .hero-box {
  transition: transform 1.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 1s ease, filter 1s ease;
  transform: scale(1) rotateX(0deg) rotateZ(0deg) translateY(0);
  opacity: 1;
  filter: blur(0);
}

body.is-assembled .brand-logo-clean {
  transition: transform 1.15s cubic-bezier(0.16, 1, 0.3, 1) 0.15s, opacity 0.9s ease 0.15s, filter 0.9s ease 0.15s;
  transform: translate(0, 0) rotate(0deg) scale(1);
  opacity: 1;
  filter: blur(0);
}

body.is-assembled .fb-1 { transition: transform 1.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.15s, opacity 0.8s ease 0.15s; opacity: 1; }
body.is-assembled .fb-2 { transition: transform 1.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.25s, opacity 0.8s ease 0.25s; opacity: 1; }
body.is-assembled .fb-3 { transition: transform 1.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.35s, opacity 0.8s ease 0.35s; opacity: 1; }
body.is-assembled .fb-4 { transition: transform 1.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.45s, opacity 0.8s ease 0.45s; opacity: 1; }
body.is-assembled .fb-5 { transition: transform 1.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.55s, opacity 0.8s ease 0.55s; opacity: 1; }
body.is-assembled .fb-6 { transition: transform 1.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.65s, opacity 0.8s ease 0.65s; opacity: 1; }

body.is-assembled .action-card {
  transition: transform 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.35s, opacity 0.9s ease 0.35s, filter 0.9s ease 0.35s;
  opacity: 1;
  filter: blur(0);
}

/* Custom Glowing Cursor Spotlight & Pointer Dot */
.cursor-spotlight {
  position: fixed;
  top: 0;
  left: 0;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.07) 0%, rgba(139, 92, 246, 0.03) 50%, transparent 70%);
  pointer-events: none;
  z-index: 999;
  filter: blur(20px);
  transition: transform 0.05s ease-out;
}

.cursor-dot {
  position: fixed;
  top: -4px;
  left: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
  pointer-events: none;
  z-index: 1000;
  transition: transform 0.02s linear;
}

/* Cyber Perspective Ambient Grid */
.cyber-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(circle, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 80%);
}

/* Background Canvas & Glowing Orbs */
#hero-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

.orb-1 {
  top: -100px;
  left: 30%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.15), rgba(139, 92, 246, 0.08), rgba(0,0,0,0));
  animation: orbFloat 10s infinite alternate ease-in-out;
}

.orb-2 {
  bottom: -100px;
  right: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.12), rgba(0,0,0,0));
  animation: orbFloat 14s infinite alternate-reverse ease-in-out;
}

.orb-3 {
  top: 50%;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(79, 172, 254, 0.1), rgba(0,0,0,0));
  animation: orbFloat 12s infinite alternate ease-in-out;
}

@keyframes orbFloat {
  0% { transform: translate(0, 0); }
  100% { transform: translate(30px, 40px); }
}

/* Container */
.container {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* Centered Header Bar */
.navbar {
  height: 95px;
  width: 100%;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 10;
}

.navbar .container.navbar-centered {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* Stylish Logo Emblem + Clean Side Text */
.brand-logo-clean {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  transition: var(--transition);
}

.brand-logo-clean:hover {
  transform: translateY(-2px);
}

.brand-emblem-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.25);
  transition: var(--transition);
  flex-shrink: 0;
}

.brand-logo-clean:hover .brand-emblem-box {
  border-color: var(--primary);
  box-shadow: 0 0 35px rgba(0, 242, 254, 0.7);
  transform: scale(1.08);
}

.brand-text-clean {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #ffffff;
  display: flex;
  align-items: center;
}

.brand-text-primary {
  color: #ffffff;
}

.brand-text-dot {
  color: var(--primary);
  font-weight: 800;
}

/* Main Hero Presentation (Centered Vertically) */
.hero-wrapper {
  padding: 20px 0;
  width: 100%;
  margin: auto 0;
  position: relative;
  z-index: 1;
}

/* Perfectly Spaced Non-Overlapping Ambient Badges */
.floating-badge {
  position: absolute;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-full);
  background: rgba(13, 18, 30, 0.85);
  border: 1px solid var(--border-card);
  backdrop-filter: blur(14px);
  color: #fff;
  font-size: 0.825rem;
  font-weight: 600;
  z-index: 2;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  pointer-events: none;
  white-space: nowrap;
}

.fb-1 {
  top: -15px;
  left: 20px;
  border-color: rgba(0, 242, 254, 0.35);
  color: var(--primary);
  animation: floatBadge 6s infinite alternate ease-in-out;
}

.fb-2 {
  top: -15px;
  right: 20px;
  border-color: rgba(139, 92, 246, 0.35);
  color: var(--purple);
  animation: floatBadge 8s infinite alternate-reverse ease-in-out;
}

.fb-3 {
  top: 50%;
  left: -50px;
  transform: translateY(-50%);
  border-color: rgba(16, 185, 129, 0.35);
  color: var(--accent);
  animation: floatBadge 7s infinite alternate ease-in-out;
}

.fb-4 {
  top: 50%;
  right: -50px;
  transform: translateY(-50%);
  border-color: rgba(0, 242, 254, 0.35);
  color: var(--primary);
  animation: floatBadge 9s infinite alternate-reverse ease-in-out;
}

.fb-5 {
  bottom: -20px;
  left: 40px;
  border-color: rgba(79, 172, 254, 0.35);
  color: var(--secondary);
  animation: floatBadge 5.5s infinite alternate ease-in-out;
}

.fb-6 {
  bottom: -20px;
  right: 40px;
  border-color: rgba(16, 185, 129, 0.35);
  color: var(--accent);
  animation: floatBadge 7.5s infinite alternate-reverse ease-in-out;
}

@media (max-width: 1100px) {
  .fb-3 { display: none; }
  .fb-4 { display: none; }
}

@media (max-width: 800px) {
  .floating-badge {
    display: none;
  }
}

@keyframes floatBadge {
  0% { transform: translateY(0); }
  100% { transform: translateY(-12px); }
}

.hero-box {
  background: var(--bg-box);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 5rem 3.5rem;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

/* Mouse Radial Glassmorphic Spotlight Effect */
.hero-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(0, 242, 254, 0.06),
    transparent 40%
  );
  pointer-events: none;
  transition: opacity 0.5s ease;
}

@media (max-width: 600px) {
  .hero-box {
    padding: 3rem 1.25rem;
  }
}

/* Main Title Layout */
.main-title {
  font-size: clamp(1.8rem, 4.5vw, 3.4rem);
  font-weight: 900;
  margin-bottom: 3.5rem;
  letter-spacing: -1px;
  line-height: 1.2;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

/* Crafting Fixed Wrapper */
.crafting-wrapper {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
  cursor: pointer;
  padding: 0 0.1em;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.crafting-wrapper:hover {
  transform: scale(1.08) rotate(-1deg);
}

/* Holographic Shimmering Gradient Text */
.crafting-glow {
  background: linear-gradient(
    120deg, 
    #00F2FE 0%, 
    #4FACFE 25%, 
    #8B5CF6 50%, 
    #10B981 75%, 
    #00F2FE 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
  animation: shineGradient 3s linear infinite;
  filter: drop-shadow(0 0 20px rgba(0, 242, 254, 0.4));
}

@keyframes shineGradient {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* Animated Electric Pulse Underline */
.crafting-line {
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px;
  border-radius: 4px;
  background: linear-gradient(90deg, #00F2FE, #8B5CF6, #10B981, #00F2FE);
  background-size: 200% 100%;
  animation: pulseLine 2s linear infinite;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.8);
}

@keyframes pulseLine {
  0% { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}

/* Reserved Width Typewriter Box - Anchors Crafting completely stationary */
.typewriter-container {
  display: inline-flex;
  align-items: center;
  text-align: left;
  min-width: 320px;
  flex-shrink: 0;
}

@media (max-width: 650px) {
  .main-title {
    flex-wrap: wrap;
    white-space: normal;
  }
  .typewriter-container {
    min-width: auto;
  }
}

.typewriter-text {
  color: #ffffff;
  display: inline-block;
}

.cursor {
  color: var(--primary);
  animation: blink 0.8s infinite;
  font-weight: 300;
}

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

/* Action Cards Grid */
.action-grid.two-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 680px;
  margin: 0 auto;
}

@media (max-width: 550px) {
  .action-grid.two-cards {
    grid-template-columns: 1fr;
  }
}

.action-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.6rem 1.4rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: #fff;
  transition: var(--transition);
  text-align: left;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.action-card:hover {
  background: rgba(0, 242, 254, 0.06);
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 242, 254, 0.15);
}

.action-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.2);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.action-card:hover .action-icon {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #050b14;
  border-color: transparent;
  transform: scale(1.05);
}

/* 3D Flip Rotation Effect for Direct Phone & Direct Email */
.flip-container {
  perspective: 1000px;
  width: 100%;
  height: 28px;
  display: flex;
  align-items: center;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.action-card:hover .flip-card-inner {
  transform: rotateX(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
}

.flip-card-front {
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.flip-card-back {
  transform: rotateX(180deg);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 800;
  text-shadow: 0 0 12px rgba(0, 242, 254, 0.6);
  white-space: nowrap;
}

/* Footer */
footer {
  padding: 1.75rem 0;
  width: 100%;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
  border-top: 1px solid var(--border-card);
  position: relative;
  z-index: 1;
}
