/* Theme variables */
:root {
    --color-prima: #f5f5e88f;
    --color-prima-dark: #08080777;
    --color-primary: #c9a74d;
    --color-primary-dark: #d4b45f;
    --color-secondary: #1a1a1a;
    --color-secondary-dark: #f5eaea75;
    --color-background: #f8f8f8;
    --color-background-dark: #121212;
    --color-text: #333333;
    --color-text-dark: #f0f0f0;
    --color-testimonies: #fbe8e8;
    --color-testimonies-dark: #353333;
}

[data-theme="dark"] {
    --color-prima:var(--color-prima-dark)
    --color-primary: var(--color-primary-dark);
    --color-secondary: var(--color-secondary-dark);
    --color-background: var(--color-background-dark);
    --color-text: var(--color-text-dark);
    --color-testimonies: var(--color-testimonies-dark);
}

body {
    background-color: var(--color-background);
    color: var(--color-text);
    transition: background-color 0.5s ease, color 0.3s ease;
}

/* Custom styles */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.glass-card {
    background: rgba(230, 226, 221, 0.897);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgb(255, 255, 255);
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.03);
}

/* Gallery specific styles */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
}

.gallery-item img {
    display: block;
    /* Ensures images are properly rendered */
    width: 100%;
    height: 16rem;
    /* Fixed height for consistency */
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(201, 167, 77, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Color classes */
.bg-primary {
    background-color: var(--color-primary);
}

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

.border-primary {
    border-color: var(--color-primary);
}

.bg-secondary {
    background-color: var(--color-secondary);
}

.bg-testimonies {
    background-color: var(--color-testimonies);
}

/* Navigation styles */
.nav-link.active {
    color: #f0a248;
}

.dark .nav-link.active {
    color: #f5b341;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #e99a3f;
    transform: scaleX(1);
}

.dark .nav-link.active::after {
    background-color: #e29f2b;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.mobile-nav-link.active {
    color: #dc913b;
    font-weight: 600;
}

.dark .mobile-nav-link.active {
    color: #f8a920;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 4px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes textReveal {

    0%,
    100% {
        transform: translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateY(-15px);
        opacity: 0.7;
    }
}

@keyframes progressBar {
    0% {
        width: 0%;
        left: 0;
        right: auto;
    }

    50% {
        width: 100%;
        left: 0;
        right: auto;
    }

    51% {
        width: 100%;
        left: auto;
        right: 0;
    }

    100% {
        width: 0%;
        left: auto;
        right: 0;
    }
}

/* hero dection */

@keyframes fade-in-down {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-down {
    animation: fade-in-down 0.8s ease-out forwards;
}

.animate-fade-in-up {
    animation: fade-in-up 0.8s ease-out forwards;
}




/* Add these keyframes to your existing styles */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fade-in-up 0.8s ease-out forwards;
}


/* Email-specific styles */
.email-container {
    max-width: 600px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
    line-height: 1.5;
}

.email-header {
    background: linear-gradient(135deg, #d4af37, #b8941f);
    color: white;
    padding: 30px 20px;
    text-align: center;
}

.email-content {
    padding: 20px;
    background: white;
}

.email-footer {
    background: #2c3e50;
    color: white;
    padding: 20px;
    text-align: center;
    font-size: 12px;
}

.loading-dots {
  display: inline-block;
  position: relative;
}

.loading-dots::after {
  content: '';
  animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
  0%, 20% { content: ''; }
  40% { content: '.'; }
  60% { content: '..'; }
  80%, 100% { content: '...'; }
}

.submit-btn-loading {
  position: relative;
  color: transparent !important;
}

.submit-btn-loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-left: -10px;
  margin-top: -10px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}


@media (max-width: 640px) {
    /* Add bottom padding to footer to account for floating buttons */
    footer.bg-dark {
        padding-bottom: 160px !important;
    }
    
    /* Ensure the last section has proper spacing */
    section.bg-primary:last-of-type {
        margin-bottom: 0 !important;
    }
    
    /* Add safe area support for notched phones */
    @supports (padding: max(0px)) {
        footer.bg-dark {
            padding-bottom: max(160px, env(safe-area-inset-bottom)) !important;
        }
    }
}