/* ============================================
   Wildflower Residences — Custom Styles
   ============================================ */

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

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

body {
    overflow-x: hidden;
}

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

.geo-circle-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 26, 74, 0.06) 0%, transparent 70%);
    top: -100px;
    right: -200px;
    animation: float-slow 20s ease-in-out infinite;
}

.geo-circle-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(245, 230, 211, 0.5) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    animation: float-slow 15s ease-in-out infinite reverse;
}

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

.geo-rect-1 {
    width: 120px;
    height: 120px;
    background: rgba(139, 26, 74, 0.04);
    top: 20%;
    left: 5%;
    transform: rotate(45deg);
    animation: float-medium 12s ease-in-out infinite;
}

.geo-rect-2 {
    width: 80px;
    height: 80px;
    background: rgba(240, 138, 106, 0.08);
    bottom: 15%;
    right: 10%;
    transform: rotate(30deg);
    animation: float-medium 10s ease-in-out infinite reverse;
}

.geo-triangle {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(139, 26, 74, 0.04);
    top: 40%;
    right: 3%;
    transform: rotate(20deg);
    animation: float-medium 14s ease-in-out infinite;
}

@keyframes float-slow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 15px) scale(0.95); }
}

@keyframes float-medium {
    0%, 100% { transform: translate(0, 0) rotate(45deg); }
    50% { transform: translate(20px, -30px) rotate(55deg); }
}

/* ============================================
   Hero Animations
   ============================================ */
.hero-tag {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards 0.2s;
}

.hero-image-main {
    opacity: 0;
    transform: translateX(40px);
    animation: slideInRight 1s ease forwards 0.4s;
}

.hero-image-secondary {
    opacity: 0;
    transform: scale(0.8) rotate(-5deg);
    animation: popIn 0.8s ease forwards 0.7s;
}

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

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes popIn {
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* ============================================
   Room Cards
   ============================================ */
.room-card {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.room-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.room-card:nth-child(1) { transition-delay: 0.1s; }
.room-card:nth-child(2) { transition-delay: 0.2s; }
.room-card:nth-child(3) { transition-delay: 0.3s; }

/* ============================================
   Feature Cards
   ============================================ */
.feature-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:nth-child(1) { transition-delay: 0.1s; }
.feature-card:nth-child(2) { transition-delay: 0.2s; }
.feature-card:nth-child(3) { transition-delay: 0.3s; }
.feature-card:nth-child(4) { transition-delay: 0.4s; }

/* ============================================
   Navbar Scroll State
   ============================================ */
#navbar.scrolled {
    background: rgba(253, 246, 240, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(139, 26, 74, 0.08);
}

#navbar.scrolled .nav-link {
    color: #5e1336;
}

#navbar.scrolled .nav-link:hover {
    color: #8B1A4A;
}

/* ============================================
   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; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

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

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

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

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

/* ============================================
   Focus Styles
   ============================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #8B1A4A;
    outline-offset: 2px;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
    .geo-circle-1 {
        width: 300px;
        height: 300px;
        right: -100px;
    }
    
    .geo-circle-2 {
        width: 200px;
        height: 200px;
    }
    
    .geo-rect-1 {
        width: 60px;
        height: 60px;
    }
    
    .geo-rect-2 {
        width: 40px;
        height: 40px;
    }
    
    .geo-triangle {
        display: none;
    }
    
    .hero-image-main {
        height: 400px !important;
    }
    
    .hero-image-secondary {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-image-main {
        height: 320px !important;
    }
}
