/* ============================================
   Tina Zwetsch — Blue Arrow Real Estate
   Custom Styles
   ============================================ */

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

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

body {
    overflow-x: hidden;
}

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

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

/* ---------- Hero Gradient ---------- */
.hero-gradient {
    background: linear-gradient(
        135deg,
        #0a1628 0%,
        #0f2140 25%,
        #152d56 50%,
        #1a3a6e 75%,
        #0f2140 100%
    );
}

.hero-pattern {
    background-image: radial-gradient(circle at 2px 2px, rgba(212, 168, 67, 0.3) 1px, transparent 0);
    background-size: 48px 48px;
}

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

@keyframes scrollBounce {
    0%, 100% { opacity: 0.4; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.2); }
}

/* ---------- CTA Gradient ---------- */
.cta-gradient {
    background: linear-gradient(
        135deg,
        #0f2140 0%,
        #152d56 40%,
        #1a3a6e 60%,
        #0f2140 100%
    );
}

/* ---------- Navbar ---------- */
#navbar {
    backdrop-filter: blur(0px);
    background: transparent;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#navbar.scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-link {
    position: relative;
}

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

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

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

/* ---------- Mobile Menu ---------- */
.mobile-link {
    position: relative;
}

#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

/* ---------- Section Labels & Titles ---------- */
.section-label {
    letter-spacing: 0.3em;
}

.section-title {
    letter-spacing: -0.02em;
}

/* ---------- 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, #D4A843, transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

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

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

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

.testimonial-card:hover::after {
    opacity: 1;
}

/* ---------- Area Cards ---------- */
.area-card {
    position: relative;
}

.area-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid transparent;
    transition: border-color 0.5s ease;
    pointer-events: none;
}

.area-card:hover::after {
    border-color: rgba(212, 168, 67, 0.4);
}

/* ---------- Reveal Animations ---------- */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

.reveal-up.revealed,
.reveal-left.revealed,
.reveal-right.revealed {
    opacity: 1;
    transform: translate(0, 0);
}

/* ---------- CTA Buttons ---------- */
.cta-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cta-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}

.cta-primary:hover::before {
    left: 100%;
}

/* ---------- Form ---------- */
select option {
    background: #0f2140;
    color: #fff;
}

/* ---------- Selection ---------- */
::selection {
    background: rgba(212, 168, 67, 0.3);
    color: #fff;
}

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

::-webkit-scrollbar-track {
    background: #0a1628;
}

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

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

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .hero-headline {
        font-size: 2.5rem;
    }

    .hero-headline br {
        display: none;
    }

    .section-title {
        font-size: 2.25rem;
    }

    .about-grid {
        display: none;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .hero-headline {
        font-size: 4rem;
    }
}
