@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --bg-dark: #050508;
    --card-bg: rgba(15, 15, 20, 0.5);
    --primary-color: #00ffcc;
    --primary-glow: rgba(0, 255, 204, 0.4);
    --secondary-color: #8a2be2;
    --text-main: #f0f0f0;
    --text-muted: #a0a0a0;
    --border-color: rgba(255, 255, 255, 0.08);
    --glass-blur: blur(20px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    width: 100%;
    max-width: 100%;
    position: relative;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
}

h1, h2, h3, h4, h5, h6, .page-title, .section-title {
    font-family: 'Poppins', sans-serif;
    color: #fff;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

/* ---------------- BACKGROUND ANIMATIONS (Canva Premium Style) ---------------- */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: 
        radial-gradient(circle at 15% 50%, rgba(0, 255, 204, 0.08), transparent 45%),
        radial-gradient(circle at 85% 30%, rgba(138, 43, 226, 0.08), transparent 45%),
        radial-gradient(circle at 50% 80%, rgba(255, 0, 102, 0.05), transparent 50%);
    animation: pulseGlow 15s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.1); opacity: 1; }
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.3;
    animation: floatOrb 12s infinite alternate ease-in-out;
}
.orb-1 { width: 500px; height: 500px; background: rgba(0, 255, 204, 0.15); top: -20%; left: -10%; animation-delay: 0s; }
.orb-2 { width: 600px; height: 600px; background: rgba(138, 43, 226, 0.12); bottom: -20%; right: -10%; animation-delay: -3s; }
.orb-3 { width: 400px; height: 400px; background: rgba(0, 153, 255, 0.1); top: 30%; left: 40%; animation-delay: -6s; }

@keyframes floatOrb {
    0% { transform: translateY(0) translateX(0) scale(1); }
    100% { transform: translateY(-80px) translateX(40px) scale(1.1); }
}

/* ---------------- GLOBAL UTILITIES ---------------- */
.glass {
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    border-radius: 20px;
}

.container, .detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}
.detail-container {
    padding-top: 100px; /* Space below header */
}

/* ---------------- HEADER & NAVIGATION ---------------- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    background: rgba(5, 5, 8, 0.85);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.logo-container img {
    height: 50px;
    transition: 0.3s;
}

.nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 12, 0.98);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    gap: 0;
    list-style: none;
}

.nav-links.active {
    max-height: 300px;
    border-bottom: 1px solid var(--border-color);
}

.nav-links li {
    width: 100%;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.nav-links a {
    display: block;
    padding: 20px;
    font-size: 1.1rem;
    border-radius: 0;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
    background: rgba(0, 255, 204, 0.1);
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    margin-left: auto;
}

.menu-toggle .bar {
    width: 28px;
    height: 3px;
    background-color: #fff;
    border-radius: 3px;
    transition: 0.3s;
}

/* ---------------- HERO SECTION (Index) ---------------- */
.hero-section {
    padding-top: 120px;
    margin-bottom: 60px;
}

.tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.1);
    margin: 5px;
    backdrop-filter: blur(10px);
}

/* ---------------- TOOLS GRID ---------------- */
.section-heading {
    margin-bottom: 50px;
}
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
}
.tool-card {
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}
.tool-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(0, 255, 204, 0.15);
    border-color: rgba(0, 255, 204, 0.3);
}
.tool-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}
.tool-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.tool-category {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 10px;
}
.tool-title {
    font-size: 1.6rem;
    margin-bottom: 15px;
}
.tool-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 25px;
    flex: 1;
}
.btn-view {
    background: rgba(0, 255, 204, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(0, 255, 204, 0.3);
    padding: 12px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    transition: 0.3s;
}
.tool-card:hover .btn-view {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 5px 20px var(--primary-glow);
}

/* ---------------- SENTINEL PAGE STYLES ---------------- */
.detail-header {
    display: flex;
    gap: 50px;
    align-items: center;
    margin-bottom: 80px;
}
.meta-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}
.feature-card {
    padding: 30px;
    text-align: center;
    transition: 0.3s;
}
.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}
.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(0, 255, 204, 0.1);
    border: 1px solid rgba(0, 255, 204, 0.2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0 auto 20px auto;
}

/* Tables & Boxes */
.sys-req-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255,255,255,0.02);
}
.sys-req-table th, .sys-req-table td {
    padding: 18px;
    border: 1px solid var(--border-color);
    text-align: left;
}
.sys-req-table th {
    background: rgba(0, 255, 204, 0.08);
    color: var(--primary-color);
    font-weight: 600;
}
.faq-box {
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 12px;
}
.faq-box h4 {
    margin-bottom: 12px;
    color: #fff;
    font-size: 1.1rem;
}
.faq-box p {
    color: var(--text-muted);
}
.warning-box {
    background: rgba(255, 51, 51, 0.05);
    border-left: 4px solid #ff3333;
    padding: 25px;
    border-radius: 8px;
    margin: 40px 0;
}
.warning-box h3 {
    color: #ff3333;
    margin-bottom: 10px;
}

/* Terminal Box */
.terminal-box {
    background: #0a0a0c;
    border: 1px solid #333;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    font-family: 'Fira Code', monospace;
}
.terminal-header {
    background: #1a1b20;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #333;
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.r { background: #ff5f56; }
.dot.y { background: #ffbd2e; }
.dot.g { background: #27c93f; }
.terminal-body {
    padding: 25px;
    font-size: 0.95rem;
    overflow-x: auto;
}
.cmd-line { margin-bottom: 8px; display: flex; flex-wrap: wrap; gap: 10px; }
.prompt { color: var(--primary-color); font-weight: 600; white-space: nowrap; }
.cmd { color: #fff; }

/* ---------------- FLOATING BUTTONS ---------------- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 0 5px 25px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: 0.3s;
}
.whatsapp-float:hover {
    transform: scale(1.1) rotate(5deg);
    background: #20b858;
}

/* ---------------- PREMIUM FOOTER ---------------- */
.premium-footer {
    background: #030408;
    border-top: 1px solid var(--border-color);
    padding: 80px 5% 40px 5%;
    margin-top: 80px;
    position: relative;
    z-index: 1;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 60px;
}
.footer-brand p {
    color: var(--text-muted);
    margin: 20px 0;
    max-width: 350px;
}
.social-icons {
    display: flex;
    gap: 15px;
}
.social-btn {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    transition: 0.3s;
}
.social-btn:hover {
    background: var(--primary-color);
    color: #000;
    transform: translateY(-3px);
}
.footer-links h4 {
    color: #fff;
    margin-bottom: 25px;
    font-size: 1.2rem;
}
.footer-links ul {
    list-style: none;
}
.footer-links li {
    margin-bottom: 15px;
}
.footer-links a {
    color: var(--text-muted);
}
.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}
.footer-bottom-strip {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ---------------- 📱 CANVA-STYLE MOBILE RESPONSIVENESS 📱 ---------------- */
@media(max-width: 992px) {
    .detail-header {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media(max-width: 768px) {
    /* Layout Foundations */
    body, html {
        width: 100%;
        max-width: 100%;
    }
    
    /* Header Re-Engineering */
    header {
        padding: 8px 15px !important;
        height: 70px !important;
    }
    .logo-container img {
        height: 38px !important;
        width: auto !important;
        max-width: 220px !important;
        object-fit: contain;
        object-position: left center;
        margin: 0;
    }
    
    /* Grids to Single Column */
    .tools-grid, .feature-grid, .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 25px;
    }
    
    /* Clean up Boxes on Mobile (Remove borders/shadows for clean text reading) */
    .feature-card, .faq-box, .warning-box, .glass-mobile-clean {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 15px 0 !important;
        border-radius: 0 !important;
    }
    .github-block {
        background: transparent !important;
        border: none !important;
        padding: 10px 0 !important;
    }
    .feature-card:hover { transform: none; }

    /* Typography Scaling */
    h1, .page-title { font-size: 2.2rem !important; }
    h2, .section-title { font-size: 1.7rem !important; border-bottom: none !important; }
    h3 { font-size: 1.4rem !important; }
    p { font-size: 1rem !important; }
    
    /* Hero Adjustments */
    .hero-section {
        padding: 100px 10px 40px 10px !important;
        margin-bottom: 20px;
    }
    
    /* Image scaling */
    img { max-width: 100% !important; height: auto !important; }
    
    /* Buttons */
    .btn-cta {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        padding: 18px 20px !important;
        font-size: 1.1rem !important;
    }
    .github-pulse-btn {
        width: 100% !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        padding: 15px !important;
        gap: 12px !important;
        text-align: left !important;
    }
    .github-pulse-btn i {
        font-size: 2.5rem !important;
    }
    .github-pulse-btn div {
        text-align: left !important;
    }
    .github-pulse-btn span:first-child {
        font-size: 1rem !important;
    }
    .github-pulse-btn span:last-child {
        font-size: 0.75rem !important;
    }
    
    /* Footer Formatting */
    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .social-icons {
        justify-content: center;
    }
    .footer-links { text-align: center; }
    .footer-bottom-strip {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding-top: 20px;
    }

    /* Table Fixes */
    .sys-req-table, .sys-req-table tbody, .sys-req-table tr, .sys-req-table th, .sys-req-table td {
        display: block;
        width: 100%;
        background: transparent !important;
    }
    .sys-req-table th {
        border: none;
        color: var(--primary-color) !important;
        padding: 15px 0 5px 0;
    }
    .sys-req-table td {
        border: none;
        border-bottom: 1px solid var(--border-color) !important;
        padding: 0 0 15px 0;
    }
}

@media(max-width: 480px) {
    /* iPhone SE / Small Screens */
    .page-title { font-size: 1.8rem !important; }
    
    .whatsapp-float {
        width: 55px !important;
        height: 55px !important;
        font-size: 28px !important;
        bottom: 20px;
        right: 20px;
    }
}
