/* ========================================
   Katy's Closet — Custom Styles
   ======================================== */

/* Base & Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection Color */
::selection {
    background-color: rgba(45, 212, 160, 0.3);
    color: #0f2237;
}

/* ========================================
   Navigation
   ======================================== */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 30px rgba(26, 58, 92, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #1a3a5c, #2dd4a0);
    transition: width 0.3s ease, left 0.3s ease;
    border-radius: 1px;
}

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

#navbar:not(.scrolled) .nav-link {
    color: rgba(255, 255, 255, 0.85);
}

#navbar:not(.scrolled) .nav-link:hover {
    color: #86efac;
}

#navbar:not(.scrolled) .nav-link::after {
    background: linear-gradient(90deg, #86efac, #4ade80);
}

#navbar:not(.scrolled) .font-display {
    color: #fff;
}

#navbar:not(.scrolled) .nav-link:last-child {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

#navbar:not(.scrolled) .nav-link:last-child:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Mobile Menu */
.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #1a3a5c, #2dd4a0);
    transition: width 0.3s ease;
}

.mobile-link:hover::after {
    width: 60%;
}

/* ========================================
   Hero Section
   ======================================== */
.hero-orb {
    animation: float 8s ease-in-out infinite;
}

.orb-1 { animation-delay: 0s; }
.orb-2 { animation-delay: -3s; }
.orb-3 { animation-delay: -5s; }

.floating-shape {
    animation: floatShape 6s ease-in-out infinite;
}

.shape-1 { animation-delay: 0s; }
.shape-2 { animation-delay: -1s; }
.shape-3 { animation-delay: -2s; }
.shape-4 { animation-delay: -3s; }
.shape-5 { animation-delay: -4s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

@keyframes floatShape {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-15px) rotate(5deg); }
    66% { transform: translateY(8px) rotate(-3deg); }
}

/* Hero Animations */
.hero-badge {
    animation: fadeInDown 0.8s ease forwards;
    opacity: 0;
}

.hero-title {
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
    transform: translateY(30px);
}

.hero-subtitle {
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
    transform: translateY(30px);
}

.hero-cta {
    animation: fadeInUp 0.8s ease 0.6s forwards;
    opacity: 0;
    transform: translateY(30px);
}

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

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

/* ========================================
   Reveal Animations
   ======================================== */
.reveal-up, .reveal-left, .reveal-right {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-up {
    transform: translateY(40px);
}

.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* ========================================
   Visit Section Orbs
   ======================================== */
.visit-orb {
    animation: float 10s ease-in-out infinite;
}

/* ========================================
   Image Hover Effects
   ======================================== */
.group:hover img {
    transform: scale(1.05);
}

/* ========================================
   Button Focus Styles
   ======================================== */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #2dd4a0;
    outline-offset: 2px;
}

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

::-webkit-scrollbar-track {
    background: #f0f4f8;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #1a3a5c, #2dd4a0);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #142d48, #14b88a);
}

/* ========================================
   Responsive Adjustments
   ======================================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.75rem;
    }
    
    .hero-title span {
        font-size: 2.5rem;
    }
}

@media (max-width: 640px) {
    #navbar {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
    }
    
    #navbar:not(.scrolled) .font-display {
        color: #1a3a5c;
    }
    
    #navbar:not(.scrolled) .nav-link {
        color: rgba(26, 58, 92, 0.85);
    }
    
    #navbar:not(.scrolled) .nav-link:hover {
        color: #0d9668;
    }
    
    #navbar:not(.scrolled) .nav-link::after {
        background: linear-gradient(90deg, #1a3a5c, #2dd4a0);
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    #navbar, .floating-shape, .hero-orb {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
