/* ============================================
   Camella's Ink House — 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;
    overflow-x: hidden;
}

/* ============================================
   Geometric Background Shapes
   ============================================ */
.geo-shape {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    opacity: 0.04;
}

.geo-circle-1 {
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, #fbbf24 0%, transparent 70%);
    top: -100px;
    right: -200px;
}

.geo-circle-2 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, #a855f7 0%, transparent 70%);
    bottom: 10%;
    left: -100px;
}

.geo-square-1 {
    width: 200px;
    height: 200px;
    background: #fbbf24;
    top: 40%;
    right: 5%;
    transform: rotate(45deg);
    border-radius: 20px;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 173px solid #a855f7;
    top: 60%;
    left: 3%;
    transform: rotate(-15deg);
    opacity: 0.03;
}

.geo-dots {
    width: 300px;
    height: 300px;
    background-image: radial-gradient(circle, #fbbf24 1px, transparent 1px);
    background-size: 20px 20px;
    top: 25%;
    left: 60%;
    opacity: 0.06;
}

/* ============================================
   Floating Card Animations
   ============================================ */
.floating-card-1 {
    animation: float1 4s ease-in-out infinite;
}

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

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

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

/* ============================================
   Scroll Indicator
   ============================================ */
.scroll-dot {
    animation: scrollBounce 2s ease-in-out infinite;
}

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

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

#navbar.scrolled {
    background: rgba(59, 7, 100, 0.92);
    backdrop-filter: blur(20px);
    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: #fbbf24;
    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(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mobile-nav-link {
    position: relative;
    padding-left: 0;
}

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

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

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

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

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

    .reveal:nth-child(2) { transition-delay: 0.1s; }
    .reveal:nth-child(3) { transition-delay: 0.2s; }
    .reveal:nth-child(4) { transition-delay: 0.3s; }
    .reveal:nth-child(5) { transition-delay: 0.4s; }
    .reveal:nth-child(6) { transition-delay: 0.5s; }
}

/* Default state: always visible (no JS) */
.reveal {
    opacity: 1;
    transform: none;
}

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

::-webkit-scrollbar-track {
    background: #3b0764;
}

::-webkit-scrollbar-thumb {
    background: #7e22ce;
    border-radius: 4px;
}

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

/* ============================================
   Selection Color
   ============================================ */
::selection {
    background: rgba(251, 191, 36, 0.3);
    color: #fbbf24;
}

/* ============================================
   Form Styles
   ============================================ */
select option {
    background: #3b0764;
    color: #e9d5ff;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
    .geo-circle-1 {
        width: 300px;
        height: 300px;
    }

    .geo-circle-2 {
        width: 200px;
        height: 200px;
    }

    .geo-square-1 {
        width: 100px;
        height: 100px;
    }

    .floating-card-1 {
        position: relative;
        top: auto;
        left: auto;
        margin-bottom: 1rem;
        display: inline-block;
    }

    .floating-card-2 {
        position: relative;
        bottom: auto;
        right: auto;
        display: inline-block;
    }
}

@media (max-width: 640px) {
    .geo-shape {
        display: none;
    }
}
