/* ============================================
   Earth Angels Gifts — Custom Styles
   ============================================ */

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

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

body {
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #f0faf3;
}
::-webkit-scrollbar-thumb {
    background: #a8d5ba;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #7bc49a;
}

/* Selection */
::selection {
    background: #a8d5ba;
    color: #0a1628;
}

/* ============================================
   Navigation
   ============================================ */
#navbar {
    background: transparent;
    transition: background 0.5s ease, box-shadow 0.5s ease;
}

#navbar.scrolled {
    background: rgba(240, 250, 243, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(168, 213, 186, 0.3);
}

#navbar.scrolled .nav-text,
#navbar.scrolled .nav-subtext {
    color: #1e3a5f;
}

#navbar.scrolled .nav-icon-fill:first-of-type {
    fill: #1e3a5f;
}

#navbar.scrolled .menu-line {
    background: #1e3a5f;
}

/* ============================================
   Hero Animations
   ============================================ */
.hero-eyebrow {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.hero-title span {
    animation: slideUp 0.9s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    opacity: 0;
    transform: translateY(100%);
}

.hero-title span:nth-child(1) { animation-delay: 0.3s; }
.hero-title span:nth-child(2) { animation-delay: 0.45s; }
.hero-title span:nth-child(3) { animation-delay: 0.6s; }
.hero-title span:nth-child(4) { animation-delay: 0.75s; }
.hero-title span:nth-child(5) { animation-delay: 0.9s; }

.hero-subtitle {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 1.1s;
    opacity: 0;
}

.hero-cta-primary {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 1.3s;
    opacity: 0;
}

.hero-cta-secondary {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 1.4s;
    opacity: 0;
}

.hero-image-wrapper {
    animation: fadeIn 1.2s ease forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

.hero-accent-card {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 1.2s;
    opacity: 0;
}

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

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ============================================
   Scroll Animations (Intersection Observer)
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1), 
                transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.visible {
    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; }

/* ============================================
   Service Cards
   ============================================ */
.service-card {
    transition: background 0.4s ease;
}

.service-card:hover {
    background: #ffffff !important;
}

/* ============================================
   Gallery
   ============================================ */
.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 22, 40, 0);
    transition: background 0.4s ease;
}

.gallery-item:hover::after {
    background: rgba(10, 22, 40, 0.15);
}

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

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

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

/* Menu lines animation */
.menu-line {
    transition: transform 0.4s ease, opacity 0.3s ease;
}

#menu-btn.active .menu-line:first-child {
    transform: rotate(45deg) translate(3px, 3px);
}

#menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

/* ============================================
   Scroll Line Animation
   ============================================ */
.scroll-line {
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ============================================
   Form Focus States
   ============================================ */
input:focus,
select:focus,
textarea:focus {
    border-bottom-color: #a8d5ba !important;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 767px) {
    .hero-title {
        font-size: 2.5rem !important;
    }
    
    .hero-title span {
        font-size: 2.5rem !important;
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.5rem !important;
    }
    
    .hero-title span {
        font-size: 3.5rem !important;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4.5rem !important;
    }
    
    .hero-title span {
        font-size: 4.5rem !important;
    }
}

@media (min-width: 1280px) {
    .hero-title {
        font-size: 5.5rem !important;
    }
    
    .hero-title span {
        font-size: 5.5rem !important;
    }
}

/* ============================================
   Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
