/* ===================================
   Colosseum Beauty Supply - Styles
   =================================== */

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: #0c1220;
    color: #f8fafc;
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0f172a;
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #0d9488;
}

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

.shape-circle-1 {
    top: 10%;
    left: 5%;
    width: 120px;
    height: 120px;
    border: 3px solid rgba(45, 212, 191, 0.2);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.shape-circle-2 {
    bottom: 15%;
    right: 8%;
    width: 80px;
    height: 80px;
    background: rgba(45, 212, 191, 0.08);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite reverse;
}

.shape-square-1 {
    top: 25%;
    right: 15%;
    width: 60px;
    height: 60px;
    border: 2px solid rgba(251, 191, 36, 0.15);
    transform: rotate(45deg);
    animation: spin-slow 20s linear infinite;
}

.shape-triangle-1 {
    bottom: 25%;
    left: 10%;
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 52px solid rgba(45, 212, 191, 0.1);
    animation: float 7s ease-in-out infinite;
}

.shape-ring-1 {
    top: 50%;
    left: 3%;
    width: 100px;
    height: 100px;
    border: 2px solid rgba(139, 92, 246, 0.15);
    border-radius: 50%;
    animation: pulse-ring 4s ease-in-out infinite;
}

.shape-dots {
    top: 60%;
    right: 5%;
    width: 80px;
    height: 80px;
    background-image: radial-gradient(circle, rgba(45, 212, 191, 0.3) 1px, transparent 1px);
    background-size: 12px 12px;
    opacity: 0.5;
}

/* ===================================
   Floating Cards
   =================================== */
.floating-card {
    animation: float 4s ease-in-out infinite;
}

.card-1 {
    animation-delay: 0s;
}

.card-2 {
    animation-delay: 1.5s;
}

.card-3 {
    animation-delay: 3s;
}

/* ===================================
   Animations
   =================================== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

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

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

/* ===================================
   Reveal Animations (progressive enhancement)
   =================================== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .product-card {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .product-card.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   Navbar
   =================================== */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(12, 18, 32, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(45, 212, 191, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

#navbar.scrolled .text-white {
    color: #f8fafc;
}

/* ===================================
   Mobile Menu
   =================================== */
#mobileMenu {
    animation: slideDown 0.3s ease;
}

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

.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
}

.mobile-link:last-child {
    border-bottom: none;
}

/* ===================================
   Product Cards
   =================================== */
.product-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    border: 1px solid transparent;
    transition: border-color 0.3s ease;
    pointer-events: none;
}

.product-card:hover::after {
    border-color: rgba(45, 212, 191, 0.3);
}

/* ===================================
   Buttons
   =================================== */
a {
    text-decoration: none;
}

/* ===================================
   Responsive adjustments
   =================================== */
@media (max-width: 767px) {
    .floating-card {
        display: none;
    }
    
    .shape-circle-1 {
        width: 60px;
        height: 60px;
    }
    
    .shape-square-1 {
        width: 30px;
        height: 30px;
    }
    
    .shape-triangle-1 {
        border-left-width: 15px;
        border-right-width: 15px;
        border-bottom-width: 26px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .floating-card.card-3 {
        display: none;
    }
}

/* ===================================
   Selection
   =================================== */
::selection {
    background: rgba(13, 148, 136, 0.4);
    color: #f8fafc;
}

/* ===================================
   Focus styles
   =================================== */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #2dd4bf;
    outline-offset: 2px;
    border-radius: 4px;
}
