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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

::selection {
    background: rgba(20, 184, 166, 0.3);
    color: #f0fdfa;
}

/* ── Floating Background Shapes ── */
.floating-shape {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    opacity: 0.04;
}

.shape-circle-1 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: #14b8a6;
    top: 10%;
    right: -100px;
    animation: floatShape 20s ease-in-out infinite;
}

.shape-circle-2 {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: #22d3ee;
    bottom: 20%;
    left: -50px;
    animation: floatShape 15s ease-in-out infinite reverse;
}

.shape-diamond {
    width: 120px;
    height: 120px;
    background: #14b8a6;
    top: 50%;
    left: 10%;
    transform: rotate(45deg);
    animation: floatShape 18s ease-in-out infinite;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 70px solid transparent;
    border-right: 70px solid transparent;
    border-bottom: 120px solid #2dd4bf;
    top: 30%;
    right: 5%;
    animation: floatShape 22s ease-in-out infinite reverse;
}

.shape-ring {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 20px solid #14b8a6;
    bottom: 10%;
    right: 15%;
    animation: floatShape 16s ease-in-out infinite;
}

@keyframes floatShape {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-30px) rotate(5deg); }
    50% { transform: translateY(10px) rotate(-3deg); }
    75% { transform: translateY(-20px) rotate(2deg); }
}

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

#navbar.scrolled {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(20, 184, 166, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2dd4bf;
    transition: width 0.3s ease;
}

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

/* ── CTA Buttons ── */
.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 1rem;
    font-weight: 700;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
}

.cta-btn {
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    color: #0f172a;
    box-shadow: 0 4px 20px rgba(20, 184, 166, 0.25);
}

.cta-btn:hover {
    background: linear-gradient(135deg, #2dd4bf, #14b8a6);
    box-shadow: 0 8px 30px rgba(20, 184, 166, 0.4);
    transform: translateY(-2px);
}

.cta-secondary {
    text-decoration: none;
}

.cta-secondary:hover {
    background: rgba(20, 184, 166, 0.05);
    transform: translateY(-2px);
}

/* ── Hero Cards ── */
.card-main {
    animation: cardFloat 6s ease-in-out infinite;
}

.floating-card-1 {
    animation: floatCard1 5s ease-in-out infinite;
}

.floating-card-2 {
    animation: floatCard2 4.5s ease-in-out infinite;
}

.floating-card-3 {
    animation: floatCard3 5.5s ease-in-out infinite;
}

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

@keyframes floatCard1 {
    0%, 100% { transform: translateY(0) translateX(0); }
    33% { transform: translateY(-12px) translateX(5px); }
    66% { transform: translateY(5px) translateX(-3px); }
}

@keyframes floatCard2 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes floatCard3 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

/* ── Scroll Indicator ── */
.scroll-indicator {
    display: block;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.scroll-indicator:hover {
    opacity: 1;
}

/* ── Collection Cards ── */
.card-hover {
    cursor: pointer;
}

/* ── Feature Cards ── */
.feature-card {
    cursor: default;
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ── Scroll Reveal Animations ── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Mobile Menu ── */
#mobile-menu {
    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);
    font-size: 1.125rem;
}

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

/* ── Responsive ── */
@media (max-width: 767px) {
    .floating-card-1,
    .floating-card-2,
    .floating-card-3 {
        display: none;
    }

    .card-main {
        width: 100% !important;
        position: relative !important;
        top: auto !important;
        right: auto !important;
        margin-top: 2rem;
    }

    #hero {
        min-height: auto;
        padding-top: 6rem;
        padding-bottom: 4rem;
    }

    .shape-circle-1,
    .shape-circle-2,
    .shape-diamond,
    .shape-triangle,
    .shape-ring {
        display: none;
    }
}

/* ── Focus Visible ── */
:focus-visible {
    outline: 2px solid #2dd4bf;
    outline-offset: 2px;
}

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