/* ============================================
   JULIANA DOMINICAN STYLE — CUSTOM STYLES
   ============================================ */

/* --- Base & Smooth Scroll --- */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Geometric Background Shapes --- */
.geo-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.geo-circle--1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #F5EDDA 0%, #FBE0D0 100%);
    top: -100px;
    right: -100px;
    opacity: 0.6;
    animation: float-slow 20s ease-in-out infinite;
}

.geo-circle--2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #E8D1A0 0%, #F0E2C4 100%);
    bottom: 10%;
    left: -50px;
    opacity: 0.4;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.geo-rect {
    position: absolute;
    pointer-events: none;
}

.geo-rect--1 {
    width: 120px;
    height: 120px;
    background: #C0603A;
    opacity: 0.08;
    top: 25%;
    left: 45%;
    transform: rotate(45deg);
    animation: spin-slow 30s linear infinite;
}

.geo-triangle {
    position: absolute;
    pointer-events: none;
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(192, 96, 58, 0.06);
    top: 60%;
    right: 5%;
    animation: float-slow 12s ease-in-out infinite;
}

.geo-dots {
    position: absolute;
    pointer-events: none;
    top: 30%;
    right: 2%;
    display: grid;
    grid-template-columns: repeat(4, 12px);
    gap: 16px;
    opacity: 0.3;
}

.geo-dots::before,
.geo-dots::after {
    content: '';
    width: 8px;
    height: 8px;
    background: #C0603A;
    border-radius: 50%;
}

/* CTA Section shapes */
.geo-circle--cta1 {
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    top: -150px;
    left: -150px;
}

.geo-circle--cta2 {
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.03);
    bottom: -80px;
    right: -80px;
}

.geo-rect--cta {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.05);
    top: 20%;
    right: 10%;
    transform: rotate(30deg);
}

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

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

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

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* --- Hero Animations --- */
.hero-text > * {
    animation: fadeInLeft 0.8s ease-out forwards;
    opacity: 0;
}

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

.hero-image > * {
    animation: fadeInRight 0.8s ease-out 0.3s forwards;
    opacity: 0;
}

/* --- Navbar --- */
.nav-link {
    position: relative;
}

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

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

.nav-link:hover {
    color: #C0603A;
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(253, 248, 240, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(26, 20, 16, 0.08);
}

.nav-scrolled .nav-link {
    color: rgba(26, 20, 16, 0.7);
}

.nav-scrolled .menu-line {
    background: #1A1410;
}

/* --- Mobile Menu --- */
.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

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

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

/* Hamburger animation */
.menu-line {
    transition: all 0.3s ease;
}

#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: 6px;
    transform: rotate(-45deg) translate(4px, -4px);
    margin: 0;
    margin-left: 14px;
}

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #C0603A 0%, #a04e2e 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

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

.service-card > * {
    position: relative;
    z-index: 1;
}

/* --- Gallery --- */
.gallery-item {
    cursor: pointer;
    position: relative;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 20, 16, 0.3) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

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

/* --- Testimonial Cards --- */
.testimonial-card {
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(192, 96, 58, 0.12);
    border-color: #C0603A;
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s ease;
}

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

/* --- Form --- */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .geo-circle--1 {
        width: 300px;
        height: 300px;
    }

    .geo-circle--2 {
        width: 150px;
        height: 150px;
    }

    .geo-rect--1 {
        width: 60px;
        height: 60px;
    }

    .hero-text h1 {
        font-size: 2.75rem;
    }

    .hero-image {
        margin-top: 2rem;
    }

    .floating-card {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        margin-top: 1rem;
    }
}

@media (max-width: 640px) {
    .hero-text h1 {
        font-size: 2.25rem;
    }

    .geo-circle--1 {
        width: 200px;
        height: 200px;
    }

    .geo-circle--2 {
        display: none;
    }
}
