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

/* Custom Font Families */
.font-title, .font-playfair {
    font-family: 'Marcellus', 'Outfit', 'Montserrat', sans-serif;
    letter-spacing: 0.02em;
}

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

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Colors */
:root {
    --background: #FFF5F5;
    --background-secondary: #FFE4E6;
    --text-primary: #1F2937;
    --text-secondary: #4B5563;
    --primary: #EC4899;
    --primary-dark: #DB2777;
    --nude: #FECDD3;
    --border: #FECDD3;
    --accent-violet: #8B5CF6;
    --accent-coral: #F97316;
    --accent-yellow: #EAB308;
}

/* Base Styles */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Marcellus', 'Outfit', 'Montserrat', sans-serif;
    letter-spacing: 0.02em;
}

/* Navigation Styles */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

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

/* Header Transition */
#header {
    transition: all 0.3s ease;
    background: linear-gradient(to bottom, rgba(255, 245, 245, 0.95), rgba(255, 228, 230, 0.95));
}

#header.scrolled {
    box-shadow: 0 2px 10px rgba(236, 72, 153, 0.2);
}

/* Service Cards */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 2px solid var(--border);
}

#nails-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(236, 72, 153, 0.25);
    border-color: #EC4899;
}

#hair-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(139, 69, 19, 0.25);
    border-color: #8B4513;
}

#color-glam-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0, 172, 193, 0.3);
    border-color: #00ACC1;
}

.service-card i {
    transition: transform 0.3s ease;
}

.service-card:hover i {
    transform: scale(1.1);
}

.service-card img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto;
    display: block;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Hero Button Styles */
.btn-hero-primary {
    background: linear-gradient(135deg, #EC4899, #DB2777);
    color: white;
    padding: 0.75rem 1.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(236, 72, 153, 0.45);
}

.btn-hero-whatsapp {
    background: linear-gradient(135deg, #128C7E, #075E54);
    color: white;
    padding: 0.75rem 1.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(18, 140, 126, 0.3);
}

.btn-hero-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(18, 140, 126, 0.45);
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #EC4899, #DB2777);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #DB2777, #BE185D);
    box-shadow: 0 6px 18px rgba(219, 39, 119, 0.4);
}

.btn-whatsapp-green {
    background: linear-gradient(135deg, #128C7E, #075E54);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(18, 140, 126, 0.3);
}

.btn-whatsapp-green:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #0D6E63, #05443D);
    box-shadow: 0 6px 18px rgba(18, 140, 126, 0.45);
}

.btn-whatsapp i, .btn-whatsapp-green i {
    font-size: 1.2em;
}

/* Gallery Styles */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    cursor: pointer;
    aspect-ratio: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.15), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* Placeholder for empty galleries */
.gallery-placeholder {
    background-color: var(--background-secondary);
    border: 2px dashed var(--border);
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
}

/* Lightbox Styles */
#lightbox {
    transition: opacity 0.3s ease;
}

#lightbox.active {
    display: flex;
}

#lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 0.5rem;
}

/* Service Items */
.service-item {
    background-color: var(--background);
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    border: 1px solid var(--border);
    transition: border-color 0.3s ease, transform 0.2s ease, background-color 0.3s ease;
}

.service-item:hover {
    border-color: var(--primary);
    transform: translateX(4px);
    background-color: var(--background-secondary);
}

/* Technique Tags */
.technique-tag {
    background: linear-gradient(135deg, var(--background-secondary), var(--nude));
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    border: 1px solid var(--primary);
    color: var(--text-primary);
    transition: all 0.3s ease;
    font-weight: 500;
}

.technique-tag:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-color: var(--primary-dark);
    transform: scale(1.05);
}

/* Color & Glam Special Accents */
.color-glam-accent {
    position: relative;
    background: linear-gradient(135deg, var(--accent-violet), var(--accent-coral), var(--accent-yellow));
    padding: 3px;
    border-radius: 0.5rem;
}

.color-glam-accent > * {
    background: var(--background);
    border-radius: 0.375rem;
}

.color-glam-accent:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.3);
}

/* Theme-specific sections */
.nails-section {
    --section-primary: #FF69B4;
    --section-secondary: #FF1493;
    --section-gradient: linear-gradient(135deg, #FF69B4, #FF1493, #DB7093);
}

.hair-section {
    --section-primary: #8B4513;
    --section-secondary: #A0522D;
    --section-gradient: linear-gradient(135deg, #8B4513, #A0522D, #CD853F);
}

.color-glam-section {
    --section-primary: #00ACC1;
    --section-secondary: #00838F;
    --section-gradient: linear-gradient(135deg, #00ACC1, #00838F, #00E5FF);
}

.theme-section .service-item:hover {
    border-color: var(--section-primary);
    background: linear-gradient(135deg, var(--background), var(--section-primary));
}

.theme-section .technique-tag:hover {
    background: var(--section-gradient);
    border-color: var(--section-secondary);
}

.theme-section h2 {
    background: var(--section-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.theme-section .service-card {
    border-color: var(--section-primary);
}

.theme-section .service-card:hover {
    border-color: var(--section-secondary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.theme-section .gallery-item:hover::after {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.2), transparent);
}

.theme-section {
    position: relative;
}

.theme-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--section-gradient);
}

/* Floating WhatsApp Button */
#floating-whatsapp {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #25D366;
}

#floating-whatsapp:hover {
    transform: scale(1.1);
    background: #20BA5C;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

/* Back to Top Button */
#back-to-top {
    background: linear-gradient(135deg, #BE185D, #831843);
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
    box-shadow: 0 4px 16px rgba(131, 24, 67, 0.5);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

#back-to-top.visible {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

#back-to-top:hover {
    transform: scale(1.1);
    background: linear-gradient(135deg, #9D174D, #701A75);
    box-shadow: 0 6px 20px rgba(157, 23, 77, 0.6);
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .fade-in {
        opacity: 1;
        transform: none;
    }
}

/* Mobile Menu Overlay */
#mobile-menu-overlay {
    transition: opacity 0.3s ease;
}

#mobile-menu-overlay.active {
    display: block !important;
    opacity: 1 !important;
}

/* Mobile Menu */
#mobile-menu {
    display: none;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-8px);
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

#mobile-menu.active {
    display: block !important;
    max-height: 350px;
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav-link {
    background-color: #FFF5F5;
    border: 1px solid #FFE4E6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.mobile-nav-link:hover, .mobile-nav-link:active {
    background-color: #FFE4E6;
    border-color: #FECDD3;
    transform: translateX(4px);
}

/* Contact Info Items */
.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    background: linear-gradient(135deg, var(--background), var(--background-secondary));
    border-radius: 0.5rem;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-primary);
}

.contact-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.2);
    text-decoration: none;
    color: var(--text-primary);
}

.contact-item i {
    font-size: 1.25rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
}

/* Print Styles */
@media print {
    #floating-whatsapp,
    #lightbox,
    #mobile-menu-btn {
        display: none !important;
    }
    
    body {
        background-color: white;
        color: black;
    }
}