/* ===================================
   Camille and Co - Custom Styles
   =================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

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

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

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

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

/* ===================================
   Hero Animations
   =================================== */
.hero-content {
    opacity: 1;
    transform: translateY(0);
    animation: heroEntrance 1s ease-out forwards;
}

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

/* ===================================
   Service Cards
   =================================== */
.service-card {
    opacity: 1;
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
}

/* ===================================
   Gallery Items
   =================================== */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 25, 47, 0.4) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: 16px;
}

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

/* ===================================
   Testimonial Cards
   =================================== */
.testimonial-card {
    opacity: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
}

/* ===================================
   Navbar Scroll Effect
   =================================== */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

/* ===================================
   Mobile Menu Animations
   =================================== */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* ===================================
   About Section Animations
   =================================== */
.about-image {
    opacity: 1;
    transform: translateX(0);
    transition: transform 0.8s ease, opacity 0.8s ease;
}

.about-content {
    opacity: 1;
    transform: translateX(0);
    transition: transform 0.8s ease 0.2s, opacity 0.8s ease 0.2s;
}

/* ===================================
   Scroll Reveal Animations
   (Progressive Enhancement - hidden by default, shown via JS)
   =================================== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal.active {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-left {
        opacity: 0;
        transform: translateX(-40px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal-left.active {
        opacity: 1;
        transform: translateX(0);
    }
    
    .reveal-right {
        opacity: 0;
        transform: translateX(40px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal-right.active {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===================================
   Back to Top Button
   =================================== */
#backToTop {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#backToTop.visible {
    opacity: 1;
    pointer-events: auto;
}

#backToTop:not(.visible) {
    transform: translateY(20px);
}

/* ===================================
   Focus Styles for Accessibility
   =================================== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #D4AF37;
    outline-offset: 2px;
}

/* ===================================
   Selection Color
   =================================== */
::selection {
    background: #D4AF37;
    color: #0a192f;
}

/* ===================================
   Responsive Adjustments
   =================================== */
@media (max-width: 768px) {
    .hero-content {
        animation-delay: 0.2s;
    }
}
