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

:root {
    --primary: #E87B4A;
    --primary-dark: #D96A39;
    --background: #F5F5F5;
    --surface: #ffffff;
    --text: #333333;
    --text-secondary: #666666;
    --border: #e0e0e0;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.header {
    background: var(--primary);
    color: white;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left { display: flex; align-items: center; gap: 1rem; }

.menu-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    width: 40px;
    height: 40px;
}

.header-logo { width: 40px; height: 40px; }
.header h1 { font-size: 1.2rem; font-weight: 700; margin: 0; }

.sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: var(--surface);
    box-shadow: 2px 0 10px rgba(0,0,0,0.2);
    transition: left 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
}

.sidebar.open { left: 0; }

.sidebar-header {
    background: var(--primary);
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.sidebar-header h2 { margin: 0; font-size: 1.3rem; }
.sidebar-menu { list-style: none; padding: 0; margin: 0; }
.sidebar-menu li { border-bottom: 1px solid var(--border); }

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: var(--text);
    transition: background 0.2s ease;
}

.sidebar-menu a:hover { background: var(--background); }
.sidebar-menu .icon { font-size: 1.3rem; width: 30px; text-align: center; }

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    z-index: 999;
}

.overlay.show { display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 1rem; }
.tab-content { display: none; animation: fadeIn 0.3s ease; }
.tab-content.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.card {
    background: var(--surface);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.card h3 { margin-bottom: 0.75rem; color: var(--primary); font-size: 1.1rem; }

/* Intro paragraph for Videos / Live sections */
.section-intro {
    margin: 0 0 1rem 0;
    color: var(--text);
    background: linear-gradient(90deg, rgba(232,123,74,0.06) 0%, rgba(232,123,74,0.03) 100%);
    border-left: 4px solid var(--primary);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    display: block;
}
.channel-link {
    color: var(--primary);
    font-weight: 800;
    text-decoration: none;
    margin-left: 0.25rem;
    padding: 0.12rem 0.5rem;
    background: rgba(232,123,74,0.08);
    border-radius: 6px;
    transition: background 0.15s ease, transform 0.12s ease;
}
.channel-link:hover { background: rgba(232,123,74,0.14); transform: translateY(-1px); text-decoration: none; }

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.video-card {
    background: var(--surface);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease;
}

.video-card:hover { transform: scale(1.02); }

.video-thumbnail {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.video-info { padding: 1rem; }
.video-title { font-weight: 600; margin-bottom: 0.5rem; color: var(--text); }
.video-meta { font-size: 0.85rem; color: var(--text-secondary); }

.social-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--surface);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text);
    box-shadow: var(--shadow);
    transition: all 0.2s ease;
}

.social-link:hover { transform: translateX(5px); box-shadow: var(--shadow-lg); }

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.social-icon.youtube { background: #FF0000; }
.social-icon.tiktok { background: #000000; }
.social-icon.facebook { background: #1877F2; }
.social-icon.github { background: #333; }
.social-icon.telegram { background: #0088cc; }
.social-info h4 { margin-bottom: 0.25rem; font-size: 1rem; }
.social-info p { font-size: 0.85rem; color: var(--text-secondary); }

.cve-feed { display: flex; flex-direction: column; gap: 1rem; }

.cve-item {
    background: var(--surface);
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
}

.cve-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cve-id { font-weight: 700; color: var(--primary); font-size: 1.1rem; }

.cve-severity {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.severity-critical { background: #fee2e2; color: #991b1b; }
.severity-high { background: #fed7aa; color: #9a3412; }
.severity-medium { background: #fef3c7; color: #92400e; }
.severity-low { background: #d1fae5; color: #065f46; }
.cve-description { color: var(--text-secondary); margin-bottom: 0.5rem; line-height: 1.5; }
.cve-date { font-size: 0.85rem; color: var(--text-secondary); }

.contact-info { background: var(--surface); border-radius: 12px; padding: 1.5rem; box-shadow: var(--shadow); }

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.contact-item:last-child { border-bottom: none; }

.contact-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* Contact Form Styles */
.contact-form-wrapper {
    background: var(--surface);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
    box-shadow: var(--shadow);
}

.contact-form-group {
    margin-bottom: 1.25rem;
}

.contact-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text);
}

.contact-form-group input,
.contact-form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
    background: var(--background);
}

.contact-form-group input:focus,
.contact-form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.contact-form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    font-size: 1.05rem;
    margin-top: 0.5rem;
}

.btn-loader {
    display: inline-block;
}

.form-message {
    display: none;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-weight: 600;
    animation: slideDown 0.3s ease;
}

.form-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 2px solid #10b981;
}

.form-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 2px solid #ef4444;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.install-prompt {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    max-width: 500px;
    margin: 0 auto;
    background: var(--surface);
    padding: 1rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 1000;
}

.install-prompt.show { display: block; animation: slideUp 0.3s ease; }

@keyframes slideUp {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.install-buttons { display: flex; gap: 0.5rem; margin-top: 1rem; }

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary { background: var(--primary); color: white; flex: 1; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: var(--background); color: var(--text); }
.loader { text-align: center; padding: 2rem; color: var(--text-secondary); }
a[href="snake.html"]:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(74, 222, 128, 0.4); }

@media (max-width: 768px) {
    .video-grid { grid-template-columns: 1fr; }
}

/* About / Su di me styles */
.about-wrapper {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    background: var(--surface);
    padding: 1.25rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}
.about-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 120px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    border: 4px solid rgba(232,123,74,0.08);
}
.about-text { color: var(--text-secondary); line-height: 1.5; }
.about-text p { margin-bottom: 0.75rem; }

@media (max-width: 640px) {
    .about-wrapper { flex-direction: column; align-items: center; text-align: center; }
    .about-avatar { margin-bottom: 0.5rem; }
}
