/* Design System & Variables */
:root {
    --primary: #23A9BD;       /* Cyan/Teal requested */
    --secondary: #010310;     /* Deep Dark requested */
    --accent: #E63946;        /* Crimson Red */
    --gold: #D4AF37;
    --dark: #010310;          /* Almost Black */
    --light: #F4F4F6;         /* Soft Gray/White */
    --card-bg: #FFFFFF;
    --text-main: #2B2D42;
    --text-muted: #8D99AE;
    --gradient-hero: linear-gradient(135deg, rgba(1,3,16,0.8), rgba(35,169,189,0.5));
    --gradient-section: linear-gradient(180deg, #010310 0%, #0d1b2a 100%);
    
    --font-display: 'Syne', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-accent: 'Caveat', cursive;
    --font-company: 'Cinzel', serif;
    
    --radius-card: 20px;
    --radius-btn: 30px;
    --shadow-card: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-hover: 0 20px 40px rgba(35,169,189,0.3);
    
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 700; color: var(--dark); }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* Typography Utility */
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-accent { color: var(--accent); }
.text-center { text-align: center; }
.section-title { font-size: 2.5rem; margin-bottom: 0.5rem; }
.section-subtitle { font-family: var(--font-accent); font-size: 1.8rem; color: var(--primary); margin-bottom: 2rem; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius-btn);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}
.btn:hover { transform: scale(1.05); }
.btn-primary { background: var(--primary); color: white; box-shadow: 0 4px 15px rgba(255,107,53,0.3); }
.btn-primary:hover { box-shadow: var(--shadow-hover); }
.btn-secondary { background: var(--secondary); color: white; }
.btn-outline-light { border: 2px solid white; color: white; background: transparent; }
.btn-outline-light:hover { background: white; color: var(--dark); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 0.9rem; }

/* Scroll Progress */
#scroll-progress {
    position: fixed; top: 0; left: 0; width: 100%; height: 4px; background: rgba(0,0,0,0.1); z-index: 1000;
}
#scroll-progress-bar { height: 100%; background: var(--primary); width: 0%; transition: width 0.1s; }

/* Navigation */
#navbar {
    position: fixed; top: 0; left: 0; width: 100%; padding: 15px 5%;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 999; transition: var(--transition);
}
#navbar.scrolled { background: rgba(28, 28, 46, 0.95); backdrop-filter: blur(10px); padding: 10px 5%; box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
#navbar.scrolled .nav-logo { color: white; }
#navbar.scrolled .nav-link { color: white; }

.nav-container { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.nav-logo { font-family: var(--font-company); font-size: 1.8rem; font-weight: 800; color: white; display: flex; align-items: center; gap: 8px; letter-spacing: 1px; }
.nav-logo em { color: var(--primary); font-style: normal; font-weight: 600; }
.logo-icon { color: var(--primary); font-size: 1.2rem; }

.nav-links { display: flex; gap: 30px; }
.nav-link { color: white; font-weight: 500; position: relative; transition: var(--transition); }
.nav-link::after {
    content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px; background: var(--primary); transition: var(--transition);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 15px; }
.hamburger { display: none; background: transparent; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.hamburger span { display: block; width: 25px; height: 3px; background: white; transition: var(--transition); }
#navbar.scrolled .hamburger span { background: white; }

/* Mobile Drawer */
.mobile-drawer { position: fixed; top: 0; right: -100%; width: 100%; height: 100vh; z-index: 1000; transition: var(--transition); display: flex; }
.mobile-drawer.open { right: 0; }
.drawer-overlay { flex: 1; background: rgba(0,0,0,0.5); backdrop-filter: blur(5px); opacity: 0; transition: opacity 0.3s; }
.mobile-drawer.open .drawer-overlay { opacity: 1; }
.drawer-content { width: 300px; background: var(--dark); color: white; padding: 40px 20px; box-shadow: -5px 0 20px rgba(0,0,0,0.2); }
.drawer-close { background: none; border: none; color: white; font-size: 1.5rem; position: absolute; top: 20px; right: 20px; cursor: pointer; }
.drawer-logo { font-family: var(--font-company); font-size: 1.8rem; margin-bottom: 40px; font-weight: 800; letter-spacing: 1px; }
.drawer-logo em { color: var(--primary); font-style: normal; font-weight: 600; }
.drawer-links { display: flex; flex-direction: column; gap: 20px; margin-bottom: 40px; }
.drawer-links a { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 10px; }

/* Layout Containers */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
section { padding: 80px 0; }

/* Hero Section */
.hero { height: 100vh; position: relative; display: flex; align-items: center; justify-content: center; text-align: center; color: white; overflow: hidden; }
.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(rgba(28,28,46,0.6), rgba(0,78,137,0.6)); z-index: -1; }
.hero-content { max-width: 800px; z-index: 1; padding: 0 20px; }
.hero h1 { font-family: 'Playfair Display', serif; font-size: 4.5rem; color: white; margin-bottom: 20px; text-shadow: 2px 2px 12px rgba(0,0,0,0.4); font-weight: 700; line-height: 1.3; letter-spacing: 1px; }
.hero-tagline { font-family: var(--font-accent); font-size: 2.5rem; color: var(--gold); margin-bottom: 30px; }
.hero-btns { display: flex; gap: 20px; justify-content: center; }
.floating-icon { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); font-size: 2rem; color: white; animation: bounce 2s infinite; }

@keyframes bounce { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -20px); } }

/* Stats Section */
.stats-section { background: var(--dark); color: white; padding: 60px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; text-align: center; }
.stat-item h3 { font-size: 3rem; color: var(--primary); margin-bottom: 10px; }
.stat-item p { font-size: 1.1rem; color: #ccc; }

/* Card System */
.card { background: var(--card-bg); border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-card); transition: var(--transition); position: relative; }
.card:hover { transform: translateY(-12px) scale(1.02); box-shadow: var(--shadow-hover); z-index: 10; }
.card::before { content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%; background: linear-gradient(to right, transparent, rgba(255,255,255,0.3), transparent); transform: skewX(-25deg); transition: 0.7s; z-index: 3; pointer-events: none; }
.card:hover::before { left: 150%; }

.card-img-wrap { position: relative; height: 250px; overflow: hidden; }
.card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.card:hover .card-img { transform: scale(1.15) rotate(2deg); }
.card-badge { position: absolute; top: 15px; right: 15px; background: var(--primary); color: white; padding: 5px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; z-index: 2; box-shadow: 0 4px 10px rgba(0,0,0,0.2); animation: pulse 2s infinite; }
.card-badge.warning { background: #E74C3C; }
.card-body { padding: 25px; position: relative; background: white; z-index: 2; transition: var(--transition); }
.card:hover .card-body { transform: translateY(-5px); }

@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }

.card-title { font-size: 1.4rem; margin-bottom: 10px; transition: color 0.3s; }
.card:hover .card-title { color: var(--primary); }
.card-meta { display: flex; justify-content: space-between; margin-bottom: 15px; color: var(--text-muted); font-size: 0.9rem; }
.card-price { font-size: 1.5rem; font-weight: 700; color: var(--secondary); margin-bottom: 15px; }
.card-price span { font-size: 0.9rem; color: var(--text-muted); font-weight: 400; }

/* Destinations Carousel */
.destinations-scroll { display: flex; overflow-x: auto; gap: 20px; padding: 20px 5px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.destinations-scroll::-webkit-scrollbar { display: none; }
.dest-card { min-width: 280px; scroll-snap-align: start; }
.dest-card .card-img-wrap { height: 350px; }
.dest-info { position: absolute; bottom: 0; left: 0; width: 100%; padding: 20px; background: linear-gradient(transparent, rgba(0,0,0,0.9)); color: white; z-index: 2; transform: translateY(20px); opacity: 0.9; transition: var(--transition); }
.dest-card:hover .dest-info { transform: translateY(0); opacity: 1; padding-bottom: 30px; }
.dest-info h3 { color: white; margin-bottom: 5px; font-size: 1.5rem; }
.dest-info p { color: var(--gold); font-size: 0.9rem; transform: translateY(10px); opacity: 0; transition: var(--transition); transition-delay: 0.1s; }
.dest-card:hover .dest-info p { transform: translateY(0); opacity: 1; }

/* Packages Filters */
.filter-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px; }
.filter-tab { padding: 8px 20px; border-radius: 30px; background: white; border: 1px solid #ddd; cursor: pointer; transition: var(--transition); }
.filter-tab.active, .filter-tab:hover { background: var(--primary); color: white; border-color: var(--primary); }
.packages-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; }

/* Package Detail Page */
.detail-hero { height: 60vh; position: relative; display: flex; align-items: flex-end; padding-bottom: 50px; }
.detail-hero h1 { font-size: 3.5rem; color: white; z-index: 1; }
.detail-content { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; margin-top: 40px; }
.detail-tabs { display: flex; gap: 20px; border-bottom: 1px solid #ddd; margin-bottom: 30px; }
.detail-tab { padding: 10px 0; cursor: pointer; font-weight: 600; position: relative; }
.detail-tab.active { color: var(--primary); }
.detail-tab.active::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 100%; height: 3px; background: var(--primary); }
.itinerary-item { background: white; border-radius: 10px; padding: 20px; margin-bottom: 15px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.itinerary-day { font-weight: 700; color: var(--secondary); margin-bottom: 10px; }
.sidebar-box { background: white; padding: 30px; border-radius: var(--radius-card); box-shadow: var(--shadow-card); position: sticky; top: 100px; }
.price-huge { font-size: 2.5rem; font-weight: 800; color: var(--primary); margin: 20px 0; }

/* Forms */
.form-group { margin-bottom: 20px; }
.form-label { display: block; margin-bottom: 8px; font-weight: 500; }
.form-control { width: 100%; padding: 12px 15px; border: 1px solid #ddd; border-radius: 8px; font-family: var(--font-body); transition: border 0.3s; }
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,107,53,0.1); }
textarea.form-control { resize: vertical; min-height: 100px; }

/* Modal & Toast */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); backdrop-filter: blur(5px); z-index: 2000; display: flex; justify-content: center; align-items: center; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-content { background: white; padding: 40px; border-radius: var(--radius-card); max-width: 500px; width: 90%; position: relative; transform: scale(0.8); transition: transform 0.3s; max-height: 90vh; overflow-y: auto; }
.modal-overlay.active .modal-content { transform: scale(1); }
.modal-close { position: absolute; top: 15px; right: 15px; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: #999; }

#toastContainer { position: fixed; bottom: 20px; right: 20px; z-index: 3000; display: flex; flex-direction: column; gap: 10px; }
.toast { background: white; padding: 15px 25px; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.2); border-left: 5px solid var(--primary); transform: translateX(120%); transition: transform 0.3s; display: flex; align-items: center; gap: 10px; }
.toast.show { transform: translateX(0); }
.toast.success { border-color: var(--accent); }
.toast.error { border-color: #E74C3C; }

/* Booking Process */
.booking-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; }
.members-list { margin-top: 20px; }
.member-card { background: var(--light); padding: 15px; border-radius: 8px; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; }
.payment-methods { display: flex; gap: 15px; margin-bottom: 30px; overflow-x: auto; padding-bottom: 10px; }
.pay-method { flex: 1; min-width: 100px; padding: 15px; text-align: center; border: 2px solid #ddd; border-radius: 10px; cursor: pointer; transition: var(--transition); }
.pay-method.active { border-color: var(--primary); background: rgba(255,107,53,0.05); }
.pay-method i { font-size: 1.5rem; margin-bottom: 10px; display: block; color: var(--secondary); }

/* Payment Processing Spinner */
.spinner { width: 50px; height: 50px; border: 5px solid rgba(255,107,53,0.2); border-top-color: var(--primary); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 20px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Footer */
footer { background: var(--dark); color: white; padding: 80px 0 20px; position: relative; }
footer::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle at 100% 0%, rgba(35,169,189,0.1) 0%, transparent 50%); pointer-events: none; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 40px; position: relative; z-index: 1; }
.footer-logo { font-family: var(--font-company); font-size: 2rem; margin-bottom: 20px; display: block; font-weight: 800; letter-spacing: 1px; }
.footer-logo em { color: var(--primary); font-style: normal; font-weight: 600; }
.social-icons { display: flex; gap: 15px; margin-top: 20px; }
.social-icon { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.social-icon:hover { background: var(--primary); transform: translateY(-3px); }
.footer-links li { margin-bottom: 10px; }
.footer-links a:hover { color: var(--primary); }
.newsletter-form { display: flex; gap: 10px; margin-top: 20px; }
.newsletter-form input { flex: 1; padding: 12px; border: none; border-radius: var(--radius-btn); }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.9rem; color: #999; }

/* Admin Dashboard */
.admin-layout { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; background: #f4f6f9; }
.admin-sidebar { background: var(--dark); color: white; padding: 20px; }
.admin-nav { margin-top: 40px; }
.admin-nav-item { display: block; padding: 12px 15px; color: #ccc; border-radius: 8px; margin-bottom: 5px; transition: 0.3s; cursor: pointer; }
.admin-nav-item:hover, .admin-nav-item.active { background: rgba(255,255,255,0.1); color: white; }
.admin-nav-item i { margin-right: 10px; width: 20px; text-align: center; }
.admin-main { padding: 30px; overflow-y: auto; }
.admin-card { background: white; border-radius: 12px; padding: 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); margin-bottom: 30px; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 30px; }
.stat-box { display: flex; align-items: center; gap: 20px; }
.stat-icon { width: 60px; height: 60px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; }
.stat-icon.blue { background: rgba(0,78,137,0.1); color: #004E89; }
.stat-icon.green { background: rgba(26,147,111,0.1); color: #1A936F; }
.stat-icon.orange { background: rgba(255,107,53,0.1); color: #FF6B35; }
.stat-icon.purple { background: rgba(155,89,182,0.1); color: #9B59B6; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 15px; text-align: left; border-bottom: 1px solid #eee; }
.admin-table th { font-weight: 600; color: var(--text-muted); }
.status-badge { padding: 5px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; }
.status-confirmed { background: #d4edda; color: #155724; }
.status-pending { background: #fff3cd; color: #856404; }
.status-cancelled { background: #f8d7da; color: #721c24; }

/* Responsive */
@media (max-width: 1024px) {
    .detail-content, .booking-grid, .admin-layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-sidebar { display: none; }
}
@media (max-width: 768px) {
    .nav-links, .nav-actions .btn { display: none; }
    .hamburger { display: flex; }
    .hero h1 { font-size: 2.5rem; }
    .hero-tagline { font-size: 1.8rem; }
    .stats-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}

#backToTop { position: fixed; bottom: 30px; right: 30px; width: 40px; height: 40px; background: var(--primary); color: white; border: none; border-radius: 50%; font-size: 1.2rem; cursor: pointer; display: none; z-index: 1000; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }
#backToTop.show { display: flex; align-items: center; justify-content: center; }

/* Confetti wrapper */
#confetti-wrapper { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 9999; }
