/* ============================================================
   RECONX PRO — Ultimate Reconnaissance Platform
   Developer: Artha Anugerah Effendi (ZX12THA)
   WhatsApp: 085788430349
   GitHub: https://github.com/ZX12THA
   ============================================================ */

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #070b12;
    color: #e8edf5;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

::selection {
    background: #00d4ff;
    color: #070b12;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0b1118;
}
::-webkit-scrollbar-thumb {
    background: #00d4ff;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #7b2ffc;
}

/* ===== LOADER ===== */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #070b12;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid transparent;
    border-top: 4px solid #00d4ff;
    border-right: 4px solid #7b2ffc;
    border-radius: 50%;
    animation: spin 1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#loader p {
    margin-top: 20px;
    color: #7b8a9b;
    font-weight: 600;
    letter-spacing: 2px;
    animation: pulseText 1.5s ease-in-out infinite;
}

@keyframes pulseText {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

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

/* ===== NAVBAR ===== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(7, 11, 18, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 0;
    transition: 0.3s;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: 800;
    color: #e8edf5;
}

.nav-logo i {
    font-size: 1.6rem;
    color: #00d4ff;
}

.nav-logo .highlight {
    background: linear-gradient(135deg, #00d4ff, #7b2ffc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav-links a {
    color: #7b8a9b;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
    color: #00d4ff;
    border-bottom-color: #00d4ff;
}

.nav-links a i {
    font-size: 0.9rem;
}

.nav-version .version-badge {
    background: linear-gradient(135deg, #00d4ff, #7b2ffc);
    padding: 4px 14px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    color: #e8edf5;
    cursor: pointer;
}

/* ===== HERO ===== */
.hero {
    padding: 60px 0 40px;
    background: linear-gradient(180deg, #0b1118, #070b12);
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-text .hero-badge {
    display: inline-block;
    background: rgba(0, 212, 255, 0.12);
    padding: 4px 16px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #00d4ff;
    border: 1px solid rgba(0, 212, 255, 0.15);
    margin-bottom: 16px;
}

.hero-text h1 {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 12px;
}

.gradient-text {
    background: linear-gradient(135deg, #00d4ff, #7b2ffc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #7b8a9b;
    margin-bottom: 20px;
}

.hero-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: #5a6a7a;
}

.hero-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-meta i {
    color: #00d4ff;
}

.hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.hero-stat {
    background: #121b24;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid #1a2530;
    text-align: center;
    transition: 0.3s;
}

.hero-stat:hover {
    transform: translateY(-4px);
    border-color: #00d4ff;
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.06);
}

.hero-stat i {
    font-size: 1.4rem;
    color: #00d4ff;
    display: block;
    margin-bottom: 4px;
}

.hero-stat span {
    display: block;
    font-size: 0.75rem;
    color: #7b8a9b;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-stat strong {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: #e8edf5;
    margin-top: 4px;
}

/* ===== SECTION HEADER ===== */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header i {
    font-size: 2.5rem;
    color: #00d4ff;
    margin-bottom: 8px;
    display: block;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
}

.section-header p {
    color: #7b8a9b;
    font-size: 1rem;
}

/* ===== CARDS ===== */
.card {
    background: #121b24;
    border-radius: 20px;
    border: 1px solid #1a2530;
    padding: 28px;
    margin-bottom: 24px;
    transition: 0.3s;
}

.card:hover {
    border-color: #2a3744;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.card-header i {
    font-size: 1.3rem;
    color: #00d4ff;
}

.card-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #e8edf5;
}

.card-actions {
    margin-left: auto;
    display: flex;
    gap: 8px;
}

/* ===== INPUT ===== */
.input-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.input-group input {
    flex: 1;
    min-width: 200px;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid #1a2530;
    background: #0b1118;
    color: #e8edf5;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

.input-group input:focus {
    border-color: #00d4ff;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.input-group input::placeholder {
    color: #3a4a5a;
}

.btn-primary {
    padding: 14px 32px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    background: linear-gradient(135deg, #00d4ff, #7b2ffc);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.25);
}

.btn-secondary {
    padding: 8px 16px;
    border: 1px solid #2a3744;
    border-radius: 8px;
    background: transparent;
    color: #b0c4d9;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-secondary:hover {
    background: #1a2530;
    border-color: #00d4ff;
    color: #00d4ff;
}

/* ===== OPTIONS ===== */
.options-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #7b8a9b;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.3s;
}

.option-item:hover {
    color: #e8edf5;
}

.option-item input[type="checkbox"] {
    accent-color: #00d4ff;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.option-item i {
    color: #00d4ff;
}

/* ===== STATS GRID ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
    animation: fadeUp 0.6s ease;
}

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

.stat-card {
    background: #121b24;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid #1a2530;
    text-align: center;
    transition: 0.3s;
}

.stat-card:hover {
    border-color: #2a3744;
    transform: translateY(-2px);
}

.stat-icon {
    font-size: 1.8rem;
    color: #00d4ff;
    margin-bottom: 4px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #e8edf5;
    display: block;
}

.stat-label {
    font-size: 0.8rem;
    color: #7b8a9b;
}

.stat-bar {
    width: 100%;
    height: 4px;
    background: #0b1118;
    border-radius: 4px;
    margin-top: 8px;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    background: linear-gradient(90deg, #00d4ff, #7b2ffc);
    border-radius: 4px;
    transition: width 1s ease;
}

/* ===== OUTPUT ===== */
.output-box {
    background: #070b12;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #1a2530;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    white-space: pre-wrap;
    word-break: break-all;
    min-height: 120px;
    max-height: 350px;
    overflow-y: auto;
    color: #b0c4d9;
    line-height: 1.7;
}

.output-prompt {
    color: #00d4ff;
}

/* ===== ABOUT ===== */
.about-section {
    padding: 60px 0;
    border-top: 1px solid rgba(255,255,255,0.03);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.about-card {
    background: #121b24;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid #1a2530;
    text-align: center;
    transition: 0.3s;
}

.about-card:hover {
    transform: translateY(-6px);
    border-color: #00d4ff;
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.05);
}

.about-card i {
    font-size: 2.2rem;
    color: #00d4ff;
    margin-bottom: 12px;
}

.about-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.about-card p {
    font-size: 0.9rem;
    color: #7b8a9b;
}

/* ===== DEVELOPER ===== */
.developer-section {
    padding: 60px 0;
    border-top: 1px solid rgba(255,255,255,0.03);
}

.developer-card {
    display: flex;
    gap: 30px;
    background: #121b24;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid #1a2530;
    align-items: flex-start;
    flex-wrap: wrap;
}

.dev-avatar {
    font-size: 3.5rem;
    background: #0b1118;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #00d4ff;
    flex-shrink: 0;
}

.dev-info {
    flex: 1;
    min-width: 200px;
}

.dev-info h3 {
    font-size: 1.6rem;
    margin-bottom: 4px;
}

.dev-title {
    color: #00d4ff;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.dev-bio {
    color: #7b8a9b;
    max-width: 650px;
    margin-bottom: 16px;
}

.dev-contact {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.dev-contact a {
    color: #4facfe;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 30px;
    background: rgba(79, 172, 254, 0.05);
    border: 1px solid rgba(79, 172, 254, 0.1);
}

.dev-contact a:hover {
    color: #00d4ff;
    background: rgba(0, 212, 255, 0.08);
    border-color: #00d4ff;
}

/* ===== TECHNOLOGY ===== */
.tech-section {
    padding: 60px 0;
    border-top: 1px solid rgba(255,255,255,0.03);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
}

.tech-card {
    background: #121b24;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid #1a2530;
    text-align: center;
    transition: 0.3s;
}

.tech-card:hover {
    transform: translateY(-4px);
    border-color: #00d4ff;
}

.tech-card i {
    font-size: 2.4rem;
    color: #00d4ff;
    margin-bottom: 8px;
    display: block;
}

.tech-card h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.tech-card p {
    font-size: 0.8rem;
    color: #7b8a9b;
}

.tech-credit {
    text-align: center;
    margin-top: 30px;
    color: #5a6a7a;
    font-size: 0.9rem;
}

/* ===== FOOTER ===== */
footer {
    background: #0b1118;
    border-top: 1px solid #1a2530;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-brand i {
    font-size: 1.8rem;
    color: #00d4ff;
}

.footer-brand span {
    font-size: 1.2rem;
    font-weight: 800;
}

.footer-brand .highlight {
    background: linear-gradient(135deg, #00d4ff, #7b2ffc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-brand p {
    color: #7b8a9b;
    font-size: 0.85rem;
    margin-top: 4px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    color: #7b8a9b;
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #00d4ff;
}

.footer-contact p {
    color: #7b8a9b;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.footer-contact i {
    color: #00d4ff;
    width: 20px;
}

.footer-bottom {
    border-top: 1px solid #1a2530;
    padding-top: 20px;
    text-align: center;
    color: #3a4a5a;
    font-size: 0.8rem;
}

.footer-credit {
    margin-top: 4px;
}

/* ===== TOAST ===== */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #121b24;
    padding: 14px 24px;
    border-radius: 12px;
    border: 1px solid #00d4ff;
    color: #e8edf5;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 999;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.toast.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.toast i {
    color: #00d4ff;
    font-size: 1.2rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-meta {
        justify-content: center;
    }
    .hero-stats {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        gap: 12px;
        width: 100%;
        padding: 16px 0;
        border-top: 1px solid #1a2530;
        margin-top: 12px;
    }
    .nav-links.open {
        display: flex;
    }
    .hamburger {
        display: block;
    }
    .nav-container {
        flex-wrap: wrap;
    }
    .hero-text h1 {
        font-size: 2.2rem;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    .developer-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .dev-contact {
        justify-content: center;
    }
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-links {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .tech-grid {
        grid-template-columns: 1fr 1fr;
    }
    .options-grid {
        flex-direction: column;
        gap: 10px;
    }
    .input-group input {
        min-width: 100%;
    }
    .btn-primary {
        width: 100%;
        justify-content: center;
    }
}