@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=Manrope:wght@200;300;400;500;600;700;800&display=swap');

:root {
  /* Premium Fixed Theme: Architectural White & Sunset Orange */
  --background: #ffffff;
  --foreground: #0f172a;
  --card: #ffffff;
  --card-foreground: #0f172a;
  --primary: #f97316;
  /* Vibrant Orange */
  --primary-light: #fb923c;
  --primary-dark: #ea580c;
  --muted: #f8fafc;
  --muted-foreground: #64748b;
  --border: #e2e8f0;
  --radius: 1.5rem;

  --orange: #f97316;
  --orange-light: #fdba74;
  --charcoal: #0f172a;
  --silk: #ffffff;
  --glass: rgba(255, 255, 255, 0.8);
}

* {
  border-color: var(--border);
}

html {
  scroll-behavior: smooth;
  background-color: var(--background);
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: 'Manrope', system-ui, sans-serif;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  letter-spacing: -0.01em;
}

.font-serif {
  font-family: 'Cormorant Garamond', serif;
}

.font-sans {
  font-family: 'Manrope', sans-serif;
}

/* Luxury Aesthetics */
.text-gradient-orange {
  background: linear-gradient(135deg, #f97316 0%, #fb923c 50%, #ea580c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
}

.premium-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
}

.premium-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.03), transparent);
  pointer-events: none;
}

.premium-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 50px -12px rgba(249, 115, 22, 0.15);
  border-color: var(--orange);
}

.text-glow-orange {
  text-shadow: 0 0 20px rgba(249, 115, 22, 0.2);
}

.bg-orange-glow {
  box-shadow: 0 0 30px rgba(249, 115, 22, 0.2);
}

.btn-luxury {
  position: relative;
  padding: 1rem 2rem;
  background: var(--orange);
  color: white;
  border-radius: 9999px;
  overflow: hidden;
  transition: all 0.4s ease;
  z-index: 1;
}

.btn-luxury::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--charcoal);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease;
  z-index: -1;
}

.btn-luxury:hover {
  color: var(--charcoal);
}

.btn-luxury:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.parallax-bg {
  transform: scale(1.1);
  transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.section-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease-out;
}

.section-reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@keyframes shimmer {
  0% {
    left: -150%;
  }

  100% {
    left: 150%;
  }
}

/* Preloader States */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s cubic-bezier(0.77, 0, 0.175, 1), visibility 0.8s;
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.preloader-logo {
  position: relative;
  margin-bottom: 3rem;
  animation: logo-glow 2.5s ease-in-out infinite;
}

@keyframes logo-glow {

  0%,
  100% {
    transform: scale(1) translateY(0);
    filter: drop-shadow(0 0 0px rgba(249, 115, 22, 0));
  }

  50% {
    transform: scale(1.1) translateY(-10px);
    filter: drop-shadow(0 0 20px rgba(249, 115, 22, 0.3));
  }
}

.preloader-bar-container {
  width: 200px;
  height: 2px;
  background: rgba(249, 115, 22, 0.1);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.preloader-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--orange);
  transition: width 0.4s ease;
}

.preloader-text {
  margin-top: 1rem;
  color: var(--orange);
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

/* Hero Overlay Fix - Enhanced Visibility for Header */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(15, 23, 42, 0.7) 0%,
      rgba(15, 23, 42, 0.3) 30%,
      rgba(15, 23, 42, 0.3) 70%,
      rgba(15, 23, 42, 0.7) 100%);
  z-index: 1;
}

#main-navigation {
  padding-top: 0.5rem !important;
  /* py-2 */
  padding-bottom: 0.5rem !important;
}

#main-navigation .logo-container {
  width: 3.5rem !important;
  /* w-14 approx */
  height: 3.5rem !important;
  border-radius: 0.75rem !important;
}

#main-navigation h1 {
  font-size: 1.25rem !important;
  /* text-xl */
}

@media (min-width: 1024px) {
  #main-navigation {
    padding-top: 0.75rem !important;
    /* py-3 */
    padding-bottom: 0.75rem !important;
  }

  #main-navigation .logo-container {
    width: 4.5rem !important;
    /* w-18 approx */
    height: 4.5rem !important;
    border-radius: 1rem !important;
  }

  #main-navigation h1 {
    font-size: 1.5rem !important;
    /* text-2xl */
  }
}

#main-navigation.glass {
  padding-top: 0.5rem !important;
  /* py-2 */
  padding-bottom: 0.5rem !important;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 2px solid rgba(249, 115, 22, 0.1);
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.1);
}

@media (min-width: 1024px) {
  #main-navigation.glass {
    padding-top: 0.5rem !important;
    /* py-2 */
    padding-bottom: 0.5rem !important;
  }
}

/* Dark Section Fixes */
.bg-charcoal,
.footer-dark,
#process {
  color: var(--silk) !important;
}

.bg-charcoal h1,
.bg-charcoal h2,
.bg-charcoal h3,
.bg-charcoal h4 {
  color: var(--silk) !important;
}

.bg-charcoal .text-muted-foreground {
  color: rgba(255, 255, 255, 0.6) !important;
}

/* Navigation transparency logic */
#main-navigation:not(.glass) .text-foreground,
#main-navigation:not(.glass) .text-foreground\/70 {
  color: white !important;
}

#main-navigation .logo-container {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  margin-bottom: -2px;
}

#main-navigation .group:hover .logo-container {
  transform: scale(1.05) rotate(2deg);
}

#main-navigation a span.relative::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width 0.3s ease;
}

#main-navigation a:hover span.relative::after {
  width: 100%;
}

#main-navigation .btn-premium {
  background: var(--orange);
  color: white;
  box-shadow: 0 10px 20px -10px rgba(249, 115, 22, 0.4);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#main-navigation .btn-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -12px rgba(249, 115, 22, 0.6);
  filter: brightness(1.1);
}

/* Ensure the glass effect has a subtle top highlight */
.glass {
  position: relative;
}

.glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

#main-navigation .logo-container img {
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  filter: brightness(1.05) contrast(1.05);
}

#main-navigation .group:hover .logo-container img {
  transform: scale(1.1) rotate(-2deg);
  filter: brightness(1.1) contrast(1.1) drop-shadow(0 0 8px rgba(249, 115, 22, 0.2));
}

#main-navigation {
  border: none !important;
}

#main-navigation:not(.glass) .logo-container {
  border: none !important;
}

#main-navigation.glass .logo-container {
  border-color: rgba(249, 115, 22, 0.6);
}

.hero-image-container {
  overflow: hidden;
}

.scroll-indicator {
  animation: float 2s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.service-card {
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--orange);
}

.project-card {
  position: relative;
  overflow: hidden;
}

.project-card img {
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card:hover img {
  transform: scale(1.1);
}

.project-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.project-card:hover::after {
  opacity: 1;
}

/* Timeline line for process section */
.timeline-line {
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 1px;
  background: rgba(249, 115, 22, 0.2);
  z-index: 0;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--background);
}

::-webkit-scrollbar-thumb {
  background: var(--orange);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 100;
  width: 3.75rem;
  height: 3.75rem;
  background: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: visible;
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 20px 40px rgba(37, 211, 102, 0.4);
}

.whatsapp-pulse {
  position: absolute;
  inset: 0;
  background: #25d366;
  border-radius: 50%;
  z-index: -1;
  animation: wa-pulse 2.5s infinite;
}

@keyframes wa-pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}