/* ===== Custom Styles for Beautiful Styles By Tiffany ===== */

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

/* --- Section Labels --- */
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #0d9488;
    background: linear-gradient(to right, #ccfbf1, #f0fdfa);
    padding: 0.4em 1em;
    border-radius: 100px;
}

/* --- Section Titles --- */
.section-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 600;
    line-height: 1.15;
    color: #1e293b;
}

/* --- Section Subtitles --- */
.section-subtitle {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #64748b;
    font-weight: 300;
}

/* --- Navbar Scroll State --- */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

.nav-scrolled .nav-link {
    color: #475569 !important;
}

.nav-scrolled #bar1,
.nav-scrolled #bar2,
.nav-scrolled #bar3 {
    background: #1e293b !important;
}

/* --- Floating Card Animations --- */
.floating-card {
    animation: float 3.5s ease-in-out infinite;
}

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

/* --- Service Cards --- */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, #0d9488, #5eead4);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.service-card:hover::after {
    transform: scaleX(1);
}

/* --- Gallery --- */
.gallery-item {
    position: relative;
    cursor: pointer;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13, 148, 136, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: inherit;
}

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

/* --- Testimonial Cards --- */
.testimonial-card {
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 16px;
    right: 24px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 5rem;
    line-height: 1;
    color: #f0fdfa;
    pointer-events: none;
    z-index: 0;
}

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* --- Mobile Menu Active State --- */
.mobile-menu-open #mobileMenu {
    opacity: 1 !important;
    pointer-events: all !important;
}

.mobile-menu-open #bar1 {
    transform: translateY(6px) rotate(45deg);
}

.mobile-menu-open #bar2 {
    opacity: 0;
}

.mobile-menu-open #bar3 {
    transform: translateY(-6px) rotate(-45deg);
}

/* --- Custom Selection --- */
::selection {
    background: #ccfbf1;
    color: #134e4a;
}

/* --- Back to Top --- */
#backToTop.visible {
    opacity: 1 !important;
    pointer-events: all !important;
    transform: translateY(0) !important;
}

/* --- Form Focus States --- */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* --- Print Styles --- */
@media print {
    nav, #backToTop, .floating-card { display: none; }
    body { color: #000; background: #fff; }
}
