/* Custom styles for Aibolit Medical Massage & Rehabilitation */

:root {
    --plum-50: #fdf4f6;
    --plum-100: #fce8ec;
    --plum-200: #f9d0d9;
    --plum-400: #ea7191;
    --plum-500: #d4456e;
    --plum-600: #b82d52;
    --plum-700: #972443;
    --plum-800: #7d203b;
    --plum-900: #6a2237;
    --plum-950: #3a0f1b;
    --amber-300: #ffd555;
    --amber-400: #ffb800;
    --amber-500: #e59c00;
    --amber-600: #c47e00;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    overflow-x: hidden;
}

/* Navigation */
#navbar {
    background: transparent;
    transition: background 0.5s ease, backdrop-filter 0.5s ease, padding 0.5s ease;
}

#navbar.scrolled {
    background: rgba(253, 244, 246, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(151, 36, 67, 0.08);
}

.nav-logo-text {
    transition: color 0.3s ease;
}

#navbar.scrolled .nav-logo-text {
    color: var(--plum-950);
}

/* Hero Animations */
.hero-subtitle {
    animation: slideDown 0.8s ease forwards;
    opacity: 0;
    transform: translateY(-20px);
}

.hero-headline {
    animation: slideUp 0.8s ease 0.2s forwards;
    opacity: 0;
    transform: translateY(30px);
}

.hero-description {
    animation: slideUp 0.8s ease 0.4s forwards;
    opacity: 0;
    transform: translateY(30px);
}

.hero-cta {
    animation: slideUp 0.8s ease 0.6s forwards;
    opacity: 0;
    transform: translateY(30px);
}

.hero-scroll {
    animation: fadeIn 1s ease 1s forwards;
    opacity: 0;
}

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

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

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

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

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

.reveal:nth-child(2) {
    transition-delay: 0.1s;
}

.reveal:nth-child(3) {
    transition-delay: 0.2s;
}

/* Mobile Menu */
#mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    font-size: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

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

#mobile-menu.active .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.active .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.active .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.active .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobile-menu.active .mobile-link:nth-child(5) { transition-delay: 0.3s; }

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

#menu-toggle.active .menu-line:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}

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

#menu-toggle.active .menu-line:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
    width: 24px;
}

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

::-webkit-scrollbar-track {
    background: var(--plum-50);
}

::-webkit-scrollbar-thumb {
    background: var(--plum-300);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--plum-400);
}

/* Selection */
::selection {
    background: var(--plum-200);
    color: var(--plum-950);
}

/* Focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--amber-300);
}

/* Button hover effects */
button[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(151, 36, 67, 0.2);
}

button[type="submit"]:active {
    transform: translateY(0);
}

/* Smooth image loading */
img {
    opacity: 0;
    transition: opacity 0.6s ease;
}

img.loaded {
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
}
