/* Southern Avenue Boutique — Custom Styles */

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

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

body {
    margin: 0;
}

/* Geometric Decorative Shapes */
.geo-shapes {
    pointer-events: none;
}

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

.geo-circle-1 {
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(244, 63, 94, 0.06) 0%, transparent 70%);
    top: 10%;
    right: -15%;
    animation: float-slow 20s ease-in-out infinite;
}

.geo-circle-2 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(244, 63, 94, 0.04) 0%, transparent 70%);
    bottom: 20%;
    left: -10%;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid rgba(244, 63, 94, 0.05);
    top: 35%;
    left: 5%;
    transform: rotate(15deg);
    animation: spin-slow 25s linear infinite;
}

.geo-rect-1 {
    width: 120px;
    height: 120px;
    border: 2px solid rgba(244, 63, 94, 0.08);
    top: 60%;
    right: 8%;
    transform: rotate(45deg);
    animation: float-slow 12s ease-in-out infinite;
}

.geo-rect-2 {
    width: 60px;
    height: 60px;
    background: rgba(244, 63, 94, 0.06);
    bottom: 40%;
    left: 12%;
    border-radius: 12px;
    transform: rotate(30deg);
    animation: spin-slow 18s linear infinite reverse;
}

.geo-dots {
    width: 200px;
    height: 200px;
    background-image: radial-gradient(circle, rgba(244, 63, 94, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    top: 75%;
    right: 20%;
    animation: float-slow 10s ease-in-out infinite;
}

/* Floating Cards */
.floating-card-1 {
    animation: float-card 4s ease-in-out infinite;
}

.floating-card-2 {
    animation: float-card 5s ease-in-out infinite 1s;
}

.floating-card-3 {
    animation: float-card 4.5s ease-in-out infinite 0.5s;
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal[data-reveal-delay="1"] { transition-delay: 0.1s; }
.reveal[data-reveal-delay="2"] { transition-delay: 0.2s; }
.reveal[data-reveal-delay="3"] { transition-delay: 0.3s; }

.reveal-hidden {
    opacity: 0;
    transform: translateY(40px);
}

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

@keyframes float-card {
    0%, 100% { transform: translateY(0px) rotate(var(--rotation, -3deg)); }
    50% { transform: translateY(-12px) rotate(var(--rotation, -3deg)); }
}

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

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #f43f5e, #fb7185);
    transition: width 0.3s ease;
}

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

/* Navbar Scroll State */
.navbar-scrolled {
    background: rgba(10, 15, 26, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile Menu */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s 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.2s; }
.mobile-menu-open .mobile-link:nth-child(3) { transition-delay: 0.3s; }

/* Menu Button Animation */
.menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-open .menu-line:nth-child(2) {
    opacity: 0;
    transform: translateX(10px);
}

.menu-open .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

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

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

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

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

/* Selection */
::selection {
    background: rgba(244, 63, 94, 0.3);
    color: #f9fafb;
}

/* 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;
    }
    
    .reveal-hidden {
        opacity: 1;
        transform: none;
    }
    
    .geo-shape {
        animation: none !important;
    }
    
    .floating-card-1, .floating-card-2, .floating-card-3 {
        animation: none !important;
    }
}

/* Responsive */
@media (max-width: 640px) {
    .geo-circle-1, .geo-circle-2, .geo-triangle, .geo-rect-1, .geo-rect-2, .geo-dots {
        display: none;
    }
}

@media (min-width: 641px) and (max-width: 1023px) {
    .geo-triangle, .geo-rect-2, .geo-dots {
        display: none;
    }
}
