/* Custom Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* Tailwind Configuration */
@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
    --primary-purple: #7c3aed;
    --primary-blue: #2563eb;
    --primary-indigo: #4f46e5;
    --accent-gold: #f59e0b;
    --text-dark: #1f2937;
    --text-light: #6b7280;
}

/* Custom Font Classes */
.font-playfair {
    font-family: 'Playfair Display', serif;
}

.font-inter {
    font-family: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.7;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Custom Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

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

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.animate-slide-up {
    animation: slideUp 0.8s ease-out forwards;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-sparkle {
    animation: sparkle 2s ease-in-out infinite;
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradient-shift 4s ease infinite;
}

/* Floating Button Animations */
@keyframes bounceSlow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-bounce-slow {
    animation: bounceSlow 3s ease-in-out infinite;
}

/* Floating Contact Buttons Styles */
#floating-contact-buttons {
    animation: fadeInUp 0.8s ease-out;
}

#floating-contact-buttons a {
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#floating-contact-buttons a:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    transform: scale(1.1) translateY(-2px);
}

/* WhatsApp specific pulse animation */
#floating-whatsapp {
    position: relative;
}

#floating-whatsapp::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: radial-gradient(circle, rgba(37, 211, 102, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    z-index: -1;
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

/* Responsive adjustments for floating buttons */
@media (max-width: 640px) {
    #floating-contact-buttons {
        bottom: 20px;
        left: 20px;
    }
    
    #floating-contact-buttons a {
        width: 56px;
        height: 56px;
    }
}

@media (max-height: 600px) {
    #floating-contact-buttons {
        bottom: 15px;
        left: 15px;
    }
}

/* Back to top button enhancement */
#back-to-top.show {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Initial state for floating buttons */
#floating-contact-buttons {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

/* Hero Section Mobile Fixes */
#home {
    min-height: 100vh;
    min-height: calc(var(--vh, 1vh) * 100);
}

/* Mobile hero text visibility improvements */
@media (max-width: 640px) {
    #home .relative.z-10 {
        padding-top: 80px;
        padding-bottom: 40px;
        min-height: calc(100vh - 80px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    #home h1 {
        line-height: 1.1;
        margin-bottom: 1.5rem;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    }
    
    #home p {
        line-height: 1.4;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
        margin-bottom: 2rem;
    }
}

/* Improve text contrast on mobile */
@media (max-width: 768px) {
    #home::before {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.3);
        z-index: 5;
    }
    
    #home .relative.z-10 {
        z-index: 15;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--primary-purple), var(--primary-blue));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #6d28d9, #1d4ed8);
}

/* Navigation Enhancements */
#navbar {
    transition: all 0.3s ease;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-link {
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primary-purple), var(--primary-blue));
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hero Section Particles */
#particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: linear-gradient(45deg, #a855f7, #3b82f6);
    border-radius: 50%;
    opacity: 0.7;
    animation: float 6s ease-in-out infinite;
}

.particle:nth-child(odd) {
    animation-duration: 4s;
    animation-delay: -2s;
}

.particle:nth-child(even) {
    animation-duration: 8s;
    animation-delay: -4s;
}

/* Gemstone Effect */
.gemstone-effect {
    position: relative;
    overflow: hidden;
}

.gemstone-effect::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(139, 92, 246, 0.1),
        transparent,
        rgba(59, 130, 246, 0.1),
        transparent
    );
    animation: sparkle 3s linear infinite;
    pointer-events: none;
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card-hover::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: left 0.5s ease;
}

.card-hover:hover::before {
    left: 100%;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Button Enhancements */
.btn-gradient {
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-blue));
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
    position: relative;
    overflow: hidden;
}

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

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

/* Gallery Masonry Effect */
.gallery-grid {
    columns: 1;
    column-gap: 1rem;
}

@media (min-width: 640px) {
    .gallery-grid {
        columns: 2;
    }
}

@media (min-width: 768px) {
    .gallery-grid {
        columns: 3;
    }
}

@media (min-width: 1024px) {
    .gallery-grid {
        columns: 4;
    }
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    overflow: hidden;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

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

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

/* Text Gradient */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glass Morphism */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design Enhancements */
@media (max-width: 768px) {
    .mobile-padding {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .mobile-text-sm {
        font-size: 0.875rem;
    }
    
    .mobile-heading {
        font-size: 2.5rem;
        line-height: 1.2;
    }
}

@media (max-width: 640px) {
    .mobile-heading {
        font-size: 2rem;
    }
    
    .mobile-subheading {
        font-size: 1.125rem;
    }
}

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

/* Focus Styles */
.focus-ring:focus {
    outline: 2px solid var(--primary-purple);
    outline-offset: 2px;
}

/* Custom Utility Classes */
.bg-pattern {
    background-image: radial-gradient(circle at 2px 2px, rgba(139, 92, 246, 0.1) 1px, transparent 0);
    background-size: 40px 40px;
}

.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.box-shadow-soft {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.box-shadow-strong {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Back to Top Button */
#back-to-top {
    transition: all 0.3s ease;
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Section Reveal Animation */
.section-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.section-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Colors for Tailwind */
.bg-primary-purple {
    background-color: var(--primary-purple);
}

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

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

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

/* Interactive Elements */
.interactive:hover {
    transform: translateY(-2px);
    transition: transform 0.2s ease;
}

.interactive:active {
    transform: translateY(0);
}

/* Smooth Transitions */
.smooth-transition {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        color: black !important;
        background: white !important;
    }
    
    .print-break {
        page-break-before: always;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .btn-gradient {
        background: #000;
        color: #fff;
        border: 2px solid #fff;
    }
    
    .glass {
        background: rgba(255, 255, 255, 0.9);
        border: 2px solid #000;
    }
}

/* Dark Mode Support (if implemented) */
@media (prefers-color-scheme: dark) {
    .dark-mode-support {
        background-color: #1f2937;
        color: #f9fafb;
    }
}