/* Custom CSS for SkyGlow */

/* CSS Variables for theming */
:root {
    --primary: #d4af37;
    --primary-foreground: #000000;
    --secondary: #1e3a8a;
    --secondary-foreground: #ffffff;
    --background: #0a0a0b;
    --foreground: #fafafa;
    --card: #161618;
    --card-foreground: #fafafa;
    --muted: #27272a;
    --muted-foreground: #a1a1aa;
    --border: #27272a;
    --accent: #f59e0b;
    --destructive: #dc2626;
    --destructive-foreground: #fafafa;
}

/* Base styles */
body {
    background: var(--background);
    color: var(--foreground);
    font-family: system-ui, -apple-system, sans-serif;
}

/* Custom utilities */
.text-primary { color: var(--primary); }
.text-primary-foreground { color: var(--primary-foreground); }
.text-secondary { color: var(--secondary); }
.text-secondary-foreground { color: var(--secondary-foreground); }
.text-muted-foreground { color: var(--muted-foreground); }
.bg-primary { background-color: var(--primary); }
.bg-primary-foreground { background-color: var(--primary-foreground); }
.bg-secondary { background-color: var(--secondary); }
.bg-background { background-color: var(--background); }
.bg-card { background-color: var(--card); }
.bg-muted { background-color: var(--muted); }
.border-primary { border-color: var(--primary); }
.border-border { border-color: var(--border); }

/* Hero gradient background */
.hero-gradient {
    background: linear-gradient(135deg, 
        var(--background) 0%, 
        #1a1a2e 25%, 
        #16213e  50%, 
        #0f1419 75%, 
        var(--background) 100%
    );
    position: relative;
    overflow: hidden;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(30, 58, 138, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* SkyGlow title styling */
.skyglow-title {
    background: linear-gradient(45deg, var(--primary), #f59e0b, var(--primary));
    background-size: 200% 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s ease-in-out infinite;
}

.skyglow-subtitle {
    color: #d1d5db;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Logo effects */
.logo-interactive {
    transition: all 0.3s ease;
}

.logo-interactive:hover {
    filter: drop-shadow(0 0 20px var(--primary));
}

.gold-glow {
    filter: drop-shadow(0 4px 8px rgba(212, 175, 55, 0.3));
}

/* Premium cards */
.premium-card {
    background: rgba(22, 22, 24, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.premium-card:hover {
    border-color: rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.15);
}

/* Button styles */
.premium-button-gold {
    background: linear-gradient(45deg, var(--primary), #f59e0b);
    border: none;
    color: var(--primary-foreground);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.premium-button-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

/* Festive sparkles */
.festive-sparkles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Animations */
@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1); }
}

@keyframes whatsappBlink {
    0%, 50% { opacity: 1; transform: scale(1); }
    51%, 100% { opacity: 0.7; transform: scale(0.95); }
}

.animate-fadeIn {
    animation: fadeIn 0.6s ease-out;
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out;
}

/* Page transitions */
.page {
    transition: all 0.3s ease;
}

.page.hidden {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: -1;
}

.page.active {
    opacity: 1;
    visibility: visible;
    position: relative;
    z-index: 1;
}

/* Portfolio grid effects */
.portfolio-item {
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
}

/* Form styles */
input, textarea, select {
    transition: all 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* Navigation styles */
nav {
    background: rgba(10, 10, 11, 0.95);
    backdrop-filter: blur(10px);
}

.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:hover::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    animation: fadeIn 0.3s ease;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .skyglow-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .skyglow-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-gradient {
        min-height: 80vh;
    }
}

/* Utility classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Toast notifications */
.toast-enter {
    transform: translateX(100%);
    opacity: 0;
}

.toast-enter-active {
    transform: translateX(0);
    opacity: 1;
    transition: all 0.3s ease;
}

.toast-exit {
    transform: translateX(0);
    opacity: 1;
}

.toast-exit-active {
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* WhatsApp Widget */
.whatsapp-widget {
    animation: whatsappPulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(34, 197, 94, 0.5));
}

.whatsapp-button {
    box-shadow:
        0 0 20px rgba(34, 197, 94, 0.4),
        0 0 40px rgba(34, 197, 94, 0.2),
        0 0 60px rgba(34, 197, 94, 0.1),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow:
        0 0 25px rgba(34, 197, 94, 0.6),
        0 0 50px rgba(34, 197, 94, 0.3),
        0 0 75px rgba(34, 197, 94, 0.2),
        inset 0 0 25px rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}

@keyframes whatsappPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 15px rgba(34, 197, 94, 0.5));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 20px rgba(34, 197, 94, 0.7));
    }
}

/* Premium Geometric Snowflakes */
.geometric-snowflake {
    position: absolute;
    width: 20px;
    height: 20px;
    z-index: 1;
}

.geometric-snowflake::before,
.geometric-snowflake::after {
    content: '';
    position: absolute;
    background: linear-gradient(45deg, transparent 40%, rgba(212, 175, 55, 0.8) 50%, transparent 60%);
}

.geometric-snowflake::before {
    width: 100%;
    height: 2px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.geometric-snowflake::after {
    width: 2px;
    height: 100%;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}

.geometric-snowflake {
    animation: geometricSnowflakeRotate 4s linear infinite;
}

.snowflake-1 {
    top: -25px;
    left: -40px;
    animation-delay: 0s;
}

.snowflake-2 {
    top: -20px;
    right: -35px;
    animation-delay: 0.7s;
}

.snowflake-3 {
    bottom: -25px;
    left: -45px;
    animation-delay: 1.4s;
}

.snowflake-4 {
    bottom: -20px;
    right: -40px;
    animation-delay: 2.1s;
}

.snowflake-5 {
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 2.8s;
}

.snowflake-6 {
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 3.5s;
}

/* Premium Stars */
.premium-star {
    position: absolute;
    width: 16px;
    height: 16px;
    z-index: 1;
}

.premium-star::before,
.premium-star::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: radial-gradient(circle, var(--primary) 30%, transparent 70%);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.premium-star::before {
    animation: premiumStarGlow 3s ease-in-out infinite;
}

.premium-star::after {
    animation: premiumStarPulse 3s ease-in-out infinite reverse;
}

.star-1 {
    top: -15px;
    left: 15%;
    animation-delay: 0s;
}

.star-2 {
    top: -15px;
    right: 15%;
    animation-delay: 0.8s;
}

.star-3 {
    bottom: -15px;
    left: 20%;
    animation-delay: 1.6s;
}

.star-4 {
    bottom: -15px;
    right: 20%;
    animation-delay: 2.4s;
}

/* Elegant Orbs */
.elegant-orb {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(212, 175, 55, 0.9), rgba(212, 175, 55, 0.3));
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
    z-index: 1;
    animation: elegantOrbFloat 3s ease-in-out infinite;
}

.orb-1 {
    top: -10px;
    left: -15px;
    animation-delay: 0s;
}

.orb-2 {
    top: -10px;
    right: -15px;
    animation-delay: 0.6s;
}

.orb-3 {
    bottom: -10px;
    left: -20px;
    animation-delay: 1.2s;
}

.orb-4 {
    bottom: -10px;
    right: -20px;
    animation-delay: 1.8s;
}

/* Crystal Decorations */
.crystal-deco {
    position: absolute;
    width: 14px;
    height: 14px;
    z-index: 1;
}

.crystal-deco::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 12px solid rgba(212, 175, 55, 0.7);
    top: 0;
    left: 0;
}

.crystal-deco::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 12px solid rgba(212, 175, 55, 0.5);
    bottom: 0;
    left: 0;
}

.crystal-deco {
    animation: crystalShimmer 2.5s ease-in-out infinite;
}

.crystal-1 {
    top: -8px;
    left: -25px;
    animation-delay: 0.4s;
}

.crystal-2 {
    top: -8px;
    right: -25px;
    animation-delay: 1s;
}

.crystal-3 {
    bottom: -8px;
    left: -30px;
    animation-delay: 1.6s;
}

.crystal-4 {
    bottom: -8px;
    right: -30px;
    animation-delay: 2.2s;
}

.timer-container {
    box-shadow:
        0 0 30px rgba(212, 175, 55, 0.3),
        0 0 60px rgba(212, 175, 55, 0.1);
    border: 2px solid var(--primary);
}

.timer-digit {
    background: rgba(212, 175, 55, 0.1);
    border-radius: 8px;
    padding: 0.5rem;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.timer-separator {
    margin-top: 0.5rem;
}

@keyframes snowflakeFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.8;
    }
    25% {
        transform: translateY(-5px) rotate(90deg);
        opacity: 1;
    }
    50% {
        transform: translateY(-10px) rotate(180deg);
        opacity: 0.8;
    }
    75% {
        transform: translateY(-5px) rotate(270deg);
        opacity: 1;
    }
}

@keyframes starTwinkle {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

@keyframes holidayBounce {
    0%, 100% {
        transform: translateY(0px) scale(1);
        opacity: 0.7;
    }
    25% {
        transform: translateY(-3px) scale(1.1);
        opacity: 0.9;
    }
    75% {
        transform: translateY(-1px) scale(1.05);
        opacity: 0.8;
    }
}

/* Premium Sparkle Effects Inside Timer */
.premium-sparkle {
    position: absolute;
    width: 8px;
    height: 8px;
    z-index: 2;
}

.premium-sparkle::before,
.premium-sparkle::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, var(--primary) 20%, transparent 80%);
    border-radius: 50%;
}

.premium-sparkle::before {
    animation: premiumSparkleGlow 2s ease-in-out infinite;
}

.premium-sparkle::after {
    animation: premiumSparklePulse 2s ease-in-out infinite reverse;
}

.sparkle-timer-1 {
    top: 8px;
    left: 12px;
    animation-delay: 0s;
}

.sparkle-timer-2 {
    top: 8px;
    right: 12px;
    animation-delay: 0.5s;
}

.sparkle-timer-3 {
    bottom: 8px;
    left: 15px;
    animation-delay: 1s;
}

.sparkle-timer-4 {
    bottom: 8px;
    right: 15px;
    animation-delay: 1.5s;
}

/* Premium Animation Keyframes */
@keyframes geometricSnowflakeRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes premiumStarGlow {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.3);
        filter: brightness(1.5);
    }
}

@keyframes premiumStarPulse {
    0%, 100% {
        opacity: 0.4;
        transform: scale(0.8);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.2);
    }
}

@keyframes elegantOrbFloat {
    0%, 100% {
        transform: translateY(0px) scale(1);
        opacity: 0.7;
    }
    25% {
        transform: translateY(-4px) scale(1.2);
        opacity: 1;
    }
    75% {
        transform: translateY(-2px) scale(1.1);
        opacity: 0.9;
    }
}

@keyframes premiumSparkleGlow {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
        box-shadow: 0 0 5px var(--primary);
    }
    50% {
        opacity: 1;
        transform: scale(1.5);
        box-shadow: 0 0 15px var(--primary);
    }
}

@keyframes premiumSparklePulse {
    0%, 100% {
        opacity: 0.2;
        transform: scale(0.6);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.3);
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary: #ffff00;
        --background: #000000;
        --foreground: #ffffff;
        --card: #111111;
        --border: #444444;
    }
}