/* Custom styles and animations */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom font loading */
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 400;
    src: url('https://fonts.gstatic.com/s/outfit/v16/NKvUbA0CByAqgs4W9cHrmf7OxZi.woff2') format('woff2');
}

/* Geometric decorations */
.geo-decor {
    z-index: 0;
}

.geo-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
}

.geo-circle--1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #e85528, #f3a178);
    top: 15%;
    right: -100px;
    animation: float-slow 20s ease-in-out infinite;
}

.geo-circle--2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #e2ac3c, #f5e0a0);
    bottom: 20%;
    left: -50px;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.geo-triangle {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0.08;
}

.geo-triangle--1 {
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid #e85528;
    top: 30%;
    left: 5%;
    transform: rotate(15deg);
    animation: spin-slow 30s linear infinite;
}

.geo-rect {
    position: absolute;
    opacity: 0.06;
    border-radius: 20px;
}

.geo-rect--1 {
    width: 120px;
    height: 120px;
    background: #e2ac3c;
    top: 60%;
    right: 8%;
    transform: rotate(45deg);
    animation: float-slow 12s ease-in-out infinite;
}

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

.geo-dots--1 {
    width: 60px;
    height: 60px;
    top: 45%;
    left: 10%;
    background-image: radial-gradient(circle, #e85528 2px, transparent 2px);
    background-size: 12px 12px;
}

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

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

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

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

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

/* Scroll reveal animations */
.reveal {
    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[data-reveal="hidden"] {
    opacity: 0;
    transform: translateY(40px);
}

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

#navbar.scrolled {
    background: rgba(254, 253, 249, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

/* Mobile menu button animation */
#menuIcon span:nth-child(1) {
    transform-origin: center;
}

#menuIcon span:nth-child(2) {
    transform-origin: center;
}

#menuIcon span:nth-child(3) {
    transform-origin: center;
}

body.menu-open #menuIcon span:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}

body.menu-open #menuIcon span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

body.menu-open #menuIcon span:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
    width: 100%;
}

/* Nav link hover underline */
.nav-link {
    position: relative;
}

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

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

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

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

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

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

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

/* Selection color */
::selection {
    background: #f8c4aa;
    color: #7a1f0f;
}

/* 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;
    }
    .reveal[data-reveal="hidden"] {
        opacity: 1;
        transform: none;
    }
}

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

/* Landscape mobile adjustments */
@media (max-width: 640px) and (orientation: landscape) {
    .geo-circle--1 {
        width: 200px;
        height: 200px;
    }
}

/* Print styles */
@media print {
    .geo-decor, .animate-float, .animate-float-delayed {
        display: none;
    }
    #navbar {
        position: static;
        background: white;
    }
}
