:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --accent: #3b82f6;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Header */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.anchor-header-ad {
    display: flex;
    justify-content: center;
    background: #fff; /* standard ad bg to not mess with ad styling */
    min-height: 50px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(to right, #60a5fa, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 1.5rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Container limits */
.section-padding {
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Base text */
h1, h2, h3, h4 {
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #fff;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

strong {
    color: var(--text-main);
}

/* Top Ads Section */
.top-ads {
    text-align: center;
}

.page-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.125rem;
    max-width: 700px;
    margin: 0 auto 3rem auto;
}

/* Ad Styles */
.ad-box, .ad-container {
    background: transparent;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin: 1.5rem auto;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    min-height: 100px;
}

.ads-grid-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.intro-section {
    text-align: center;
    border-top: 1px solid var(--border-color);
}

/* Ad Slot Dimensions (Previously Inline) */
.gpt-ad-slot-header { min-width: 320px; min-height: 50px; }
.gpt-ad-slot-m1 { min-width: 300px; min-height: 250px; }
.gpt-ad-slot-m2 { min-width: 336px; min-height: 280px; }
.gpt-ad-slot-m3 { min-width: 320px; min-height: 100px; }
.gpt-ad-slot-m4 { min-width: 320px; min-height: 50px; }
.gpt-ad-slot-m5 { min-width: 300px; min-height: 600px; }
.gpt-ad-slot-footer { min-width: 320px; min-height: 50px; }
.gpt-ad-slot-insertial { min-width: 300px; min-height: 250px; }

.content-ad {
    margin: 2.5rem auto;
}

.align-center {
    justify-content: center;
    display:flex;
}

/* CTA */
.cta-wrapper {
    margin-top: 2rem;
}

.cta-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.39);
}

.cta-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.arrow { display: inline-block; transition: transform 0.3s; }
.cta-btn:hover .arrow { transform: translateY(3px); }

/* Content Section */
.content-section {
    background: rgba(30, 41, 59, 0.7);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.content-block h2 {
    font-size: 2rem;
    margin-top: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.content-block h3 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    color: var(--accent);
}

.faq-section { margin-top: 4rem; }
.faq-item {
    background: var(--bg-dark);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
}
.faq-item h4 { margin-bottom: 0.5rem; }
.faq-item p { margin: 0; }

/* Gallery */
.gallery-section {
    text-align: center;
}

.section-heading { font-size: 2.5rem; margin-bottom: 0.5rem;}

.image-grid {
    columns: 3 250px;
    column-gap: 1.5rem;
    margin-top: 3rem;
}

.grid-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-card);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.grid-item img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: opacity 0.3s;
}

.grid-item img.lazy { opacity: 0; }
.grid-item::after {
    content: "Preview +";
    position: absolute;
    inset: 0;
    background: rgba(37, 99, 235, 0.7);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.3s;
}

.grid-item:hover::after { opacity: 1; }

/* Footer */
.site-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    text-align: center;
    background: var(--bg-card);
}

.footer-links {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 1rem;
    font-size: 0.875rem;
    transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }

.copyright { font-size: 0.875rem; margin-bottom: 2rem; }

.anchor-footer-ad {
    position: sticky;
    bottom: 0;
    z-index: 1000;
    background: #fff;
    width: 100%;
    display: flex;
    justify-content: center;
    border-top: 1px solid #ccc;
}

/* Floating Button */
.floating-btn {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0,0,0,0.3);
    display: none;
    align-items: center;
    gap: 0.5rem;
    z-index: 999;
    transition: background 0.2s, transform 0.2s;
}

.floating-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    overflow-y: auto;
}

.modal-content {
    background: var(--bg-card);
    width: 100%;
    max-width: 600px;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    animation: modalIn 0.3s ease-out forwards;
    display: flex;
    flex-direction: column;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    transition: color 0.2s;
}

.close-modal:hover { color: var(--accent); }

.modal-body {
    padding: 0;
    display: flex;
    flex-direction: column;
}

.modal-img-wrapper {
    width: 100%;
    max-height: 50vh;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    background: #000;
}

#modalImage {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.modal-description {
    padding: 2rem;
    text-align: center;
}

.modal-description h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

#timerCount {
    font-weight: 800;
    color: #ef4444;
    font-size: 1.2rem;
}

.unlock-btn {
    background: #22c55e;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
    transition: transform 0.2s, background 0.2s;
    width: 100%;
}

.unlock-btn:hover {
    background: #16a34a;
    transform: translateY(-2px);
}

.modal-ad {
    margin-top: 1.5rem;
    background: #0f172a;
    padding: 1rem;
    border-radius: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links { display: none; } /* keep minimal */
    .section-padding { padding: 3rem 5%; }
    .page-title { font-size: 2rem; }
}
