/* ========================================
   CUTTING EDGE COMIX — CUSTOM STYLES
   ======================================== */

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

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

body {
    margin: 0;
    background-color: #0A1628;
    color: #ffffff;
}

::selection {
    background-color: #D4A017;
    color: #0A1628;
}

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

.geo-circle-1 {
    width: 600px;
    height: 600px;
    border-radius: 50%;
    border: 3px solid #D4A017;
    top: -200px;
    right: -150px;
}

.geo-circle-2 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: linear-gradient(135deg, #D4A017, transparent);
    bottom: 10%;
    left: -100px;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 120px solid transparent;
    border-right: 120px solid transparent;
    border-bottom: 200px solid #D4A017;
    top: 45%;
    right: 5%;
    transform: rotate(15deg);
}

.geo-dots {
    width: 200px;
    height: 200px;
    background-image: radial-gradient(circle, #D4A017 1px, transparent 1px);
    background-size: 20px 20px;
    top: 30%;
    left: 8%;
    opacity: 0.06;
}

.geo-diamond {
    width: 100px;
    height: 100px;
    background: #D4A017;
    transform: rotate(45deg);
    bottom: 20%;
    right: 15%;
    opacity: 0.03;
}

.geo-arc {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 3px solid #D4A017;
    border-top-color: transparent;
    border-right-color: transparent;
    bottom: -80px;
    left: 30%;
    opacity: 0.05;
}

/* ---------- Floating Card Animations ---------- */
.floating-card {
    will-change: transform;
}

.card-1 {
    animation: float1 6s ease-in-out infinite;
}

.card-2 {
    animation: float2 5s ease-in-out infinite;
}

.card-3 {
    animation: float3 7s ease-in-out infinite;
}

.card-4 {
    animation: float4 5.5s ease-in-out infinite;
}

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

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

@keyframes float3 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1.5deg); }
}

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

/* ---------- Scroll Reveal (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);
    }

    .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; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* ---------- Navbar ---------- */
#navbar {
    background: transparent;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
    background: rgba(10, 22, 40, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.nav-link {
    position: relative;
}

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

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

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

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

.menu-line {
    transition: all 0.3s ease;
}

#mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

#mobile-menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#mobile-menu-btn.active .menu-line:nth-child(3) {
    width: 1.25rem;
    transform: rotate(-45deg) translate(3px, -3px);
}

.mobile-link {
    display: block;
    padding: 0.5rem 0;
}

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

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

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

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

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