/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    min-height: 100vh;
}

::selection {
    background: #E85D4A;
    color: white;
}

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

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

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

/* Mobile menu */
.menu-line {
    transition: all 0.3s ease;
}

#mobileMenuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
#mobileMenuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}
#mobileMenuBtn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 20px;
    margin-left: 0;
}

#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    transition: transform 0.3s ease;
}
.mobile-link:hover {
    transform: scale(1.05);
}

/* Hero animations */
.hero-shape {
    animation: float 6s ease-in-out infinite;
}

.shape-circle-1 {
    animation-delay: 0s;
    animation-duration: 8s;
}
.shape-circle-2 {
    animation-delay: -2s;
    animation-duration: 10s;
}
.shape-circle-3 {
    animation-delay: -4s;
    animation-duration: 6s;
}
.shape-square-1 {
    animation-delay: -1s;
    animation-duration: 7s;
}
.shape-square-2 {
    animation-delay: -3s;
    animation-duration: 9s;
}
.shape-triangle {
    animation-delay: -2.5s;
    animation-duration: 8s;
}
.shape-dots {
    animation-delay: -1.5s;
    animation-duration: 6s;
}

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

.shape-square-1, .shape-square-2 {
    --rotate: 45deg;
    animation-name: floatRotate;
}

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

.shape-triangle {
    --rotate: 12deg;
    animation-name: floatRotate;
}

.hero-title {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 1s ease forwards 0.2s;
}

.hero-subtitle {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease forwards 0.5s;
}

.hero-badge {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s ease forwards 0.1s;
}

.hero-buttons {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s ease forwards 0.7s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reveal animations */
.reveal-up, .reveal-left, .reveal-right {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-up {
    transform: translateY(40px);
}
.reveal-left {
    transform: translateX(-40px);
}
.reveal-right {
    transform: translateX(40px);
}

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* Menu tabs */
.menu-tab {
    background: transparent;
    color: rgba(255,255,255,0.5);
    border: 1px solid transparent;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
}

.menu-tab.active {
    background: #E85D4A;
    color: white;
    border-color: #E85D4A;
}

.menu-tab:not(.active):hover {
    color: white;
    border-color: rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
}

/* Menu items */
.menu-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.menu-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* Gallery hover */
.group:hover img {
    transform: scale(1.1);
}

/* Contact form focus */
input:focus, textarea:focus {
    outline: none;
}

/* Smooth section transitions */
section {
    position: relative;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.75rem;
    }
    
    @media (min-width: 768px) {
        .hero-title {
            font-size: 4rem;
        }
    }
    
    @media (min-width: 1024px) {
        .hero-title {
            font-size: 5rem;
        }
    }
}

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