/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-accent: #e16d24;
    --light-accent: #f18c4e;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f9f9f9;
    --bg-white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow: rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
    color: var(--primary-accent);
    position: relative;
    padding-bottom: 1rem;
}

h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-accent), var(--light-accent));
    border-radius: 2px;
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 5rem 0;
}

.section-title-center {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title-center h2:after {
    left: 50%;
    transform: translateX(-50%);
}

.btn {
    display: inline-block;
    background: linear-gradient(to right, var(--primary-accent), var(--light-accent));
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(225, 109, 36, 0.3);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(225, 109, 36, 0.4);
}

/* Glass effect improvements */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.glass-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent);
}

/* Updated Hero Section */
.hero {
    position: relative; 
    height: 100vh;
    min-height: 700px;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                url('/images/cambodia_photo_tour_bayon_temple.webp');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 1rem;
}

.hero .container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.hero-content {
    max-width: 900px;
    width: 100%;
    padding: 3rem;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-details {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.detail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 200px;
    flex: 1;
}

.detail-item i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
    color: var(--primary-accent);
    text-shadow: 0 0 10px rgba(225, 109, 36, 0.5);
}

.detail-item i.fa-calendar-alt {
    animation-delay: 0s;
}

.detail-item i.fa-map-marker-alt {
    animation-delay: 0.5s;
}

.detail-item i.fa-user {
    animation-delay: 1s;
}

.detail-text {
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.detail-text:last-child {
    font-size: 1rem;
    opacity: 0.9;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ============================================
   SCROLL DOWN ARROW (FINAL VERSION)
   ============================================ */
.scroll-down-btn {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 3rem;
    cursor: pointer;
    z-index: 10;
    text-decoration: none;
    transition: var(--transition);
    opacity: 0.8;
    
    /* Smoother scroll hint animation */
    animation: scroll-hint 1.5s infinite; 
}

.scroll-down-btn:hover {
    color: var(--primary-accent);
    opacity: 1;
}

@keyframes scroll-hint {
    0% {
        transform: translateX(-50%) translateY(-10px);
        opacity: 0.5;
    }
    50% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) translateY(10px);
        opacity: 0.5;
    }
}
/* ============================================
   END SCROLL DOWN ARROW
   ============================================ */

/* ============================================
   OPTION 1: Improved Book Your Tour Button
   ============================================ */
.hero .btn {
    background: linear-gradient(135deg, var(--primary-accent) 0%, var(--light-accent) 100%);
    color: white;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 25px rgba(225, 109, 36, 0.4);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    animation: pulse 2s infinite;
}

.hero .btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 30px rgba(225, 109, 36, 0.6);
    animation: none;
}

.hero .btn:active {
    transform: translateY(-2px) scale(1.02);
}

/* Pulse animation */
@keyframes pulse {
    0% {
        box-shadow: 0 8px 25px rgba(225, 109, 36, 0.4);
    }
    50% {
        box-shadow: 0 8px 30px rgba(225, 109, 36, 0.7);
    }
    100% {
        box-shadow: 0 8px 25px rgba(225, 109, 36, 0.4);
    }
}

/* Optional: Add a shine effect on hover */
.hero .btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%
    );
    transform: rotate(30deg);
    transition: transform 0.6s;
    opacity: 0;
}

.hero .btn:hover::after {
    transform: rotate(30deg) translateX(100%);
    opacity: 1;
}
/* ============================================
   END OF OPTION 1
   ============================================ */

/* About Section */
.about {
    background-color: var(--bg-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-intro {
    grid-column: 1 / -1;
    margin-bottom: 2rem;
}

.temple-section, .street-section {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

.street-section {
    direction: rtl;
}

.street-section .about-text {
    direction: ltr;
}

.about-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 100%;
    min-height: 400px;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    transition: var(--transition);
}

.about-image:hover img {
    transform: scale(1.05);
}

strong {
    color: var(--primary-accent);
}

/* Slideshow Section */
.slideshow {
    background: linear-gradient(135deg, #f5f7fa 0%, #f9f9f9 100%);
    position: relative;
}

.slideshow-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    background-color: #000;
    
    /* FIX FOR IMAGE FITTING: Uses a responsive aspect ratio */
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio (change to 75% for 4:3) */
    padding-bottom: 0; 
}

.slide {
    /* FIX FOR IMAGE FITTING: Uses absolute position within the responsive container */
    position: absolute;
    top: 0;
    left: 0;
    
    display: none;
    width: 100%;
    height: 100%; 
    
    /* Ensures the whole image is visible (contain) with black background (slideshow-container) */
    object-fit: contain; 
}

.slide.active {
    display: block;
    animation: fadeIn 1s;
}

@keyframes fadeIn {
    from { opacity: 0.7; }
    to { opacity: 1; }
}

.slideshow-dots {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    margin: 0 8px;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--primary-accent);
    transform: scale(1.2);
}

/* Pricing Section */
.pricing {
    background: linear-gradient(135deg, var(--primary-accent) 0%, var(--light-accent) 100%);
    color: white;
    text-align: center;
}

.pricing h2, .pricing p {
    color: white;
}

.pricing h2:after {
    background: white;
    left: 50%;
    transform: translateX(-50%);
}

.pricing-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.price-tag {
    font-size: 5rem;
    font-weight: 700;
    margin: 2rem 0;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

.price-details {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
    margin: 2rem 0 3rem;
}

.price-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.price-item i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.price-item span {
    font-size: 1.2rem;
    font-weight: 500;
}

.pricing-note {
    font-size: 1rem;
    margin-top: 2rem;
    opacity: 0.9;
    font-style: italic;
}

/* Icons Section */
.icons-section {
    background-color: var(--bg-white);
}

.icons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.icon-card {
    padding: 2rem;
    text-align: center;
    border-radius: 15px;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

.icon-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.icon-card:nth-child(1) { transition-delay: 0.1s; }
.icon-card:nth-child(2) { transition-delay: 0.3s; }
.icon-card:nth-child(3) { transition-delay: 0.5s; }
.icon-card:nth-child(4) { transition-delay: 0.7s; }

.icon-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

.icon-card i {
    font-size: 3rem;
    color: var(--primary-accent);
    margin-bottom: 1.5rem;
}

.icon-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Map & Contact Section */
.contact-section {
    background-color: var(--bg-light);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    min-height: 450px;
    display: block;
    border: none;
}

.contact-info {
    padding: 2.5rem;
    border-radius: 15px;
    background-color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-info h3 {
    color: var(--primary-accent);
    margin-bottom: 2rem;
    text-align: center;
}

.address {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.address h4 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.address p {
    line-height: 1.8;
    color: var(--text-light);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item i {
    width: 40px;
    height: 40px;
    background: linear-gradient(to right, var(--primary-accent), var(--light-accent));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.contact-text {
    display: flex;
    flex-direction: column;
}

.contact-text span:first-child {
    font-weight: 600;
    color: var(--text-dark);
}

.contact-text span:last-child {
    color: var(--text-light);
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #f1f1f1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: linear-gradient(to right, var(--primary-accent), var(--light-accent));
    color: white;
    transform: translateY(-5px);
}

/* Footer */
footer {
    background-color: #222;
    color: #ddd;
    text-align: center;
    padding: 2rem 0;
}

/* Responsive Design */
@media (max-width: 992px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.2rem; }
    
    .temple-section, .street-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .street-section {
        direction: ltr;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Hero responsive adjustments */
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero-details {
        gap: 2rem;
    }
    
    .detail-item {
        min-width: 180px;
    }
    
    .hero-content {
        padding: 2.5rem;
    }
    
    /* Button responsive adjustments */
    .hero .btn {
        padding: 1rem 2.5rem;
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    section { padding: 3rem 0; }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    .hero {
        min-height: 600px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-content {
        padding: 2rem;
    }
    
    .hero-details {
        gap: 1.5rem;
    }
    
    .detail-item {
        min-width: 150px;
    }
    
    .detail-item i {
        font-size: 2rem;
    }
    
    .detail-text {
        font-size: 1rem;
    }
    
    /* Button responsive adjustments */
    .hero .btn {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }
    
    .price-tag {
        font-size: 4rem;
    }
    
    /* Removed .slide height here as it's now controlled by the parent ratio */
}

@media (max-width: 576px) {
    .container {
        padding: 0 1.5rem;
    }
    
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    
    .hero {
        min-height: 500px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-content {
        padding: 1.5rem;
    }
    
    .hero-details {
        flex-direction: column;
        gap: 2rem;
    }
    
    .detail-item {
        min-width: auto;
        width: 100%;
    }
    
    /* Button responsive adjustments */
    .hero .btn {
        padding: 0.8rem 1.8rem;
        font-size: 0.95rem;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        display: block;
    }
    
    .price-tag {
        font-size: 3.5rem;
    }
    
    .price-details {
        gap: 1.5rem;
    }
    
    .icons-grid {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        min-height: 300px;
    }
}