/* Custom styles for Balayage by Russ */

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

/* Geometric shapes for hero */
.geo-shape {
    position: absolute;
    opacity: 0.08;
    pointer-events: none;
}

.geo-circle-1 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, #f59e0b, transparent);
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.geo-circle-2 {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, #be185d, transparent);
    bottom: 10%;
    left: -50px;
    animation: float 10s ease-in-out infinite reverse;
}

.geo-circle-3 {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 2px solid rgba(245, 158, 11, 0.3);
    top: 30%;
    left: 10%;
    animation: spin 20s linear infinite;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid rgba(190, 24, 93, 0.3);
    top: 20%;
    right: 15%;
    animation: float 6s ease-in-out infinite;
    transform: rotate(15deg);
}

.geo-triangle-2 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid rgba(245, 158, 11, 0.2);
    bottom: 25%;
    right: 5%;
    animation: float 7s ease-in-out infinite reverse;
    transform: rotate(-20deg);
}

.geo-square-1 {
    width: 100px;
    height: 100px;
    background: rgba(245, 158, 11, 0.15);
    top: 60%;
    left: 5%;
    animation: spin 15s linear infinite;
    transform: rotate(45deg);
}

.geo-square-2 {
    width: 60px;
    height: 60px;
    border: 2px solid rgba(190, 24, 93, 0.4);
    bottom: 15%;
    left: 20%;
    animation: spin 12s linear infinite reverse;
    transform: rotate(30deg);
}

/* Decorative lines */
.geo-line {
    position: absolute;
    background: linear-gradient(to bottom, transparent, rgba(245, 158, 11, 0.15), transparent);
    pointer-events: none;
}

.geo-line-1 {
    width: 1px;
    height: 200px;
    top: 15%;
    left: 25%;
    animation: float 5s ease-in-out infinite;
}

.geo-line-2 {
    width: 150px;
    height: 1px;
    top: 45%;
    right: 10%;
    background: linear-gradient(to right, transparent, rgba(190, 24, 93, 0.2), transparent);
    animation: float 6s ease-in-out infinite reverse;
}

.geo-line-3 {
    width: 1px;
    height: 120px;
    bottom: 20%;
    right: 25%;
    animation: float 7s ease-in-out infinite;
}

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

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

@keyframes scroll-line {
    0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
    100% { opacity: 0; transform: scaleY(1); transform-origin: bottom; }
}

.animate-scroll-line {
    animation: scroll-line 2s ease-in-out infinite;
}

/* 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);
}

/* Service card hover effects */
.service-card {
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-8px);
}

/* Navbar styles */
#navbar.scrolled {
    background: rgba(59, 4, 25, 0.95);
    backdrop-blur-xl;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile menu */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

#mobileMenu.closed {
    opacity: 0;
    pointer-events: none;
}

/* Hamburger animation */
.menu-line.active:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

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

/* Selection color */
::selection {
    background: rgba(245, 158, 11, 0.3);
    color: white;
}

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

::-webkit-scrollbar-track {
    background: #3b0419;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #be185d, #f59e0b);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #db2777, #fbbf24);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .geo-shape,
    .geo-line,
    .animate-scroll-line {
        animation: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .geo-circle-1 {
        width: 200px;
        height: 200px;
    }
    
    .geo-circle-2 {
        width: 120px;
        height: 120px;
    }
    
    .geo-triangle-1 {
        border-left-width: 40px;
        border-right-width: 40px;
        border-bottom-width: 70px;
    }
    
    .geo-triangle-2 {
        border-left-width: 30px;
        border-right-width: 30px;
        border-bottom-width: 50px;
    }
    
    .geo-square-1 {
        width: 50px;
        height: 50px;
    }
    
    .geo-square-2 {
        width: 30px;
        height: 30px;
    }
}
