/*
Theme Name: Juwandi Portfolio
Theme URI: https://muhamadjuwandi.my.id
Author: Muhamad Juwandi
Author URI: https://muhamadjuwandi.my.id
Description: Premium dark portfolio theme with glassmorphism effects, smooth CSS animations, and full WordPress integration. All content manageable from admin panel.
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: juwandi
Tags: dark, portfolio, one-page, custom-colors, custom-logo
*/

/* ═══════════════════════════════════════════
   BASE STYLES
   ═══════════════════════════════════════════ */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.glass-card {
    background: rgba(42, 53, 72, 0.4);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

/* ═══════════════════════════════════════════
   SCROLL REVEAL
   ═══════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
    transition: opacity 1s ease-in;
}

.fade-in.active {
    opacity: 1;
}

.stagger-1 { transition-delay: 100ms; }
.stagger-2 { transition-delay: 200ms; }
.stagger-3 { transition-delay: 300ms; }

/* ═══════════════════════════════════════════
   PROFILE CARD — SPOTLIGHT & TILT
   ═══════════════════════════════════════════ */
.spotlight-wrapper {
    border-radius: 1.4rem;
    position: relative;
    overflow: hidden;
}

.spotlight-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: radial-gradient(250px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(79, 219, 200, 0.8), transparent 40%);
    z-index: 30;
    pointer-events: none;
}

.spotlight-wrapper:hover::before {
    opacity: 1;
}

.profile-tilt {
    transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform;
}

/* ═══════════════════════════════════════════
   CERTIFICATE MODAL
   ═══════════════════════════════════════════ */
#certModal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

#certModal.is-open {
    display: flex;
}

#certModal .cert-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 14, 31, 0.85);
    -webkit-backdrop-filter: blur(18px);
    animation: backdropFadeIn 0.35s ease forwards;
}

@keyframes backdropFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

#certModal .cert-container {
    position: relative;
    z-index: 1;
    max-width: 780px;
    width: 100%;
}

@keyframes certSlideUp {
    from { opacity: 0; transform: translateY(40px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.cert-frame {
    background: linear-gradient(145deg, #1a2740 0%, #0d1e35 60%, #081425 100%);
    border-radius: 1.5rem;
    padding: 2px;
    box-shadow:
        0 0 0 1px rgba(79, 219, 200, 0.18),
        0 30px 80px rgba(4, 14, 31, 0.9),
        0 0 120px rgba(79, 219, 200, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    position: relative;
    overflow: hidden;
}

.cert-frame::before,
.cert-frame::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    border-color: rgba(79, 219, 200, 0.55);
    border-style: solid;
    z-index: 2;
    pointer-events: none;
}

.cert-frame::before {
    top: 14px;
    left: 14px;
    border-width: 2px 0 0 2px;
    border-radius: 6px 0 0 0;
}

.cert-frame::after {
    bottom: 14px;
    right: 14px;
    border-width: 0 2px 2px 0;
    border-radius: 0 0 6px 0;
}

.cert-inner {
    background: linear-gradient(160deg, #111c2d 0%, #081425 100%);
    border-radius: 1.4rem;
    position: relative;
}

.cert-header {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(79, 219, 200, 0.08);
    background: rgba(21, 32, 49, 0.6);
}

.cert-title-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.cert-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4fdbc8, #14b8a6);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 16px rgba(79, 219, 200, 0.4);
    flex-shrink: 0;
}

.cert-label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(79, 219, 200, 0.7);
    display: block;
    line-height: 1;
    margin-bottom: 2px;
}

.cert-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    color: #d8e3fb;
    line-height: 1;
    margin: 0;
}

.cert-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(216, 227, 251, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    flex-shrink: 0;
}

.cert-close-btn:hover {
    background: rgba(79, 219, 200, 0.12);
    border-color: rgba(79, 219, 200, 0.3);
    color: #4fdbc8;
    transform: rotate(90deg);
}

.cert-image-stage {
    position: relative;
    padding: 1.5rem;
}

.cert-image-wrapper {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    padding: 2px;
    background: linear-gradient(135deg,
        rgba(79, 219, 200, 0.5) 0%,
        rgba(79, 219, 200, 0.08) 40%,
        rgba(79, 219, 200, 0.35) 100%);
    box-shadow:
        0 8px 40px rgba(4, 14, 31, 0.7),
        0 0 30px rgba(79, 219, 200, 0.08);
}

.cert-image-wrapper img {
    width: 100%;
    display: block;
    border-radius: 0.6rem;
    max-height: 62vh;
    background: #0d1a2d;
}

.cert-shimmer {
    position: absolute;
    inset: 0;
    border-radius: 0.6rem;
    background: linear-gradient(110deg,
        transparent 20%,
        rgba(255, 255, 255, 0.04) 50%,
        transparent 80%);
    background-size: 200% 100%;
    animation: shimmerSweep 3.5s linear infinite;
    pointer-events: none;
}

@keyframes shimmerSweep {
    from { background-position: 200% 0; }
    to   { background-position: -200% 0; }
}

.cert-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 1.75rem 1.25rem;
}

.cert-meta {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    color: rgba(160, 208, 198, 0.6);
    letter-spacing: 0.05em;
}

.cert-action-btn {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4fdbc8;
    background: rgba(79, 219, 200, 0.08);
    border: 1px solid rgba(79, 219, 200, 0.2);
    border-radius: 9999px;
    padding: 0.4rem 1rem;
    cursor: pointer;
    text-decoration: none;
}

.cert-action-btn:hover {
    background: rgba(79, 219, 200, 0.16);
    box-shadow: 0 0 18px rgba(79, 219, 200, 0.2);
    transform: translateY(-1px);
}

.cert-corner-tl,
.cert-corner-br {
    position: absolute;
    width: 40px;
    height: 40px;
    border-color: rgba(79, 219, 200, 0.3);
    border-style: solid;
    pointer-events: none;
}

.cert-corner-tl {
    top: 0;
    left: 0;
    border-width: 1.5px 0 0 1.5px;
    border-radius: 2px 0 0 0;
}

.cert-corner-br {
    bottom: 0;
    right: 0;
    border-width: 0 1.5px 1.5px 0;
    border-radius: 0 0 2px 0;
}

/* ═══════════════════════════════════════════
   NAV CONTACT DROPDOWN
   ═══════════════════════════════════════════ */
.nav-social-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(42, 53, 72, 0.6);
    border: 1px solid rgba(79, 219, 200, 0.12);
    color: rgba(216, 227, 251, 0.6);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.nav-social-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(79, 219, 200, 0.15), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.nav-social-link:hover {
    border-color: rgba(79, 219, 200, 0.4);
    color: #4fdbc8;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -5px rgba(79, 219, 200, 0.3);
    background: rgba(42, 53, 72, 0.9);
}

.nav-social-link:hover::before {
    opacity: 1;
}

.contact-menu-box {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.92) translateY(8px);
    transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    transform-origin: top right;
    pointer-events: none;
}

.contact-menu-container.is-open .contact-menu-box {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
    pointer-events: auto;
}

.contact-menu-box .nav-social-link {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.contact-menu-container.is-open .contact-menu-box .nav-social-link:nth-child(1) {
    transition-delay: 100ms; opacity: 1; transform: translateY(0);
}
.contact-menu-container.is-open .contact-menu-box .nav-social-link:nth-child(2) {
    transition-delay: 175ms; opacity: 1; transform: translateY(0);
}
.contact-menu-container.is-open .contact-menu-box .nav-social-link:nth-child(3) {
    transition-delay: 250ms; opacity: 1; transform: translateY(0);
}
.contact-menu-container.is-open .contact-menu-box .nav-social-link:nth-child(4) {
    transition-delay: 325ms; opacity: 1; transform: translateY(0);
}

.contact-menu-container.is-open button span {
    transform: rotate(-180deg);
}

.contact-menu-container.is-open button {
    box-shadow: 0 0 20px rgba(79, 219, 200, 0.4);
}

/* ═══════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════ */
.hero-avail-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(79, 219, 200, 0.07);
    border: 1px solid rgba(79, 219, 200, 0.22);
    border-radius: 9999px;
    padding: 0.3rem 0.9rem 0.3rem 0.6rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #4fdbc8;
    backdrop-filter: blur(8px);
}

.hero-avail-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4fdbc8;
    box-shadow: 0 0 8px rgba(79, 219, 200, 0.8);
    animation: pulseGreen 1.8s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulseGreen {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.5; transform: scale(1.4); }
}

.role-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
    background: rgba(42, 53, 72, 0.55);
    border: 1px solid rgba(79, 219, 200, 0.12);
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    color: rgba(216, 227, 251, 0.8);
    letter-spacing: 0.03em;
    backdrop-filter: blur(6px);
}

.hero-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.8rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #4fdbc8 0%, #14b8a6 100%);
    color: #003731;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-decoration: none;
    box-shadow: 0 8px 30px rgba(79, 219, 200, 0.22), 0 0 0 0 rgba(79, 219, 200, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    border: none;
}

.hero-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(79, 219, 200, 0.32), 0 0 0 4px rgba(79, 219, 200, 0.08);
}

.hero-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.8rem;
    border-radius: 0.75rem;
    background: transparent;
    color: #d8e3fb;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-decoration: none;
    border: 1px solid rgba(79, 219, 200, 0.22);
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
    cursor: pointer;
}

.hero-cta-secondary:hover {
    background: rgba(79, 219, 200, 0.07);
    border-color: rgba(79, 219, 200, 0.45);
    transform: translateY(-2px);
}

.hero-social-link {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(42, 53, 72, 0.5);
    border: 1px solid rgba(79, 219, 200, 0.1);
    color: rgba(216, 227, 251, 0.55);
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
    text-decoration: none;
}

.hero-social-link:hover {
    background: rgba(79, 219, 200, 0.1);
    border-color: rgba(79, 219, 200, 0.3);
    color: #4fdbc8;
    transform: translateY(-3px);
}

.hero-stat-divider {
    width: 1px;
    height: 32px;
    background: rgba(79, 219, 200, 0.15);
}

.img-stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border-radius: 9999px;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    backdrop-filter: blur(14px);
}

.scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    color: rgba(160, 208, 198, 0.45);
    font-family: 'Inter', sans-serif;
    font-size: 0.62rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 0.45; }
    50%      { transform: translateY(6px); opacity: 0.8; }
}

.gradient-text {
    background: linear-gradient(135deg, #4fdbc8 0%, #a0d0c6 60%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ═══════════════════════════════════════════
   SKILLS / TECHNICAL ARSENAL
   ═══════════════════════════════════════════ */
.skill-card {
    background: rgba(42, 53, 72, 0.35);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(60, 73, 71, 0.18);
    border-radius: 1rem;
    padding: 2rem;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
        border-color 0.4s ease,
        box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(79, 219, 200, 0.05) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: rgba(79, 219, 200, 0.25);
    box-shadow: 0 20px 60px rgba(4, 14, 31, 0.5), 0 0 0 1px rgba(79, 219, 200, 0.08);
}

.skill-card:hover::before { opacity: 1; }

.skill-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    border-radius: 9999px;
    background: rgba(21, 32, 49, 0.8);
    border: 1px solid rgba(60, 73, 71, 0.3);
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: #d8e3fb;
    transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.skill-pill:hover {
    border-color: rgba(79, 219, 200, 0.3);
    background: rgba(42, 53, 72, 0.9);
    transform: translateY(-2px);
}

.skill-pill .level-badge {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.skill-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(4, 14, 31, 0.5);
    padding: 0.7rem 1rem;
    border-radius: 0.6rem;
    border: 1px solid rgba(60, 73, 71, 0.18);
    transition: border-color 0.3s ease, background 0.3s ease;
}

.skill-row:hover {
    background: rgba(21, 32, 49, 0.8);
    border-color: rgba(79, 219, 200, 0.2);
}

.design-tool-box {
    flex: 1;
    min-width: 100px;
    background: rgba(4, 14, 31, 0.5);
    border: 1px solid rgba(60, 73, 71, 0.18);
    border-radius: 0.6rem;
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: #bbcac6;
    transition: border-color 0.3s, background 0.3s, transform 0.3s;
}

.design-tool-box:hover {
    border-color: rgba(79, 219, 200, 0.25);
    background: rgba(21, 32, 49, 0.8);
    transform: translateY(-2px);
}

@keyframes lineExpand {
    from { width: 0; }
    to   { width: 5rem; }
}

.skills-accent-line {
    height: 4px;
    width: 0;
    background: linear-gradient(90deg, #4fdbc8, #14b8a6 50%, transparent);
    border-radius: 9999px;
    margin-top: 1rem;
}

.reveal.active .skills-accent-line {
    animation: lineExpand 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
}

.skill-bento-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active .skill-bento-item:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.1s; }
.reveal.active .skill-bento-item:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
.reveal.active .skill-bento-item:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.3s; }
.reveal.active .skill-bento-item:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.4s; }

/* ═══════════════════════════════════════════
   PORTFOLIO FILTER
   ═══════════════════════════════════════════ */
.portfolio-filter-btn {
    color: rgba(187, 202, 198, 0.75);
    background: transparent;
    cursor: pointer;
    border: none;
}

.portfolio-filter-btn:hover {
    color: #d8e3fb;
    background: rgba(79, 219, 200, 0.07);
}

.portfolio-filter-btn.active {
    background: linear-gradient(135deg, #4fdbc8 0%, #14b8a6 100%);
    color: #00423b;
    box-shadow: 0 4px 20px rgba(79, 219, 200, 0.3);
}

.portfolio-card {
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.portfolio-card.hide {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
    pointer-events: none;
}

.portfolio-card.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.portfolio-card.gone {
    display: none;
}

/* ═══════════════════════════════════════════
   ARTICLE SINGLE PAGE
   ═══════════════════════════════════════════ */
.glass-nav {
    background: rgba(8, 20, 37, 0.7);
    backdrop-filter: blur(20px);
}

.prose blockquote {
    border-left: 4px solid #4fdbc8;
    padding-left: 1.5rem;
    font-style: italic;
    color: #bbcac6;
}

.glass-panel {
    background: rgba(42, 53, 72, 0.4);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

/* ═══════════════════════════════════════════
   WORDPRESS COMMENT STYLES
   ═══════════════════════════════════════════ */
.comment-list {
    list-style: none;
    padding: 0;
}

.comment-list .comment {
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: rgba(42, 53, 72, 0.3);
    border: 1px solid rgba(60, 73, 71, 0.18);
    border-radius: 1rem;
}

.comment-list .comment-author {
    font-weight: 700;
    color: #d8e3fb;
}

.comment-list .comment-meta {
    font-size: 0.75rem;
    color: rgba(187, 202, 198, 0.6);
    margin-bottom: 0.5rem;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    background: rgba(4, 14, 31, 0.5);
    border: 1px solid rgba(60, 73, 71, 0.3);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    color: #d8e3fb;
    font-family: 'Inter', sans-serif;
    margin-bottom: 1rem;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: rgba(79, 219, 200, 0.4);
}

.comment-form .submit {
    background: linear-gradient(135deg, #4fdbc8 0%, #14b8a6 100%);
    color: #003731;
    font-weight: 700;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.comment-form .submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(79, 219, 200, 0.3);
}
