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

img {
    max-width: 100%;
    height: auto;
}

/* Hero Gradient */
.hero-gradient {
    background: linear-gradient(135deg, 
        #41273C 0%, 
        #6B4661 25%, 
        #7D3C81 50%, 
        #9B649E 75%, 
        #D4701A 100%
    );
}

.hero-pattern {
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(212, 168, 116, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(155, 100, 158, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
}

/* Floating animations */
@keyframes float1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(10px, -15px) scale(1.05); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-12px, 10px) scale(1.08); }
}

@keyframes float3 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(8px, -8px); }
}

.hero-float-1 { animation: float1 6s ease-in-out infinite; }
.hero-float-2 { animation: float2 8s ease-in-out infinite; }
.hero-float-3 { animation: float3 5s ease-in-out infinite; }

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

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(107, 70, 97, 0.08);
}

.navbar.scrolled .navbar-brand-name {
    color: #41273C !important;
}

.navbar.scrolled .nav-link {
    color: #6B4661 !important;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #E88A2A;
    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;
}

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

.reveal-left {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal.hidden {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal-left.hidden {
        opacity: 0;
        transform: translateX(-40px);
    }
    
    .reveal-right.hidden {
        opacity: 0;
        transform: translateX(40px);
    }
}

/* Card hover effects */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

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

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

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

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

/* Selection */
::selection {
    background: #D4BFD6;
    color: #41273C;
}

/* Focus styles */
a:focus-visible, button:focus-visible {
    outline: 2px solid #E88A2A;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Smooth image loading */
img {
    transition: opacity 0.3s ease;
}

img[lazy] {
    opacity: 0;
}

img[lazy].loaded {
    opacity: 1;
}

/* Print styles */
@media print {
    .navbar, .mobile-menu-btn { display: none; }
    body { color: #000; background: #fff; }
}
