/* ==========================================================================
   AdPaholic Studio - Master Stylesheet
   ========================================================================== */
:root {
    --bg-dark: #020202; 
    --card-bg: rgba(255, 255, 255, 0.02);
    --card-hover: rgba(255, 255, 255, 0.05);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --text-light: #f5f5f7;
    --text-muted: #86868b;
    --accent-cyan: #59d9e6;
    --nav-bg: rgba(2, 2, 2, 0.7);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif; cursor: none; }
body { background-color: var(--bg-dark); color: var(--text-light); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }

/* --- Lusion Custom Cursor --- */
.cursor-dot { width: 8px; height: 8px; background-color: var(--accent-cyan); border-radius: 50%; position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999; transform: translate(-50%, -50%); }
.cursor-outline { width: 40px; height: 40px; border: 1px solid rgba(89, 217, 230, 0.5); border-radius: 50%; position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9998; transform: translate(-50%, -50%); transition: width 0.2s, height 0.2s, background-color 0.2s; }

/* --- Interactive Canvas Background --- */
#lusionCanvas { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; }
header, main, footer { position: relative; z-index: 10; }

/* --- Navigation --- */
header { position: fixed; top: 0; width: 100%; background: var(--nav-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); z-index: 100; border-bottom: 1px solid rgba(255,255,255,0.05); transition: all 0.4s ease; }
.nav-container { max-width: 1400px; margin: 0 auto; padding: 1rem 2rem; display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.25rem; font-weight: 700; color: var(--text-light); text-decoration: none; letter-spacing: -0.5px; display: flex; align-items: center; gap: 10px; transition: transform 0.3s ease; }
.logo img { height: 30px; width: auto; }
.logo span { color: var(--accent-cyan); text-shadow: 0 0 10px rgba(89, 217, 230, 0.5); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 0.95rem; font-weight: 500; position: relative; transition: color 0.3s ease; }
.nav-links a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -4px; left: 0; background-color: var(--accent-cyan); transition: width 0.3s ease; box-shadow: 0 0 8px var(--accent-cyan); }
.nav-links a:hover, .nav-links a.active-link { color: var(--text-light); }
.nav-links a:hover::after { width: 100%; }
.menu-toggle { display: none; flex-direction: column; gap: 5px; z-index: 101; }
.menu-toggle .bar { width: 25px; height: 3px; background-color: var(--text-light); border-radius: 3px; transition: all 0.3s ease-in-out; }

/* --- Hero Section & Sliders --- */
.hero { padding: 12rem 2rem 4rem; max-width: 1400px; margin: 0 auto; text-align: center; }
.hero h1 { font-size: clamp(3rem, 7vw, 6.5rem); line-height: 1; font-weight: 800; letter-spacing: -0.04em; margin-bottom: 1.5rem; background: linear-gradient(to right, #ffffff, #86868b, #ffffff); background-size: 200% auto; -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: textShine 4s linear infinite; }
@keyframes textShine { to { background-position: 200% center; } }
.hero h1 span { color: var(--text-muted); -webkit-text-fill-color: var(--text-muted); }
.hero p { font-size: 1.25rem; color: var(--text-muted); max-width: 800px; margin: 0 auto 4rem; }
.hero-slider-wrapper { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 2rem; }
.hero-slider { width: 100%; max-width: 1000px; aspect-ratio: 900 / 222; margin: 0 auto; position: relative; border-radius: 12px; overflow: hidden; box-shadow: 0 25px 50px rgba(0,0,0,0.8), 0 0 0 1px var(--border-subtle); background-color: #000; transform: translateY(0); animation: floatSlider 6s ease-in-out infinite; }
@keyframes floatSlider { 0% { transform: translateY(0px); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0px); } }
.hero-slider img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease-in-out, transform 1.2s ease-in-out; transform: scale(1.05); }
.hero-slider img.active { opacity: 1; transform: scale(1); }

/* --- Index Features & Bento Grids --- */
.features { max-width: 1200px; margin: 2rem auto 8rem; padding: 0 2rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2.5rem; }
.feature-card { display: block; text-decoration: none; background: var(--card-bg); border: 1px solid var(--border-subtle); border-radius: 24px; padding: 2rem; position: relative; overflow: hidden; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.feature-card::before { content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%; background: linear-gradient(to right, transparent, rgba(89, 217, 230, 0.1), transparent); transform: skewX(-20deg); transition: 0.5s; }
.feature-card:hover::before { left: 150%; }
.feature-card:hover { background: var(--card-hover); transform: translateY(-12px) scale(1.02); border-color: rgba(89, 217, 230, 0.3); box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 20px rgba(89, 217, 230, 0.15); }
.feature-card img { width: 100%; height: 200px; object-fit: cover; border-radius: 12px; margin-bottom: 1.5rem; background-color: #111; transition: transform 0.5s ease; }
.feature-card:hover img { transform: scale(1.05); }
.feature-card h3 { font-size: 1.5rem; margin-bottom: 0.8rem; color: var(--text-light); font-weight: 600; letter-spacing: -0.02em; transition: color 0.3s; }
.feature-card:hover h3 { color: var(--accent-cyan); }
.feature-card p { color: var(--text-muted); font-size: 1rem; line-height: 1.5; }

.bento-grid { display: grid; grid-template-columns: 1fr; gap: 24px; max-width: 1400px; margin: 8rem auto; padding: 0 2rem; }
.bento-card { background-color: var(--card-bg); border: 1px solid var(--border-subtle); border-radius: 24px; padding: 3rem; display: flex; flex-direction: column; overflow: hidden; position: relative; }
.bento-card h3 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 700; letter-spacing: -0.03em; margin-bottom: 1rem; line-height: 1.1; }
.bento-card p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 2rem; }
.bento-card ul { list-style: none; margin-bottom: 3rem; }
.bento-card li { font-size: 1.05rem; color: var(--text-muted); margin-bottom: 0.8rem; padding-left: 1.5rem; position: relative; }
.bento-card li::before { content: "→"; position: absolute; left: 0; color: var(--accent-cyan); font-weight: bold; }
.bento-image-container { margin-top: auto; border-radius: 12px; overflow: hidden; border: 1px solid var(--border-subtle); background: #000; }
.bento-image-container img { width: 100%; height: auto; display: block; object-fit: cover; transition: transform 0.5s ease; }
.bento-card:hover .bento-image-container img { transform: scale(1.02); }

@media (min-width: 1024px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .bento-card.full-span { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 4rem; padding: 4rem; }
    .bento-card.full-span .bento-content { width: 50%; }
    .bento-card.full-span .bento-image-container { width: 50%; margin-top: 0; }
}

/* --- Misc Components (Quotes, Reach, CTA) --- */
.global-reach { text-align: center; padding: 8rem 2rem; position: relative; background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(89, 217, 230, 0.03) 100%); border-top: 1px solid var(--border-subtle); }
.global-reach p { color: var(--text-muted); font-size: 1.3rem; max-width: 800px; margin: 0 auto; }
.massive-quote { max-width: 1200px; margin: 12rem auto; padding: 0 2rem; text-align: center; position: relative; }
.quote-icon { margin-bottom: 2rem; opacity: 0.3; }
.massive-quote h2 { font-size: clamp(1.8rem, 4vw, 3.5rem); line-height: 1.2; letter-spacing: -0.03em; font-weight: 700; color: var(--text-light); margin-bottom: 3rem; }
.massive-quote p { font-size: 1.2rem; color: var(--accent-cyan); font-weight: 500; }
.massive-quote span { display: block; color: var(--text-muted); font-size: 1rem; margin-top: 0.5rem; font-weight: 400; }
.cta-section { background-color: var(--card-bg); border-top: 1px solid var(--border-subtle); padding: 6rem 2rem; text-align: center; }
.cta-container { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 2rem; }
.cta-image { width: 120px; height: 120px; border-radius: 20px; object-fit: cover; border: 1px solid var(--border-subtle); box-shadow: 0 20px 40px rgba(0,0,0,0.8); }
.cta-text h2 { font-size: 2.5rem; letter-spacing: -0.03em; margin-bottom: 1rem; }
.cta-text p { color: var(--text-muted); font-size: 1.2rem; margin-bottom: 2rem; }
.cta-btn { display: inline-block; background-color: var(--text-light); color: var(--bg-dark); padding: 1rem 2.5rem; border-radius: 30px; text-decoration: none; font-size: 1.1rem; font-weight: 600; transition: opacity 0.2s; margin-top: 1rem;}
.cta-btn:hover { opacity: 0.8; }

/* --- Demo Grid (Web Design) --- */
.demo-section-title { text-align: center; font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; margin: 6rem 0 2rem; letter-spacing: -0.03em; }
.demo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; max-width: 1400px; margin: 0 auto 8rem; padding: 0 2rem; }
.demo-card { background: var(--card-bg); border: 1px solid var(--border-subtle); border-radius: 16px; padding: 1.5rem; display: flex; flex-direction: column; }
.demo-card img { width: 100%; height: auto; border-radius: 8px; margin-bottom: 1.5rem; border: 1px solid var(--border-subtle); }
.demo-card h4 { font-size: 1.2rem; margin-bottom: 1rem; color: var(--text-light); }
.demo-versions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.version-btn { background: rgba(255,255,255,0.05); color: var(--text-muted); border: 1px solid var(--border-subtle); padding: 6px 14px; border-radius: 20px; text-decoration: none; font-size: 0.85rem; font-weight: 500; transition: all 0.2s ease; }
.version-btn:hover { background: var(--accent-cyan); color: var(--bg-dark); border-color: var(--accent-cyan); }

/* --- Contact & Forms --- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 48px; max-width: 1400px; margin: 8rem auto; padding: 0 2rem; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 3fr 2fr; } }
.contact-form-card { background-color: var(--card-bg); border: 1px solid var(--border-subtle); border-radius: 24px; padding: 4rem; }
.contact-form-card h3 { font-size: 2.5rem; margin-bottom: 1rem; letter-spacing: -0.03em; }
.contact-form-card p { color: var(--text-muted); margin-bottom: 3rem; font-size: 1.1rem; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.form-control { width: 100%; background: #000; border: 1px solid var(--border-subtle); border-radius: 8px; padding: 1rem; color: var(--text-light); font-size: 1rem; transition: border-color 0.3s; }
.form-control:focus { outline: none; border-color: var(--accent-cyan); }
textarea.form-control { height: 150px; resize: vertical; }
.submit-btn { background: var(--text-light); color: var(--bg-dark); border: none; padding: 1rem 3rem; border-radius: 30px; font-size: 1.1rem; font-weight: 600; transition: opacity 0.2s; margin-top: 1rem; }
.submit-btn:hover { opacity: 0.8; }
.contact-details h3 { font-size: 1.5rem; margin-bottom: 1.5rem; letter-spacing: -0.02em; }
.contact-info-block { margin-bottom: 3rem; }
.contact-info-block ul { list-style: none; color: var(--text-muted); font-size: 1.1rem; }
.contact-info-block li { margin-bottom: 0.5rem; }
.contact-info-block a { color: var(--accent-cyan); text-decoration: none; }
.contact-info-block a:hover { text-decoration: underline; }
.photo-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.photo-gallery img { width: 100%; height: auto; border-radius: 12px; object-fit: cover; border: 1px solid var(--border-subtle); transition: transform 0.3s; }
.photo-gallery img:hover { transform: scale(1.05); }

/* --- Legal Pages (Split Screen) --- */
.page-wrapper { max-width: 1400px; margin: 8rem auto 4rem; padding: 0 2rem; display: grid; grid-template-columns: 1fr; gap: 4rem; }
@media (min-width: 1024px) { .page-wrapper { grid-template-columns: 1.2fr 1fr; align-items: start; } }
.legal-header { margin-bottom: 4rem; }
.legal-header h1 { font-size: clamp(3rem, 5vw, 4.5rem); letter-spacing: -0.04em; margin-bottom: 1rem; line-height: 1.1; }
.legal-header p { color: var(--accent-cyan); font-size: 1.1rem; font-weight: 500; }
.legal-content section { margin-bottom: 3rem; }
.legal-content h2 { font-size: 1.5rem; margin-bottom: 1rem; color: var(--text-light); letter-spacing: -0.02em; }
.legal-content p { color: var(--text-muted); font-size: 1.1rem; line-height: 1.7; }
.gallery-wrapper { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; position: relative; }
.gallery-wrapper .gallery-col-2 { transform: translateY(3rem); }
.gallery-col { display: flex; flex-direction: column; gap: 1.5rem; }
.gallery-img-container { border-radius: 16px; overflow: hidden; border: 1px solid var(--border-subtle); background: var(--card-bg); position: relative; }
.gallery-img-container img { width: 100%; height: auto; display: block; object-fit: cover; filter: grayscale(100%) contrast(1.1); transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); opacity: 0.8; }
.gallery-img-container:hover img { filter: grayscale(0%) contrast(1); transform: scale(1.05); opacity: 1; }

/* --- Modals --- */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(5px); z-index: 2000; justify-content: center; align-items: center; padding: 2rem; }
.modal-content { background: var(--card-bg); border: 1px solid var(--border-subtle); border-radius: 16px; padding: 3rem; max-width: 500px; width: 100%; text-align: center; position: relative; box-shadow: 0 25px 50px rgba(0,0,0,0.5); animation: modalFadeIn 0.3s ease-out; }
@keyframes modalFadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.modal-close { position: absolute; top: 15px; right: 20px; font-size: 1.5rem; color: var(--text-muted); cursor: pointer; transition: color 0.2s; }
.modal-close:hover { color: var(--text-light); }
.modal-content h3 { font-size: 1.8rem; margin-bottom: 1rem; color: var(--text-light); }
.modal-content p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 2rem; }
.modal-btn { display: inline-block; background: var(--text-light); color: var(--bg-dark); padding: 0.8rem 2rem; border-radius: 30px; text-decoration: none; font-weight: 600; transition: opacity 0.2s; }
.modal-btn:hover { opacity: 0.8; }
.modal-emails { text-align: left; background: rgba(255,255,255,0.03); padding: 1.5rem; border-radius: 8px; border: 1px solid var(--border-subtle); display: inline-block; width: 100%; }
.modal-emails p { margin-bottom: 0.5rem; color: var(--text-light); }
.modal-emails p:last-child { margin-bottom: 0; }
.modal-emails a { color: var(--accent-cyan); text-decoration: none; font-weight: 500; }
.modal-emails a:hover { text-decoration: underline; }

/* --- Animations --- */
.reveal, .animate-up { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); }
.reveal.active, .animate-up.active { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* --- Footer --- */
footer { border-top: 1px solid var(--border-subtle); padding: 4rem 2rem; text-align: center; color: var(--text-muted); font-size: 0.9rem; position: relative; z-index: 10; margin-top: 2rem;}
footer a { color: var(--text-muted); text-decoration: none; margin: 0 12px; transition: color 0.2s ease; }
footer a:hover { color: var(--accent-cyan); }
footer a.active-footer { color: var(--accent-cyan); }

/* --- Mobile Queries --- */
@media (max-width: 768px) {
    * { cursor: auto; }
    .cursor-dot, .cursor-outline { display: none; }
    .menu-toggle { display: flex; }
    .nav-links { position: absolute; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(2, 2, 2, 0.95); backdrop-filter: blur(20px); flex-direction: column; justify-content: center; align-items: center; gap: 3rem; transform: translateY(-100%); transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1); }
    .nav-links.active { transform: translateY(0); }
    .nav-links a { font-size: 1.5rem; }
    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    .hero-slider { aspect-ratio: 16 / 9; }
    .contact-form-card { padding: 2rem; }
    .gallery-wrapper .gallery-col-2 { transform: translateY(0); }
}