/* ===== Base & Utilities ===== */
*, *::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 Decorations ===== */
.geo-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.12;
}

.geo-circle-1 {
    width: 400px;
    height: 400px;
    background: #f5d594;
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.geo-circle-2 {
    width: 250px;
    height: 250px;
    background: #fce3da;
    bottom: 10%;
    left: -60px;
    animation: float 10s ease-in-out infinite reverse;
}

.geo-circle-3 {
    width: 150px;
    height: 150px;
    background: #fef6e8;
    top: 40%;
    right: 5%;
    animation: float 6s ease-in-out infinite;
}

.geo-circle-4 {
    width: 500px;
    height: 500px;
    background: #f5d594;
    bottom: -150px;
    right: -100px;
}

.geo-square {
    position: absolute;
    opacity: 0.1;
    transform: rotate(45deg);
}

.geo-square-1 {
    width: 120px;
    height: 120px;
    background: #fce3da;
    top: 20%;
    left: 10%;
    animation: spin 20s linear infinite;
}

.geo-square-2 {
    width: 80px;
    height: 80px;
    background: #f5d594;
    top: 15%;
    right: 15%;
    animation: spin 15s linear infinite reverse;
}

.geo-triangle {
    position: absolute;
    opacity: 0.1;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid #fce3da;
    top: 30%;
    left: 5%;
    animation: float 7s ease-in-out infinite;
}

.geo-dots {
    position: absolute;
    top: 15%;
    right: 15%;
    display: grid;
    grid-template-columns: repeat(4, 12px);
    gap: 12px;
    opacity: 0.2;
}

.geo-dots::before,
.geo-dots::after {
    content: '';
    width: 8px;
    height: 8px;
    background: #f5d594;
    border-radius: 50%;
}

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

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

.card-2 {
    animation-delay: 1.3s;
}

.card-3 {
    animation-delay: 2.6s;
}

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

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

@keyframes spin {
    from { transform: rotate(45deg); }
    to { transform: rotate(405deg); }
}

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

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

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

/* ===== Navbar Scroll State ===== */
.nav-scrolled {
    background: rgba(253, 248, 240, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(92, 74, 58, 0.08);
}

.nav-scrolled .nav-link {
    color: #5C4A3A !important;
}

.nav-scrolled .nav-logo-text {
    color: #5C4A3A !important;
}

/* ===== Mobile Menu ===== */
#mobileMenu {
    animation: slideDown 0.3s ease;
}

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

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

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

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

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

/* ===== Selection ===== */
::selection {
    background: #C8553D;
    color: white;
}
