/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: #0f0f0f;
    color: #f6f6f6;
    overflow-x: hidden;
}

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

.geo-circle-1 {
    top: 15%;
    left: -5%;
    width: 400px;
    height: 400px;
    border: 2px solid rgba(232, 93, 74, 0.08);
    border-radius: 50%;
    animation: float-slow 20s ease-in-out infinite;
}

.geo-circle-2 {
    bottom: 10%;
    right: -5%;
    width: 300px;
    height: 300px;
    border: 2px solid rgba(168, 224, 99, 0.06);
    border-radius: 50%;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.geo-triangle {
    top: 60%;
    left: 5%;
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(232, 93, 74, 0.04);
    animation: rotate-slow 25s linear infinite;
}

.geo-square {
    top: 30%;
    right: 8%;
    width: 80px;
    height: 80px;
    border: 2px solid rgba(45, 212, 191, 0.08);
    transform: rotate(45deg);
    animation: float-slow 18s ease-in-out infinite;
}

.geo-ring {
    bottom: 25%;
    right: 15%;
    width: 120px;
    height: 120px;
    border: 3px solid rgba(232, 93, 74, 0.05);
    border-radius: 50%;
    animation: float-slow 22s ease-in-out infinite reverse;
}

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

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

@keyframes pulse-slow {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.05); }
}

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

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

.animate-rotate-slow {
    animation: rotate-slow 20s linear infinite;
}

.animate-bounce-slow {
    animation: bounce-slow 3s ease-in-out infinite;
}

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

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

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

#navbar.scrolled {
    background: rgba(15, 15, 15, 0.9);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #E85D4A;
    transition: width 0.3s ease;
}

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

/* Mobile menu */
#mobile-menu {
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu.menu-open {
    transform: translateX(0);
}

.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #E85D4A;
    transition: width 0.3s ease, left 0.3s ease;
}

.mobile-link:hover::after {
    width: 100%;
    left: 0;
}

/* Menu line animation */
.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#menu-btn:hover .menu-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

#menu-btn:hover .menu-line:nth-child(2) {
    opacity: 0;
}

#menu-btn:hover .menu-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Back to top button */
#back-to-top {
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
}

#back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

#back-to-top:not(.visible) {
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
}

/* Form success message */
#form-message.success {
    background: rgba(168, 224, 99, 0.1);
    border: 1px solid rgba(168, 224, 99, 0.3);
    color: #a8e063;
}

#form-message.error {
    background: rgba(232, 93, 74, 0.1);
    border: 1px solid rgba(232, 93, 74, 0.3);
    color: #ffa08a;
}

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

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

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

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

/* Selection color */
::selection {
    background: rgba(232, 93, 74, 0.3);
    color: #fff;
}

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

/* Smooth image loading */
img {
    loading: lazy;
    decoding: async;
}

/* Map filter override for light mode areas */
iframe[src*="google.com/maps"] {
    filter: invert(90%) hue-rotate(180deg) brightness(0.95) contrast(0.9);
}
