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

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

body {
    margin: 0;
    min-height: 100vh;
}

/* Geometric shapes for hero */
.geo-shape {
    position: absolute;
    pointer-events: none;
    opacity: 0.4;
}

.shape-circle-1 {
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 99, 91, 0.25) 0%, transparent 70%);
    top: 5%;
    left: -8%;
    animation: float-slow 12s ease-in-out infinite;
}

.shape-circle-2 {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 99, 91, 0.15) 0%, transparent 70%);
    bottom: 15%;
    right: -4%;
    animation: float-slow 10s ease-in-out infinite reverse;
}

.shape-circle-3 {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 2px solid rgba(232, 99, 91, 0.2);
    top: 30%;
    right: 12%;
    animation: float-medium 8s ease-in-out infinite;
}

.shape-rect-1 {
    width: 120px;
    height: 120px;
    border: 2px solid rgba(232, 99, 91, 0.15);
    border-radius: 20px;
    top: 20%;
    right: 5%;
    transform: rotate(45deg);
    animation: spin-slow 20s linear infinite;
}

.shape-rect-2 {
    width: 80px;
    height: 80px;
    border: 2px solid rgba(232, 99, 91, 0.1);
    border-radius: 14px;
    bottom: 25%;
    left: 8%;
    transform: rotate(20deg);
    animation: float-medium 9s ease-in-out infinite reverse;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 86px solid rgba(232, 99, 91, 0.08);
    top: 60%;
    left: 15%;
    animation: float-slow 14s ease-in-out infinite;
}

.shape-dots {
    width: 100px;
    height: 100px;
    background-image: radial-gradient(circle, rgba(232, 99, 91, 0.3) 1px, transparent 1px);
    background-size: 12px 12px;
    bottom: 10%;
    right: 20%;
    opacity: 0.5;
}

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

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

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

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

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

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

/* Service cards */
.service-card {
    will-change: transform;
}

/* Gallery items */
.gallery-item {
    cursor: pointer;
}

/* Navbar scrolled state */
.nav-scrolled {
    background: rgba(13, 15, 18, 0.92) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

::-webkit-scrollbar-track {
    background: #0D0F12;
}

::-webkit-scrollbar-thumb {
    background: rgba(232, 99, 91, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(232, 99, 91, 0.5);
}

/* Mobile menu animation */
#mobileMenu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Selection color */
::selection {
    background: rgba(232, 99, 91, 0.3);
    color: white;
}
