/* ============================================
   MAMAS CRAFTING PHOTOGRAPHY
   Custom Styles
============================================ */

/* ---------- Base ---------- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(232, 99, 91, 0.3);
    color: #f6f6f6;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a1a1a;
}
::-webkit-scrollbar-thumb {
    background: #4f4f4f;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #e8635b;
}

/* ---------- Navigation ---------- */
#navbar {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(13, 13, 13, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#navbar.scrolled {
    background: rgba(13, 13, 13, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #e8635b;
    transition: width 0.3s ease;
}

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

.nav-link:hover {
    color: #e8635b !important;
}

/* ---------- Mobile Menu ---------- */
.menu-line {
    display: block;
}

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

.mobile-link {
    opacity: 0;
    transform: translateY(20px);
}

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

#mobileMenu.open .mobile-link:nth-child(1) { transition: all 0.3s ease 0.1s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition: all 0.3s ease 0.2s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition: all 0.3s ease 0.3s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition: all 0.3s ease 0.4s; }
#mobileMenu.open .mobile-link:nth-child(5) { transition: all 0.3s ease 0.5s; }

/* ---------- Hero ---------- */
.hero-image {
    animation: heroImageIn 1s ease forwards;
    opacity: 0;
    transform: scale(1.05);
}

@keyframes heroImageIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-subtitle {
    animation: fadeUp 0.8s ease 0.3s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.hero-line {
    animation: slideUp 0.8s cubic-bezier(0.65, 0, 0.35, 1) forwards;
    opacity: 0;
    transform: translateY(100%);
}

.hero-line:nth-child(1) { animation-delay: 0.1s; }
.hero-line:nth-child(2) { animation-delay: 0.2s; }
.hero-line:nth-child(3) { animation-delay: 0.3s; }
.hero-line:nth-child(4) { animation-delay: 0.4s; }
.hero-line:nth-child(5) { animation-delay: 0.5s; }

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

.hero-fade {
    animation: fadeUp 0.8s ease 0.6s forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Scroll Indicator ---------- */
.scroll-dot {
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { top: 0; opacity: 1; }
    50% { top: 60%; opacity: 0.3; }
}

/* ---------- Section Labels ---------- */
.section-label {
    position: relative;
    display: inline-block;
}

.section-label::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -20px;
    width: 12px;
    height: 1px;
    background: #e8635b;
}

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #e8635b, transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px -30px rgba(232, 99, 91, 0.15);
}

/* ---------- Portfolio ---------- */
.portfolio-item {
    position: relative;
    cursor: pointer;
}

.portfolio-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13, 13, 13, 0.6) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

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

/* ---------- Testimonials ---------- */
.testimonial-card {
    position: relative;
    transition: all 0.4s ease;
}

.testimonial-card:hover {
    border-color: rgba(232, 99, 91, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px -30px rgba(0, 0, 0, 0.5);
}

/* ---------- Contact Form ---------- */
input:focus,
select:focus,
textarea:focus {
    border-color: #e8635b !important;
    box-shadow: 0 0 0 3px rgba(232, 99, 91, 0.1);
}

select option {
    background: #1a1a1a;
    color: #f6f6f6;
}

/* ---------- Reveal Animations ---------- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}

.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; }

/* ---------- Utility ---------- */
.glass {
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .section-label::before {
        display: none;
    }
    
    #hero {
        padding-top: 100px;
    }
    
    .hero-image {
        animation: heroImageIn 1s ease 0.2s forwards;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    html {
        scroll-padding-top: 96px;
    }
}
