/* 
 * BKB Kurumsal Yönetim - Ultra Modern CSS Design System 
 * Features: Dark/Light Mode, Glassmorphism, CSS Variables, Responsive Layouts, Animations
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@500;700&display=swap');

:root {
  /* Color Palette - Modern High Tech Dark Default */
  --bg-primary: #090d16;
  --bg-secondary: #111827;
  --bg-tertiary: #1f293d;
  --bg-glass: rgba(17, 24, 39, 0.75);
  --bg-glass-card: rgba(31, 41, 61, 0.45);
  --border-glass: rgba(255, 255, 255, 0.1);
  --border-glow: rgba(99, 102, 241, 0.4);

  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dark: #111827;

  /* Brand Colors */
  --accent-primary: #6366f1; /* Indigo */
  --accent-secondary: #06b6d4; /* Cyan */
  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #06b6d4 100%);
  --accent-glow: rgba(99, 102, 241, 0.3);
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;

  /* Layout & Spacing */
  --container-max: 1280px;
  --nav-height: 80px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Transitions & Shadows */
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.25);
}

/* Light Theme Variables */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --bg-glass-card: rgba(255, 255, 255, 0.9);
  --border-glass: rgba(0, 0, 0, 0.08);
  --border-glow: rgba(99, 102, 241, 0.3);
  --text-main: #0f172a;
  --text-muted: #64748b;
  --shadow-md: 0 10px 30px -5px rgba(0, 0, 0, 0.08);
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

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

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
}

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

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Glass Navigation */
.navbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: var(--nav-height);
  z-index: 10000 !important;
  background: var(--bg-glass) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid var(--border-glass);
  transition: var(--transition-normal);
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.brand-icon {
  width: 42px;
  height: 42px;
  background: var(--accent-gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 1.2rem;
  box-shadow: var(--shadow-glow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
  position: relative;
  padding: 0.5rem 0;
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Theme Toggle Button */
.theme-toggle {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.theme-toggle:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-normal);
}

.btn-primary {
  background: var(--accent-gradient);
  color: #ffffff;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-outline {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

/* Hero Section */
.hero {
  padding: calc(var(--nav-height) + 4rem) 0 6rem 0;
  position: relative;
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(6, 182, 212, 0.05) 50%, transparent 70%);
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: 1.5rem;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--accent-secondary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-secondary);
}

.hero-title {
  font-size: 3.5rem;
  letter-spacing: -1.5px;
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 620px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-glass);
}

.stat-item h3 {
  font-size: 2rem;
  margin-bottom: 0.2rem;
}

.stat-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Glass Cards & Grids */
.section {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem auto;
}

.section-tag {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-primary);
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.glass-card {
  background: var(--bg-glass-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

/* Service Card Components */
.service-icon {
  width: 60px;
  height: 60px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--accent-primary);
  margin-bottom: 1.5rem;
}

.service-title {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.service-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* Portfolio & SaaS Cards */
.portfolio-filter {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  background: var(--bg-glass-card);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
}

.project-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-glass-card);
  border: 1px solid var(--border-glass);
  transition: var(--transition-normal);
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-secondary);
}

.project-img-wrapper {
  height: 220px;
  background: var(--bg-tertiary);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-category-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(8px);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--border-glass);
}

.project-content {
  padding: 1.75rem;
}

/* SaaS Product Highlights */
.saas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}

.saas-grid.reverse {
  direction: rtl;
}
.saas-grid.reverse > * {
  direction: ltr;
}

.saas-badge {
  color: var(--accent-secondary);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  display: block;
}

/* Interactive Quote Estimator */
.quote-box {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

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

/* Checkbox Grid for Quote */
.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.option-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  padding: 1rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.option-card:hover, .option-card.selected {
  border-color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.1);
}

.option-card input[type="checkbox"],
.option-card input[type="radio"] {
  accent-color: var(--accent-primary);
  width: 18px;
  height: 18px;
}

/* Live Price Calculation Box */
.price-estimate-box {
  background: var(--accent-gradient);
  border-radius: var(--radius-md);
  padding: 2rem;
  color: #fff;
  text-align: center;
  margin-top: 2rem;
}

.price-estimate-amount {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: var(--font-heading);
  margin: 0.5rem 0;
}

/* Footer */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-glass);
  padding: 5rem 0 2rem 0;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-glass);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Mobile Menu Drawer & Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

/* -------------------------------------------------------------
 * Dynamic Animations & Typewriter Effects
 * ------------------------------------------------------------- */
@keyframes blinkCursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.typewriter-cursor {
  display: inline-block;
  width: 8px;
  height: 1.1em;
  background: var(--accent-secondary);
  margin-left: 2px;
  vertical-align: middle;
  animation: blinkCursor 0.8s infinite;
}

@keyframes floatCard {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

.floating-card {
  animation: floatCard 6s ease-in-out infinite;
}

/* Scroll Reveal Animations */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* -------------------------------------------------------------
 * Ultra-Clean Mobile Responsive Design System (Zero Shift & Overflow)
 * ------------------------------------------------------------- */
* {
  max-width: 100%;
}

html, body {
  overflow-x: hidden !important;
  width: 100%;
  position: relative;
}

img, svg, iframe, video, canvas {
  max-width: 100%;
  height: auto;
  box-sizing: border-box;
}

.grid-2col-responsive {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.grid-feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  width: 100%;
}

.grid-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: 100%;
}

@media (max-width: 992px) {
  .grid-2col-responsive {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  .grid-feature-list {
    grid-template-columns: 1fr !important;
  }
  .section {
    padding: 3.5rem 0;
  }
  .section-header {
    margin-bottom: 2.25rem;
  }
  .section-title {
    font-size: clamp(1.8rem, 5vw, 2.2rem);
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-ctas {
    justify-content: center;
  }
  .saas-grid {
    grid-template-columns: 1fr !important;
    gap: 1.75rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.25rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  .navbar {
    height: 68px;
  }
  .brand-logo {
    font-size: 1.1rem;
  }
  .brand-icon {
    width: 35px;
    height: 35px;
    font-size: 0.95rem;
  }
  .nav-links {
    display: none;
  }
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 68px;
    left: 0;
    width: 100%;
    height: calc(100vh - 68px);
    background: var(--bg-secondary);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2rem 1.25rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--border-glass);
    box-shadow: var(--shadow-md);
    overflow-y: auto;
    z-index: 1001;
  }
  .nav-link {
    font-size: 1.05rem;
    padding: 0.6rem 0;
    border-bottom: 1px dashed var(--border-glass);
    display: flex;
    align-items: center;
  }
  .mobile-menu-toggle {
    display: block;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--bg-glass-card);
    border: 1px solid var(--border-glass);
  }
  .hero {
    padding: calc(68px + 1.5rem) 0 3.5rem 0;
  }
  .hero-title {
    font-size: clamp(1.8rem, 6.5vw, 2.5rem);
    letter-spacing: -0.5px;
    word-wrap: break-word;
  }
  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 1.75rem;
  }
  .hero-stats {
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.25rem;
  }
  .stat-item h3 {
    font-size: 1.5rem;
  }
  .glass-card {
    padding: 1.25rem !important;
    border-radius: var(--radius-md);
    width: 100%;
    box-sizing: border-box;
  }
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .portfolio-filter {
    gap: 0.4rem;
  }
  .filter-btn {
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
  }
  .quote-box {
    padding: 1.25rem 1rem !important;
    border-radius: var(--radius-md);
    width: 100%;
    box-sizing: border-box;
  }
  .options-grid {
    grid-template-columns: 1fr;
  }
  .price-estimate-box {
    padding: 1.25rem 0.85rem;
  }
  .price-estimate-amount {
    font-size: 1.8rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 0.85rem;
    text-align: center;
  }
  #typewriter-code {
    font-size: 0.76rem !important;
    min-height: 220px !important;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
  }
}

@media (max-width: 600px) {
  .grid-form-row {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }
}

@media (max-width: 480px) {
  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }
  .hero-ctas .btn {
    width: 100%;
  }
  .btn {
    padding: 0.75rem 1.1rem;
    font-size: 0.9rem;
  }
  .section-title {
    font-size: 1.6rem;
  }
  .form-control {
    font-size: 16px !important; /* Prevents iOS input focus auto-zoom shift */
  }
}

/* Mobile Navigation Icons & CTA Helpers */
.mobile-nav-icon {
  display: none;
  margin-right: 0.6rem;
  color: var(--accent-primary);
  width: 20px;
  text-align: center;
}

.mobile-drawer-cta {
  display: none;
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .mobile-nav-icon {
    display: inline-block;
  }
  .mobile-drawer-cta {
    display: block;
  }
  .desktop-only-cta {
    display: none;
  }
}

/* -------------------------------------------------------------
 * Global Ambient Animated Background Orbs & Moving Canvas Particles
 * ------------------------------------------------------------- */
.bg-particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
}

.bg-ambient-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -2;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
  will-change: transform;
}

[data-theme="light"] .ambient-orb {
  opacity: 0.12;
}

.ambient-orb-1 {
  top: 5%;
  left: 10%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #6366f1 0%, #a855f7 100%);
  animation: orbFloat1 18s ease-in-out infinite alternate;
}

.ambient-orb-2 {
  top: 50%;
  right: 8%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #06b6d4 0%, #3b82f6 100%);
  animation: orbFloat2 22s ease-in-out infinite alternate;
}

.ambient-orb-3 {
  bottom: 5%;
  left: 25%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, #ec4899 0%, #6366f1 100%);
  animation: orbFloat3 25s ease-in-out infinite alternate;
}

@keyframes orbFloat1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(70px, 90px) scale(1.15); }
  100% { transform: translate(-50px, 130px) scale(0.95); }
}

@keyframes orbFloat2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-90px, -70px) scale(1.2); }
  100% { transform: translate(60px, -110px) scale(0.9); }
}

@keyframes orbFloat3 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(80px, -60px) scale(1.1); }
  100% { transform: translate(-70px, -90px) scale(0.85); }
}

/* -------------------------------------------------------------
 * Semi-Transparent Dark Navy Code Mockup Window
 * ------------------------------------------------------------- */
.code-mockup-card {
  background: rgba(15, 23, 42, 0.88) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(99, 102, 241, 0.35) !important;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.35) !important;
}

.code-mockup-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#typewriter-code {
  color: #a5b4fc;
}

/* Syntax Highlighting Colors */
.code-kw-const { color: #f43f5e !important; font-weight: 700; }
.code-kw-new { color: #38bdf8 !important; font-weight: 700; }
.code-fn { color: #fbbf24 !important; font-weight: 700; }
.code-str { color: #34d399 !important; }
.code-prop { color: #cbd5e1 !important; font-weight: 600; }
.code-status { color: #34d399 !important; font-weight: 700; }

/* -------------------------------------------------------------
 * High-Tech Page Preloader & Transition Overlay
 * ------------------------------------------------------------- */
.site-preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--bg-primary);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.45s ease, transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-preloader.fade-out {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.04);
}

.preloader-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

/* Explosive Code Particles Preloader Burst & Shockwave Ring */
.preloader-code-burst-wrapper {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.preloader-shockwave {
  position: absolute;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 2px solid rgba(99, 102, 241, 0.8);
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.6);
  animation: shockwaveExpand 1.6s ease-out infinite;
  pointer-events: none;
}

@keyframes shockwaveExpand {
  0% { transform: scale(0.6); opacity: 1; border-color: rgba(6, 182, 212, 0.9); }
  60% { opacity: 0.8; }
  100% { transform: scale(3.2); opacity: 0; border-color: rgba(99, 102, 241, 0); }
}

.preloader-code-center {
  width: 72px;
  height: 72px;
  background: var(--bg-glass-card);
  border: 2px solid rgba(99, 102, 241, 0.5);
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.6), inset 0 0 20px rgba(99, 102, 241, 0.2);
  z-index: 2;
  animation: preloaderCorePulse 1.8s ease-in-out infinite;
}

@keyframes preloaderCorePulse {
  0% { transform: scale(1); box-shadow: 0 0 30px rgba(99, 102, 241, 0.4); }
  50% { transform: scale(1.08); box-shadow: 0 0 50px rgba(6, 182, 212, 0.7); }
  100% { transform: scale(1); box-shadow: 0 0 30px rgba(99, 102, 241, 0.4); }
}

.burst-chip {
  position: absolute;
  font-family: 'Consolas', 'Fira Code', monospace;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(99, 102, 241, 0.6);
  color: #38bdf8;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
  opacity: 0;
  pointer-events: none;
  z-index: 3;
  white-space: nowrap;
}

.chip-1 { animation: superBurst1 1.8s ease-out infinite; }
.chip-2 { animation: superBurst2 1.8s ease-out infinite 0.2s; }
.chip-3 { animation: superBurst3 1.8s ease-out infinite 0.4s; }
.chip-4 { animation: superBurst4 1.8s ease-out infinite 0.6s; }
.chip-5 { animation: superBurst5 1.8s ease-out infinite 0.8s; }
.chip-6 { animation: superBurst6 1.8s ease-out infinite 1.0s; }
.chip-7 { animation: superBurst7 1.8s ease-out infinite 1.2s; }
.chip-8 { animation: superBurst8 1.8s ease-out infinite 1.4s; }

@keyframes superBurst1 {
  0% { opacity: 0; transform: translate(0, 0) scale(0.3); }
  45% { opacity: 1; transform: translate(-100px, -80px) scale(1.25); filter: drop-shadow(0 0 15px #6366f1); }
  100% { opacity: 0; transform: translate(-140px, -110px) scale(0.7); }
}

@keyframes superBurst2 {
  0% { opacity: 0; transform: translate(0, 0) scale(0.3); }
  45% { opacity: 1; transform: translate(100px, -80px) scale(1.25); filter: drop-shadow(0 0 15px #06b6d4); }
  100% { opacity: 0; transform: translate(140px, -110px) scale(0.7); }
}

@keyframes superBurst3 {
  0% { opacity: 0; transform: translate(0, 0) scale(0.3); }
  45% { opacity: 1; transform: translate(-110px, 60px) scale(1.2); filter: drop-shadow(0 0 15px #a855f7); }
  100% { opacity: 0; transform: translate(-150px, 85px) scale(0.7); }
}

@keyframes superBurst4 {
  0% { opacity: 0; transform: translate(0, 0) scale(0.3); }
  45% { opacity: 1; transform: translate(110px, 60px) scale(1.2); filter: drop-shadow(0 0 15px #ec4899); }
  100% { opacity: 0; transform: translate(150px, 85px) scale(0.7); }
}

@keyframes superBurst5 {
  0% { opacity: 0; transform: translate(0, 0) scale(0.3); }
  45% { opacity: 1; transform: translate(0px, -110px) scale(1.3); filter: drop-shadow(0 0 15px #38bdf8); }
  100% { opacity: 0; transform: translate(0px, -150px) scale(0.7); }
}

@keyframes superBurst6 {
  0% { opacity: 0; transform: translate(0, 0) scale(0.3); }
  45% { opacity: 1; transform: translate(0px, 95px) scale(1.3); filter: drop-shadow(0 0 15px #34d399); }
  100% { opacity: 0; transform: translate(0px, 135px) scale(0.7); }
}

@keyframes superBurst7 {
  0% { opacity: 0; transform: translate(0, 0) scale(0.3); }
  45% { opacity: 1; transform: translate(-130px, -10px) scale(1.25); filter: drop-shadow(0 0 15px #fbbf24); }
  100% { opacity: 0; transform: translate(-170px, -15px) scale(0.7); }
}

@keyframes superBurst8 {
  0% { opacity: 0; transform: translate(0, 0) scale(0.3); }
  45% { opacity: 1; transform: translate(130px, -10px) scale(1.25); filter: drop-shadow(0 0 15px #f43f5e); }
  100% { opacity: 0; transform: translate(170px, -15px) scale(0.7); }
}

.preloader-icon-glow {
  width: 64px !important;
  height: 64px !important;
  font-size: 1.8rem !important;
  border-radius: 18px !important;
  animation: preloaderPulse 1.6s ease-in-out infinite;
}

@keyframes preloaderPulse {
  0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.6); transform: scale(1); }
  50% { box-shadow: 0 0 35px 12px rgba(99, 102, 241, 0.3); transform: scale(1.06); }
  100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); transform: scale(1); }
}

.preloader-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.preloader-bar-container {
  width: 140px;
  height: 4px;
  background: var(--border-glass);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.preloader-progress-bar {
  width: 0%;
  height: 100%;
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
  animation: preloaderFill 0.55s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes preloaderFill {
  0% { width: 0%; }
  50% { width: 70%; }
  100% { width: 100%; }
}
