/* ===== Custom Styles for Sallyz Variety Shop ===== */

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

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

/* ===== Geometric Background Shapes ===== */
.geo-shape {
    position: absolute;
    opacity: 0.08;
    pointer-events: none;
}

.circle-1 {
    top: 10%;
    left: 5%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2dd4bf, #14b8a6);
    animation: float 8s ease-in-out infinite;
}

.circle-2 {
    top: 60%;
    right: 8%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5eead4, #2dd4bf);
    animation: float 6s ease-in-out infinite reverse;
}

.circle-3 {
    bottom: 15%;
    left: 15%;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #99f6e0, #5eead4);
    animation: float 10s ease-in-out infinite;
}

.circle-4 {
    top: 30%;
    right: -5%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2dd4bf, #14b8a6);
    animation: float 12s ease-in-out infinite;
}

.square-1 {
    top: 20%;
    right: 15%;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #5eead4, #2dd4bf);
    border-radius: 16px;
    transform: rotate(45deg);
    animation: spin-slow 20s linear infinite;
}

.square-2 {
    bottom: 25%;
    left: 8%;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #99f6e0, #5eead4);
    border-radius: 12px;
    transform: rotate(30deg);
    animation: spin-slow 15s linear infinite reverse;
}

.square-3 {
    bottom: 10%;
    right: 20%;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #2dd4bf, #14b8a6);
    border-radius: 20px;
    transform: rotate(15deg);
    animation: spin-slow 25s linear infinite;
}

.triangle-1 {
    top: 40%;
    left: 3%;
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid #5eead4;
    opacity: 0.06;
    animation: float 7s ease-in-out infinite;
}

.triangle-2 {
    top: 15%;
    right: 25%;
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 52px solid #2dd4bf;
    opacity: 0.05;
    animation: float 9s ease-in-out infinite reverse;
}

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

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

/* ===== Scroll Indicator ===== */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: bounce 2s ease-in-out infinite;
}

.scroll-indicator svg {
    animation: scrollArrow 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

@keyframes scrollArrow {
    0%, 100% { opacity: 0.4; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(4px); }
}

/* ===== Reveal Animations ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .geo-shape,
    .circle-1, .circle-2, .circle-3, .circle-4,
    .square-1, .square-2, .square-3,
    .triangle-1, .triangle-2 {
        animation: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        transition: none;
    }
}

/* ===== Navbar Scroll State ===== */
#navbar.scrolled {
    background: rgba(7, 13, 31, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

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

/* ===== Button hover effects ===== */
button[type="submit"]:hover {
    transform: translateY(-1px);
}

button[type="submit"]:active {
    transform: translateY(0);
}

/* ===== Input focus styles ===== */
input:focus,
textarea:focus {
    outline: none;
}

/* ===== Image hover zoom ===== */
.group img {
    transition: transform 0.6s ease;
}

.group:hover img {
    transform: scale(1.05);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #2d3a7e;
}

/* ===== Mobile adjustments ===== */
@media (max-width: 768px) {
    .circle-1 {
        width: 200px;
        height: 200px;
    }
    
    .circle-2 {
        width: 120px;
        height: 120px;
    }
    
    .circle-3 {
        display: none;
    }
    
    .square-1, .square-2, .square-3 {
        display: none;
    }
    
    .triangle-1, .triangle-2 {
        display: none;
    }
}

/* ===== Tablet adjustments ===== */
@media (min-width: 769px) and (max-width: 1023px) {
    .circle-1 {
        width: 250px;
        height: 250px;
    }
}
