/* Base & Reset */
*, *::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: absolute;
    border-radius: 50%;
    filter: blur(0px);
}

.shape-circle-1 {
    width: 600px;
    height: 600px;
    top: -150px;
    right: -100px;
    animation: float-slow 20s ease-in-out infinite;
}

.shape-square-1 {
    width: 200px;
    height: 200px;
    top: 30%;
    left: 5%;
    border-radius: 30px;
    transform: rotate(15deg);
    animation: float-medium 15s ease-in-out infinite;
}

.shape-triangle-1 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    right: 10%;
    border-radius: 20px;
    transform: rotate(-10deg);
    animation: float-slow 18s ease-in-out infinite reverse;
}

.shape-circle-2 {
    width: 100px;
    height: 100px;
    top: 60%;
    left: 15%;
    animation: float-medium 12s ease-in-out infinite;
}

.shape-rect-1 {
    width: 80px;
    height: 200px;
    bottom: 10%;
    left: 2%;
    border-radius: 40px;
    transform: rotate(45deg);
    animation: float-slow 22s ease-in-out infinite;
}

.shape-circle-3 {
    width: 500px;
    height: 500px;
    bottom: -200px;
    right: -100px;
    animation: float-slow 25s ease-in-out infinite;
}

.shape-square-2 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: -50px;
    border-radius: 50px;
    transform: rotate(30deg);
    animation: float-medium 20s ease-in-out infinite reverse;
}

.shape-circle-4 {
    width: 400px;
    height: 400px;
    top: -100px;
    left: -100px;
    animation: float-slow 18s ease-in-out infinite;
}

.shape-rect-2 {
    width: 120px;
    height: 300px;
    bottom: -50px;
    right: 10%;
    border-radius: 60px;
    transform: rotate(20deg);
    animation: float-medium 22s ease-in-out infinite reverse;
}

.shape-circle-5 {
    width: 350px;
    height: 350px;
    top: 10%;
    right: -50px;
    animation: float-slow 16s ease-in-out infinite;
}

.shape-triangle-2 {
    width: 180px;
    height: 180px;
    bottom: 15%;
    left: 5%;
    border-radius: 25px;
    transform: rotate(-20deg);
    animation: float-medium 14s ease-in-out infinite reverse;
}

.shape-circle-6 {
    width: 450px;
    height: 450px;
    top: -150px;
    left: -150px;
    animation: float-slow 20s ease-in-out infinite;
}

.shape-square-3 {
    width: 250px;
    height: 250px;
    bottom: -50px;
    right: 5%;
    border-radius: 40px;
    transform: rotate(10deg);
    animation: float-medium 17s ease-in-out infinite;
}

/* Floating Animations */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(2deg); }
    66% { transform: translateY(10px) rotate(-1deg); }
}

@keyframes float-medium {
    0%, 100% { transform: translateY(0px) rotate(15deg); }
    50% { transform: translateY(-30px) rotate(20deg); }
}

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

.card-1 { animation-delay: 0s; }
.card-2 { animation-delay: 1.5s; }
.card-3 { animation-delay: 3s; }

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

/* Marquee */
.marquee-track {
    animation: marquee 30s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Scroll Indicator */
.scroll-line {
    width: 100%;
    height: 30px;
    background: linear-gradient(to bottom, transparent, currentColor);
    animation: scroll-anim 2s ease-in-out infinite;
}

@keyframes scroll-anim {
    0% { transform: translateY(-100%); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(100%); opacity: 0; }
}

/* Card Hover Effects */
.card-hover {
    will-change: transform;
}

/* Navbar */
#navbar.scrolled {
    background: rgba(253, 248, 240, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}

/* Mobile Menu */
.mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
}

#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

#mobileMenu.closed {
    opacity: 0;
    pointer-events: none;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .floating-card { animation: none; }
    .geo-shape { animation: none; }
    .marquee-track { animation: none; }
    .scroll-line { animation: none; }
}

/* Responsive */
@media (max-width: 768px) {
    .floating-card.card-3 {
        display: none;
    }
}
