/* ============================================
   Pink Sunshine Photography - Custom Styles
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #262626;
}
::-webkit-scrollbar-thumb {
    background: #e05a48;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d14030;
}

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

@keyframes scrollLine {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }
    50% {
        transform: scaleY(1);
        transform-origin: top;
    }
    51% {
        transform-origin: bottom;
    }
    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

.scroll-line {
    animation: scrollLine 2s ease-in-out infinite;
}

/* --- Hero Image Animation --- */
.hero-img {
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    from {
        transform: scale(1.05);
    }
    to {
        transform: scale(1.15);
    }
}

/* --- Reveal on Scroll --- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* --- Navbar --- */
.nav-link-color {
    transition: color 0.3s ease;
}

/* Navbar transparent (over hero) */
.navbar-transparent .nav-link {
    color: rgba(255, 255, 255, 0.85);
}
.navbar-transparent .nav-link:hover {
    color: #f3aa9c;
}
.navbar-transparent .nav-link-color {
    color: white;
}

/* Navbar solid (scrolled) */
.navbar-solid {
    background: rgba(20, 20, 20, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}
.navbar-solid .nav-link {
    color: rgba(255, 255, 255, 0.75);
}
.navbar-solid .nav-link:hover {
    color: #f3aa9c;
}
.navbar-solid .nav-link-color {
    color: white;
}

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

#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* --- Menu Button --- */
.menu-line {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}
#menuBtn.active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Selection Color --- */
::selection {
    background: #e05a48;
    color: white;
}

/* --- Form Styles --- */
select option {
    background: white;
    color: #333;
}

/* --- Portfolio Image Hover --- */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero-img {
        animation: none;
    }
}

/* --- Focus Styles --- */
:focus-visible {
    outline: 2px solid #e05a48;
    outline-offset: 2px;
}

/* --- Print Styles --- */
@media print {
    nav, #contact, footer {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}
