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

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

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

/* Hero gradient */
.hero-gradient {
    background: linear-gradient(135deg, #1e2024 0%, #2c2e34 30%, #383b42 50%, #44474e 70%, #1e2024 100%);
}

.hero-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 80%, rgba(232, 85, 77, 0.25) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(232, 85, 77, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 40% 40% at 50% 50%, rgba(255, 112, 104, 0.1) 0%, transparent 60%);
}

/* Geometric background shapes */
.geo-shape {
    position: absolute;
    pointer-events: none;
    opacity: 0.6;
}

.circle-1 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(232, 85, 77, 0.04);
    top: 15%;
    right: -5%;
}

.circle-2 {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(232, 85, 77, 0.06);
    bottom: 20%;
    left: -3%;
}

.triangle-1 {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid rgba(232, 85, 77, 0.05);
    top: 60%;
    right: 5%;
    transform: rotate(15deg);
}

.square-1 {
    width: 100px;
    height: 100px;
    background: rgba(232, 85, 77, 0.04);
    border-radius: 20px;
    top: 40%;
    left: 5%;
    transform: rotate(30deg);
}

.circle-3 {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(232, 85, 77, 0.03);
    bottom: 10%;
    right: 15%;
}

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

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

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 7s ease-in-out infinite;
    animation-delay: 1s;
}

.animate-fade-in-up {
    animation: fade-in-up 0.8s ease-out forwards;
    opacity: 0;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

/* Navbar */
#navbar {
    background: rgba(254, 253, 248, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

#navbar.scrolled {
    background: rgba(254, 253, 248, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #E8554D;
    border-radius: 1px;
    transition: all 0.2s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 60%;
}

/* Mobile menu */
.mobile-link {
    display: block;
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #9a9da5;
}

/* Selection */
::selection {
    background: rgba(232, 85, 77, 0.2);
    color: #1e2024;
}

/* Focus visible */
:focus-visible {
    outline: 2px solid #E8554D;
    outline-offset: 2px;
}

/* Image hover container */
.rounded-3xl.overflow-hidden,
.rounded-2xl.overflow-hidden {
    will-change: transform;
}

/* Smooth image loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}
