/* Pola Kertas Kotak-Kotak (Doodle Grid) */
.doodle-grid {
    background-size: 30px 30px;
    background-image: 
        linear-gradient(to right, rgba(0, 0, 0, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
    background-color: #fcfcf9;
}
.text-navy { color: #1A2E44; }
.bg-navy { background-color: #1A2E44; }
.btn-shadow { box-shadow: 4px 4px 0px #1A2E44; }
.wave-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23FF4D41" fill-opacity="0.05" d="M0,192L48,197.3C96,203,192,213,288,192C384,171,480,117,576,112C672,107,768,149,864,154.7C960,160,1056,128,1152,112C1248,96,1344,96,1392,96L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    z-index: 1;
}
.profile-img-container {
    position: relative;
    z-index: 2;
}
.profile-img-container::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 110%; height: 110%;
    background: radial-gradient(circle, rgba(255, 77, 65, 0.1) 0%, transparent 70%);
    z-index: -1;
}

/* Spotlight Effect with Doodle border */
.spotlight-card {
    position: relative;
    overflow: hidden;
    border: 3px solid #1A2E44;
    border-radius: 255px 15px 225px 15px/15px 225px 15px 255px !important;
    box-shadow: 4px 4px 0px #1A2E44;
    transition: all 0.3s ease;
}
.spotlight-card:hover {
    transform: translate(-3px, -3px) !important;
    box-shadow: 7px 7px 0px #1A2E44;
}
.spotlight-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(600px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(255, 77, 65, 0.08), transparent 40%);
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.spotlight-card:hover::before {
    opacity: 1;
}
.spotlight-card > * {
    position: relative;
    z-index: 1;
}

/* Doodle Borders */
.doodle-border {
    border: 3px solid #1A2E44;
    border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
    box-shadow: 4px 4px 0px #1A2E44;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.doodle-border:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #1A2E44;
}

/* Doodle border small */
.doodle-border-sm {
    border: 2.5px solid #1A2E44;
    border-radius: 120px 10px 110px 8px/8px 110px 10px 120px;
    box-shadow: 3px 3px 0px #1A2E44;
}

/* Doodle Wiggle Animation */
@keyframes wiggle {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(-0.5deg); }
    75% { transform: rotate(0.5deg); }
    100% { transform: rotate(0deg); }
}
.doodle-wiggle:hover {
    animation: wiggle 0.2s ease infinite;
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #FF4D41;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 4px 4px 0px #1A2E44;
    border: 2.5px solid #1A2E44;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 90;
    cursor: pointer;
}
#back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
#back-to-top:hover {
    transform: translateY(-5px);
    background: #e63e33;
}

/* Typing Indicator Doodle */
.typing-bubble {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 50px;
    height: 30px;
    background: #f1f5f9;
    border: 2px solid #1e293b;
    border-radius: 20px;
}
.typing-dot {
    width: 6px;
    height: 6px;
    background-color: #FF4D41;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}
.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }
@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1.0); }
}

/* Custom Scrollbar bergaya Doodle */
::-webkit-scrollbar {
    width: 12px;
}
::-webkit-scrollbar-track {
    background: #fcfcf9;
    border-left: 3px solid #1A2E44;
}
::-webkit-scrollbar-thumb {
    background-color: #FF4D41;
    border-radius: 10px;
    border: 3px solid #1A2E44;
}

/* Doodle Navigation Links */
.doodle-nav-link {
    position: relative;
    font-family: 'Patrick Hand', cursive;
    font-size: 1.25rem;
    color: #1A2E44;
    transition: color 0.2s ease;
}
.doodle-nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: #FF4D41;
    border-radius: 150px 10px 100px 5px/5px 80px 5px 120px;
    transition: width 0.3s ease;
}
.doodle-nav-link:hover::after {
    width: 100%;
}
.doodle-nav-link:hover {
    animation: wiggle 0.2s ease infinite;
    color: #FF4D41;
}

/* Chatbot Attention Wiggle */
@keyframes attention-wiggle {
    0%, 90%, 100% { transform: rotate(0deg) scale(1); }
    92% { transform: rotate(-8deg) scale(1.1); }
    94% { transform: rotate(8deg) scale(1.1); }
    96% { transform: rotate(-8deg) scale(1.1); }
    98% { transform: rotate(8deg) scale(1.1); }
}
.chat-attention {
    animation: attention-wiggle 6s ease-in-out infinite;
}

/* Floating Doodle Label */
@keyframes float-label {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-5px) rotate(-2deg); }
}
.float-doodle-label {
    animation: float-label 3s ease-in-out infinite;
}

/* ===== Pencil Cursor ===== */
@media (pointer: fine) {
    *, *::before, *::after {
        cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath d='M5.5 22.5L7 18 20 5c.8-.8 2-.8 2.8 0l.7.7c.8.8.8 2 0 2.8L10.5 21.5 5.5 22.5z' fill='%23FDE047' stroke='%231A2E44' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M17 8l3 3' stroke='%231A2E44' stroke-width='1.5'/%3E%3Cpath d='M5.5 22.5L7 18' stroke='%231A2E44' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") 2 26, auto !important;
    }
    a, button, [role='button'], .spotlight-card, .group, input, select, textarea {
        cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath d='M5.5 22.5L7 18 20 5c.8-.8 2-.8 2.8 0l.7.7c.8.8.8 2 0 2.8L10.5 21.5 5.5 22.5z' fill='%23FF4D41' stroke='%231A2E44' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M17 8l3 3' stroke='%231A2E44' stroke-width='1.5'/%3E%3Cpath d='M5.5 22.5L7 18' stroke='%231A2E44' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") 2 26, pointer !important;
    }
}

/* ===== Highlight Stabilo ===== */
.stabilo {
    background: linear-gradient(180deg, transparent 55%, rgba(253, 224, 71, 0.5) 55%);
    padding: 0 4px; border-radius: 2px;
}
.stabilo-green {
    background: linear-gradient(180deg, transparent 55%, rgba(134, 239, 172, 0.5) 55%);
    padding: 0 4px; border-radius: 2px;
}

/* ===== Doodle Underline (Coret-coretan) ===== */
.doodle-underline { position: relative; display: inline-block; }
.doodle-underline::after {
    content: ''; position: absolute; left: 0; bottom: -10px;
    width: 100%; height: 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='14' viewBox='0 0 120 14'%3E%3Cpath d='M2 9 C15 3, 30 12, 45 7 C60 2, 75 11, 90 6 C105 1, 115 10, 118 5' fill='none' stroke='%23FF4D41' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x center;
    background-size: 120px 14px;
}

/* ===== Pencil Loader ===== */
#pencil-loader {
    position: fixed; inset: 0; z-index: 999999;
    background-color: #fcfcf9;
    background-size: 30px 30px;
    background-image:
        linear-gradient(to right, rgba(0,0,0,0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0,0,0,0.04) 1px, transparent 1px);
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.5s ease;
}
#pencil-loader .loader-text {
    font-family: 'Patrick Hand', cursive; font-size: 1.3rem;
    color: #1A2E44; margin-top: 12px; text-align: center;
}
.pencil-line {
    stroke-dasharray: 200; stroke-dashoffset: 200;
    animation: drawLine 1.5s ease forwards;
}
@keyframes drawLine { to { stroke-dashoffset: 0; } }
.pencil-tip { animation: movePencil 1.5s ease forwards; }
@keyframes movePencil {
    0% { transform: translate(10px, 18px) rotate(-30deg); }
    100% { transform: translate(175px, 18px) rotate(-30deg); }
}

/* ===== Paper Texture Overlay ===== */
body::after {
    content: ''; position: fixed; inset: 0;
    pointer-events: none; z-index: 0; opacity: 0.3;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.15'/%3E%3C/svg%3E");
}

/* ===== Ruled Paper (Kertas Bergaris) ===== */
.ruled-paper {
    background-image: repeating-linear-gradient(
        transparent, transparent 31px, rgba(0,0,0,0.07) 31px, rgba(0,0,0,0.07) 32px
    );
    background-color: #fffef5 !important;
}
section.ruled-paper {
    border-left: 3px solid rgba(255, 77, 65, 0.3);
    padding-left: 2.5rem !important;
}

/* ===== Paper Airplane Animation ===== */
@keyframes paperFly {
    0% { transform: translateX(0) translateY(0) rotate(0deg); opacity: 1; }
    40% { transform: translateX(20px) translateY(-15px) rotate(-15deg); opacity: 0.7; }
    60% { transform: translateX(35px) translateY(-25px) rotate(-25deg); opacity: 0; }
    61% { transform: translateX(-10px) translateY(5px) rotate(10deg); opacity: 0; }
    100% { transform: translateX(0) translateY(0) rotate(0deg); opacity: 1; }
}
.paper-fly i, .paper-fly svg { animation: paperFly 0.7s ease-in-out; }

/* ===== Paper Crumple Ball & Trash Bin Physics ===== */
.paper-ball {
    position: absolute;
    z-index: 500;
    pointer-events: none;
    transform-origin: center center;
    border-radius: 4px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.paper-ball::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.65;
    mix-blend-mode: multiply;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='1 0 0 0 0, 0 1 0 0 0, 0 0 1 0 0, 0 0 0 0.35 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes binWiggle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    20% { transform: scale(1.2) rotate(-10deg); }
    40% { transform: scale(1.2) rotate(10deg); }
    60% { transform: scale(1.15) rotate(-5deg); }
    80% { transform: scale(1.15) rotate(5deg); }
}
.bin-active {
    animation: binWiggle 0.5s ease-out;
    opacity: 0.85 !important;
}

@keyframes avatarPop {
    0% { transform: scale(0.8) translateY(10px); opacity: 0; }
    50% { transform: scale(1.1) translateY(-2px); }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}
.avatar-pop {
    animation: avatarPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Sticky Notes Styles */
.sticky-note {
    position: absolute;
    width: 160px;
    padding: 15px;
    padding-top: 25px;
    font-family: 'Architects Daughter', cursive;
    color: #1e293b;
    box-shadow: 3px 4px 6px rgba(0,0,0,0.1), 1px 1px 2px rgba(0,0,0,0.05) inset;
    pointer-events: auto;
    transition: transform 0.2s ease-out;
    cursor: pointer;
}
.sticky-note:hover {
    transform: scale(1.1) rotate(0deg) !important;
    z-index: 50 !important;
}
.sticky-note.yellow { background-color: #fff740; }
.sticky-note.green { background-color: #a3e4d7; }
.sticky-note.pink { background-color: #f5b7b1; }
.sticky-note.blue { background-color: #aed6f1; }

.sticky-tape {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 35px;
    height: 15px;
    background-color: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(0,0,0,0.1);
    mix-blend-mode: overlay;
}

input[name="note-color"]:checked + .check-mark {
    display: block;
}

/* ===== PLN Internship Accordion Card ===== */
.pln-accordion-card {
    overflow: visible !important;
}
.pln-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
.pln-accordion-body.expanded {
    max-height: 1200px;
}

.pln-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    padding: 6px 14px;
    font-family: 'Patrick Hand', cursive;
    font-size: 0.95rem;
    font-weight: 700;
    color: #FF4D41;
    border: 2px solid #FF4D41;
    border-radius: 100px 8px 90px 6px/6px 80px 6px 90px;
    background: transparent;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    line-height: 1;
}
.pln-toggle-btn:hover {
    background: #FF4D41;
    color: #fff;
}
.pln-toggle-btn .chevron {
    display: inline-block;
    transition: transform 0.35s ease;
    font-style: normal;
}
.pln-toggle-btn[aria-expanded="true"] .chevron {
    transform: rotate(180deg);
}

.pln-task-list {
    margin: 18px 0 20px;
    padding-left: 0;
    list-style: none;
}
.pln-task-list li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.5;
}
.dark .pln-task-list li {
    color: #94a3b8;
}
.pln-task-list li::before {
    content: "⚡";
    position: absolute;
    left: 0;
    font-size: 0.75rem;
    top: 2px;
}

.pln-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 8px;
}
@media (max-width: 480px) {
    .pln-gallery {
        grid-template-columns: 1fr;
    }
}

.pln-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    border: 2px solid #1A2E44;
    box-shadow: 3px 3px 0px #1A2E44;
    cursor: pointer;
    aspect-ratio: 4 / 3;
    background: #f1f5f9;
}
.pln-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}
.pln-gallery-item:hover img {
    transform: scale(1.05);
}

.pln-gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 6px 10px;
    background: linear-gradient(to top, rgba(26,46,68,0.85) 0%, transparent 100%);
    color: #fff;
    font-family: 'Patrick Hand', cursive;
    font-size: 0.82rem;
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}
.pln-gallery-item:hover .pln-gallery-caption {
    opacity: 1;
}
@media (hover: none) {
    .pln-gallery-caption {
        opacity: 1;
    }
}

.pln-section-label {
    font-family: 'Patrick Hand', cursive;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #FF4D41;
    margin-bottom: 8px;
}

/* ===== PLN Gallery Lightbox ===== */
#pln-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 16px;
}
#pln-lightbox.active {
    display: flex;
}
#pln-lightbox-inner {
    position: relative;
    max-width: 880px;
    width: 100%;
    text-align: center;
}
#pln-lightbox img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 12px;
    border: 3px solid #1A2E44;
    box-shadow: 6px 6px 0px #1A2E44;
    object-fit: contain;
}
#pln-lightbox-caption {
    margin-top: 12px;
    font-family: 'Patrick Hand', cursive;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}
#pln-lightbox-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #FF4D41;
    border: 2.5px solid #1A2E44;
    color: #fff;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 2px 2px 0px #1A2E44;
    transition: transform 0.2s ease;
    line-height: 1;
}
#pln-lightbox-close:hover {
    transform: scale(1.1) rotate(10deg);
}

/* ===== 3D Flip Polaroid Card ===== */
.polaroid-flip-container {
    perspective: 1000px;
    height: 480px;
    position: relative;
}
.polaroid-card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform: rotateY(2.5deg);
}
.polaroid-flip-container:hover .polaroid-card-inner {
    transform: rotateY(180deg);
}
.polaroid-card-front, .polaroid-card-back {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background: white;
}
.polaroid-card-back {
    transform: rotateY(180deg);
}

/* Hamburger Menu Styles */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
#mobile-menu.open {
    max-height: 300px;
}
