/*
Theme Name: SolAzure
Theme URI: https://solazure.ae
Description: Premium business center website for SolAzure, Saadiyat Island, Abu Dhabi.
Version: 1.0
Author: SolAzure
Author URI: https://solazure.ae
*/

/* ============ CSS CUSTOM PROPERTIES ============ */
:root {
  --color-brand:       #C5A55A;
  --color-brand-dark:  #A88A3A;
  --color-brand-light: #FBF6EB;
  --color-accent:      #9B7B3C;
  --color-dark:        #1a1a2e;
  --color-dark-light:  #16213e;
  --color-white:       #ffffff;

  --font-sans:    'Inter', system-ui, sans-serif;
  --font-display: 'Outfit', system-ui, sans-serif;

  --transition-fast: 0.2s ease;
  --transition-base: 0.35s ease;
  --transition-slow: 0.6s ease;

  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   24px;
  --radius-full: 9999px;
}

/* ============ CUSTOM ANIMATIONS ============ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes scrollDot {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); opacity: 0.3; }
}

.animate-scroll-dot {
  animation: scrollDot 2s ease-in-out infinite;
}

/* ============ SCROLL ANIMATIONS ============ */
[data-scroll] {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-scroll="fade-up"] {
  transform: translateY(60px);
}

[data-scroll="fade-down"] {
  transform: translateY(-60px);
}

[data-scroll="fade-left"] {
  transform: translateX(60px);
}

[data-scroll="fade-right"] {
  transform: translateX(-60px);
}

[data-scroll="zoom-in"] {
  transform: scale(0.85);
}

[data-scroll="zoom-out"] {
  transform: scale(1.15);
}

[data-scroll].is-visible {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* ============ NAVBAR ============ */
#navbar {
  background: transparent;
}

#navbar.scrolled {
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

#navbar.scrolled .nav-link,
#navbar.scrolled .nav-text-transition {
  color: rgba(255, 255, 255, 0.9);
}

/* ============ PARTICLES ============ */
.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) rotate(720deg);
    opacity: 0;
  }
}

/* ============ GALLERY ============ */
.gallery-filter {
  background: #f3f4f6;
  color: #6b7280;
}

.gallery-filter:hover {
  background: #e5e7eb;
  color: #1a1a2e;
}

.gallery-filter.active {
  background: #C5A55A;
  color: white;
}

.gallery-item {
  transition: opacity 0.35s ease, transform 0.35s ease;
}

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

/* ============ PRICING ============ */
.pricing-tab {
  background: #f3f4f6;
  color: #6b7280;
}

.pricing-tab:hover {
  background: #e5e7eb;
  color: #1a1a2e;
}

.pricing-tab.active {
  background: #C5A55A;
  color: white;
}

.pricing-panel {
  transition: opacity 0.4s ease;
}

.pricing-label.active {
  color: #1a1a2e;
}

#pricing-toggle.active {
  background: #C5A55A;
}

#pricing-toggle.active #pricing-toggle-dot {
  transform: translateX(2rem);
}

/* ============ SWIPER CUSTOMIZATIONS ============ */
.swiper-pagination-video .swiper-pagination-bullet,
.swiper-pagination-testimonial .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.3);
  opacity: 1;
  transition: all 0.3s ease;
}

.swiper-pagination-video .swiper-pagination-bullet-active {
  background: #C5A55A;
  width: 30px;
  border-radius: 5px;
}

.swiper-pagination-testimonial .swiper-pagination-bullet {
  background: rgba(26, 26, 46, 0.2);
}

.swiper-pagination-testimonial .swiper-pagination-bullet-active {
  background: #C5A55A;
  width: 30px;
  border-radius: 5px;
}

/* ============ LIGHTBOX ============ */
#lightbox.active {
  display: flex;
}

#lightbox img {
  animation: lightboxIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes lightboxIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ============ FORM FOCUS ANIMATION ============ */
form input:focus,
form select:focus,
form textarea:focus {
  box-shadow: 0 0 0 4px rgba(44, 213, 196, 0.1);
}

/* ============ COUNTER ANIMATION ============ */
.counter {
  font-variant-numeric: tabular-nums;
}

/* ============ BACK TO TOP ============ */
#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

/* ============ SMOOTH SCROLL OFFSET ============ */
:target {
  scroll-margin-top: 80px;
}

/* ============ CUSTOM SCROLLBAR ============ */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #C5A55A;
}

/* ============ SELECTION ============ */
::selection {
  background: rgba(197, 165, 90, 0.3);
  color: #1a1a2e;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item[class*="row-span"] {
    grid-row: span 1;
  }
}
