/* GLOBAL RESET & VARIABLES */
* {
  box-sizing: border-box; /* Me line eken thama padding eliyata panina eka nawattanne */
  margin: 0;
  padding: 0;
}

:root {
  --primary-dark: #011e36;
  --secondary-dark: #001221;
  --accent-orange: #FF9F1C;
  --text-light: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.7);
}

html, body {
  overflow-x: hidden; /* Prevent horizontal scroll */
  width: 100%;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--secondary-dark);
  color: var(--text-light);
  scroll-behavior: smooth;
}

a { text-decoration: none; }
ul { list-style: none; }

/* UTILITY CLASSES */
.container-full {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 5%;
  position: relative;
  z-index: 2;
  box-sizing: border-box; /* Important for mobile padding */
}

/* Fix: Removed the buggy 100vw hack, now sections are naturally 100% wide */
section { 
    width: 100%; 
    padding: 100px 0; 
    position: relative; 
    box-sizing: border-box; 
}

.bg-alt { background: var(--primary-dark); border-top: 1px solid rgba(255, 255, 255, 0.05); }

.section-header { text-align: center; max-width: 750px; margin: 0 auto 50px auto; }
.tour-section-subtitle { display: inline-block; color: var(--accent-orange); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 15px; }
.tour-section-title { font-size: 40px; font-weight: 800; line-height: 1.2; margin: 0 0 15px 0; }
.tour-text-orange { color: var(--accent-orange); }
.section-desc { color: var(--text-muted); font-size: 16px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

/* HEADER & NAV */
.tour-header { position: fixed; top: 0; left: 0; width: 100%; background: linear-gradient(180deg, rgba(1,30,54,0.9) 0%, rgba(1,30,54,0) 100%); z-index: 9999; padding: 20px 0; transition: all 0.3s ease; }
.tour-header.scrolled { background: var(--primary-dark); padding: 12px 0; box-shadow: 0 5px 20px rgba(0,0,0,0.5); border-bottom: 1px solid rgba(255,159,28,0.2); }
.tour-header-container { max-width: 1300px; margin: 0 auto; padding: 0 5%; display: flex; justify-content: space-between; align-items: center; }
.tour-logo img { height: 50px; transition: 0.3s; border-radius: 50%; }
.tour-header.scrolled .tour-logo img { height: 40px; }

.tour-nav ul { display: flex; gap: 30px; }
.tour-nav a { color: var(--text-light); font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; transition: 0.3s; }
.tour-nav a:hover { color: var(--accent-orange); }

.tour-btn-whatsapp { background: #25D366; color: #fff; padding: 12px 25px; font-size: 15px; font-weight: 700; border-radius: 5px; display: flex; align-items: center; justify-content: center; gap: 8px; transition: 0.3s; border: none; cursor: pointer; text-transform: uppercase;}
.tour-btn-whatsapp svg { width: 20px; height: 20px; }
.tour-btn-whatsapp:hover { background: #fff; color: #128C7E; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(37,211,102,0.3); }

/* MOBILE MENU */
.tour-hamburger { display: none; flex-direction: column; gap: 6px; cursor: pointer; z-index: 10000; }
.tour-hamburger span { width: 30px; height: 3px; background: #fff; transition: 0.3s; border-radius: 3px; }
.tour-mobile-menu { position: fixed; top: 0; right: -100%; width: 300px; height: 100vh; background: var(--primary-dark); z-index: 9998; display: flex; flex-direction: column; justify-content: center; align-items: center; transition: 0.4s; box-shadow: -10px 0 30px rgba(0,0,0,0.5); }
.tour-mobile-menu.active { right: 0; }
.mobile-nav-list li { margin-bottom: 25px; text-align: center; }
.mobile-link { color: #fff; font-size: 20px; font-weight: 600; text-transform: uppercase; }

/* HERO SECTION */
.tour-hero { height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; position: relative; padding: 0; }
.hero-bg { position: absolute; top:0; left:0; width:100%; height:100%; z-index: 1; }
.hero-content { position: relative; z-index: 2; max-width: 800px; padding: 0 20px;}
.hero-content h1 { font-size: 60px; font-weight: 800; margin-bottom: 20px; line-height: 1.1; }
.hero-content p { font-size: 20px; color: #ddd; }

/* ANIMATED CARDS (Packages, Vehicles, Reviews) */
.tour-packages { background: var(--secondary-dark); }
.tour-vehicles { background: var(--primary-dark); border-top: 1px solid rgba(255,255,255,0.05); }
.tour-reviews { background: var(--secondary-dark); border-top: 1px solid rgba(255,255,255,0.05); }

.card { position: relative; background: var(--primary-dark); border-radius: 15px; padding: 2px; overflow: hidden; transition: 0.4s; }
.animated-border { position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: conic-gradient(transparent, transparent, transparent, var(--accent-orange)); animation: rotateBorder 4s linear infinite; z-index: 1; opacity: 0; transition: 0.3s; }
.card:hover .animated-border { opacity: 1; }
@keyframes rotateBorder { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.card-inner { position: relative; background: var(--primary-dark); border-radius: 14px; z-index: 2; height: 100%; display: flex; flex-direction: column; overflow: hidden; }
.review-pad { padding: 40px 30px; }

.img-wrapper { position: relative; height: 250px; overflow: hidden; }
.img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: 0.6s; }
.card:hover .img-wrapper img { transform: scale(1.1); }
.badge { position: absolute; top: 15px; left: 15px; background: var(--accent-orange); color: var(--primary-dark); padding: 5px 12px; font-size: 11px; font-weight: 800; text-transform: uppercase; border-radius: 4px; z-index: 3; }

.content { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; }
.meta { font-size: 13px; color: var(--accent-orange); font-weight: 600; margin-bottom: 10px; }
.title { font-size: 22px; margin: 0 0 10px 0; }
.desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 20px; flex-grow: 1; }

.book-btn { width: 100%; background: transparent; color: var(--accent-orange); border: 1.5px solid var(--accent-orange); padding: 12px; font-size: 13px; font-weight: 700; border-radius: 6px; cursor: pointer; text-transform: uppercase; transition: 0.3s; }
.book-btn:hover { background: var(--accent-orange); color: var(--primary-dark); }

/* REVIEWS SPECIFIC (Fixed Image Squashing) */
.r-stars { color: var(--accent-orange); font-size: 14px; margin-bottom: 15px; }
.r-text { font-size: 15px; color: var(--text-muted); font-style: italic; margin-bottom: 30px; flex-grow: 1; line-height: 1.7;}
.r-user { display: flex; align-items: center; gap: 15px; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 15px; }

.r-user img { 
    width: 50px; 
    height: 50px; 
    border-radius: 50%; 
    border: 2px solid var(--accent-orange); 
    object-fit: cover;
    flex-shrink: 0; /* FIX: Me line eken thama image eka kapena/hirawena eka nawattanne */
}

.r-user-info h4 { margin: 0; font-size: 15px; }
.r-user-info span { color: var(--accent-orange); font-size: 11px; text-transform: uppercase; }

/* CONTACT SECTION */
.tour-contact { background: var(--primary-dark); border-top: 1px solid rgba(255,255,255,0.05); }
.contact-wrapper { display: flex; gap: 60px; align-items: center; }
.contact-info-side { flex: 1; }
.contact-form-side { flex: 1; position: relative; padding: 2px; border-radius: 20px; overflow: hidden; width: 100%; }
.form-inner { position: relative; background: var(--secondary-dark); border-radius: 18px; z-index: 2; padding: 40px; }
.form-title { font-size: 24px; margin-bottom: 25px; border-left: 4px solid var(--accent-orange); padding-left: 15px; }
.tour-form { display: flex; flex-direction: column; gap: 15px; }
.input-row { display: flex; gap: 15px; width: 100%; }
.tour-form input, .tour-form select, .tour-form textarea { width: 100%; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); padding: 15px; border-radius: 8px; color: #fff; outline: none; transition: 0.3s; box-sizing: border-box;}
.tour-form input:focus, .tour-form select:focus, .tour-form textarea:focus { border-color: var(--accent-orange); }
.f-submit-btn { width: 100%; background: var(--accent-orange); color: var(--primary-dark); border: none; padding: 15px; border-radius: 8px; font-weight: 800; cursor: pointer; text-transform: uppercase; transition: 0.3s; }
.f-submit-btn:hover { background: #fff; }

/* FOOTER */
.tour-footer { background: #000a12; padding: 60px 5% 20px 5%; border-top: 1px solid rgba(255,255,255,0.05); width: 100%; box-sizing: border-box; }
.footer-container { max-width: 1300px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-logo { height: 60px; margin-bottom: 20px; border-radius: 50%;}
.footer-brand p { color: var(--text-muted); font-size: 14px; line-height: 1.6; }
.footer-links h4, .footer-contact-info h4 { margin-bottom: 20px; font-size: 18px; }
.footer-links a, .footer-contact-info li { color: var(--text-muted); font-size: 14px; margin-bottom: 10px; display: block; transition: 0.3s; }
.footer-links a:hover { color: var(--accent-orange); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 20px; text-align: center; color: rgba(255,255,255,0.3); font-size: 13px; }

/* SCROLL ANIMATIONS */
.scroll-reveal { opacity: 0; transform: translateY(40px); transition: 0.8s ease-out; }
.scroll-reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* ================= MOBILE RESPONSIVE FIXES ================= */
@media (max-width: 991px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .tour-nav, .tour-header-action { display: none; }
  .tour-hamburger { display: flex; }
  .contact-wrapper { flex-direction: column; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .hero-content h1 { font-size: 45px; }
}

@media (max-width: 767px) {
  section { padding: 60px 0; } /* Reduce padding on mobile */
  .grid-3 { grid-template-columns: 1fr; } /* Stacks cards nicely */
  .animated-border { opacity: 1; animation-duration: 6s; }
  .input-row { flex-direction: column; } /* Stacks form inputs */
  .footer-top { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 38px; }
  .tour-section-title { font-size: 32px; }
}