/* Google Fonts Imports */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;800&family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400&family=Poppins:wght@300;400;500;600;700&display=swap');

/* Color variables and Base Styles */
:root {
  --color-navy-dark: #050B1A;
  --color-navy-light: #0B132B;
  --color-navy-accent: #1C2541;
  --color-gold: #D4AF37;
  --color-gold-light: #F3E5AB;
  --color-gold-dark: #AA7C11;
  --color-cream: #F7F5F0;
  --color-gray-light: #EAEAEA;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--color-navy-dark);
  color: var(--color-cream);
  overflow-x: hidden;
}

/* Custom Typography classes */
.font-cinzel {
  font-family: 'Cinzel', serif;
}

.font-playfair {
  font-family: 'Playfair Display', serif;
}

.font-poppins {
  font-family: 'Poppins', sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-navy-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--color-gold);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold-dark);
}

/* Custom Cursor Glow */
@media (min-width: 1024px) {
  body {
    cursor: none;
  }
  a, button, select, input, textarea, [role="button"], .interactive-card {
    cursor: none;
  }
  .custom-cursor {
    width: 8px;
    height: 8px;
    background-color: var(--color-gold);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.2s, height 0.2s, background-color 0.2s;
  }
  .custom-cursor-glow {
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-gold);
    background-color: rgba(212, 175, 55, 0.05);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9998;
    transition: width 0.3s, height 0.3s, background-color 0.3s, border-color 0.3s;
  }
  .cursor-hover .custom-cursor {
    width: 24px;
    height: 24px;
    background-color: rgba(212, 175, 55, 0.2);
    border: 1px solid var(--color-gold);
  }
  .cursor-hover .custom-cursor-glow {
    width: 60px;
    height: 60px;
    background-color: rgba(212, 175, 55, 0.1);
    border-color: var(--color-gold-light);
  }
}

/* Loading Screen styling */
#loading-screen {
  background-color: var(--color-navy-dark);
  z-index: 10000;
  transition: opacity 0.8s ease-in-out, visibility 0.8s;
}

/* Glassmorphism Panels */
.glass-panel {
  background: rgba(11, 19, 43, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 175, 55, 0.15);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.glass-panel-light {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Premium Buttons & Effects */
.btn-premium {
  position: relative;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(170, 124, 17, 0.05));
  border: 1px solid var(--color-gold);
  color: var(--color-cream);
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  overflow: hidden;
  transition: all 0.4s ease;
  backdrop-filter: blur(5px);
}

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

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

.btn-premium:hover {
  background: var(--color-gold);
  color: var(--color-navy-dark);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
  text-shadow: none;
  transform: translateY(-2px);
}

/* Floating WhatsApp & Call Buttons */
.whatsapp-float {
  background-color: #25D366;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  animation: pulse-green 2s infinite;
  z-index: 999;
}

.call-float {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
  animation: pulse-gold 2s infinite;
  z-index: 999;
}

/* Keyframes animations */
@keyframes pulse-green {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

@keyframes pulse-gold {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 12px rgba(212, 175, 55, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
  }
}

/* Animated Gold Shimmer Border */
.gold-shimmer-border {
  position: relative;
  background: var(--color-navy-light);
}

.gold-shimmer-border::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  border: 1px solid transparent;
  background: linear-gradient(90deg, var(--color-gold), transparent, var(--color-gold), transparent, var(--color-gold)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  background-size: 200% auto;
  animation: shimmer 4s linear infinite;
  pointer-events: none;
}

@keyframes shimmer {
  to {
    background-position: 200% center;
  }
}

/* Gold Text Glow */
.text-gold-glow {
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

/* Ripple Click Effect */
.ripple {
  position: absolute;
  background: rgba(212, 175, 55, 0.4);
  border-radius: 50%;
  transform: scale(0);
  animation: ripple-effect 0.6s linear;
  pointer-events: none;
}

@keyframes ripple-effect {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Particles Canvas */
#particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Section Divider Shapes */
.premium-divider {
  width: 100%;
  height: 24px;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.divider-gold-line {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  margin: 2rem auto;
  width: 60%;
}

.divider-gold-crest {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.5rem 0;
}

.divider-gold-crest::before, .divider-gold-crest::after {
  content: '';
  height: 1px;
  width: 100px;
  background: linear-gradient(90deg, transparent, var(--color-gold));
}

.divider-gold-crest::after {
  background: linear-gradient(270deg, transparent, var(--color-gold));
}

.divider-gold-crest svg {
  margin: 0 15px;
  fill: var(--color-gold);
}

/* Cards Hover Effects */
.interactive-card {
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.5s ease, border-color 0.5s ease;
  will-change: transform;
}

.interactive-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--color-gold);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5), 0 0 15px rgba(212, 175, 55, 0.15);
}

/* Timeline Custom Styles */
.timeline-item::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, var(--color-navy-light), var(--color-gold), var(--color-navy-light));
  z-index: 0;
}

@media (max-width: 768px) {
  .timeline-item::before {
    left: 20px;
  }
}

/* Custom Mouse Trail Particle */
.mouse-particle {
  position: fixed;
  width: 4px;
  height: 4px;
  background: var(--color-gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9997;
  opacity: 0.8;
  transform: translate(-50%, -50%);
}

/* Zoom background hero */
@keyframes slowZoom {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

.zoom-bg {
  animation: slowZoom 25s infinite ease-in-out;
}

/* Masonry grid items transitions */
.gallery-item {
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.gallery-item.hidden {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
  position: absolute;
}

/* Lightbox styles */
#lightbox {
  background: rgba(5, 11, 26, 0.95);
  backdrop-filter: blur(8px);
}

/* Floating Elements Slow Animation */
.floating-element {
  animation: float 6s ease-in-out infinite;
}

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

@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(2deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes float-reverse {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(12px) rotate(-3deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

/* Form Input Focus Ring */
.form-input {
  background: rgba(11, 19, 43, 0.4);
  border: 1px solid rgba(212, 175, 55, 0.2);
  color: var(--color-cream);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-input:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
  outline: none;
}

/* Reveal classes for intersection observer */
.reveal-fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-fade-left {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-zoom {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.revealed {
  opacity: 1 !important;
  transform: none !important;
}

/* Gold shining line overlay */
.gold-shining-line {
  position: absolute;
  width: 150%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.5), transparent);
  transform: rotate(-35deg);
  animation: shine-sweep 8s infinite linear;
}

@keyframes shine-sweep {
  0% {
    top: -100%;
    left: -100%;
  }
  100% {
    top: 150%;
    left: 150%;
  }
}
