/* ========================================
   Xourist Website Styles
   Modern, cinematic, and soulful design
   ======================================== */

/* ========== CSS VARIABLES ========== */
:root {
    /* Colors */
    --primary: #1f6f63;
    --accent: #b77b3a;
    --bg: #fcfbf8;
    --text-dark: #0c1216;
    --text-light: #5a6570;
    --white: #ffffff;
    --overlay-dark: rgba(12, 18, 22, 0.55);
    --overlay-light: rgba(255, 255, 255, 0.95);

    /* Typography */
    --font-serif: Georgia, 'Times New Roman', serif;
    --font-sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.6s ease;

    /* Borders */
    --border-radius: 8px;
    --border-radius-lg: 16px;
}

/* ========== RESET & BASE STYLES ========== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}
a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ========== SKIP LINK (ACCESSIBILITY) ========== */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--primary);
    color: var(--white);
    padding: var(--spacing-sm) var(--spacing-md);
    z-index: 9999;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 0;
}

/* ========== CONTAINER ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ========== NAVIGATION ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--overlay-light);
    backdrop-filter: blur(10px);
    padding: var(--spacing-sm) 0;
    z-index: 1000;
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 2px;
}

.logo-image {
    width: 40px;
    height: 40px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition-normal);
}

.nav-link:hover {
    color: var(--primary);
}

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

.instagram-badge {
    background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: transform var(--transition-fast);
}

.instagram-badge:hover {
    transform: scale(1.05);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--spacing-xs);
}

.hamburger {
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: all var(--transition-normal);
}

/* ========== HERO SECTION ========== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-dark);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 var(--spacing-md);
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 300;
    color: var(--white);
    margin-bottom: var(--spacing-md);
    letter-spacing: -1px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
}

.scroll-text {
    color: var(--white);
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.scroll-arrow {
    width: 20px;
    height: 30px;
    border: 2px solid var(--white);
    border-radius: 20px;
    position: relative;
    animation: scrollBounce 2s infinite;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--white);
    border-radius: 2px;
    animation: scrollDot 2s infinite;
}

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

@keyframes scrollDot {
    0% { transform: translateX(-50%) translateY(0); opacity: 1; }
    100% { transform: translateX(-50%) translateY(12px); opacity: 0; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all var(--transition-normal);
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(183, 123, 58, 0.3);
}

.btn-primary:hover {
    background: #a56d33;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(183, 123, 58, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-full {
    width: 100%;
}

/* ========== SECTION STYLES ========== */
section {
    padding: var(--spacing-xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 300;
    color: var(--primary);
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* ========== STORY SECTION ========== */
.story-section {
    background: var(--white);
    padding: var(--spacing-xl) 0;
    position: relative;
}

.story-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.story-text {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--text-light);
}

/* ========== TREKS SECTION ========== */
.treks-section {
    background: var(--bg);
}

.treks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.trek-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.trek-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.trek-image-wrapper {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.trek-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.trek-card:hover .trek-image {
    transform: scale(1.1);
}

.trek-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--white);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.trek-content {
    padding: var(--spacing-md);
}

.trek-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: var(--spacing-xs);
}

.trek-meta {
    font-size: 0.95rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.trek-highlights {
    margin: var(--spacing-sm) 0;
    padding-left: var(--spacing-sm);
}

.trek-highlights li {
    position: relative;
    padding-left: var(--spacing-sm);
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.trek-highlights li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.trek-details-btn {
    margin-top: var(--spacing-sm);
    width: 100%;
}

/* ========== VILLAGE SECTION ========== */
.village-section {
    background: var(--white);
}

.village-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.village-content {
    padding-right: var(--spacing-md);
}

.village-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

.village-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: var(--bg);
    border-radius: var(--border-radius);
    transition: transform var(--transition-fast);
}

.highlight-item:hover {
    transform: translateX(5px);
}

.highlight-icon {
    font-size: 2rem;
}

.highlight-text {
    font-weight: 600;
    color: var(--text-dark);
}

.village-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
}

.village-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.village-img-1 {
    transform: translateY(20px);
}

.village-img-2 {
    transform: translateY(-20px);
}

/* ========== SPIRITUAL SECTION ========== */
.spiritual-section {
    background: linear-gradient(135deg, #f5f3ef 0%, var(--bg) 100%);
}

.spiritual-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.spiritual-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: transform var(--transition-normal);
}

.spiritual-card:hover {
    transform: translateY(-8px);
}

.spiritual-image-wrapper {
    height: 250px;
    overflow: hidden;
}

.spiritual-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.spiritual-card:hover .spiritual-image {
    transform: scale(1.1);
}

.spiritual-content {
    padding: var(--spacing-md);
}

.spiritual-title {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: var(--spacing-sm);
}

.spiritual-description {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

/* ========== INSTAGRAM SECTION ========== */
.instagram-section {
    background: var(--white);
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
}

.instagram-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.instagram-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.instagram-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(183, 123, 58, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.instagram-icon {
    font-size: 3rem;
}

.instagram-item:hover .instagram-image {
    transform: scale(1.1);
}

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

.instagram-cta {
    text-align: center;
    margin-top: var(--spacing-lg);
}

/* ========== CONTACT SECTION ========== */
.contact-section {
    background: var(--bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

.contact-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.contact-method {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--white);
    border-radius: var(--border-radius);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.contact-method:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    font-size: 2rem;
}

.contact-method-text {
    display: flex;
    flex-direction: column;
}

.contact-method-title {
    font-weight: 600;
    color: var(--text-dark);
}

.contact-method-detail {
    font-size: 0.9rem;
    color: var(--text-light);
}

.whatsapp .contact-icon {
    color: #25D366;
}

/* ========== CONTACT FORM ========== */
.contact-form-wrapper {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.contact-form {
    position: relative;
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-success {
    display: none;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: #d4edda;
    color: #155724;
    border-radius: var(--border-radius);
    margin-top: var(--spacing-sm);
}

.form-success.show {
    display: flex;
}

.success-icon {
    width: 30px;
    height: 30px;
    background: #28a745;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--primary);
    color: var(--white);
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-links {
    display: flex;
    gap: var(--spacing-md);
}

.footer-link {
    font-size: 0.95rem;
    opacity: 0.9;
    transition: opacity var(--transition-fast);
}

.footer-link:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-social {
    display: flex;
    gap: var(--spacing-sm);
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ========== MODAL ========== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
}

.modal.show {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    padding: var(--spacing-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast);
}

.modal-close:hover {
    background: #e0e0e0;
}

.modal-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: var(--spacing-sm);
}

.modal-meta {
    font-size: 1rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.modal-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

.modal-subtitle {
    font-size: 1.3rem;
    color: var(--primary);
    margin: var(--spacing-md) 0 var(--spacing-sm);
}

.modal-list {
    padding-left: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.modal-list li {
    position: relative;
    padding-left: var(--spacing-sm);
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.modal-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.modal-body .btn {
    margin-top: var(--spacing-md);
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1024px) {
    .village-grid {
        grid-template-columns: 1fr;
    }

    .village-content {
        padding-right: 0;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .instagram-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    /* Navigation */
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        padding: var(--spacing-lg) var(--spacing-md);
        transition: left var(--transition-normal);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .menu-toggle.active .hamburger:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

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

    .menu-toggle.active .hamburger:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* Sections */
    section {
        padding: var(--spacing-lg) 0;
    }

    .treks-grid {
        grid-template-columns: 1fr;
    }

    .village-highlights {
        grid-template-columns: 1fr;
    }

    .spiritual-grid {
        grid-template-columns: 1fr;
    }

    .instagram-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .instagram-grid {
        grid-template-columns: 1fr;
    }
}