/* =========================================
   ANONPEEK - CYBER SECURE DESIGN SYSTEM
   ========================================= */

:root {
    --bg: #0B1120;
    --surface: #131C31;
    --surface-light: #1E293B;
    --primary: #2DD4BF; /* Cyber Mint */
    --primary-glow: rgba(45, 212, 191, 0.4);
    --secondary: #818CF8; /* Electric Indigo */
    --secondary-glow: rgba(129, 140, 248, 0.4);
    --text: #F8FAFC;
    --text-muted: #94A3B8;
    --border: rgba(148, 163, 184, 0.1);
    --radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}


.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Typography */
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
h2 { font-size: 2.5rem; margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
p { color: var(--text-muted); }
a { text-decoration: none; color: inherit; }

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
.header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(11, 17, 32, 0.7);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}
.nav { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; }
.logo { font-size: 24px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.logo span { color: var(--primary); }

.nav-links { list-style: none; display: flex; gap: 32px; }
.nav-links a { color: var(--text-muted); font-weight: 500; font-size: 15px; transition: var(--transition); }
.nav-links a:hover { color: var(--primary); }

.dropdown { position: relative; }
.dropbtn { cursor: pointer; }
.dropdown-content {
    display: none; position: absolute; top: 100%; left: -20px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 12px; padding: 12px; min-width: 200px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.dropdown:hover .dropdown-content { display: block; }
.dropdown-content a { display: block; padding: 10px 12px; border-radius: 8px; margin: 2px 0; }
.dropdown-content a:hover { background: var(--surface-light); color: var(--primary); }

.social-icons { display: flex; gap: 16px; }
.social-icons a { color: var(--text-muted); display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 8px; transition: var(--transition); }
.social-icons a:hover { color: var(--primary); border-color: var(--primary); background: rgba(45, 212, 191, 0.1); }

/* =========================================
   BUTTONS
   ========================================= */
.cta-button {
    display: inline-block; padding: 16px 32px;
    background: var(--primary); color: #000;
    font-weight: 700; border-radius: 50px;
    transition: var(--transition); border: none; cursor: pointer;
    box-shadow: 0 4px 20px var(--primary-glow);
}
.cta-button:hover { transform: translateY(-2px); box-shadow: 0 8px 30px var(--primary-glow); }

.btn-secondary {
    display: inline-block; padding: 12px 28px;
    border: 1px solid var(--primary); color: var(--primary);
    border-radius: 50px; font-weight: 600; transition: var(--transition);
}
.btn-secondary:hover { background: var(--primary); color: #000; }

/* =========================================
   SECTIONS
   ========================================= */
section { padding: 100px 0; position: relative; }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 60px; }
.section-header p { font-size: 1.1rem; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

/* Glassmorphism Card */
.card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.7), rgba(19, 28, 49, 0.7));
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    padding: 32px; border-radius: var(--radius); transition: var(--transition);
}
.card:hover { transform: translateY(-5px); border-color: rgba(45, 212, 191, 0.3); box-shadow: 0 10px 40px rgba(0,0,0,0.2); }

/* =========================================
   HERO SECTION
   ========================================= */
.hero { text-align: center; padding: 120px 0 80px; }
.hero h1 { font-size: 4rem; margin-bottom: 24px; background: linear-gradient(135deg, #fff 0%, var(--primary) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero .subtitle { font-size: 1.25rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 40px; }
.trust-badge { margin-top: 32px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.trust-badge span { background: rgba(45, 212, 191, 0.1); color: var(--primary); padding: 8px 16px; border-radius: 50px; font-size: 14px; font-weight: 600; border: 1px solid rgba(45, 212, 191, 0.2); }

/* =========================================
   FEATURES & HOW IT WORKS
   ========================================= */
.icon-box { width: 50px; height: 50px; background: rgba(45, 212, 191, 0.1); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 20px; }
.step-num { width: 40px; height: 40px; background: var(--primary); color: #000; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 20px; }

/* =========================================
   REVIEWS
   ========================================= */
.review-card { background: var(--surface); border: 1px solid var(--border); padding: 28px; border-radius: var(--radius); transition: var(--transition); }
.review-card:hover { border-color: var(--secondary); }
.stars { color: #FBBF24; font-size: 18px; margin-bottom: 16px; }
.reviewer { font-weight: 700; color: var(--text); margin-top: 16px; display: block; }

/* =========================================
   FAQ ACCORDION
   ========================================= */
.faq-section { background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%); }
.accordion { background: var(--surface); margin-bottom: 16px; border-radius: 12px; border: 1px solid var(--border); overflow: hidden; transition: var(--transition); }
.accordion:hover { border-color: var(--primary); }
.accordion summary { padding: 20px 24px; font-size: 18px; font-weight: 600; color: var(--text); cursor: pointer; display: flex; justify-content: space-between; align-items: center; list-style: none; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: '+'; font-size: 24px; color: var(--primary); transition: 0.3s; }
.accordion[open] summary::after { transform: rotate(45deg); }
.accordion p { padding: 0 24px 24px; color: var(--text-muted); font-size: 16px; }

/* =========================================
   MODERN BLOG CARDS
   ========================================= */
.modern-blog-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    text-decoration: none;
    color: var(--text);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}
.modern-blog-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    transform: scaleY(0); transform-origin: top; transition: transform 0.4s ease;
}
.modern-blog-card:hover { border-color: var(--secondary); background: var(--surface-light); transform: translateY(-4px); }
.modern-blog-card:hover::before { transform: scaleY(1); }

.blog-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.blog-card-cat { background: rgba(129, 140, 248, 0.15); color: var(--secondary); padding: 6px 12px; border-radius: 50px; font-size: 12px; font-weight: 600; text-transform: uppercase; }
.blog-card-time { color: var(--text-muted); font-size: 13px; }
.modern-blog-card h3 { font-size: 20px; margin-bottom: 12px; transition: var(--transition); }
.modern-blog-card:hover h3 { color: var(--secondary); }
.modern-blog-card p { font-size: 15px; margin-bottom: 24px; flex-grow: 1; }
.blog-card-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border); padding-top: 16px; margin-top: auto; }
.blog-card-arrow { color: var(--secondary); font-weight: 600; font-size: 14px; transition: var(--transition); }
.modern-blog-card:hover .blog-card-arrow { transform: translateX(5px); }

/* =========================================
   CTA SECTION
   ========================================= */
.cta-section { text-align: center; padding: 120px 0; }
.cta-container { max-width: 800px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); padding: 60px; border-radius: 24px; position: relative; overflow: hidden; }
.cta-container::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, var(--primary-glow) 0%, transparent 60%); opacity: 0.2; z-index: 0; }
.cta-container > * { position: relative; z-index: 1; }
.cta-container h2 { font-size: 2.5rem; margin-bottom: 16px; }
.cta-container p { font-size: 1.2rem; margin-bottom: 32px; color: var(--text-muted); }

/* =========================================
   FOOTER
   ========================================= */
.footer { background: #060A13; border-top: 1px solid var(--border); padding: 80px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 60px; }
.footer h4 { color: var(--text); margin-bottom: 20px; font-size: 1.1rem; }
.footer p { color: var(--text-muted); margin-bottom: 20px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 12px; }
.footer ul li a { color: var(--text-muted); transition: var(--transition); }
.footer ul li a:hover { color: var(--primary); }
.copyright { text-align: center; padding-top: 30px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 14px; }

/* =========================================
   RESPONSIVE & MOBILE MENU
   ========================================= */
.mobile-toggle { display: none; background: none; border: none; color: var(--text); cursor: pointer; z-index: 110; }
.mobile-socials { display: none; } /* <-- THIS LINE HIDES IT ON DESKTOP */

@media (max-width: 968px) {
    .nav { position: relative; }
    .nav-links { 
        display: none; 
        flex-direction: column; 
        position: absolute; 
        top: 100%; left: 0; width: 100%; 
        background: rgba(11, 17, 32, 0.95); 
        backdrop-filter: blur(16px); 
        padding: 24px; 
        border-bottom: 1px solid var(--border); 
        gap: 16px; 
        box-shadow: 0 10px 30px rgba(0,0,0,0.3); 
        max-height: 90vh; 
        overflow-y: auto;
    }
    .nav-links.active { display: flex; }
    
    /* Desktop Socials hidden, Mobile socials shown */
    .social-icons { display: none; }
    .mobile-socials { display: flex; gap: 16px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
    .mobile-socials a { color: var(--text-muted); border: 1px solid var(--border); padding: 10px; border-radius: 8px; }
    
    /* Mobile Dropdown Expansion */
    .dropdown-content { 
        display: none; 
        position: static; 
        background: transparent; 
        border: none; 
        box-shadow: none; 
        padding: 0 0 0 16px; 
        min-width: auto; 
        margin-top: 8px;
    }
    .dropdown.active .dropdown-content { display: block; }
    .dropdown.active .dropbtn { color: var(--primary); }
    
    /* UI Adjustments */
    .mobile-toggle { display: block; }
    .hero h1 { font-size: 2.5rem; }
    .hero .subtitle { font-size: 1.1rem; }
    .grid-3, .footer-grid { grid-template-columns: 1fr; }
    .cta-container { padding: 40px 24px; }
    .cta-container h2 { font-size: 2rem; }
    .section-header h2 { font-size: 2rem; }
    
    /* Fix contact form layout on mobile */
    form > div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

/* =========================================
   BLOG ARTICLE STYLES
   ========================================= */
.post-layout { display: grid; grid-template-columns: 1fr 300px; gap: 40px; max-width: 1200px; margin: 0 auto; padding: 40px 24px; }
.post-content { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 40px; }
.post-content h1 { font-size: 2.2rem; margin-bottom: 15px; line-height: 1.3; }
.post-meta { display: flex; gap: 15px; color: var(--text-muted); font-size: 14px; margin-bottom: 30px; border-bottom: 1px solid var(--border); padding-bottom: 15px; }
.post-content h2 { font-size: 1.6rem; margin: 40px 0 15px; color: #fff; border-left: 4px solid var(--primary); padding-left: 15px; }
.post-content h3 { font-size: 1.2rem; margin: 25px 0 10px; color: var(--secondary); }
.post-content p { color: #cbd5e1; margin-bottom: 20px; line-height: 1.8; }
.post-content ul, .post-content ol { margin-bottom: 20px; padding-left: 20px; color: #cbd5e1; }
.post-content li { margin-bottom: 10px; }
.post-content a { color: var(--primary); text-decoration: underline; }

/* Featured Image (SVG) */
.featured-image { width: 100%; height: 250px; border-radius: 12px; margin-bottom: 30px; background: linear-gradient(135deg, var(--surface-light), var(--bg)); display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); overflow: hidden; }

/* Table of Contents */
.toc-widget { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 25px; position: sticky; top: 90px; height: fit-content; }
.toc-widget h4 { font-size: 1.1rem; margin-bottom: 15px; color: #fff; }
.toc-widget ul { list-style: none; padding: 0; }
.toc-widget li { margin-bottom: 10px; }
.toc-widget a { color: var(--text-muted); font-size: 14px; text-decoration: none; transition: 0.3s; display: block; padding: 5px 0; border-left: 2px solid transparent; padding-left: 10px; }
.toc-widget a:hover { color: var(--primary); border-left: 2px solid var(--primary); }

/* Info Cards */
.info-card { background: rgba(45, 212, 191, 0.05); border: 1px solid rgba(45, 212, 191, 0.2); border-radius: 12px; padding: 20px; margin: 30px 0; display: flex; gap: 15px; align-items: start; }
.info-card .icon { font-size: 24px; }
.info-card p { margin: 0; color: #cbd5e1; font-size: 15px; }

@media (max-width: 968px) {
    .post-layout { grid-template-columns: 1fr; }
    .toc-widget { position: static; margin-bottom: 30px; }
}