/* Custom styles for Curly Hair Specialist */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0d143a;
}
::-webkit-scrollbar-thumb {
    background: #1c2d82;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2236a3;
}

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

.geo-circle-1 {
    top: 15%;
    right: 5%;
    width: 300px;
    height: 300px;
    border: 2px solid rgba(74, 222, 128, 0.08);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

.geo-circle-2 {
    bottom: 20%;
    left: 8%;
    width: 200px;
    height: 200px;
    border: 2px solid rgba(74, 222, 128, 0.06);
    border-radius: 50%;
    animation: float 15s ease-in-out infinite reverse;
}

.geo-circle-3 {
    top: 50%;
    left: 50%;
    width: 400px;
    height: 400px;
    border: 1px solid rgba(74, 222, 128, 0.04);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse-ring 8s ease-in-out infinite;
}

.geo-rect-1 {
    top: 30%;
    left: 3%;
    width: 80px;
    height: 80px;
    border: 2px solid rgba(255, 107, 107, 0.1);
    transform: rotate(45deg);
    animation: spin-slow 30s linear infinite;
}

.geo-triangle {
    bottom: 30%;
    right: 10%;
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid rgba(255, 217, 61, 0.06);
    animation: float 18s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(2deg); }
    66% { transform: translateY(10px) rotate(-1deg); }
}

@keyframes pulse-ring {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.05); }
}

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

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(13, 20, 58, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Nav link hover effect */
.nav-link::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #4ade80;
    transition: width 0.3s ease;
}

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

/* Selection color */
::selection {
    background: rgba(74, 222, 128, 0.3);
    color: #f0f4ff;
}

/* Prevent layout shift on images */
img {
    max-width: 100%;
    height: auto;
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button hover glow */
button:hover, a:hover {
    transition: all 0.3s ease;
}

/* Form focus styles */
input:focus, select:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.1);
}

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