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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Geometric Background Shapes */
.geo-shape {
    position: absolute;
    opacity: 0.15;
    pointer-events: none;
}

.shape-circle-1 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 136, 136, 0.5) 0%, transparent 70%);
    top: 10%;
    right: -5%;
    animation: float 8s ease-in-out infinite;
}

.shape-circle-2 {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 208, 208, 0.4) 0%, transparent 70%);
    bottom: 15%;
    left: 5%;
    animation: float 10s ease-in-out infinite reverse;
}

.shape-square-1 {
    width: 120px;
    height: 120px;
    background: rgba(255, 136, 136, 0.3);
    border-radius: 24px;
    top: 30%;
    left: 10%;
    transform: rotate(45deg);
    animation: spin 20s linear infinite;
}

.shape-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(255, 208, 208, 0.3);
    top: 60%;
    right: 15%;
    animation: float 6s ease-in-out infinite;
}

.shape-dots {
    background-image: radial-gradient(rgba(255, 255, 255, 0.2) 2px, transparent 2px);
    background-size: 30px 30px;
    width: 300px;
    height: 300px;
    top: 50%;
    left: 30%;
    opacity: 0.4;
}

/* Floating Cards Animation */
.floating-card {
    animation: float-card 4s ease-in-out infinite;
}

.card-1 {
    animation-delay: 0s;
}

.card-2 {
    animation-delay: 1.5s;
}

.card-3 {
    animation-delay: 3s;
}

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

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(20px, -20px) rotate(5deg); }
    66% { transform: translate(-10px, 15px) rotate(-3deg); }
}

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

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

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

/* Service Cards */
.service-card {
    transform: translateY(0);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
}

/* Testimonial Cards */
.testimonial-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* Navbar Scroll State */
.nav-scrolled {
    background: rgba(255, 248, 245, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(131, 33, 33, 0.08);
}

.nav-scrolled .menu-line {
    background: #832121 !important;
}

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

.menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-open .menu-line:nth-child(2) {
    opacity: 0;
}

.menu-open .menu-line:nth-child(3) {
    width: 24px;
    margin-left: 0;
}

/* Gallery hover overlay */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

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

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

::-webkit-scrollbar-thumb {
    background: #c22d2d;
    border-radius: 5px;
}

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

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

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

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