/*
Theme Name: Maker Portfolio
Theme URI: https://duwiarsana.com
Author: Duwi Arsana
Author URI: https://duwiarsana.com
Description: A premium, dark-mode, neon-accented portfolio theme built specifically for IoT Developers and Electronics Makers. Features glassmorphism, micro-animations, and a tech aesthetic.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: maker-portfolio
*/

/* =========================================
   MAKER PORTFOLIO STYLES
   ========================================= */

/* Variables */
:root {
    /* Colors - Cyan Tech Theme */
    --neon-accent: #00f0ff;
    --neon-accent-glow: rgba(0, 240, 255, 0.4);
    --neon-secondary: #ff0055;
    
    --bg-base: #050505;
    --bg-surface: rgba(20, 20, 20, 0.6);
    --bg-card: rgba(30, 30, 35, 0.5);
    
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    
    --border-light: rgba(255, 255, 255, 0.08);
    --border-neon: rgba(0, 240, 255, 0.3);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'Fira Code', monospace;
    
    /* Effects */
    --glass-blur: blur(12px);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Global */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

* {
    box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-top: 0;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-neon {
    color: var(--neon-accent);
    text-shadow: 0 0 10px var(--neon-accent-glow);
}

.text-center {
    text-align: center;
}

/* Background Effects */
.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -2;
    opacity: 0.15;
}

.bg-glow-1 {
    width: 500px;
    height: 500px;
    background: var(--neon-accent);
    top: -100px;
    left: -100px;
}

.bg-glow-2 {
    width: 600px;
    height: 600px;
    background: var(--neon-secondary);
    bottom: -200px;
    right: -200px;
}

.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    /* Circuit board SVG pattern */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath fill='none' stroke='rgba(0, 240, 255, 0.2)' stroke-width='1' d='M0 50h20l10-10h40l10 10h20M30 40V20l10-10h20l10 10v20M50 0v10M50 100V90M0 20h10l10 10v40l-10 10H0M100 20H90l-10 10v40l10 10h10'/%3E%3Ccircle cx='30' cy='40' r='2' fill='rgba(0, 240, 255, 0.4)'/%3E%3Ccircle cx='70' cy='40' r='2' fill='rgba(0, 240, 255, 0.4)'/%3E%3Ccircle cx='50' cy='10' r='2' fill='rgba(0, 240, 255, 0.4)'/%3E%3Ccircle cx='50' cy='90' r='2' fill='rgba(0, 240, 255, 0.4)'/%3E%3C/svg%3E");
    background-size: 150px 150px;
    z-index: -1;
    opacity: 0.3;
    pointer-events: none;
    animation: pcbPulse 8s infinite alternate ease-in-out;
}

@keyframes pcbPulse {
    0% { opacity: 0.1; filter: drop-shadow(0 0 0px transparent); }
    100% { opacity: 0.5; filter: drop-shadow(0 0 5px var(--neon-accent)); }
}

/* Glassmorphism Classes */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-light);
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Navigation */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.5px;
}

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

.nav-links a:not(.btn) {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-links a:not(.btn):hover {
    color: var(--neon-accent);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--neon-accent);
    color: var(--bg-base);
    box-shadow: 0 0 20px var(--neon-accent-glow);
    border: 1px solid var(--neon-accent);
}

.btn-primary:hover {
    box-shadow: 0 0 30px var(--neon-accent-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--neon-accent);
    border: 1px solid var(--neon-accent);
}

.btn-outline:hover {
    background: rgba(0, 240, 255, 0.1);
    box-shadow: 0 0 15px var(--neon-accent-glow);
}

/* Sections */
section {
    padding: 100px 0;
}

.section-heading {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    font-family: var(--font-mono);
    color: var(--neon-accent);
    font-size: 0.9rem;
    margin-bottom: 12px;
    display: block;
}

.section-title {
    font-size: 2.5rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.greeting {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.greeting i {
    color: var(--neon-accent);
}

.hero-title {
    font-size: clamp(3rem, 5vw, 5rem);
    letter-spacing: -1px;
    margin-bottom: 8px;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    color: var(--text-secondary);
    margin-bottom: 24px;
    height: 36px;
}

.cursor {
    display: inline-block;
    width: 3px;
    background-color: var(--neon-accent);
    animation: blink 1s infinite;
}

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

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

/* Tech Card Visual */
.tech-card {
    width: 100%;
    max-width: 450px;
    padding: 0;
    overflow: hidden;
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.tech-card:hover {
    transform: perspective(1000px) rotateY(0) rotateX(0);
}

.card-header {
    background: rgba(0,0,0,0.4);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
}

.dots {
    display: flex;
    gap: 6px;
    margin-right: 16px;
}

.dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.dots span:nth-child(1) { background: #ff5f56; }
.dots span:nth-child(2) { background: #ffbd2e; }
.dots span:nth-child(3) { background: #27c93f; }

.file-name {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.card-code {
    padding: 24px;
}

.card-code pre {
    margin: 0;
}

.card-code code {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.7;
    color: #e0e0e0;
}

.keyword { color: #ff7b72; }
.function { color: #d2a8ff; }
.string { color: #a5d6ff; }
.comment { color: #8b949e; }

.floating-badge {
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid var(--neon-accent);
    padding: 8px 16px;
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
    animation: float 6s ease-in-out infinite;
}

.badge-1 {
    top: -20px;
    right: -20px;
    animation-delay: 0s;
}

.badge-2 {
    bottom: 20px;
    left: -20px;
    animation-delay: -3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.skill-card {
    padding: 40px 30px;
    transition: var(--transition-smooth);
}

.skill-card:hover {
    border-color: var(--border-neon);
    transform: translateY(-5px);
}

.skill-icon {
    font-size: 2.5rem;
    color: var(--neon-accent);
    margin-bottom: 20px;
}

.skill-card h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.skill-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.project-card {
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    border-color: var(--border-neon);
    transform: translateY(-5px);
}

.project-img {
    height: 200px;
    background: rgba(0,0,0,0.5);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-placeholder {
    font-size: 4rem;
    color: var(--text-muted);
}

.project-card:hover .img-placeholder {
    color: var(--neon-accent);
}

.project-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.project-tags span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 4px 10px;
    background: rgba(0, 240, 255, 0.1);
    color: var(--neon-accent);
    border-radius: 4px;
}

.project-content h3 {
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.project-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
    flex: 1;
}

.project-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-top: auto;
}

.project-link i {
    color: var(--neon-accent);
    transition: transform 0.3s ease;
}

.project-card:hover .project-link i {
    transform: translateX(5px);
}

/* Contact Section */
.contact-card {
    padding: 80px 40px;
    text-align: center;
    background: linear-gradient(135deg, rgba(30,30,35,0.8) 0%, rgba(10,10,15,0.8) 100%);
    border: 1px solid var(--border-neon);
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-content p {
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-light);
    padding: 60px 0 30px;
    background: rgba(0,0,0,0.5);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 900;
}

.footer-socials {
    display: flex;
    gap: 16px;
}

.footer-socials a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    font-size: 1.2rem;
}

.footer-socials a:hover {
    background: var(--neon-accent);
    color: #000;
    border-color: var(--neon-accent);
    box-shadow: 0 0 15px var(--neon-accent-glow);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-light);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Scroll Animations */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s ease;
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s ease;
}

.reveal-up.active,
.reveal-left.active,
.reveal-right.active {
    opacity: 1;
    transform: translate(0);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        padding-top: 40px;
    }
    
    .greeting {
        justify-content: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .tech-card {
        margin-top: 40px;
    }
    
    .nav-links {
        display: none; 
    }
    
    .mobile-menu-btn {
        display: block;
    }
}

/* =========================================
   PROJECT CARD LINK - WHOLE CARD CLICKABLE
   ========================================= */
.project-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-card-link:hover {
    text-decoration: none;
    color: inherit;
}

/* =========================================
   SINGLE POST PAGE
   ========================================= */
.single-post-page {
    padding: 140px 0 80px;
    min-height: 100vh;
}

.post-article {
    max-width: 800px;
    margin: 0 auto;
    padding: 50px;
}

.post-header {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-light);
}

.post-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.post-badge {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 4px 12px;
    background: rgba(0, 240, 255, 0.1);
    color: var(--neon-accent);
    border-radius: 4px;
}

.post-title {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

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

.post-meta i {
    font-size: 1rem;
}

.post-thumbnail {
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.post-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.post-content h2,
.post-content h3,
.post-content h4 {
    color: var(--text-primary);
    margin-top: 30px;
    margin-bottom: 15px;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content a {
    color: var(--neon-accent);
    text-decoration: underline;
}

.post-content a:hover {
    color: var(--text-primary);
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.post-content blockquote {
    border-left: 3px solid var(--neon-accent);
    padding: 15px 25px;
    margin: 25px 0;
    background: rgba(0, 240, 255, 0.05);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--text-secondary);
}

.post-content pre {
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 20px;
    overflow-x: auto;
    margin: 25px 0;
}

.post-content code {
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.post-content :not(pre) > code {
    background: rgba(0, 240, 255, 0.1);
    color: var(--neon-accent);
    padding: 2px 6px;
    border-radius: 4px;
}

.post-content ul,
.post-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.post-content li {
    margin-bottom: 10px;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
}

.post-content th {
    background: rgba(0, 240, 255, 0.1);
    color: var(--neon-accent);
    padding: 12px;
    text-align: left;
    border: 1px solid var(--border-light);
}

.post-content td {
    padding: 12px;
    border: 1px solid var(--border-light);
}

.post-footer {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-link {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--neon-accent);
    text-decoration: none;
    padding: 4px 10px;
    background: rgba(0, 240, 255, 0.05);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.tag-link:hover {
    background: rgba(0, 240, 255, 0.2);
}

.post-navigation {
    max-width: 800px;
    margin: 40px auto 0;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.post-navigation a {
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.post-navigation a:hover {
    color: var(--neon-accent);
    border-color: var(--border-neon);
}

.nav-previous {
    text-align: left;
}

.nav-next {
    text-align: right;
    margin-left: auto;
}

/* Comments */
.comments-area {
    max-width: 800px;
    margin: 40px auto 0;
}

.comments-area h2 {
    color: var(--text-primary);
    margin-bottom: 20px;
}

.comments-area .comment {
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.02);
}

.comments-area .comment-body {
    color: var(--text-secondary);
}

.comments-area .comment-author {
    color: var(--neon-accent);
    font-weight: 600;
}

.comments-area textarea,
.comments-area input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    border-radius: 8px;
    padding: 12px;
    width: 100%;
    margin-bottom: 15px;
}

.comments-area textarea:focus,
.comments-area input:focus {
    border-color: var(--neon-accent);
    outline: none;
}

.comments-area input[type="submit"] {
    background: var(--neon-accent);
    color: var(--bg-dark);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    cursor: pointer;
    width: auto;
}

/* Responsive Single Post */
@media (max-width: 768px) {
    .post-article {
        padding: 25px;
    }
    .post-title {
        font-size: 1.5rem;
    }
    .post-meta {
        flex-direction: column;
        gap: 8px;
    }
    .post-navigation {
        flex-direction: column;
    }
    .nav-next {
        margin-left: 0;
    }
}
