/* ============================
   DEMO 16: NEXT-GEN LUXURY (GLASSMORPHISM) - DETAILED
   ============================ */

   :root {
    --bg-dark: #070913;
    --primary-glow: #7b42ff;
    --secondary-glow: #00d2ff;
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-muted: #8b9bb4;
    
    --font-heading: 'Syncopate', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--bg-dark);
    color: var(--text-muted);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Glowing Animated Background Orbs */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.5;
    animation: float 25s infinite alternate ease-in-out;
}
.orb-1 { width: 500px; height: 500px; background: var(--primary-glow); top: -100px; left: -100px; }
.orb-2 { width: 600px; height: 600px; background: var(--secondary-glow); bottom: -200px; right: -100px; animation-delay: -5s; }
.orb-3 { width: 400px; height: 400px; background: #ff007b; top: 40%; left: 30%; opacity: 0.2; animation-delay: -10s; }

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(150px, 200px) scale(1.3); }
}

h1, h2, h3, h4, .logo, .sync-title {
    font-family: var(--font-heading);
    color: var(--text-main);
    text-transform: uppercase;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }

.text-center { text-align: center; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-4 { margin-top: 2rem; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }
.container-fluid { width: 100%; padding: 0 5%; }

/* Glassmorphism Utility */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Preloader */
#preloader { position: fixed; inset: 20px; display: flex; flex-direction: column; justify-content: center; align-items: center; z-index: 9999; transition: opacity 1s ease, visibility 1s; }
.loader-ring { width: 60px; height: 60px; border: 2px solid transparent; border-top-color: var(--secondary-glow); border-right-color: var(--primary-glow); border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 20px; }
.loader-text { font-family: var(--font-heading); color: var(--text-main); letter-spacing: 4px; font-size: 0.8rem; }
@keyframes spin { 100% { transform: rotate(360deg); } }

/* Navbar */
.navbar { position: fixed; top: 20px; left: 5%; right: 5%; padding: 15px 30px; z-index: 1000; border-radius: 100px; background: rgba(11, 15, 25, 0.4); backdrop-filter: blur(10px); border: 1px solid var(--glass-border); transition: 0.4s; }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.2rem; letter-spacing: 3px; background: linear-gradient(90deg, var(--text-main), var(--secondary-glow)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.nav-links { display: flex; align-items: center; gap: 25px; }
.nav-links a:not(.btn-glow) { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 500; color: var(--text-muted); }
.nav-links a:not(.btn-glow):hover { color: var(--text-main); }

.btn-glow { background: linear-gradient(45deg, var(--primary-glow), var(--secondary-glow)); color: #fff !important; padding: 10px 25px; border-radius: 100px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; border: none; cursor: pointer; box-shadow: 0 0 15px rgba(0, 210, 255, 0.4); transition: 0.4s; }
.btn-glow:hover { box-shadow: 0 0 25px rgba(123, 66, 255, 0.6); transform: translateY(-2px); }
.btn-glow.large { padding: 15px 40px; font-size: 0.85rem; }

.menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; color: #fff; }

.demo-badge { position: fixed; top: 100px; right: 0; background: var(--primary-glow); color: #fff; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 2px; padding: 5px 15px; border-radius: 20px 0 0 20px; z-index: 100; }

/* Hero Section */
.hero { min-height: 100vh; display: flex; justify-content: center; align-items: center; padding: 120px 5% 50px; }
.glass-hero-card { width: 100%; max-width: 1200px; min-height: 75vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; position: relative; overflow: hidden; padding: 40px 20px; border-radius: 40px; }
.glass-hero-card h1 { font-size: 4.5rem; letter-spacing: -2px; margin-bottom: 20px; z-index: 2; }
.glass-hero-card p { font-size: 1.2rem; letter-spacing: 4px; text-transform: uppercase; z-index: 2; }
.hero-images { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.floating-img { position: absolute; border-radius: 20px; object-fit: cover; box-shadow: 0 20px 40px rgba(0,0,0,0.5); opacity: 0.5; animation: floatImg 15s infinite alternate ease-in-out; }
.img-1 { width: 300px; height: 400px; top: 10%; left: 5%; transform: rotate(-10deg); }
.img-2 { width: 350px; height: 250px; bottom: 10%; right: 5%; transform: rotate(5deg); animation-delay: -7s; }
@keyframes floatImg { 100% { transform: translateY(40px) rotate(0deg); } }

.scroll-down { position: absolute; bottom: 30px; z-index: 2; display: flex; flex-direction: column; align-items: center; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 2px; color: var(--text-main); opacity: 0.7; }
.scroll-down i { margin-top: 10px; animation: bounce 2s infinite; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(10px); } }

/* Vision & Intro */
.vision-section { padding: 100px 0; }
.split-panel { display: flex; padding: 60px; gap: 40px; align-items: center; }
.panel-left { flex: 1; }
.panel-right { flex: 1.5; }
.sync-title { font-size: 2.5rem; line-height: 1.2; letter-spacing: 2px; }
.text-glow { text-shadow: 0 0 20px rgba(0, 210, 255, 0.4); }
.text-glow-small { color: var(--secondary-glow); text-shadow: 0 0 10px rgba(0, 210, 255, 0.6); }
.body-text { font-size: 1.15rem; line-height: 1.8; color: var(--text-muted); font-weight: 300; }
.italic { font-style: italic; }

/* The Details Section */
.details-section { padding: 50px 0 100px; }
.detail-showcase { display: flex; padding: 60px; gap: 50px; align-items: center; }
.detail-text { flex: 1; }
.detail-images { flex: 1; position: relative; height: 500px; }
.glass-list { list-style: none; margin-top: 20px; }
.glass-list li { font-size: 1rem; margin-bottom: 15px; display: flex; align-items: center; gap: 15px; color: #fff; }
.glass-img { position: absolute; border-radius: 20px; box-shadow: 0 15px 35px rgba(0,0,0,0.4); width: 60%; height: 70%; object-fit: cover; }
.glass-img:first-child { top: 0; left: 0; z-index: 2; }
.glass-img.offset { bottom: 0; right: 0; z-index: 1; }

/* Galleries 3D Tilt Grid */
.gallery-section { padding: 50px 0; }
.tilt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.tilt-card { perspective: 1000px; }
.glass-card-inner { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 20px; padding: 20px; transition: transform 0.5s ease; transform-style: preserve-3d; cursor: pointer; }
.glass-card-inner:hover { transform: translateY(-10px) rotateX(5deg) rotateY(-5deg); box-shadow: -20px 20px 30px rgba(0,0,0,0.5); }
.glass-card-inner img { width: 100%; height: 400px; object-fit: cover; border-radius: 15px; margin-bottom: 20px; transform: translateZ(30px); }
.card-content { transform: translateZ(50px); text-align: center; }
.card-content h3 { font-size: 1.5rem; letter-spacing: 2px; margin-bottom: 5px; }
.card-content p { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; color: var(--text-muted); }

/* Experience / Services Section */
.experience-section { padding: 100px 0; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.service-card { padding: 40px; text-align: center; transition: 0.4s; }
.service-card:hover { transform: translateY(-10px); background: rgba(255, 255, 255, 0.08); }
.icon-wrap { font-size: 2.5rem; color: var(--secondary-glow); margin-bottom: 20px; filter: drop-shadow(0 0 10px rgba(0, 210, 255, 0.5)); }
.service-card h3 { font-size: 1.2rem; margin-bottom: 15px; }
.service-card p { font-size: 0.95rem; }

/* Testimonials */
.testimonial-section { padding: 50px 0 100px; }
.testimonial-slider { padding: 60px; text-align: center; max-width: 900px; margin: 0 auto; position: relative; }
.quote-icon { font-size: 3rem; color: var(--primary-glow); opacity: 0.3; margin-bottom: 20px; }
.client-info strong { display: block; color: #fff; font-size: 1.1rem; letter-spacing: 1px; }
.client-info span { font-size: 0.85rem; color: var(--secondary-glow); text-transform: uppercase; letter-spacing: 1px; }

/* FAQ Section */
.faq-section { padding: 50px 0 100px; }
.faq-container { padding: 40px; max-width: 900px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--glass-border); padding: 20px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-question { display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.faq-question h4 { font-family: var(--font-body); font-size: 1.1rem; letter-spacing: 1px; color: #fff; margin: 0; }
.faq-question i { color: var(--secondary-glow); transition: 0.3s; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; padding-top: 0; }
.faq-answer p { padding-top: 15px; font-size: 0.95rem; color: var(--text-muted); }
.faq-item.active .faq-question i { transform: rotate(45deg); color: var(--primary-glow); }
.faq-item.active .faq-answer { max-height: 300px; }

/* Contact Section */
.contact-section { padding: 50px 0 150px; }
.contact-panel { padding: 60px; max-width: 900px; margin: 0 auto; }
.glass-form { margin-top: 40px; }
.form-row { display: flex; gap: 30px; }
.input-group { position: relative; margin-bottom: 35px; flex: 1; }
.input-group input, .input-group textarea { width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--glass-border); padding: 10px 0; color: var(--text-main); font-family: var(--font-body); font-size: 1rem; transition: 0.3s; }
.input-group textarea { resize: none; overflow: hidden; }
.input-group input:focus, .input-group textarea:focus { outline: none; border-color: var(--secondary-glow); }
.input-group label { position: absolute; top: 10px; left: 0; color: var(--text-muted); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; pointer-events: none; transition: 0.3s; }
.input-group input:focus ~ label, .input-group input:valid ~ label,
.input-group textarea:focus ~ label, .input-group textarea:valid ~ label { top: -18px; font-size: 0.7rem; color: var(--secondary-glow); }

/* Footer */
.footer-panel { padding: 40px; margin-bottom: 40px; }
.f-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; border-bottom: 1px solid var(--glass-border); padding-bottom: 30px; }
.f-contact-details { display: flex; gap: 30px; font-size: 0.9rem; }
.f-contact-details i { color: var(--secondary-glow); margin-right: 5px; }
.f-socials a { color: var(--text-muted); font-size: 1.2rem; margin-left: 20px; }
.f-socials a:hover { color: var(--text-main); }
.f-bottom { display: flex; justify-content: space-between; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; }
.f-bottom a { color: var(--secondary-glow); font-weight: 600; }

.back-to-master { position: fixed; bottom: 20px; left: 20px; z-index: 1000; color: #fff; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; padding: 10px 20px; border-radius: 100px; background: rgba(255,255,255,0.1); border: 1px solid var(--glass-border); backdrop-filter: blur(10px); }
.back-to-master:hover { background: rgba(255,255,255,0.2); }

/* SCROLL REVEAL */
.reveal-slow { opacity: 0; transform: scale(0.95); animation: revealSlow 1.5s forwards cubic-bezier(0.2, 0.8, 0.2, 1) 0.5s; }
.reveal { opacity: 0; transform: translateY(40px); transition: 1s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
@keyframes revealSlow { to { opacity: 1; transform: scale(1); } }

/* Responsive */
@media (max-width: 992px) {
    .nav-links { display: none; }
    .menu-toggle { display: block; }
    .split-panel, .detail-showcase { flex-direction: column; text-align: center; }
    .detail-images { width: 100%; margin-top: 30px; }
    .tilt-grid, .services-grid { grid-template-columns: repeat(2, 1fr); }
    .glass-hero-card h1 { font-size: 3rem; }
    .f-top { flex-direction: column; gap: 20px; text-align: center; }
}

@media (max-width: 768px) {
    .tilt-grid, .services-grid { grid-template-columns: 1fr; }
    .form-row, .f-contact-details { flex-direction: column; gap: 0; }
    .f-contact-details { gap: 10px; margin: 15px 0; }
    .floating-img { display: none; } 
    .f-bottom { flex-direction: column; gap: 10px; text-align: center; }
    .glass-hero-card h1 { font-size: 2.2rem; }
}
