/* * SRI LANKA TOUR SITE STYLES (Jungle & Saffron Theme) 
 * Designed for responsiveness and modern aesthetics.
 */

/* --- 1. Global Variables & Reset --- */
:root {
    --color-primary: #1e3a24; /* Deep Jungle Green (Text, Headers) */
    --color-secondary: #ffb703; /* Bright Saffron Gold (Accents, CTAs) */
    --color-accent-light: #fefae0; /* Off-White Sand (Background) */
    --color-card-bg: #ffffff; /* Pure White (Card Background) */
    --color-text-dark: #333333;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --shadow-subtle: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-deep: 0 10px 20px rgba(0, 0, 0, 0.15);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}



/* --- 2. Base Typography & Body --- */
body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--color-text-dark);
    background-color: var(--color-accent-light);
    padding-top: 80px; /* Space for fixed header */
   /* Style for video background */

}


main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1, h2, h3 {
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p { margin-bottom: 1rem; }

hr {
    border: none;
    height: 1px;
    background-color: rgba(30, 58, 36, 0.1); /* Light Primary color */
    margin: 40px 0;
}



/* --- 3. Header and Navigation --- */
.video-background video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}


header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-primary);
    color: var(--color-card-bg);
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-deep);
    z-index: 1000;
}

header h1 {
    color: var(--color-secondary);
    font-size: 1.8rem;
    margin: 0;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li a {
    text-decoration: none;
    color: var(--color-card-bg);
    padding: 10px 15px;
    font-weight: 500;
    transition: color 0.3s, background-color 0.3s;
    border-radius: 6px;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--color-primary);
    background-color: var(--color-secondary);
}
/* ✅ Hide the hamburger by default (desktop) */
.menu-icon {
  display: none;
  font-size: 28px;
  color: white;
  cursor: pointer;
}

/* ✅ Mobile view: show hamburger, hide nav links */
@media (max-width: 768px) {
  nav ul {
    display: none;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.85);
    width: 100%;
    text-align: center;
  }

  nav ul.show {
    display: flex; /* show menu when icon clicked */
  }

  .menu-icon {
    display: block; /* show ☰ on small screens */
  }

  nav ul li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }
}

/* --- 4. Hero and Title Sections --- */
.products-hero, .about-hero {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--color-accent-light), #e8e8d5);
    border-radius: 12px;
    margin-bottom: 30px;
}

.products-hero h1, .about-hero h1 {
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.tagline {
    font-size: 1.2rem;
    color: var(--color-text-dark);
    font-style: italic;
}

/* --- 5. Call to Action Buttons --- */
.cta-button {
    display: inline-block;
    padding: 10px 25px;
    margin-top: 15px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s;
}

.primary-cta, .cta-button {
    background-color: var(--color-secondary);
    color: var(--color-primary);
    box-shadow: 0 4px 10px rgba(255, 183, 3, 0.4);
}

.cta-button:hover, .primary-cta:hover {
    background-color: #ffc94d;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 183, 3, 0.6);
}

.secondary {
    background-color: var(--color-primary);
    color: var(--color-card-bg);
    border: 2px solid var(--color-primary);
    box-shadow: none;
}

.secondary:hover {
    background-color: #3b6d44;
    transform: translateY(-2px);
}


/* ========================================= */
/* --- 6. PRODUCTS PAGE SPECIFIC STYLES --- */
/* ========================================= */
.tour-category {
    margin-bottom: 50px;
}

.tour-category h2 {
    color: var(--color-primary);
    border-bottom: 3px solid var(--color-secondary);
    padding-bottom: 10px;
    margin-bottom: 30px;
    display: inline-block;
}
.tour-image img{
    width: 100%;
    height: 400%;
    object-fit: cover;
    border-radius: 10px; 
    margin-bottom: 10px;
    border: 3px solid var(--color-primary);
}

/*here
/* --- Product Image / Slider Styling --- */
.product-image {
  position: relative;
  width: 100%;
  height: 200px; /* adjust height as needed */
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Slides container */
.product-image .slides {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Individual images */
.product-image .slides img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height:AUTO;
  object-fit: cover;
  border-radius: 15px;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 0;
}

/* Active image */
.product-image .slides img.active {
  opacity: 1;
  z-index: 1;
}

/* Navigation buttons */
.product-image .prev,
.product-image .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  transition: background 0.5s;
  z-index: 2;
}

.product-image .prev:hover,
.product-image .next:hover {
  background: rgba(0,0,0,0.8);
}

.product-image .prev { left: 10px; }
.product-image .next { right: 10px; }

/* Fade animation for smooth transition */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.product-details {
    flex-grow: 1;
}

.product-details h3 {
    color: var(--color-secondary); /* Highlight tour titles */
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.product-details .route {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 1rem;
    font-style: italic;
}

.product-details .summary {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.product-details .features {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1rem;
}

.product-details .features li {
    background-color: rgba(30, 58, 36, 0.05); /* Light green background for features */
    padding: 5px 10px;
    margin-bottom: 5px;
    border-radius: 4px;
    font-size: 0.95rem;
}

.flexibility-note {
    background-color: #fce8a6; /* Light saffron background */
    border: 2px dashed var(--color-secondary);
    padding: 20px;
    margin: 30px 0;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
}

.custom-tour-promo {
    background-color: var(--color-primary);
    color: var(--color-card-bg);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    margin-top: 50px;
}

.custom-tour-promo h2 {
    color: var(--color-secondary);
    margin-bottom: 15px;
}

.custom-tour-promo .highlight-text {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
}

/* ============================== */
/* --- Search Bar Styling --- */
/* ============================== */

.tour-search {
  text-align: center;
  margin: 40px auto;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 12px;
  box-shadow: var(--shadow-subtle);
  max-width: 700px;
}

.tour-search h2 {
  color: var(--color-primary);
  margin-bottom: 15px;
}

#tourSearchInput {
  width: 90%;
  max-width: 500px;
  padding: 12px 15px;
  border: 2px solid var(--color-secondary);
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#tourSearchInput:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}


/* ========================================= */
/* --- 7. ABOUT US PAGE SPECIFIC STYLES --- */
/* ========================================= */

.mission-vision {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.mission-vision > div {
    flex: 1;
    padding: 30px;
    border-radius: 10px;
    background-color: var(--color-card-bg);
    box-shadow: var(--shadow-subtle);
    border-top: 5px solid var(--color-secondary);
}

.our-history .history-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.founder-img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 50%; /* Circular image */
    border: 5px solid var(--color-secondary);
    flex-shrink: 0;
}

.our-team {
    text-align: center;
}

.team-members {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.team-member-card {
    background-color: var(--color-card-bg);
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow-subtle);
    width: 250px;
    text-align: center;
    transition: transform 0.3s ease;
}

.team-member-card:hover {
    transform: scale(1.05);
}

.team-member-card img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 3px solid var(--color-primary);
}

.team-member-card .role {
    color: var(--color-secondary);
    font-weight: 600;
    margin-bottom: 10px;
}


/* --- 8. Footer --- */
footer {
    background-color: var(--color-primary);
    color: #cccccc;
    text-align: center;
    padding: 20px;
    margin-top: 50px;
}

footer a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: #ffffff;
}

/* --- 9. Responsive Design (Mobile Optimization) --- */
@media (max-width: 900px) {
    
    /* PRODUCTS PAGE: Stack cards vertically */
    .product-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 20px;
    }

    .product-image {
        width: 100%;
        max-height: 250px;
    }

    /* ABOUT PAGE: Stack sections vertically */
    .mission-vision {
        flex-direction: column;
    }

    .our-history .history-content {
        flex-direction: column;
        text-align: center;
    }
    
    .founder-img {
        width: 200px;
        height: 200px;
    }

    /* GENERAL: Adjust Padding */
    header {
        padding: 15px 20px;
    }
    
    nav ul {
        display: none; /* Hide navigation on small screens for simplicity */
    }

    header {
        justify-content: center; /* Center logo when nav is hidden */
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    
    main {
        padding: 10px;
    }
}
/* from here */
 

    .slideshow {
  width: 600px;
  height: 400px;
  overflow: hidden;
  position: relative;
  margin: auto;
}

.slides {
  display: flex;
  width: 2400px; /* 4 images × 600px */
  position: absolute;
  animation: slide 20s infinite;
  animation-timing-function: ease-in-out;
}

.slides img {
  width: 600px;
  height: 400px;
  object-fit: cover;
}

@keyframes slide {
  0%   { transform: translateX(0); }
  25%  { transform: translateX(-600px); }
  50%  { transform: translateX(-1200px); }
  75%  { transform: translateX(-1800px); }
  100% { transform: translateX(0); }
}

section, article {
  background: #fff;
  padding: 45px;
  margin: 20px 0;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

section:hover, article:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}


/* ===== Contact Section ===== */
.contact {
    padding: 80px 50px;
    max-width: 1000px;
    margin: auto;
    text-align: center;
}
.contact h2 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    margin-bottom: 20px;
}
.contact p {
    font-size: 18px;
    margin-bottom: 50px;
}
.contact-container {
    display: flex;
    justify-content: space-between;
    gap: 50px;
    flex-wrap: wrap;
    text-align: left;
}
.contact-info {
    flex: 1;
    min-width: 250px;
}
.contact-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    margin-bottom: 10px;
}
.contact-info p {
    font-size: 16px;
    margin-bottom: 20px;
}
.contact-form {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.contact-form input,
.contact-form textarea {
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 16px;
}
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #1E3A8A;
    outline: none;
}
.contact-form button {
    background-color: #1E3A8A;
    color: white;
    border: none;
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px;
    transition: background 0.3s;
}
.contact-form button:hover {
    background-color: #16325c;
}
/* ===================================== */
/* --- /* Thank You Page */ --- */
/* ===================================== */

.thankyou-page {
  max-width: 600px;
  margin: 100px auto;
  background-color: #fff;
  padding: 50px;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow-deep);
}

.thankyou-page h1 {
  color: var(--color-primary);
  margin-bottom: 15px;
}

.thankyou-page p {
  color: #555;
  margin-bottom: 25px;
}

.booking-container {
  max-width: 800px;
  margin: 50px auto;
  background-color: #ffffff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: var(--shadow-deep);
}

.booking-container h1 {
  text-align: center;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.booking-container p {
  text-align: center;
  color: #555;
  margin-bottom: 30px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

label {
  font-weight: 600;
  color: var(--color-secondary);
}

input,
select,
textarea {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.form-group {
  display: flex;
  flex-direction: column;
}

button {
  background-color: var(--color-primary);
  color: white;
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: var(--color-secondary);
}

.back-link {
  display: inline-block;
  margin-top: 20px;
  text-decoration: none;
  color: var(--color-secondary);
  font-weight: 600;
}

.back-link:hover {
  text-decoration: underline;
}

/* Responsive layout for smaller screens */
@media (max-width: 600px) {
  .booking-container {
    padding: 25px;
    margin: 30px 15px;
  }

  input, select, textarea {
    font-size: 0.95rem;
  }

  button {
    font-size: 0.95rem;
  }
}


