/* ============================================
   Oriana Chan - Home Loans
   Custom Styles
   ============================================ */

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

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

body {
    margin: 0;
    overflow-x: hidden;
}

/* ============================================
   Geometric Background Shapes
   ============================================ */
.geo-shape {
    position: absolute;
    pointer-events: none;
}

.shape-circle-1 {
    top: 10%;
    left: 5%;
    width: 300px;
    height: 300px;
    border: 3px solid rgba(196, 105, 74, 0.08);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.shape-circle-2 {
    top: 60%;
    right: 5%;
    width: 180px;
    height: 180px;
    background: rgba(196, 105, 74, 0.05);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite reverse;
}

.shape-square-1 {
    top: 25%;
    right: 15%;
    width: 80px;
    height: 80px;
    background: rgba(207, 160, 80, 0.1);
    transform: rotate(45deg);
    animation: spin-slow 20s linear infinite;
}

.shape-triangle-1 {
    bottom: 20%;
    left: 10%;
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 86px solid rgba(196, 105, 74, 0.06);
    animation: float 10s ease-in-out infinite;
}

.shape-ring-1 {
    top: 45%;
    left: 40%;
    width: 120px;
    height: 120px;
    border: 2px solid rgba(207, 160, 80, 0.12);
    border-radius: 50%;
    animation: float 7s ease-in-out infinite reverse;
}

/* Clip paths */
.clip-diagonal-right {
    clip-path: polygon(50% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.clip-diagonal-left {
    clip-path: polygon(0% 0%, 100% 0%, 50% 100%, 0% 100%);
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(3deg); }
}

@keyframes spin-slow {
    from { transform: rotate(45deg); }
    to { transform: rotate(405deg); }
}

/* ============================================
   Navigation
   ============================================ */
#navbar {
    background: rgba(253, 248, 240, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all duration-500;
}

#navbar.scrolled {
    background: rgba(253, 248, 240, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

/* ============================================
   Mobile Menu
   ============================================ */
#mobileMenu {
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#mobileMenu.active {
    opacity: 1;
    pointer-events: all;
}

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

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

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

/* ============================================
   Service Cards
   ============================================ */
.service-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(196, 105, 74, 0.15);
}

/* ============================================
   Process Steps
   ============================================ */
.process-step {
    transition: all 0.5s ease;
}

.process-step:hover {
    transform: translateY(-8px);
}

.process-step:hover .bg-white\/5 {
    border-color: rgba(196, 105, 74, 0.4);
}

/* ============================================
   Testimonial Cards
   ============================================ */
.testimonial-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card:hover {
    transform: translateY(-6px);
}

/* ============================================
   Scroll Reveal Animations
   (Progressive enhancement - content visible without JS)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

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

/* ============================================
   Form Styles
   ============================================ */
input:focus,
select:focus,
textarea:focus {
    border-color: #C4694A !important;
    box-shadow: 0 0 0 4px rgba(196, 105, 74, 0.1) !important;
}

/* ============================================
   Custom Selection
   ============================================ */
::selection {
    background: rgba(196, 105, 74, 0.2);
    color: #723625;
}

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

::-webkit-scrollbar-track {
    background: #FDF8F0;
}

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

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

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
    .shape-circle-1 {
        width: 200px;
        height: 200px;
    }

    .shape-circle-2 {
        width: 120px;
        height: 120px;
    }

    .shape-square-1 {
        width: 50px;
        height: 50px;
    }

    .shape-triangle-1 {
        border-left: 30px solid transparent;
        border-right: 30px solid transparent;
        border-bottom: 52px solid rgba(196, 105, 74, 0.06);
    }

    .shape-ring-1 {
        width: 80px;
        height: 80px;
    }
}
