/* Custom styles for Gabriella Rothschild's */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Geometric background shapes */
.geo-shape {
    position: absolute;
    pointer-events: none;
}

.geo-circle-1 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 168, 75, 0.15) 0%, transparent 70%);
    top: 10%;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.geo-circle-2 {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 168, 75, 0.1) 0%, transparent 70%);
    bottom: 20%;
    left: 5%;
    animation: float 6s ease-in-out infinite reverse;
}

.geo-rect-1 {
    width: 150px;
    height: 150px;
    border: 2px solid rgba(212, 168, 75, 0.2);
    transform: rotate(45deg);
    top: 30%;
    left: -50px;
    animation: spin 20s linear infinite;
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 75px solid transparent;
    border-right: 75px solid transparent;
    border-bottom: 130px solid rgba(212, 168, 75, 0.08);
    bottom: 15%;
    right: 15%;
    animation: float 7s ease-in-out infinite;
}

.geo-line-1 {
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(212, 168, 75, 0.3), transparent);
    top: 50%;
    right: 0;
    transform: translateY(-50%);
}

.geo-line-2 {
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(212, 168, 75, 0.2), transparent);
    bottom: 30%;
    left: 10%;
    transform: rotate(-30deg);
}

/* About section shapes */
.geo-about-circle-1 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 168, 75, 0.1) 0%, transparent 70%);
    top: -50px;
    left: -100px;
    animation: float 9s ease-in-out infinite;
}

.geo-about-rect-1 {
    width: 100px;
    height: 100px;
    border: 2px solid rgba(212, 168, 75, 0.15);
    transform: rotate(30deg);
    bottom: 10%;
    right: 5%;
    animation: spin 15s linear infinite;
}

/* CTA section shapes */
.geo-cta-circle-1 {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    top: -50px;
    right: 10%;
    animation: float 7s ease-in-out infinite;
}

.geo-cta-circle-2 {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    bottom: -30px;
    left: 5%;
    animation: float 5s ease-in-out infinite reverse;
}

.geo-cta-rect {
    width: 80px;
    height: 80px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transform: rotate(45deg);
    top: 20%;
    left: 3%;
    animation: spin 12s linear infinite;
}

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

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

/* Collection card hover effects */
.collection-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(30, 58, 95, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: inherit;
}

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

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

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

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

/* Mobile menu animations */
.menu-line {
    transition: all 0.3s ease;
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.4rem;
}

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

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

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

::-webkit-scrollbar-thumb {
    background: #1e3a5f;
    border-radius: 5px;
}

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .geo-shape,
    .geo-circle-1,
    .geo-circle-2,
    .geo-rect-1,
    .geo-triangle,
    .geo-line-1,
    .geo-line-2,
    .geo-about-circle-1,
    .geo-about-rect-1,
    .geo-cta-circle-1,
    .geo-cta-circle-2,
    .geo-cta-rect {
        animation: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .collection-card img {
        transition: none;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .geo-circle-1 {
        width: 200px;
        height: 200px;
    }
    
    .geo-circle-2 {
        width: 100px;
        height: 100px;
    }
    
    .geo-rect-1 {
        width: 80px;
        height: 80px;
    }
    
    .geo-triangle {
        border-left: 50px solid transparent;
        border-right: 50px solid transparent;
        border-bottom: 87px solid rgba(212, 168, 75, 0.08);
    }
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #d4a84b;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection color */
::selection {
    background: rgba(212, 168, 75, 0.3);
    color: #0f1c2e;
}
