/* ===== Custom Styles for Royal BarberStudio ===== */

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

/* Base styles */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== Geometric Animations ===== */
@keyframes floatSlow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(3deg); }
}

@keyframes floatMedium {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(-2deg); }
}

@keyframes floatFast {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

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

@keyframes pulse-glow {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.7; }
}

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

.geo-circle-1 {
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 197, 24, 0.08) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation: floatSlow 8s ease-in-out infinite;
}

.geo-circle-2 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 75, 135, 0.15) 0%, transparent 70%);
    bottom: 10%;
    left: -50px;
    animation: floatMedium 6s ease-in-out infinite;
}

.geo-circle-3 {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 2px solid rgba(245, 197, 24, 0.15);
    top: 30%;
    left: 40%;
    animation: floatFast 5s ease-in-out infinite;
}

.geo-rect-1 {
    width: 120px;
    height: 120px;
    background: rgba(245, 197, 24, 0.06);
    border: 2px solid rgba(245, 197, 24, 0.12);
    top: 20%;
    left: 5%;
    border-radius: 20px;
    transform: rotate(45deg);
    animation: floatMedium 7s ease-in-out infinite;
}

.geo-rect-2 {
    width: 80px;
    height: 80px;
    background: rgba(168, 75, 135, 0.1);
    border: 2px solid rgba(168, 75, 135, 0.2);
    bottom: 25%;
    right: 5%;
    border-radius: 16px;
    transform: rotate(20deg);
    animation: floatSlow 9s ease-in-out infinite;
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 86px solid rgba(245, 197, 24, 0.05);
    top: 45%;
    right: 15%;
    animation: rotateSlow 20s linear infinite;
}

/* CTA section geometries */
.cta-geo {
    position: absolute;
    pointer-events: none;
}

.geo-rect-cta-1 {
    width: 300px;
    height: 300px;
    background: rgba(245, 197, 24, 0.04);
    border: 2px solid rgba(245, 197, 24, 0.08);
    border-radius: 40px;
    top: -50px;
    left: -100px;
    transform: rotate(30deg);
    animation: floatSlow 10s ease-in-out infinite;
}

.geo-rect-cta-2 {
    width: 200px;
    height: 200px;
    background: rgba(168, 75, 135, 0.08);
    border-radius: 30px;
    bottom: -30px;
    right: -50px;
    transform: rotate(-15deg);
    animation: floatMedium 8s ease-in-out infinite;
}

.geo-circle-cta {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    border: 1px solid rgba(245, 197, 24, 0.06);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse-glow 4s ease-in-out infinite;
}

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #F5C518, #A84B87);
    opacity: 0;
    transition: opacity 0.5s ease;
}

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

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

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 9, 22, 0.4) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

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

/* Mobile menu animations */
.menu-line {
    display: block;
}

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

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

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

/* Mobile link animations */
.mobile-link {
    opacity: 1;
    transform: none;
}

/* Scroll reveal (progressive enhancement - only when JS is available) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s 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; }
}

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

::-webkit-scrollbar-track {
    background: #1A0916;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #7A2F5C;
}

/* Selection color */
::selection {
    background: rgba(245, 197, 24, 0.3);
    color: #F9F0F7;
}

/* Focus visible styles */
:focus-visible {
    outline: 2px solid #F5C518;
    outline-offset: 2px;
}

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

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

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

    .geo-rect-2 {
        width: 40px;
        height: 40px;
    }
}
