/* Golden Logo Style - Premium Animations and Effects */

:root {
  --gold-primary: #f9a825;
  --gold-secondary: #fb9c33;
  --gold-dark: #d97706;
  --orange-primary: #f97e00;
  --orange-glow: rgba(249, 124, 0, 0.3);
  --bg-dark: #0a0e27;
  --bg-darker: #050810;
  --slate-light: #e2e8f0;
}

/* Smooth scrolling behavior */
html {
  scroll-behavior: smooth;
}

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

/* Glow pulse animation */
@keyframes glow-pulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(249, 158, 37, 0.2), inset 0 0 20px rgba(249, 124, 0, 0.05);
  }
  50% {
    box-shadow: 0 0 40px rgba(249, 158, 37, 0.4), inset 0 0 30px rgba(249, 124, 0, 0.1);
  }
}

/* Text glow animation */
@keyframes text-glow {
  0%, 100% {
    text-shadow: 0 0 10px rgba(249, 158, 37, 0.3), 0 0 20px rgba(249, 124, 0, 0.1);
  }
  50% {
    text-shadow: 0 0 20px rgba(249, 158, 37, 0.5), 0 0 30px rgba(249, 124, 0, 0.2);
  }
}

/* Floating particles animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Smooth fade in from bottom */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced card entrance */
@keyframes card-pop {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Apply animations to sections */
section {
  animation: fade-in-up 0.8s ease-out;
}

/* Card entrance animation */
.glow-card {
  animation: card-pop 0.6s ease-out backwards;
}

.glow-card:nth-child(1) { animation-delay: 0.1s; }
.glow-card:nth-child(2) { animation-delay: 0.2s; }
.glow-card:nth-child(3) { animation-delay: 0.3s; }
.glow-card:nth-child(4) { animation-delay: 0.4s; }

/* Title glow effect */
.section-title {
  animation: text-glow 3s ease-in-out infinite;
  letter-spacing: 0.02em;
}

/* Enhanced button glow */
.btn-primary {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

/* Logo glow effect - Seamless background around logo */
.logo-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 64px;
  padding: 8px 16px;
  background: rgba(10, 14, 39, 0.85);
  border-radius: 12px;
  border: 1px solid rgba(249, 158, 37, 0.35);
  box-shadow: 0 0 0 1px rgba(10, 14, 39, 0.6) inset, 0 6px 24px rgba(249, 158, 37, 0.15);
}

.logo-container img {
  width: 56px;
  height: 56px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
}

.logo-container::after { display: none; }

/* Navigation bar glow */
nav {
  position: relative;
}

nav::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(249, 158, 37, 0.5), transparent);
}

/* Text gradient effect with left accent border */
.glow-text {
  background: linear-gradient(135deg, rgba(249, 158, 37, 1) 0%, rgba(251, 156, 51, 1) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: text-glow 3s ease-in-out infinite;
  padding-left: 12px;
  border-left: 4px solid #f9a825;
  filter: drop-shadow(0 0 6px rgba(249, 158, 37, 0.35));
}

/* Service cards hover lift effect */
.glow-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.glow-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(249, 158, 37, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  border-radius: inherit;
}

.glow-card:hover::before {
  opacity: 1;
}

/* Accent line decorations with left border */
.section-subtitle::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 20px;
  background: linear-gradient(180deg, rgba(249, 158, 37, 0.8) 0%, rgba(249, 158, 37, 0.4) 100%);
  margin-right: 12px;
  vertical-align: middle;
  border-radius: 2px;
}

.section-subtitle::after {
  content: '';
  display: inline-block;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, rgba(249, 158, 37, 0) 0%, rgba(249, 158, 37, 0.5) 100%);
  margin-left: 12px;
  vertical-align: middle;
}

/* Service cards with advanced styling */
.glow-card h4,
.glow-card h3 {
  transition: color 0.3s ease;
}

.glow-card:hover h4,
.glow-card:hover h3 {
  color: #fcd34d;
  text-shadow: 0 0 10px rgba(249, 158, 37, 0.3);
}

/* CTA button enhanced effects */
.btn-primary:active {
  transform: scale(0.98);
  box-shadow: 0 0 20px rgba(249, 158, 37, 0.5) !important;
}

/* Hero text effects */
#hero h1 {
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* Link hover effects */
a:not([class*="btn"]) {
  position: relative;
  transition: color 0.3s ease;
}

a:not([class*="btn"])::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(249, 158, 37, 0.8) 0%, rgba(249, 124, 0, 0.4) 100%);
  transition: width 0.3s ease;
}

a:not([class*="btn"]):hover::after {
  width: 100%;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
  
  .glow-card {
    animation-delay: 0s !important;
  }
  
  .section-subtitle::after {
    display: none;
  }
  
  .logo-container {
    padding: 6px 12px;
  }
  
  .glow-text {
    padding-left: 8px;
    border-left: 3px solid #f9a825;
  }
}

/* Accessibility improvements */
@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;
  }
}

/* Theme backgrounds */
body {
  background: linear-gradient(135deg, #0f172a 0%, #111827 100%);
  background-attachment: fixed;
  color: var(--slate-light);
}

html.dark body {
  background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
}

/* Nav base + dark override for clearer toggle */
nav {
  background-color: #0f172a !important;
}

html.dark nav {
  background-color: #050810 !important;
}

/* Prevents CLS (Cumulative Layout Shift) */
html {
  overflow-y: scroll;
}

/* Print styles */
@media print {
  .glow-card,
  .btn-primary,
  .btn-secondary {
    box-shadow: none !important;
  }
  
  .section-title {
    text-shadow: none !important;
  }
}
