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

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

body {
    overflow-x: hidden;
}

/* Selection Color */
::selection {
    background-color: #C4613A;
    color: white;
}

/* Navbar Transition */
.navbar-scrolled {
    background-color: rgba(253, 248, 238, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(61, 43, 31, 0.08);
}

.navbar-scrolled .nav-logo-text {
    color: #3D2B1F;
}

.navbar-scrolled .nav-link {
    color: rgba(61, 43, 31, 0.7) !important;
}

.navbar-scrolled .menu-line {
    background-color: #3D2B1F !important;
}

/* Floating Card Animations */
@keyframes float-1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(1deg); }
}

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

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

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

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

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

/* Reveal Animations */
.reveal-up {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Mobile Menu */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

.mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Menu Line Animation */
.menu-line-active-1 {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-line-active-2 {
    opacity: 0;
}

.menu-line-active-3 {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 6px;
}

/* Smooth Scroll Offset for Fixed Nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Image Hover */
img {
    max-width: 100%;
    height: auto;
}

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

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

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

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

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
