/* ===== BASE & RESET ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #fefdfb;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

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

.geo-circle-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 158, 184, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    top: 15%;
    right: -100px;
}

.geo-circle-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(128, 0, 32, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    bottom: 20%;
    left: -80px;
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(255, 158, 184, 0.06);
    top: 45%;
    left: 5%;
    transform: rotate(15deg);
}

.geo-square {
    width: 80px;
    height: 80px;
    background: rgba(128, 0, 32, 0.04);
    border-radius: 12px;
    top: 60%;
    right: 8%;
    transform: rotate(45deg);
}

.geo-dots {
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, rgba(128, 0, 32, 0.1) 2px, transparent 2px);
    background-size: 20px 20px;
    top: 30%;
    left: 3%;
    opacity: 0.5;
}

/* ===== NAVIGATION ===== */
.nav-header {
    background: rgba(254, 253, 251, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(128, 0, 32, 0.08);
    transition: all 0.3s ease;
}

.nav-header.scrolled {
    background: rgba(254, 253, 251, 0.95);
    box-shadow: 0 4px 30px rgba(128, 0, 32, 0.08);
}

.nav-link {
    position: relative;
}

/* Mobile menu */
.mobile-menu {
    animation: slideDown 0.3s ease forwards;
}

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

.menu-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.menu-line:nth-child(1) { top: 33%; }
.menu-line:nth-child(2) { top: 50%; }
.menu-line:nth-child(3) { top: 67%; }

#menuBtn.active .menu-line:nth-child(1) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}

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

#menuBtn.active .menu-line:nth-child(3) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    width: 50%;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-gradient {
    background: linear-gradient(135deg, #800020 0%, #6a001a 40%, #4a0012 70%, #2d000a 100%);
}

.hero-img {
    mix-blend-mode: overlay;
    opacity: 0.3;
}

.hero-geo {
    position: absolute;
    border-radius: 50%;
}

.hero-grid {
    position: absolute;
    inset: 0;
    opacity: 0.05;
}

.hero-badge {
    animation: fadeInDown 0.8s ease forwards;
}

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

/* ===== CTA BUTTONS ===== */
.cta-primary {
    box-shadow: 0 4px 15px rgba(255, 158, 184, 0.3);
}

.cta-primary:hover {
    box-shadow: 0 8px 30px rgba(255, 158, 184, 0.4);
}

.cta-cta-primary {
    box-shadow: 0 4px 15px rgba(255, 158, 184, 0.3);
}

.cta-cta-primary:hover {
    box-shadow: 0 8px 30px rgba(255, 158, 184, 0.4);
}

/* ===== SECTIONS ===== */
.section {
    position: relative;
}

/* ===== SERVICE CARDS ===== */
.service-card {
    position: relative;
}

.service-card-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 2px 2px 0 0;
}

/* ===== REASON CARDS ===== */
.reason-card {
    transition: transform 0.3s ease, background 0.3s ease;
}

/* ===== TESTIMONIAL CARDS ===== */
.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(128, 0, 32, 0.1) !important;
}

/* ===== FORM ===== */
.contact-form {
    transition: opacity 0.3s ease;
}

.contact-success {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* ===== FOOTER ===== */
.footer {
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #800020, #ff9eb8, #800020);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover {
    transform: translateY(-3px);
}

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal[data-reveal-delay="100"] { transition-delay: 100ms; }
.reveal[data-reveal-delay="200"] { transition-delay: 200ms; }
.reveal[data-reveal-delay="300"] { transition-delay: 300ms; }

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

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

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .geo-shape {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}
