
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&family=Pixelify+Sans:wght@400..700&display=swap');

/* RESET */

.pixelify {
  font-family: "Pixelify Sans", monospace !important;
  font-optical-sizing: auto;
}
/* BASE */
body {
    font-family: "JetBrains Mono", "Kantumruy Pro", monospace;
    transition: background-color 0.3s ease, color 0.3s ease;
}
/* ================= DARK ================= */
body[data-bs-theme="dark"] {
    --bg-body: #0f172a;
    --text-body: #e6e6e6;
    --bg-card: #343a40;
    --text-card: #ffffff;
    --primary: #ffffff;
    --primary-hover: #c5c5c5;
    --secondary: #212529;
    --text-sub: rgb(78, 211, 78);
}
/* ================= LIGHT ================= */
body[data-bs-theme="light"] {
    --bg-body: #F2F5F9;
    --text-body: #212529;
    --bg-card: #fff;
    --text-card: #212529;
    --primary: #1d263e;
    --secondary: #f3f3f3;
    --primary-hover: #343c53;
    --text-sub: rgb(31, 197, 31);
}


/* GLOBAL */
body {
    background-color: var(--bg-body);
    color: var(--text-body);
}

.navbar,
.offcanvas {
    background-color: var(--bg-card);
}

.nav-link {
    color: var(--text-body);
}

.nav-link:hover {
    opacity: 0.8;
}

/* CARD */
.bg-card-theme {
    background-color: var(--bg-card);
    color: var(--text-card);
    border-radius: 12px;
}

/* BUTTONS */
.btn-dark-blue {
    background-color: var(--primary);
    color: var(--bg-body);
    border-radius: 5px;
    font-weight: 500;
}

.btn-dark-blue:hover {
    background-color: var(--primary-hover);
    color: var(--primary);
}

.btn-outline-dark-blue {
    border: 1px solid var(--primary);
    background: transparent;
    color: var(--primary);
    border-radius: 5px;
}

.btn-outline-dark-blue:hover {
    background-color: var(--primary);
    color: var(--bg-body);
}

/* ANIMATIONS */
.icon-animate {
    transition: transform 0.4s ease, opacity 0.3s ease;
}

.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.15);
}

.icon-animate {
    display: inline-block;
    transition: transform 0.5s ease, opacity 0.3s ease;
}

.gradient-text {
    background: linear-gradient(270deg, #0d6efd, #6610f2, #d63384);
    background-size: 600% 600%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientMove 6s ease infinite;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.clamp-1,
.clamp-2,
.clamp-3,
.clamp-4,
.clamp-5 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.clamp-1 {
    -webkit-line-clamp: 1;
}

.clamp-2 {
    -webkit-line-clamp: 2;
}

.clamp-3 {
    -webkit-line-clamp: 3;
}

.clamp-4 {
    -webkit-line-clamp: 4;
}

.clamp-5 {
    -webkit-line-clamp: 5;
}
.glass {
    width: 300px;
    padding: 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: upDown 3s ease-in-out infinite;
}

@keyframes upDown {
    0% {
        transform: translate(-50%, -50%) translateY(0);
    }

    50% {
        transform: translate(-50%, -50%) translateY(-20px);
    }

    100% {
        transform: translate(-50%, -50%) translateY(0);
    }
}

.pixel-btn {
    font-family: "Pixelify Sans" !important;
    font-size: 18px;
    border-radius: 10px !important;
    background: #ffcc33;
    /* yellow */
    color: #1a1a1a;

    border: 3px solid #7a4f00;
    /* dark brown border */

    box-shadow:
        4px 4px 0 #7a4f00,
        6px 6px 0 #3a2a00;

    text-transform: uppercase;
    cursor: pointer;

    image-rendering: pixelated;
    transition: all 0.1s ease;
}

/* hover effect */
.pixel-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow:
        6px 6px 0 #7a4f00,
        8px 8px 0 #3a2a00;
}
.pixel-text{
    font-family: "Pixelify Sans" !important;
    color: #ffcc00;
}
/* click effect */
.pixel-btn:active {
    transform: translate(4px, 4px);
    box-shadow: none;
}

/* CARD */
.pixel-card {
    width: 100%;
    background: var(--bg-card);
    border: 4px solid #ffcc00;
    box-shadow: 6px 6px 0 #000;
    /* font-family: 'Press Start 2P', cursive; */
    color: var(--text-card);
    position: relative;
    overflow: hidden;
    border-radius: 10px !important;
}

/* IMAGE */
.pixel-card img {
    width: 100%;
    object-fit: cover;
    border-bottom: 4px solid #ffcc00;
}
.glass-navbar { 
position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1140px;
    z-index: 999 !important;

    background: rgba(15, 23, 42, 0.1) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;

    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}
.fixed-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;

    padding: 10px 15px;
    background: #ffcc33;
        /* yellow */
        color: #1a1a1a;
    
        border: 3px solid #7a4f00;
        /* dark brown border */
    
        box-shadow:
            4px 4px 0 #7a4f00,
            6px 6px 0 #3a2a00;
    
        text-transform: uppercase;
        cursor: pointer;
    font-size: 18px;
    cursor: pointer;

    z-index: 999;
}

/* BADGE */
.badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff3b3b;
    color: white;
    font-size: 10px;
    padding: 6px 8px;
    border: 2px solid #000;
    box-shadow: 2px 2px 0 #000;
}

/* CONTENT */
.content {
    padding: 12px;
}

.title {
    font-size: 20px;
    color: #ffcc00;
    margin-bottom: 6px;
}

.subtitle {
    font-size: 14px;
    color: var(--text-sub);
    margin-bottom: 10px;
}

.desc {
    font-size: 16px;
    line-height: 1.4;
    color: var(--primary);
}
.card-img{
    width: 100% !important;
    height: 250px !important;
}
/* Experience Section */
.experience {
    padding: 60px 0;
    background-color: var(--bg-body);
    color: var(--primary);
}

/* Title aligned to start */
.section-title {
    text-align: left;
    font-size: 2rem;
    margin-bottom: 40px;
}

/* Timeline wrapper */
.timeline {
    position: relative;
}

/* Vertical line */
.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    width: 2px;
    height: 100%;
    background: #38bdf8;
}

/* Each item */
.timeline-item {
    display: flex;
    position: relative;
    margin-bottom: 40px;
}

/* Dot */
.timeline-dot {
    width: 14px;
    height: 14px;
    background: #38bdf8;
    border-radius: 50%;
    position: absolute;
    left: 14px;
    top: 5px;
}

/* Content box */
.timeline-content {
    margin-left: 50px;
    background: var(--bg-card);
    padding: 20px;
    border-radius: 10px;
    width: 100%;
    transition: 0.3s;
}

/* Hover effect */
.timeline-content:hover {
    transform: translateY(-5px);
}

/* Title */
.timeline-content h3 {
    margin-bottom: 5px;
}

/* Company text */
.company {
    display: block;
    font-size: 0.9rem;
    color: #94a3b8;
}

/* Date */
.date {
    font-size: 0.8rem;
    color: #38bdf8;
    margin-bottom: 10px;
    display: block;
}

/* Description */
.timeline-content p {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Tags */
.tags {
    margin-top: 10px;
}

/* Tag style */
.tags span {
    display: inline-block;
    background: #38bdf8;
    color: #000;
    padding: 4px 8px;
    border-radius: 5px;
    margin-right: 5px;
    margin-top: 5px;
    font-size: 0.75rem;
}

/* Responsive */
@media (max-width: 768px) {
    .timeline::before {
        left: 10px;
    }

    .timeline-dot {
        left: 4px;
    }

    .timeline-content {
        margin-left: 30px;
    }
}
.footer {
    background: var(--bg-body);
    color: var(--primary);
    padding: 40px 0;
}

.footer h3,
.footer h4 {
    margin-bottom: 15px;
}

.footer a {
    color: var(--primary);
    text-decoration: none;
}

.footer a:hover {
        color: var(--primary);
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    border-top: 1px solid #333;
    padding-top: 15px;
}
/* Modal theming to match pixel style */
.modal-content {
    border-radius: 10px !important;
}

.modal-header,
.modal-footer {
    padding: 15px 20px;
}

.modal-body {
    padding: 20px;
}

#modalImage {
    border-bottom: 4px solid #ffcc00;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 10px;
    }

    #modalImage {
        max-height: 220px !important;
    }

    .modal-footer {
        flex-direction: column;
        gap: 8px;
    }

    .modal-footer .btn {
        width: 100%;
        margin: 0 !important;
    }
}

.pixel-card .view-cert-btn {
    border-radius: 0 0 6px 6px !important;
    font-size: 14px;
}

.preview-trigger {
    cursor: zoom-in;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.preview-trigger:hover {
    filter: brightness(1.1);
}

.preview-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
    cursor: grab;
    transition: transform 0.1s ease-out;
    touch-action: none;
}

#imagePreviewModal .modal-body {
    overflow: hidden;
    touch-action: none;
}

@media (max-width: 768px) {
    #certModalImage {
        max-height: 250px !important;
    }
}

@media (max-width: 576px) {
    .title {
        font-size: 18px;
    }

    .desc {
        font-size: 14px;
    }
    .preview-img {
        max-height: 80vh;
    }
}