/* QAds AI – style.css | Dark cinematic | Syne + DM Sans | Gold accent */

/* Variables */
:root { --bg: #0a0a0a; --surface: #111111; --surface2: #181818; --gold: #f0a500; --gold-light: #ffc53d; --gold-dim: rgba(240,165,0,0.15); --text: #f0f0f0; --muted: #888; --border: rgba(255,255,255,0.07); --radius: 6px; --nav-h: 64px; --transition: 0.35s cubic-bezier(0.4,0,0.2,1); }

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: 'DM Sans', sans-serif; font-size: 16px; line-height: 1.6; overflow-x: hidden; }
h1, h2, h3, h4 { font-family: 'Syne', sans-serif; letter-spacing: -0.02em; font-weight: 800; line-height: 1.15; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }
img, video { display: block; max-width: 100%; }

/* Navbar */
#mainNav { background: rgba(10,10,10,0.85); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid var(--border); height: var(--nav-h); transition: background var(--transition), box-shadow var(--transition); z-index: 1000; }
#mainNav.scrolled { background: rgba(10,10,10,0.97); box-shadow: 0 4px 32px rgba(0,0,0,0.5); }
.nav-logo { height: 42px; width: auto; object-fit: contain; filter: brightness(1); transition: filter var(--transition); }
.nav-logo:hover { filter: brightness(1.15); }

/* Enquire Button */
.btn-enquire { display: inline-flex; align-items: center; gap: 7px; background: var(--gold); color: #0a0a0a !important; font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.88rem; letter-spacing: 0.04em; padding: 8px 20px; border-radius: 50px; border: none; white-space: nowrap; transition: transform var(--transition), box-shadow var(--transition), background var(--transition); text-decoration: none; }
.btn-enquire:hover { background: var(--gold-light); transform: translateY(-1px); box-shadow: 0 6px 24px rgba(240,165,0,0.4); color: #0a0a0a !important; }
.btn-enquire i { font-size: 1rem; color: #0a0a0a; }
@media (max-width: 360px) { .btn-enquire span { display: none; } .btn-enquire { padding: 8px 12px; } .btn-enquire i { font-size: 1.3rem; } }

/* Hero */
#hero { min-height: 100vh; padding-top: var(--nav-h); display: flex; align-items: center; justify-content: center; text-align: center; position: relative; overflow: hidden; background: var(--bg); }
#hero::before { content: ''; position: absolute; inset: -50%; background: radial-gradient(ellipse 60% 50% at 20% 40%, rgba(240,165,0,0.12) 0%, transparent 60%), radial-gradient(ellipse 50% 60% at 80% 60%, rgba(240,165,0,0.08) 0%, transparent 60%), radial-gradient(ellipse 40% 40% at 50% 10%, rgba(255,255,255,0.03) 0%, transparent 60%); animation: meshDrift 12s ease-in-out infinite alternate; pointer-events: none; }
#hero::after { content: ''; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E"); opacity: 0.4; pointer-events: none; }
.hero-inner { position: relative; z-index: 1; padding: 60px 20px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: var(--gold-dim); border: 1px solid rgba(240,165,0,0.3); color: var(--gold); font-family: 'Syne', sans-serif; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 16px; border-radius: 50px; margin-bottom: 28px; opacity: 0; animation: fadeUp 0.7s 0.2s forwards; }
.hero-eyebrow .dot { width: 6px; height: 6px; background: var(--gold); border-radius: 50%; animation: pulse 1.5s infinite; }
.hero-title { font-size: clamp(2.4rem, 6vw, 5rem); font-weight: 800; color: var(--text); margin-bottom: 20px; opacity: 0; animation: fadeUp 0.7s 0.4s forwards; }
.hero-title .accent { color: var(--gold); }
.hero-subtitle { font-size: clamp(1rem, 2vw, 1.2rem); color: var(--muted); max-width: 600px; margin: 0 auto 36px; font-weight: 300; opacity: 0; animation: fadeUp 0.7s 0.6s forwards; }
.hero-cta { opacity: 0; animation: fadeUp 0.7s 1s forwards; }

/* Buttons */
.btn-primary-gold { display: inline-flex; align-items: center; gap: 8px; background: var(--gold); color: #0a0a0a; font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.95rem; letter-spacing: 0.04em; padding: 13px 30px; border-radius: 50px; border: none; transition: transform var(--transition), box-shadow var(--transition), background var(--transition); }
.btn-primary-gold:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 10px 40px rgba(240,165,0,0.4); color: #0a0a0a; }
.btn-outline-gold { display: inline-flex; align-items: center; gap: 8px; background: transparent; color: var(--gold); font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.95rem; letter-spacing: 0.04em; padding: 12px 28px; border-radius: 50px; border: 1.5px solid var(--gold); transition: all var(--transition); }
.btn-outline-gold:hover { background: var(--gold-dim); color: var(--gold-light); transform: translateY(-2px); }

/* Scroll Hint */
.scroll-hint { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; opacity: 0.4; animation: fadeIn 1s 1.5s forwards; }
.scroll-hint span { font-size: 0.7rem; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; }
.scroll-arrow { animation: bounce 2s infinite; }

/* Video Grid Section */
#video-grid-section { padding: 80px 0 60px; background: var(--bg); }
.section-label { font-family: 'Syne', sans-serif; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.section-title { font-size: clamp(1.8rem, 4vw, 3rem); color: var(--text); margin-bottom: 12px; }

/* Instagram Grid */
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; background: #000; }
@media (min-width: 992px) { .ig-grid { gap: 4px; } }
@media (max-width: 575px) { .ig-grid { gap: 2px; } }
.ig-cell { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--surface); cursor: pointer; }
.ig-cell video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; background: #000; z-index: 1; display: block; }
.ig-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 50%); opacity: 0; transition: opacity var(--transition); z-index: 3; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 10px; }
.ig-play-icon { color: #fff; font-size: 2.2rem; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); opacity: 0; transition: opacity var(--transition), transform var(--transition); filter: drop-shadow(0 2px 8px rgba(0,0,0,0.6)); z-index: 4; pointer-events: none; }
.ig-badge { position: absolute; bottom: 6px; right: 8px; background: rgba(0,0,0,0.5); color: #fff; font-size: 0.65rem; font-family: 'Syne', sans-serif; font-weight: 700; padding: 2px 6px; border-radius: 4px; opacity: 0; transition: opacity var(--transition); z-index: 4; pointer-events: none; }
.ig-cell:hover video { transform: scale(1.05); }
.ig-cell:hover .ig-overlay { opacity: 1; }
.ig-cell:hover .ig-play-icon { opacity: 1; transform: translate(-50%,-50%) scale(1.1); }
.ig-cell:hover .ig-badge { opacity: 1; }
.ig-cell.loading::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--surface) 25%, var(--surface2) 50%, var(--surface) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; z-index: 1; }
.ig-cell.vid-error { cursor: default; }
.ig-cell.vid-error .ig-placeholder { background: #1a0a0a; opacity: 1 !important; }
.ig-cell.vid-error:hover .ig-overlay, .ig-cell.vid-error:hover .ig-play-icon { opacity: 0; }
.ig-placeholder { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: var(--surface2); transition: opacity 0.4s ease; pointer-events: none; }
.ig-cell:has(video) .ig-placeholder { opacity: 0; }
.ig-placeholder i { font-size: 1.8rem; color: var(--gold); opacity: 0.5; }
.ig-placeholder-label { font-family: 'Syne', sans-serif; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; text-align: center; padding: 0 6px; line-height: 1.3; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ig-video-label { font-family: 'Syne', sans-serif; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.06em; color: #fff; text-transform: uppercase; text-align: center; padding: 0 8px; text-shadow: 0 1px 4px rgba(0,0,0,0.8); }

/* Modal */
#videoModal .modal-content { background: #000; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
#videoModal .modal-header { background: #000; border-bottom: 1px solid var(--border); padding: 12px 16px; }
#videoModal .modal-title { font-family: 'Syne', sans-serif; font-size: 0.95rem; color: var(--gold); }
#videoModal .btn-close { filter: invert(1); opacity: 0.7; }
#videoModal .modal-body { padding: 0; background: #000; display: flex; align-items: center; justify-content: center; }
#modalVideo { width: 100%; max-height: 80vh; object-fit: contain; background: #000; }

/* Footer */
#site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 32px 0; }
.footer-logo { height: 36px; width: auto; object-fit: contain; filter: brightness(0.85); }
.footer-tagline { font-family: 'Syne', sans-serif; font-size: 0.85rem; color: var(--gold); font-weight: 600; letter-spacing: 0.06em; }
.footer-copy{ font-size: 0.8rem; color: var(--muted); }

/* Scroll To Top */
#scrollTop { position: fixed; bottom: 28px; right: 24px; width: 44px; height: 44px; background: var(--gold); color: #000; border: none; border-radius: 50%; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 999; opacity: 0; transform: translateY(20px); transition: opacity 0.3s, transform 0.3s, background 0.2s; box-shadow: 0 4px 20px rgba(240,165,0,0.35); }
#scrollTop.show { opacity: 1; transform: translateY(0); }
#scrollTop:hover { background: var(--gold-light); }

/* Fade-up reveal */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* Utility */
.text-gold { color: var(--gold) !important; }

/* Keyframes */
@keyframes meshDrift { from { transform: scale(1) rotate(0deg); } to { transform: scale(1.08) rotate(3deg); } }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.7); } }
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 0.4; } }