@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --red-primary: #dc2626;
    --red-dark: #991b1b;
    --red-light: #fecaca;
}

* { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

.glass {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.fade-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.fade-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Hero section */
.hero-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Carousel */
.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    min-width: 100%;
    flex-shrink: 0;
}

/* Package cards */
.package-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.package-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px -12px rgba(220, 38, 38, 0.25);
}

/* Navbar transition */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}
.navbar-scrolled .nav-link {
    color: #1f2937 !important;
}
.navbar-scrolled .nav-logo {
    color: #dc2626 !important;
}

/* Scroll to top */
.scroll-top {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

/* Toast */
.toast {
    animation: slideInRight 0.4s ease-out, fadeOut 0.4s ease-in 2.6s forwards;
}
@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; visibility: hidden; }
}

/* Pulse badge */
.badge-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Tab active indicator */
.tab-active {
    position: relative;
}
.tab-active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: #dc2626;
    border-radius: 999px;
}

/* Hamburger */
.hamburger-line {
    transition: all 0.3s ease;
}
.hamburger-active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger-active .hamburger-line:nth-child(2) {
    opacity: 0;
}
.hamburger-active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Lazy load */
img[data-src] {
    opacity: 0;
    transition: opacity 0.5s ease;
}
img[data-src].loaded {
    opacity: 1;
}

/* Stat counter */
.stat-value {
    font-variant-numeric: tabular-nums;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb {
    background: #dc2626;
    border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: #991b1b; }
