/* ===== CUSTOM STYLES ===== */

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

/* ===== HERO ANIMATIONS ===== */
.hero-anim {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

.hero-anim:nth-child(1) { animation-delay: 0.1s; }
.hero-anim:nth-child(2) { animation-delay: 0.2s; }
.hero-anim:nth-child(3) { animation-delay: 0.3s; }
.hero-anim:nth-child(4) { animation-delay: 0.4s; }
.hero-anim:nth-child(5) { animation-delay: 0.5s; }

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

.hero-images {
    opacity: 0;
    transform: translateX(40px);
    animation: slideInRight 1s ease 0.4s forwards;
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== GEOMETRIC SHAPES ===== */
.geometric-shape {
    position: absolute;
    pointer-events: none;
}

.shape-circle-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(123, 45, 59, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    top: -100px;
    right: -100px;
}

.shape-rect-1 {
    width: 120px;
    height: 120px;
    background: rgba(123, 45, 59, 0.05);
    border-radius: 24px;
    top: 25%;
    right: 8%;
    transform: rotate(45deg);
    animation: floatSlow 8s ease-in-out infinite;
}

.shape-triangle-1 {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 86px solid rgba(244, 179, 158, 0.15);
    top: 40%;
    left: 5%;
    animation: floatSlow 6s ease-in-out infinite reverse;
}

.shape-circle-2 {
    width: 200px;
    height: 200px;
    border: 2px solid rgba(123, 45, 59, 0.08);
    border-radius: 50%;
    bottom: 10%;
    left: 15%;
    animation: floatSlow 10s ease-in-out infinite;
}

.shape-bar-1 {
    width: 200px;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(123, 45, 59, 0.15), transparent);
    bottom: 30%;
    right: 5%;
    border-radius: 2px;
}

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

.shape-circle-2 {
    animation: floatCircle 10s ease-in-out infinite;
}

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

.shape-rect-1 {
    animation: floatRotating 8s ease-in-out infinite;
}

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

/* ===== SERVICE CARDS ===== */
.service-card {
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(123, 45, 59, 0.25);
}

/* ===== GALLERY ITEMS ===== */
.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(123, 45, 59, 0);
    transition: background 0.5s ease;
    border-radius: inherit;
}

.gallery-item:hover::after {
    background: rgba(123, 45, 59, 0.2);
}

/* ===== PROCESS STEPS ===== */
.process-step {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.process-step.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== NAVBAR ===== */
#navbar {
    background: transparent;
    transition: all 0.4s ease;
}

#navbar.scrolled {
    background: rgba(250, 250, 248, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05), 0 4px 20px rgba(0, 0, 0, 0.05);
}

#navbar.scrolled .font-display {
    color: #1F1E1B;
}

/* ===== MOBILE MENU ===== */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.mobile-menu-open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-open .mobile-link:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu-open .mobile-link:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu-open .mobile-link:nth-child(4) { transition-delay: 0.4s; }

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===== INTERACTIVE ELEMENTS ===== */
a, button {
    -webkit-tap-highlight-color: transparent;
}

/* Selection color */
::selection {
    background: rgba(123, 45, 59, 0.2);
    color: #7B2D3B;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .shape-circle-1 {
        width: 200px;
        height: 200px;
    }
    
    .shape-rect-1 {
        width: 60px;
        height: 60px;
    }
    
    .shape-triangle-1 {
        border-left: 30px solid transparent;
        border-right: 30px solid transparent;
        border-bottom: 52px solid rgba(244, 179, 158, 0.15);
    }
}

/* ===== FOCUS STYLES ===== */
:focus-visible {
    outline: 2px solid #7B2D3B;
    outline-offset: 2px;
}

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