/* Base Styles */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(161, 26, 55, 0.15);
    color: #3a0a17;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #faf8f6;
}
::-webkit-scrollbar-thumb {
    background: #d1ccc6;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a8a098;
}

/* Hero Animations */
.hero-anim {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.hero-anim:nth-child(1) { transition-delay: 0.1s; }
.hero-anim:nth-child(2) { transition-delay: 0.25s; }
.hero-anim:nth-child(3) { transition-delay: 0.4s; }
.hero-anim:nth-child(4) { transition-delay: 0.55s; }

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Scroll Line Animation */
.scroll-line {
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50% { opacity: 0.7; transform: scaleY(1.2); }
}

/* Navbar Transitions */
.nav-text {
    transition: color 0.3s ease;
}

.navbar-scrolled .nav-text {
    color: #3a0a17;
}

.navbar-transparent .nav-text {
    color: #ffffff;
}

/* Service Card Hover */
.service-card {
    transition: background-color 0.5s ease;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #811a37, #ff97b0);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.service-card:hover::after {
    transform: scaleX(1);
}

/* Process Step Hover */
.process-step {
    transition: background-color 0.5s ease;
    position: relative;
}

/* Mobile Menu */
.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 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.15s; }
.mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }

/* Menu Button Animation */
.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#menu-btn.active .menu-line:first-child {
    transform: translateY(4px) rotate(45deg);
}

#menu-btn.active .menu-line:last-child {
    transform: translateY(-4px) rotate(-45deg);
}

/* Form Focus States */
input:focus,
textarea:focus {
    border-color: #c02747 !important;
    box-shadow: 0 0 0 1px rgba(192, 39, 71, 0.1);
}

/* Image Hover */
section img {
    transition: transform 0.7s ease;
}

/* Button Hover Glow */
button[type="submit"]:hover {
    box-shadow: 0 8px 30px rgba(161, 26, 55, 0.3);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .hero-anim {
        opacity: 1;
        transform: translateY(0);
        transition-delay: 0s !important;
    }
}

/* Print Styles */
@media print {
    nav, .scroll-line, button {
        display: none;
    }
    
    body {
        color: #1a1715;
        background: white;
    }
}
