/* css/style.css */

/* ---- Variables ---- */
:root{
  --bg-1: #0f2027;
  --bg-2: #203a43;
  --bg-3: #2c5364;
  --accent: #f9d423;
  --accent2: #ff4e50;
  --text: #eef2f3;
  --muted: #cfcfcf;
  --container: 1100px;
  --radius: 12px;
  --glass: rgba(255,255,255,0.04);
  --glass-2: rgba(255,255,255,0.06);
}

/* ---- Reset/Base ---- */
*{box-sizing: border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  color:var(--text);
  background: linear-gradient(180deg,var(--bg-1) 0%,var(--bg-2) 50%,var(--bg-3) 100%);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.6;
  min-height:100vh;
}

/* ---- Layout Container ---- */
.container{
  max-width:var(--container);
  margin:0 auto;
  padding:0 20px;
}

/* ---- Header ---- */
.site-header{
  position:sticky;top:0;z-index:999;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);
  border-bottom:1px solid rgba(255,255,255,0.03);
}
.header-inner{
  display:flex;align-items:center;justify-content:space-between;
  padding:14px 0;
}
.logo{
  color:var(--accent2);
  font-weight:700;font-size:1.35rem;
  text-decoration:none;
}
.nav{
  display:flex;gap:18px;align-items:center;
}
.nav a{
  color:var(--text);text-decoration:none;font-weight:600;padding:8px;border-radius:8px;
}
.nav a.active, .nav a:focus, .nav a:hover{
  background:var(--glass);color:var(--accent);
}
.menu-toggle{
  display:none;background:none;border:0;color:var(--text);font-size:1.5rem;padding:6px;
}

/* ---- Hero ---- */
.hero{
  position:relative;margin-top:12px;
}
.hero img{
  width:100%;height:420px;object-fit:cover;border-radius:14px;display:block;filter:brightness(0.72);
}
.hero-text{
  position:absolute;left:32px;bottom:32px;padding:18px 22px;border-radius:12px;background:rgba(0,0,0,0.55);
  max-width:60%;
}
.hero-text h2{margin-bottom:6px;color:var(--accent);font-size:1.6rem}
.hero-text p{color:var(--muted);margin:0}

/* ---- Sections ---- */
.section{
  margin:28px 0;padding:28px;background:var(--glass-2);border-radius:var(--radius);
  box-shadow:0 8px 24px rgba(0,0,0,0.28);
}
.section h3{color:var(--accent);margin-bottom:12px}
.section p, .section li{color:var(--text)}

/* ---- Attraction list ---- */
.attraction-list{list-style: none;padding-left:0;display:grid;gap:10px}
.attraction-list li{background:rgba(0,0,0,0.18);padding:12px;border-radius:8px}

/* ---- Gallery ---- */
.gallery-grid{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;
}
.gallery-grid img{width:100%;height:160px;object-fit:cover;border-radius:10px;cursor:pointer;transition:transform .25s}
.gallery-grid img:hover{transform:scale(1.03)}


/* ---- Lightbox ---- */
.lightbox{
  position:fixed;inset:0;background:rgba(0,0,0,0.85);display:flex;align-items:center;justify-content:center;z-index:2000;padding:20px;
}
.lightbox img{max-width:90%;max-height:80%;border-radius:10px;box-shadow:0 8px 40px rgba(0,0,0,.6)}
.lightbox .close{position:absolute;top:20px;right:20px;background:var(--accent2);border:none;padding:8px 10px;border-radius:8px;font-weight:700}

/* ---- Forms ---- */
.feedback-form, .contact-form, .register-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Label */
.feedback-form, .contact-form label {
  font-weight: 600;
  color: var(--accent);
}

/* Input & Textarea */
.feedback-form input,
.feedback-form textarea,
.contact-form input,
.contact-form textarea {
  padding: 10px;
  border-radius: 8px;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  outline: none;
  font-size: 1rem;
  width: 100%;        /* Panjang penuh container */
  max-width: 700px;   /* Kawal maksimum panjang */
}

/* Tinggikan textarea */
.feedback-form textarea,
.contact-form textarea {
  height: 150px;
  resize: vertical; /* boleh resize ke bawah sahaja */
}

/* Dua column dalam satu row */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Untuk mobile jadi 1 column */
@media(max-width: 720px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}



/* ---- Buttons ---- */
.btn{
  display:inline-block;padding:10px 14px;border-radius:8px;border:0;font-weight:700;cursor:pointer;
  
}
.btn-primary{background:var(--accent2);color:white}
.btn-ghost{background:transparent;border:1px solid rgba(255,255,255,0.06);color:var(--text)}

/* ---- Footer ---- */
.site-footer{padding:18px 0;text-align:center;color:#cfcfcf;font-size:.95rem;background:rgba(0,0,0,0.45);border-top:1px solid rgba(255,255,255,0.02);margin-top:20px}
.footer-meta{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}

/* ---- Utilities ---- */
.badge{background:var(--accent);color:#111;padding:6px 8px;border-radius:8px;font-weight:700}
.small{font-size:.92rem;color:var(--muted)}

/* ---- Responsive ---- */
@media(max-width:800px){
  .nav{display:none;flex-direction:column;position:absolute;right:16px;top:64px;background:rgba(0,0,0,0.95);padding:12px;border-radius:10px}
  .menu-toggle{display:block}
  .hero img{height:260px}
  .hero-text{position:static;margin:10px;border-radius:10px;max-width:100%}
}

/* ---- Accessibility focus ---- */
a:focus, button:focus, input:focus, textarea:focus{
  outline:3px solid rgba(249,212,35,0.18);outline-offset:2px;border-radius:8px;
}

/* ---- Small screens adjust ---- */
@media(max-width:420px){
  .hero-text h2{font-size:1.1rem}
  .hero-text p{font-size:.92rem}
}

/* === Video Section === */
.video-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.video-section video {
  width: 250px;  /* portrait width */
  height: 450px; /* portrait height */
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
  .video-section video {
    width: 45%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .video-section video {
    width: 90%;
    height: auto;
  }
}

