/*
Theme Name: Web3Agentic
Theme URI: https://web3.my.id/
Author: Antigravity Code
Author URI: https://web3.my.id/
Description: A premium dark mode AI startup theme.
Version: 1.0.11
Requires at least: 6.0
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: web3agentic
*/

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

:root {
    --bg-dark: #050508;
    --bg-card: #121217;
    --bg-card-hover: #16171d;
    --primary-cyan: #00d1ff;
    --primary-purple: #6e41ff;
    --primary-green: #00ff41;
    --text-white: #ffffff;
    --text-gray: #9ba0aa;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(0, 209, 255, 0.3);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-gray);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-white);
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
a:hover { color: var(--primary-cyan); }

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, #6e41ff 0%, #00d1ff 100%);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 500;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 15px;
    gap: 8px;
    border: none;
    cursor: pointer;
}
.btn-primary:hover {
    box-shadow: 0 0 20px rgba(110, 65, 255, 0.5);
    color: #fff;
}
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: #000000;
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    gap: 8px;
}
.btn-secondary:hover { background: #e0e0e0; }

/* Header - Glassmorphism */
.site-header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    z-index: 1000;
    background: rgba(5, 5, 8, 0.5);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.site-header.scrolled {
    background: rgba(5, 5, 8, 0.85);
    backdrop-filter: blur(24px);
    padding: 14px 5%;
    border-bottom: 1px solid rgba(0, 209, 255, 0.15);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 209, 255, 0.05);
}
.site-header.scrolled .logo-icon {
    transform: scale(0.9);
}
.logo-container {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--font-heading); font-size: 24px; font-weight: 700; color: #fff;
}
.logo-icon { width: 32px; height: 32px; background: linear-gradient(135deg, #00d1ff, #6e41ff); border-radius: 50%; }

.nav-menu { display: flex; gap: 30px; list-style: none; }
.nav-menu li a {
    color: var(--text-white);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 130px 5% 80px;
    min-height: 1vh;
    display: flex;
    align-items: flex-start;
}
.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: 
        radial-gradient(circle at 80% 20%, rgba(110, 65, 255, 0.25) 0%, transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(0, 209, 255, 0.15) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 50%, rgba(110, 65, 255, 0.1) 0%, transparent 60%);
    z-index: -1;
    overflow: hidden;
}
.hero-bg::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: repeating-linear-gradient(rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 40px),
                repeating-linear-gradient(90deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 40px);
    transform: perspective(500px) rotateX(60deg) translateY(-100px) translateZ(-200px);
    animation: flowGrid 20s linear infinite;
    opacity: 0.3;
}
@keyframes flowGrid { 100% { transform: perspective(500px) rotateX(60deg) translateY(0px) translateZ(-200px); } }

.hero-content {
    position: relative;
    max-width: 650px;
    z-index: 10;
    margin-top: 0;
}
.hero-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 24px;
    letter-spacing: -1px;
    position: relative;
    z-index: 10;
}

#network-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}
#footer-network-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    mask-image: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%);
}

.hero-desc {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 40px;
    max-width: 500px;
}

/* Service Section */
.services-section {
    padding: 100px 5%;
    position: relative;
}
.section-tag {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    color: var(--primary-cyan);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}
.section-title {
    font-size: 3rem;
    margin-bottom: 60px;
    max-width: 600px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px 30px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.service-card:hover {
    transform: translateY(-10px);
    background: var(--bg-card-hover);
    border-color: rgba(255,255,255,0.8);
    box-shadow: 
        -15px -15px 30px rgba(234, 67, 53, 0.9), -25px -25px 80px rgba(234, 67, 53, 0.6),
        15px -15px 30px rgba(251, 188, 5, 0.9), 25px -25px 80px rgba(251, 188, 5, 0.6),
        15px 15px 30px rgba(52, 168, 83, 0.9), 25px 25px 80px rgba(52, 168, 83, 0.6),
        -15px 15px 30px rgba(66, 133, 244, 0.9), -25px 25px 80px rgba(66, 133, 244, 0.6),
        inset 0 0 25px rgba(255, 255, 255, 0.3);
}
.card-icon-proxy {
    width: 64px; height: 64px;
    border-radius: 50%;
    margin-bottom: 30px;
    background: linear-gradient(135deg, rgba(110,65,255,0.2), rgba(0,209,255,0.2));
    border: 1px solid rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    position: relative;
}
.card-icon-proxy::after {
    content: ''; position: absolute; width: 30px; height: 30px;
    background: linear-gradient(135deg, #00d1ff, #6e41ff);
    border-radius: 50%; filter: blur(4px);
}
.service-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
}
.service-card p {
    font-size: 15px;
    color: var(--text-gray);
    margin-bottom: 24px;
}
.feature-list { list-style: none; }
.feature-list li {
    font-size: 14px;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.feature-list li::before {
    content: '✦';
    color: var(--primary-purple);
    font-size: 12px;
}

/* Articles Section */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: var(--max-width, 1400px);
    margin: 0 auto;
}
.article-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 35px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.article-card:hover {
    border-color: rgba(255,255,255,0.8);
    transform: translateY(-8px);
    background: var(--bg-card-hover);
    box-shadow: 
        -15px -15px 30px rgba(234, 67, 53, 0.9), -25px -25px 80px rgba(234, 67, 53, 0.6),
        15px -15px 30px rgba(251, 188, 5, 0.9), 25px -25px 80px rgba(251, 188, 5, 0.6),
        15px 15px 30px rgba(52, 168, 83, 0.9), 25px 25px 80px rgba(52, 168, 83, 0.6),
        -15px 15px 30px rgba(66, 133, 244, 0.9), -25px 25px 80px rgba(66, 133, 244, 0.6),
        inset 0 0 25px rgba(255, 255, 255, 0.3);
}
.article-meta {
    font-size: 13px;
    color: var(--primary-cyan);
    margin-bottom: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.article-card h3 {
    font-size: 22px;
    margin-bottom: 20px;
    line-height: 1.35;
}
.article-card h3 a { transition: var(--transition); }
.article-card h3 a:hover { 
    color: var(--primary-green); 
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.5); 
}
.article-card p {
    font-size: 15px;
    color: var(--text-gray);
    margin-bottom: 30px;
}
.article-thumbnail {
    margin: -35px -35px 20px -35px;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}
.article-thumbnail img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: var(--transition);
    display: block;
}
.article-card:hover .article-thumbnail img {
    transform: scale(1.05);
}
.read-more-link {
    font-size: 14px;
    color: var(--text-white);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid transparent;
}
.read-more-link:hover {
    color: var(--primary-cyan);
    border-color: var(--primary-cyan);
}

/* Inner Pages (Single & Page) */
.inner-main {
    padding: 150px 5% 100px;
    min-height: 80vh;
}
.single-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}
.single-meta {
    margin-bottom: 20px;
}
.single-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 24px;
    letter-spacing: -1px;
}
.single-meta-bottom {
    font-size: 15px;
    color: var(--text-gray);
}
.single-featured-image {
    max-width: 850px;
    margin: 0 auto 50px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.single-featured-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}
.single-content-wrapper {
    max-width: 850px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 60px;
    position: relative;
    transition: var(--transition);
}
.single-content-wrapper:hover {
    border-color: rgba(255,255,255,0.6);
    box-shadow: 
        -20px -20px 40px rgba(234, 67, 53, 0.6), 
        20px -20px 40px rgba(251, 188, 5, 0.6),
        20px 20px 40px rgba(52, 168, 83, 0.6),
        -20px 20px 40px rgba(66, 133, 244, 0.6),
        inset 0 0 20px rgba(255, 255, 255, 0.15);
}
.single-content-wrapper::before {
    content: '';
    position: absolute;
    top: -20px; left: 50%; transform: translateX(-50%);
    width: 60%; height: 20px;
    background: radial-gradient(ellipse at top, rgba(110,65,255,0.4), transparent 70%);
    opacity: 0.5;
}
.single-content {
    font-size: 17px;
    line-height: 1.8;
    color: #ced4da; /* Teks seimbang, tidak terlalu mencolok/terang */
    letter-spacing: 0.2px;
}
.single-content h2, .single-content h3 {
    margin: 40px 0 20px;
    color: var(--text-white);
}
.single-content p {
    margin-bottom: 24px;
}
.single-content ul, .single-content ol {
    margin: 0 0 24px 20px;
    padding-left: 20px;
}
.single-content li {
    margin-bottom: 10px;
}
.single-content a {
    color: var(--primary-cyan);
    text-decoration: underline;
    text-decoration-color: rgba(0, 209, 255, 0.3);
    text-underline-offset: 4px;
    transition: var(--transition);
}
.single-content a:hover {
    color: var(--primary-green);
    text-decoration-color: var(--primary-green);
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}
.single-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 30px 0;
    border: 1px solid var(--border-color);
}
.single-content blockquote {
    padding: 20px 30px;
    border-left: 4px solid var(--primary-purple);
    background: rgba(110, 65, 255, 0.05);
    margin: 30px 0;
    border-radius: 0 12px 12px 0;
    font-style: italic;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px dashed rgba(255,255,255,0.1);
}
.share-label {
    font-size: 14px;
    color: var(--text-gray);
    margin-right: 8px;
    font-weight: 500;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.05);
    cursor: pointer;
    padding: 0;
}
.single-content a.share-btn {
    text-decoration: none;
}
.share-btn:hover {
    transform: translateY(-3px);
}
.share-btn.share-wa:hover {
    background: #25D366;
    border-color: #25D366;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}
.share-btn.share-tg:hover {
    background: #0088cc;
    border-color: #0088cc;
    box-shadow: 0 5px 15px rgba(0, 136, 204, 0.4);
}
.share-btn.share-copy:hover {
    background: #ff8c00;
    border-color: #ff8c00;
    box-shadow: 0 5px 15px rgba(255, 140, 0, 0.4);
    color: #fff;
}

/* Post Navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    gap: 20px;
}
.post-navigation a {
    color: var(--text-gray);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    display: block;
}
.post-navigation a:hover {
    color: var(--primary-green);
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.4);
}
.post-navigation .nav-previous { text-align: left; flex: 1; }
.post-navigation .nav-next { text-align: right; flex: 1; }

/* Footer */
.site-footer {
    border-top: 1px solid var(--border-color);
    padding: 30px 5% 20px;
    margin-top: 20px;
    background: linear-gradient(to bottom, transparent, rgba(110,65,255,0.05));
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}
.footer-col h4 { margin-bottom: 16px; font-size: 18px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: var(--text-gray); font-size: 15px; display: inline-block; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--primary-cyan); transform: translateX(5px); }

.newsletter-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 6px;
    display: flex;
    margin-top: 20px;
}
.newsletter-box input {
    background: transparent;
    border: none;
    color: #fff;
    padding: 10px 16px;
    width: 100%;
    outline: none;
    font-family: var(--font-body);
}
.newsletter-box button {
    background: var(--primary-purple);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    cursor: pointer;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 10px;
    font-size: 14px;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00d1ff, #6e41ff);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 999;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}
.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(0, 209, 255, 0.4);
}

/* Floating AI Icon Animation */
@keyframes iconFloat {
    0%, 100% { transform: translateY(0); filter: drop-shadow(0 0 5px rgba(0, 209, 255, 0.4)); }
    50% { transform: translateY(-8px); filter: drop-shadow(0 15px 15px rgba(0, 209, 255, 0.8)); }
}
@keyframes iconSlide {
    0%, 100% { transform: translateX(0); filter: drop-shadow(0 0 5px rgba(0, 209, 255, 0.4)); }
    25% { transform: translateX(6px); }
    75% { transform: translateX(-6px); filter: drop-shadow(0 15px 15px rgba(0, 209, 255, 0.8)); }
}
@keyframes iconZoom {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 5px rgba(0, 209, 255, 0.4)); }
    50% { transform: scale(0.85); filter: drop-shadow(0 0 25px rgba(0, 209, 255, 0.9)); }
}

.mascot-container {
    margin-top: 30px;
}
.hero-mascot {
    height: 250px;
    width: auto;
    display: inline-block;
    filter: drop-shadow(0 0 30px rgba(0, 209, 255, 0.4));
    transition: var(--transition);
}
.hero-mascot:hover {
    filter: drop-shadow(0 0 50px rgba(0, 209, 255, 0.7));
    transform: scale(1.05);
}
.floating-ai-icon {
    animation: iconFloat 4s ease-in-out infinite;
}
.sliding-ai-icon {
    animation: iconSlide 4s ease-in-out infinite;
}
.zooming-ai-icon {
    animation: iconZoom 4s ease-in-out infinite;
}

@media (max-width: 900px) {
    .nav-menu { display: none; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 2.5rem; }
    .articles-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .single-content-wrapper { padding: 30px; }
}
@media (max-width: 600px) {
    .services-grid, .articles-grid { grid-template-columns: 1fr; }
    .single-content-wrapper { padding: 20px; border-radius: 12px; }
    .site-header { padding: 15px 5%; }
}
