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

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

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

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

.geo-circle-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.08) 0%, transparent 70%);
    top: 10%;
    right: -100px;
    border-radius: 50%;
    animation: float-slow 8s ease-in-out infinite;
}

.geo-circle-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.06) 0%, transparent 70%);
    bottom: 20%;
    left: -50px;
    border-radius: 50%;
    animation: float-slow 10s ease-in-out infinite reverse;
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid rgba(251, 191, 36, 0.05);
    top: 40%;
    left: 5%;
    transform: rotate(20deg);
    animation: spin-slow 20s linear infinite;
}

.geo-square {
    width: 100px;
    height: 100px;
    border: 3px solid rgba(168, 85, 247, 0.08);
    top: 60%;
    right: 8%;
    transform: rotate(45deg);
    animation: spin-slow 15s linear infinite reverse;
}

.geo-dots {
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, rgba(251, 191, 36, 0.15) 2px, transparent 2px);
    background-size: 15px 15px;
    top: 25%;
    left: 15%;
    animation: float-slow 6s ease-in-out infinite;
}

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

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

.floating-card-3 {
    animation: float-card-3 4.5s ease-in-out infinite;
}

/* Scroll Reveal */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

@keyframes float-card-2 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-16px); }
}

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

/* Navbar Scroll State */
.nav-scrolled {
    background: rgba(250, 245, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(107, 33, 168, 0.1);
}

.nav-scrolled .nav-link {
    color: #581c87 !important;
}

.nav-scrolled .nav-link:hover {
    color: #d97706 !important;
}

.nav-scrolled .font-serif {
    color: #581c87 !important;
}

/* Mobile Menu */
.mobile-menu-open {
    max-height: 400px !important;
}

.menu-line:last-child {
    width: 1.5rem;
}

.menu-open .menu-line:first-child {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-open .menu-line:nth-child(2) {
    opacity: 0;
}

.menu-open .menu-line:last-child {
    width: 1.5rem;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #9333ea, #d97706);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #7e22ce, #b45309);
}

/* Selection */
::selection {
    background: rgba(147, 51, 234, 0.2);
    color: #581c87;
}

/* Button focus styles */
button:focus-visible,
a:focus-visible {
    outline: 3px solid #fbbf24;
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* Input focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}
