*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    overflow-x: hidden;
}

/* Navbar transitions */
#navbar.scrolled {
    background: rgba(80, 7, 36, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile menu */
#mobileMenu {
    max-height: 0;
    opacity: 0;
}

#mobileMenu.open {
    max-height: 400px;
    opacity: 1;
}

.menu-line {
    display: block;
}

.menu-btn.active .menu-line:first-child {
    transform: rotate(45deg) translate(3px, 3px);
}

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

.menu-btn.active .menu-line:last-child {
    transform: rotate(-45deg) translate(3px, -3px);
    width: 1.25rem;
}

.mobile-link {
    display: block;
}

.mobile-link:hover {
    color: #fbbf24;
    padding-left: 8px;
}

/* Hero animations */
.hero-dot {
    opacity: 0;
    animation: fadeInLine 1s ease forwards;
}

.hero-dot:nth-child(1) { animation-delay: 0.3s; }
.hero-dot:nth-child(2) { animation-delay: 0.5s; }
.hero-dot:nth-child(3) { animation-delay: 0.7s; }
.hero-dot:nth-child(4) { animation-delay: 0.9s; }

.hero-ring {
    opacity: 0;
    animation: fadeInRing 1.5s ease forwards;
}

.hero-ring:nth-child(5) { animation-delay: 0.6s; }
.hero-ring:nth-child(6) { animation-delay: 0.9s; }
.hero-ring:nth-child(7) { animation-delay: 1.2s; }

@keyframes fadeInLine {
    from { opacity: 0; transform: scaleY(0); }
    to { opacity: 1; transform: scaleY(1); }
}

@keyframes fadeInRing {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

/* Service cards */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #be185d, #f59e0b);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

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

/* Gallery */
.gallery-item {
    position: relative;
    cursor: pointer;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(80, 7, 36, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Scroll animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.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; }

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #be185d, #d97706);
    border-radius: 4px;
}

/* Selection */
::selection {
    background: rgba(190, 24, 93, 0.2);
    color: #831443;
}

/* Form focus styles */
input:focus, textarea:focus {
    outline: none;
    border-color: #fbbf24 !important;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1);
}

/* Smooth image loading */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Thin line decorations */
.thin-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, #f59e0b, transparent);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 60px;
    }
}
