/* Saarathi Riders - Main Stylesheet */
:root {
    --primary: #111827;
    --secondary: #F59E0B;
    --accent: #DC2626;
    --background: #F8FAFC;
    --card-bg: #ffffff;
    --text: #1f2937;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --navbar-bg: rgba(17, 24, 39, 0.95);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
    --footer-bg: #111827;
    --transition: all 0.3s ease;
}

[data-theme="dark"] {
    --background: #0f172a;
    --card-bg: #1e293b;
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --border: #334155;
    --glass-bg: rgba(30, 41, 59, 0.85);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--background);
    color: var(--text);
    overflow-x: hidden;
    padding-top: 76px;
    transition: var(--transition);
}

h1, h2, h3, h4, h5, h6, .section-title, .hero-title {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
}

/* Navbar */
#mainNav {
    background: var(--navbar-bg);
    backdrop-filter: blur(10px);
    padding: 0.75rem 0;
    transition: var(--transition);
}

#mainNav.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.navbar-brand .brand-text {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
}

.nav-link.active, .nav-link:hover {
    color: var(--secondary) !important;
}

/* Hero */
.hero-section {
    position: relative;
    background-size: cover;
    background-position: center 45%;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    margin-top: -76px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(17,24,39,0.85) 0%, rgba(17,24,39,0.6) 50%, rgba(220,38,38,0.2) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid var(--secondary);
    color: var(--secondary);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-title {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    line-height: 1.1;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.hero-scroll a {
    color: white;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* Sections */
.section-padding { padding: 5rem 0; }

.section-badge {
    display: inline-block;
    color: var(--secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-subtitle { font-size: 1.1rem; }

/* Glass Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.glass-card-dark {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    transition: var(--transition);
}

.glass-card-dark:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-5px);
}

/* Stats */
.stat-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.stat-card:hover { transform: translateY(-5px); }

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary), #fbbf24);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: var(--primary);
}

.stat-number {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0;
}

[data-theme="dark"] .stat-number { color: var(--secondary); }

.stat-label {
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0;
}

/* Feature Cards */
.feature-card { text-align: center; }
.feature-icon { font-size: 2.5rem; margin-bottom: 1rem; }

/* Tour Cards */
.tour-card {
    border-radius: 16px !important;
    overflow: hidden;
    transition: var(--transition);
    background: var(--card-bg);
}

.tour-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12) !important;
}

.tour-card-img {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.tour-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.tour-card:hover .tour-card-img img { transform: scale(1.1); }

.tour-difficulty {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.tour-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.tour-price {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
}

/* Event Cards */
.event-card { text-align: center; }
.event-icon {
    width: 60px;
    height: 60px;
    background: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: var(--primary);
}

.event-type {
    display: inline-block;
    background: rgba(245,158,11,0.2);
    color: var(--secondary);
    padding: 0.2rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: var(--secondary);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 10px 40px;
}

.timeline-item.left { left: 0; }
.timeline-item.right { left: 50%; }

.timeline-content {
    position: relative;
}

.timeline-icon {
    position: absolute;
    width: 40px;
    height: 40px;
    background: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    top: 1rem;
}

.timeline-item.left .timeline-icon { right: -60px; }
.timeline-item.right .timeline-icon { left: -60px; }

.timeline-date {
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .timeline::after { left: 20px; }
    .timeline-item { width: 100%; left: 0 !important; padding-left: 60px; padding-right: 15px; }
    .timeline-item .timeline-icon { left: 0 !important; }
}

/* Gallery */
.gallery-item {
    position: relative;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img { transform: scale(1.1); }

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 40%, rgba(17,24,39,0.9));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    color: white;
    opacity: 0;
    transition: var(--transition);
}

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

/* Gallery image modal */
.gallery-modal-content {
    background: rgba(17, 24, 39, 0.98);
    border: none;
    border-radius: 16px;
    overflow: hidden;
}

.gallery-modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 1.25rem;
}

.gallery-modal-counter {
    color: #F59E0B;
    font-weight: 600;
    font-size: 0.95rem;
}

.gallery-modal-close {
    font-weight: 600;
    border-radius: 8px;
}

.gallery-modal-body {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    padding: 1rem 4rem;
}

.gallery-modal-image-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 75vh;
}

.gallery-modal-image {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 8px;
}

.gallery-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.92);
    color: #111827;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, background 0.2s ease;
    z-index: 2;
}

.gallery-modal-nav:hover {
    background: #d97706;
    transform: translateY(-50%) scale(1.08);
}

.gallery-modal-prev { left: 1rem; }
.gallery-modal-next { right: 1rem; }

.gallery-modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.25rem 1.25rem;
}

.gallery-modal-caption {
    color: rgba(255, 255, 255, 0.75);
    text-align: center;
    font-size: 0.95rem;
}

@media (max-width: 576px) {
    .gallery-modal-body {
        padding: 1rem 3rem;
    }

    .gallery-modal-nav {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }

    .gallery-modal-prev { left: 0.5rem; }
    .gallery-modal-next { right: 0.5rem; }
}

/* Album prev / next navigation */
.gallery-album-nav-link {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    max-width: 45%;
    text-decoration: none;
    color: var(--text);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    transition: var(--transition);
}

.gallery-album-nav-link:hover {
    background: rgba(245, 158, 11, 0.12);
    color: var(--text);
}

.gallery-album-nav-link .nav-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary);
}

.gallery-album-nav-link .nav-title {
    font-weight: 600;
    font-size: 1rem;
}

@media (max-width: 576px) {
    .gallery-album-nav-link { max-width: 48%; }
}

/* Partners */
.partner-logo {
    padding: 1.5rem;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.partner-logo img {
    max-height: 60px;
    width: auto;
    object-fit: contain;
}

.partner-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Testimonials */
.testimonial-card {
    padding: 3rem 2rem;
    max-width: 700px;
    margin: 0 auto;
}

.testimonial-text {
    font-size: 1.15rem;
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Newsletter */
.newsletter-box {
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem;
}

.newsletter-form-inline { max-width: 500px; }

/* Footer */
.footer { background: var(--footer-bg) !important; }

.footer-links a, .footer-contact li {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    display: block;
    padding: 0.3rem 0;
    transition: var(--transition);
}

.footer-links a:hover { color: var(--secondary); }

.social-links a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 0.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary);
    color: var(--primary);
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(37,211,102,0.4);
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: white;
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--secondary);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: var(--transition);
}

.theme-toggle:hover { transform: scale(1.1); }

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, #1f2937 100%);
    padding: 6rem 0 4rem;
    margin-top: -76px;
    color: white;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 1rem 0;
}

.breadcrumb-item a {
    color: var(--secondary);
    text-decoration: none;
}

/* Forms */
.form-control, .form-select {
    border-radius: 10px;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    background: var(--card-bg);
    color: var(--text);
}

.form-control:focus, .form-select:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 0.2rem rgba(245,158,11,0.25);
}

.btn-warning {
    background: var(--secondary);
    border-color: var(--secondary);
    color: var(--primary);
    font-weight: 600;
}

.btn-warning:hover {
    background: #d97706;
    border-color: #d97706;
    color: var(--primary);
}

/* Cards general */
.card {
    background: var(--card-bg);
    border-color: var(--border);
    color: var(--text);
}

/* Blog */
.blog-card {
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.blog-card img {
    height: 220px;
    object-fit: cover;
}

.blog-content { padding: 1.5rem; }

.blog-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Contact */
.contact-info-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    height: 100%;
    transition: var(--transition);
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.contact-info-card i {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.map-container {
    border-radius: 16px;
    overflow: hidden;
    height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Join Form */
.join-form-section {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

/* Tour Detail */
.tour-hero {
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 0 0 20px 20px;
    overflow: hidden;
}

.tour-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 30%, rgba(17,24,39,0.9));
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    color: white;
}

.itinerary-day {
    border-left: 3px solid var(--secondary);
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

/* Pagination */
.page-link {
    color: var(--primary);
    border-radius: 8px !important;
    margin: 0 2px;
}

.page-item.active .page-link {
    background: var(--secondary);
    border-color: var(--secondary);
    color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .section-title { font-size: 2rem; }
    .section-padding { padding: 3rem 0; }
    .hero-section { background-attachment: scroll; }
}

/* Lazy loading placeholder */
img[loading="lazy"] {
    background: var(--border);
}

/* Admin auth standalone pages use separate CSS */
