:root {
    --primary: #0f172a;
    --secondary: #1e293b;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: #334155;
    --hacker-green: #00ff00;
    --glow: rgba(59, 130, 246, 0.3);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--primary);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* ===========================
   NAVBAR
   =========================== */
.site-header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 85px;
}

.logo { display: flex; align-items: center; text-decoration: none; gap: 15px; }
.logo-img { height: 60px; width: auto; }
.logo-text { font-family: 'Space Grotesk', sans-serif; font-size: 2rem; font-weight: 700; color: var(--text-main); }
.text-accent { color: var(--accent); }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav ul { display: flex; list-style: none; gap: 30px; }
.main-nav ul li a {
    text-decoration: none; color: var(--text-muted); font-weight: 500;
    font-size: 1.05rem; transition: 0.3s; position: relative;
}
.main-nav ul li a::after {
    content: ''; position: absolute; width: 0; height: 2px; bottom: -5px;
    left: 0; background-color: var(--accent); transition: width 0.3s ease;
}
.main-nav ul li a:hover { color: var(--text-main); }
.main-nav ul li a:hover::after { width: 100%; }

.nav-search { display: flex; align-items: center; }
.nav-search input {
    width: 250px; padding: 10px 15px; background: var(--secondary);
    border: 1px solid var(--border); color: var(--text-main);
    border-radius: 30px 0 0 30px; outline: none;
}
.nav-search button {
    padding: 10px 20px; background: var(--accent); border: none;
    color: white; border-radius: 0 30px 30px 0; cursor: pointer; font-weight: 600;
}

.btn-login {
    padding: 10px 20px; background: transparent; border: 1px solid var(--accent);
    color: var(--accent); border-radius: 30px; font-weight: 600; cursor: pointer;
    text-decoration: none;
}
.btn-login:hover { background: var(--accent); color: white; }

.hamburger { display: none; background: none; border: none; cursor: pointer; }
.hamburger span { display: block; width: 28px; height: 3px; margin: 5px 0; background: var(--text-main); }

/* ===========================
   HACKER THEME: HERO & TERMINAL
   =========================== */
.hero {
    padding: 160px 0 100px;
    text-align: center;
    position: relative;
    background: 
        linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.95)),
        repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(59, 130, 246, 0.1) 40px, rgba(59, 130, 246, 0.1) 41px),
        repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(59, 130, 246, 0.1) 40px, rgba(59, 130, 246, 0.1) 41px);
}

.hero-logo { height: 130px; margin-bottom: 20px; filter: drop-shadow(0 0 20px var(--glow)); }
.hero h1 { font-family: 'Space Grotesk', sans-serif; font-size: 3.5rem; margin-bottom: 20px; }
.hero p { color: var(--text-muted); font-size: 1.2rem; margin-bottom: 30px; max-width: 800px; margin-left: auto; margin-right: auto; }

.btn { padding: 14px 30px; border-radius: 8px; cursor: pointer; font-weight: 600; font-family: 'Inter', sans-serif; border: none; transition: 0.3s; text-decoration: none; display: inline-block; }
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 4px 15px var(--glow); }

/* Terminal Box */
.terminal-window {
    max-width: 700px;
    margin: 50px auto 0;
    background: #0a0f1e;
    border: 1px solid var(--accent);
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
    text-align: left;
    font-family: 'Courier New', Courier, monospace;
    overflow: hidden;
}

.terminal-header {
    background: var(--secondary);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border);
}

.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.terminal-title { margin-left: 10px; font-size: 0.8rem; color: var(--text-muted); font-family: 'Courier New', Courier, monospace; }

.terminal-body {
    padding: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--hacker-green);
    min-height: 200px;
}

.terminal-line { display: block; opacity: 0; animation: fadeInLine 0.5s forwards; }
@keyframes fadeInLine { to { opacity: 1; } }

.prompt { color: var(--accent); }
.command { color: white; }
.output { color: var(--hacker-green); }

.cursor { display: inline-block; width: 10px; height: 1.2em; background: var(--hacker-green); vertical-align: text-bottom; animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ===========================
   STATS
   =========================== */
.stats-section { padding: 50px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--secondary); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; text-align: center; }
.stat-item h3 { font-family: 'Space Grotesk', sans-serif; font-size: 2.5rem; color: var(--accent); }
.stat-item p { color: var(--text-muted); font-size: 1rem; }

/* ===========================
   TOOLS & SECTIONS
   =========================== */
.section { padding: 80px 0; }
.section-alt { background: var(--secondary); }
.section-title { text-align: center; font-family: 'Space Grotesk', sans-serif; font-size: 2.5rem; margin-bottom: 50px; }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }

.tool-card {
    background: var(--primary); border: 1px solid var(--border);
    padding: 25px; border-radius: 12px; transition: 0.3s;
}
.tool-card:hover { border-color: var(--accent); transform: translateY(-8px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.badge { background: rgba(59, 130, 246, 0.15); color: var(--accent); padding: 5px 12px; border-radius: 20px; font-size: 0.8rem; }
.tool-card p { color: var(--text-muted); margin-bottom: 20px; }

.btn-outline { background: transparent; border: 1px solid var(--accent); color: var(--accent); width: 100%; padding: 10px; border-radius: 6px; font-weight: 600; cursor: pointer; transition: 0.3s; }
.btn-outline:hover { background: var(--accent); color: white; }

/* ===========================
   SKILLS SECTION
   =========================== */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; }
.skill-card {
    background: var(--primary); border: 1px solid var(--border);
    border-radius: 12px; padding: 25px 15px; text-align: center; transition: 0.3s;
}
.skill-card:hover { border-color: var(--accent); transform: translateY(-5px); box-shadow: 0 5px 15px var(--glow); }
.skill-card img { height: 50px; width: auto; margin-bottom: 15px; }
.skill-card h4 { font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem; color: var(--text-main); }

/* ===========================
   ADVANCED FOOTER
   =========================== */
.site-footer { background: #020617; border-top: 3px solid var(--accent); padding-top: 60px; }

.footer-main {
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 50px;
}

.footer-col h4 { font-family: 'Space Grotesk', sans-serif; margin-bottom: 20px; font-size: 1.2rem; color: var(--text-main); }
.footer-col p, .footer-col a { color: var(--text-muted); line-height: 1.8; text-decoration: none; display: block; margin-bottom: 12px; transition: 0.3s; }
.footer-col a:hover { color: var(--accent); padding-left: 8px; }

/* Footer Contact */
.footer-contact li { display: flex; gap: 10px; margin-bottom: 15px; list-style: none; color: var(--text-muted); }
.footer-contact li svg { width: 18px; height: 18px; fill: var(--accent); }

/* Newsletter */
.newsletter-form { display: flex; margin-top: 15px; }
.newsletter-form input {
    flex: 1; padding: 10px; background: var(--secondary); border: 1px solid var(--border);
    border-radius: 6px 0 0 6px; color: white; outline: none; font-size: 0.9rem;
}
.newsletter-form button { padding: 10px 15px; background: var(--accent); border: none; color: white; border-radius: 0 6px 6px 0; cursor: pointer; }

/* Social Buttons (Chote) */
.socials-row { display: flex; gap: 10px; margin-top: 15px; flex-wrap: wrap; }
.social-btn {
    display: flex; align-items: center; justify-content: center; gap: 5px;
    padding: 8px 12px; border-radius: 20px; text-decoration: none;
    font-weight: 600; font-size: 0.8rem; transition: 0.3s;
    border: 1px solid var(--border); background: var(--secondary);
}
.social-btn svg { width: 14px; height: 14px; fill: currentColor; }
.social-btn.instagram { color: #E4405F; border-color: #E4405F; }
.social-btn.instagram:hover { background: #E4405F; color: white; }
.social-btn.telegram { color: #0088cc; border-color: #0088cc; }
.social-btn.telegram:hover { background: #0088cc; color: white; }
.social-btn.youtube { color: #FF0000; border-color: #FF0000; }
.social-btn.youtube:hover { background: #FF0000; color: white; }
.social-btn.linkedin { color: #0A66C2; border-color: #0A66C2; }
.social-btn.linkedin:hover { background: #0A66C2; color: white; }

/* Footer Info Bar & Bottom */
.footer-info-bar {
    padding: 25px 0; border-bottom: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 20px; color: var(--text-muted); font-size: 0.9rem;
}
.trust-badges { display: flex; gap: 20px; }
.trust-badges span { display: flex; align-items: center; gap: 5px; }
.footer-bottom { padding: 20px 0; text-align: center; font-size: 0.85rem; color: var(--text-muted); }

/* ===========================
   MODAL & RESPONSIVE
   =========================== */
.modal {
    display: none; position: fixed; z-index: 9999; left: 0; top: 0;
    width: 100%; height: 100%; background-color: rgba(0,0,0,0.8); backdrop-filter: blur(5px);
}
.modal-content {
    background-color: var(--secondary); margin: 15% auto; padding: 30px;
    border: 1px solid var(--border); border-radius: 12px; width: 80%; max-width: 500px;
}
.modal-content h2 { margin-bottom: 15px; color: var(--accent); }
.modal-content input { width: 100%; padding: 12px; margin-bottom: 15px; background: var(--primary); border: 1px solid var(--border); color: white; border-radius: 6px; }
.close { color: var(--text-muted); float: right; font-size: 28px; font-weight: bold; cursor: pointer; }
.close:hover { color: white; }

@media (max-width: 1024px) {
    .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .main-nav {
        position: fixed; top: 85px; left: -100%; background: var(--primary);
        width: 100%; height: calc(100vh - 85px); flex-direction: column;
        align-items: flex-start; padding: 40px; transition: 0.4s ease-in-out;
        border-top: 1px solid var(--border);
    }
    .main-nav.active { left: 0; }
    .main-nav ul { flex-direction: column; width: 100%; }
    .main-nav ul li { width: 100%; border-bottom: 1px solid var(--border); padding: 15px 0; }
    .nav-search { margin-top: 20px; width: 100%; }
    .nav-search input { width: 100%; }
    .btn-login { margin-top: 20px; width: 100%; text-align: center; }
    
    .hamburger { display: block; }
    .hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .hero { padding-top: 130px; }
    .hero h1 { font-size: 2.2rem; }
    .terminal-body { font-size: 0.9rem; }

    .footer-main { grid-template-columns: 1fr; }
    .footer-info-bar { flex-direction: column; text-align: center; }
}
/* WhatsApp Channel Social Button */
.social-btn.whatsapp-channel {
    color: #25D366;
    border-color: #25D366;
}

.social-btn.whatsapp-channel:hover {
    background: #25D366;
    color: white;
}
/* ===========================
   COMING SOON MODAL
   =========================== */
.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: 9999;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-box h2 {
    font-family: 'Space Grotesk', sans-serif;
    color: #3b82f6;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.modal-box p {
    color: #94a3b8;
    margin-bottom: 25px;
    line-height: 1.6;
}

.modal-box .close-modal {
    width: 100%;
    padding: 12px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.3s;
}

.modal-box .close-modal:hover {
    background: #2563eb;
}