/* Custom styles for Liberty Nostrand Nails */

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

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

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

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

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

/* Geometric shape animations */
.geo-shape {
    position: absolute;
    opacity: 0.08;
    animation: float 20s ease-in-out infinite;
}

.shape-circle-1 {
    width: 300px;
    height: 300px;
    background: #d4a843;
    border-radius: 50%;
    top: 10%;
    right: -50px;
    animation-delay: 0s;
}

.shape-circle-2 {
    width: 150px;
    height: 150px;
    background: #e2bc5a;
    border-radius: 50%;
    bottom: 20%;
    left: 5%;
    animation-delay: -5s;
}

.shape-circle-3 {
    width: 200px;
    height: 200px;
    background: #d4a843;
    border-radius: 50%;
    top: 30%;
    left: 10%;
    animation-delay: -10s;
}

.shape-square-1 {
    width: 120px;
    height: 120px;
    background: #d4a843;
    top: 60%;
    right: 10%;
    transform: rotate(45deg);
    animation-delay: -3s;
}

.shape-square-2 {
    width: 80px;
    height: 80px;
    background: #e2bc5a;
    top: 25%;
    left: 15%;
    transform: rotate(20deg);
    animation-delay: -7s;
}

.shape-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid #d4a843;
    top: 45%;
    right: 20%;
    animation-delay: -2s;
}

.shape-diamond-1 {
    width: 100px;
    height: 100px;
    background: #d4a843;
    top: 15%;
    left: 20%;
    transform: rotate(45deg);
    animation-delay: -8s;
}

.shape-diamond-2 {
    width: 140px;
    height: 140px;
    background: #e2bc5a;
    bottom: 10%;
    right: 15%;
    transform: rotate(30deg);
    animation-delay: -4s;
    opacity: 0.05;
}

.shape-ring-1 {
    width: 180px;
    height: 180px;
    border: 20px solid #d4a843;
    border-radius: 50%;
    top: 70%;
    left: 5%;
    animation-delay: -6s;
    background: transparent;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-30px) rotate(5deg);
    }
    50% {
        transform: translateY(0) rotate(0deg);
    }
    75% {
        transform: translateY(30px) rotate(-5deg);
    }
}

/* Dots pattern */
.dots-pattern {
    background-image: radial-gradient(circle, #d4a843 1px, transparent 1px);
    background-size: 20px 20px;
    width: 120px;
    height: 120px;
}

/* Animation keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-slide-up {
    animation: slideUp 0.8s ease-out forwards;
    opacity: 0;
}

.animate-slide-up-delay {
    animation: slideUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.animate-slide-up-delay-2 {
    animation: slideUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

/* Service card hover effects */
.service-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    box-shadow: 0 20px 60px rgba(212, 168, 67, 0.15);
}

/* Gallery item hover */
.gallery-item {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

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

/* Mobile menu transitions */
#mobileMenu.active {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Intersection observer animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .geo-shape {
        opacity: 0.05;
    }
    
    .shape-circle-1 {
        width: 200px;
        height: 200px;
    }
    
    .shape-circle-2 {
        width: 100px;
        height: 100px;
    }
    
    .shape-square-1 {
        width: 80px;
        height: 80px;
    }
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #d4a843;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background: #d4a843;
    color: #0a1628;
}
