/* prettier-ignore-start */

/* =========================
   General / Root                                                                            Searchbar:
========================= */
/* =============================================================================
                                                              General / Root, Navbar, Home Page, WhyICT Section, About Me, SWOT, 
                                                              Progress Table, FAQ, Aside Button, Progress Bar, Blog, Misc / Spacers
                                                              ============================================================================= */

/* prettier-ignore-end */

@import url('https://fonts.cdnfonts.com/css/satoshi');

:root {
    font-family: "Satoshi";
    overflow-x: hidden;
}

[hidden] {
    display: none !important;
}

.page-title h1 {
    margin-top: 90px;
    margin-bottom: 30px;
    font-size: 2.5rem;
    color: #ffffff;
    text-align: center;
    font-weight: bold;
}

body {
    margin: 0;
    background: #151515;
    color: #ffffff;
    padding-bottom: 0;
}

/* =========================
   Navbar
========================= */
.navbar ul {
    list-style-type: none;
    background-color: #2f2f2f;
    padding: 0;
    margin: 0;
    overflow: hidden;
    border-radius: 0 0 30px 0;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.4);
    position: fixed;
    top: 0;
    left: 0;
    width: auto;
    z-index: 1000;
}

.navbar li {
    float: left;
}

.navbar a {
    color: #ffffff;
    font-weight: bold;
    text-decoration: none;
    padding: 15px;
    display: block;
    text-align: center;
}

.navbar a:hover,
.navbar a.active {
    background-color: #604eaa91;
    color: #ffffff;
    transition: background-color 0.5s ease-in-out;
}

.navbar-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-weight: bold;
    text-decoration: none;
    padding: 15px;
    display: block;
    text-align: center;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    transition: background-color 0.5s ease-in-out;
}

.navbar-btn:hover {
    background-color: #604eaa91;
    color: #ffffff;
}

.navbar-right ul {
    left: auto;
    right: 0;
    border-radius: 0 0 0 30px;
}

/* =========================
   Home Page
========================= */
.home-container {
    background-color: #2f2f2f;
    height: 830px;
    position: absolute;
    top: 50%;
    left: 30%;
    transform: translate(-60%, -50%);
    padding: 32px 32px 48px;
    border-radius: 48px;
    text-align: center;
    width: 480px;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
}

.pfp {
    width: 240px;
    height: 240px;
    object-fit: cover;
    border-radius: 50%;
}

.icon-row {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.home-container h1 {
    font-size: 2.4rem;
    margin: 0;
}

.home-container p {
    font-size: 1.2rem;
    margin: 0;
}

.icons {
    color: white;
    text-decoration: none;
    transition: transform 0.2s;
    z-index: 2;
    font-size: 1.8rem;
}

.icons:hover {
    transform: scale(1.1);
    z-index: 2;
    color: #604eaaec;
}

.whyict-wrapper {
    margin-top: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.whyict-container {
    background-color: #2f2f2f;
    position: relative;
    text-align: center;
    width: 900px;
    border-radius: 48px;
    padding: 48px;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.4);
}

.whyict-container h1 {
    font-size: 2.8rem;
    margin-top: 0;
    margin-bottom: 40px;
}

.whyict-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.whyict-text {
    flex: 1;
    text-align: left;
    color: #ffffff;
    font-size: 1.3rem;
    line-height: 1.6;
}

.whyictimg {
    width: 400px;
    height: auto;
}

.robot {
    position: absolute;
    top: 0;
    left: 100px;
    width: 100vw;
    height: 100vh;
    z-index: -1;
}

.robot iframe {
    position: absolute;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.phone {
    top: 1px;
    position: absolute;
    width: 100vw;
    height: 100vh;
    z-index: 1;
}

.phone iframe {
    position: absolute;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    z-index: 1;
}

/* =========================
   About Me
========================= */
.aboutme {
    background-color: #2f2f2f;
    position: absolute;
    left: 3%;
    top: 250px;
    border-radius: 48px;
    text-align: center;
    width: 450px;
    padding: 40px;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.experience {
    background-color: #2f2f2f;
    position: absolute;
    right: 3%;
    top: 250px;
    border-radius: 48px;
    text-align: center;
    padding: 40px;
    width: 450px;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.aboutme h1,
.experience h1 {
    margin-top: 0;
    margin-bottom: 22px;
    font-size: 2.3rem;
}

.aboutme p,
.experience p,
.aboutme,
.experience {
    font-size: 1.15rem;
    line-height: 1.7;
}

/* =========================
   SWOT
========================= */

.swot-wrapper {
    margin-top: 100vh;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.swottable {
    background-color: #2f2f2f;
    position: relative;
    top: 0;
    width: min(1100px, 92vw);
    min-height: 620px;
    border-radius: 48px;
    text-align: center;
    padding: 56px;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.4);
    margin: 0 auto;
}

.swot-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
    width: 100%;
    height: auto;
    position: relative;
    margin-top: 30px;
}

.swot-box {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 16px;
    font-size: 1.1rem;
    font-weight: bold;
    color: #ffffff;
    text-align: left;
    border-radius: 18px;
    padding: 20px;
    min-height: 200px;
}

.swot-box h2 {
    margin: 0;
    flex: 0 0 30%;
    text-align: left;
    font-size: clamp(1.95rem, 1.95vw, 2.6rem);
    line-height: 1.1;
}

.swot-box ul {
    margin: 0;
    flex: 1;
    padding-left: 22px;
    font-size: clamp(1rem, 0.95vw, 1.25rem);
    line-height: 1.45;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.swot-box li + li {
    margin-top: 4px;
}

.strengths {
    background-color: #6fbbf2;
}

.weaknesses {
    background-color: #f4b87c;
}

.opportunities {
    background-color: #9af2b7;
}

.threats {
    background-color: #f39292;
}

.center-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    font-weight: bold;
    color: #ffffff;
    pointer-events: none;
}

/* =========================
   Progress Table
========================= */

#progresstable {
    width: 90%;
    max-width: 1000px;
    margin: 80px auto;
    border-collapse: collapse;
    background-color: #2f2f2f;
    color: #ffffff;
    font-family: "Satoshi", sans-serif;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    overflow: hidden;
}

#progresstable td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.grade-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
}

.grade-value {
    min-width: 3rem;
}

.grade-edit-btn {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 999px;
    background-color: #604eaa91;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition:
        background-color 0.2s,
        transform 0.2s,
        box-shadow 0.2s;
    box-shadow: none;
    flex-shrink: 0;
}

.grade-edit-btn:hover {
    background-color: #604eaaec;
    transform: scale(1.05);
}

.flash {
    max-width: 1000px;
    margin: 18px auto;
    padding: 12px 18px;
    border-radius: 8px;
    font-weight: bold;
}

.flash-success {
    background-color: rgba(64, 158, 129, 0.12);
    color: #9af2b7;
    border: 1px solid rgba(154, 242, 183, 0.12);
}

.flash-error {
    background-color: rgba(220, 20, 60, 0.07);
    color: #ff8a8a;
    border: 1px solid rgba(255, 138, 138, 0.08);
}

.grade-edit-btn:focus-visible,
.grade-modal-close:focus-visible {
    outline: 2px solid #c8b8ff;
    outline-offset: 3px;
}

/* Profile edit button — reuse dashboard button style and position */
.aboutme .grade-edit-btn,
.experience .grade-edit-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 3;
}
/* Home container edit button - absolute positioning so layout isn't affected */
.home-container .grade-edit-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 3;
}
.grade-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.grade-modal[hidden] {
    display: none;
}

.grade-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
}

.grade-modal-card {
    position: relative;
    z-index: 1;
    width: min(100%, 460px);
    background: #2f2f2f;
    color: #ffffff;
    border-radius: 24px;
    box-shadow: 0px 20px 40px rgba(0, 0, 0, 0.5);
    padding: 24px;
}

.grade-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.grade-modal-eyebrow {
    margin: 0 0 4px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    color: #604eaa;
}

.grade-modal-card h2 {
    margin: 0;
}

.grade-modal-close {
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    cursor: pointer;
}

.grade-modal-exam {
    margin: 18px 0 20px;
    color: #f4f4f2;
}

.grade-modal-note {
    margin: 10px 0 0;
    color: #cfcfcf;
    font-size: 0.95rem;
}

#progresstable th {
    background-color: #604eaa91;
    font-weight: bold;
    font-size: 1rem;
    padding: 12px 16px;
    text-align: left;
}

#progresstable tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.03);
}

p:has(.legend-red),
p:has(.legend-orange),
p:has(.legend-green) {
    text-align: center;
}

.legend-red {
    color: red;
    font-weight: bold;
}

.legend-orange {
    color: orange;
    font-weight: bold;
}

.legend-green {
    color: limegreen;
    font-weight: bold;
}

/* =========================
   FAQ
========================= */
.faq-container {
    max-width: 800px;
    margin: 100px auto;
    padding: 20px;
    background-color: #1e1e1e;
    border-radius: 20px;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.4);
    color: #ffffff;
    text-align: center;
}

.faq {
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    background-color: #2f2f2f;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3);
}

.faq ul {
    text-align: left;
}

details {
    padding: 15px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

details[open] {
    background-color: #3a3a3a;
}

summary {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ffffff;
    list-style: none;
    position: relative;
}

summary::marker {
    display: none;
}

summary::after {
    content: "➕";
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

details[open] summary::after {
    content: "➖";
    transform: rotate(180deg);
}

details p {
    margin-top: 15px;
    font-size: 1rem;
    line-height: 1.6;
    color: #ffffff;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   Aside Button 
========================= */
.asidebutton {
    position: fixed;
    bottom: 20px;
    right: 0px;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    z-index: 1100;
}

.asidebutton-toggle {
    background-color: #2f2f2f;
    border: none;
    cursor: pointer;
    width: 60px;
    height: 60px;
    border-radius: 15px;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.hz-logo {
    width: 40px;
    height: auto;
}

.asidebutton-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
    gap: 10px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

.asidebutton.open .asidebutton-links {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.asidebutton-link {
    background-color: #2f2f2f;
    color: #f5f5f0;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 10px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3);
    transition:
        background-color 0.2s,
        transform 0.2s;
    width: 100px;
    text-align: center;
}

.asidebutton-link:hover {
    background-color: #604eaaec;
    transform: scale(1.05);
}

.asidebutton-toggle img {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.asidebutton.open .asidebutton-toggle img {
    transform: rotate(15deg) scale(1.15);
}

.asidebutton-toggle:active img {
    transform: scale(0.95) rotate(0deg);
}

/* =========================
   Progress Bar
========================= */
.credits-progress-container {
    width: 90%;
    max-width: 1000px;
    margin: 40px auto 20px auto;
    text-align: center;
    color: #ffffff;
}

.progress-bar {
    position: relative;
    width: 100%;
    height: 25px;
    background: #2f2f2f;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background-color: #604eaa91;
    border-radius: 15px;
    transition: width 1s ease-in-out;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 20px 10px #604eaa4e;
}

.progress-labels {
    position: relative;
    margin-top: 10px;
    display: flex;
    justify-content: flex-start;
}

.nbsa-boundary {
    position: absolute;
    left: 75%;
    transform: translateX(-50%);
}

.progress-bar::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 75%;
    width: 2px;
    background-color: grey;
}

/* =========================
   Blog 
========================= */
.blog-container {
    max-width: 1000px;
    margin: 100px auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.blog-card {
    background-color: #2f2f2f;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 20px;
    padding: 20px 30px;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.4);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.blog-card:hover {
    transform: scale(1.02);
    box-shadow: 0px 15px 25px rgba(0, 0, 0, 0.5);
}

.blog-text {
    flex: 2;
    text-align: left;
}

.blog-text h2 {
    margin-top: 0;
    font-size: 1.8rem;
    color: #ffffff;
}

.blog-text p {
    margin: 10px 0 20px;
    font-size: 1rem;
    color: #f4f4f2;
    line-height: 1.5;
}

.blog-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #604eaa91;
    color: #fff;
    font-family: inherit;
    font-weight: bold;
    text-decoration: none;
    border-radius: 10px;
    transition:
        background-color 0.2s,
        transform 0.2s;
}

.blog-btn:hover {
    background-color: #604eaaec;
    transform: scale(1.05);
}

.blog-img i {
    font-size: 6rem;
    color: #ffffff;
}

.blog-post {
    max-width: 800px;
    margin: 80px auto;
    padding: 30px 40px;
    background-color: #2f2f2f;
    border-radius: 20px;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.4);
    text-align: left;
    line-height: 1.7;
    color: #f5f5f0;
}

.blog-post h2 {
    margin-top: 25px;
    font-size: 1.5rem;
    color: #ffffff;
}

.blog-post p {
    margin: 15px 0;
    font-size: 1rem;
}

.blog-meta {
    margin-top: 25px;
    font-size: 0.9rem;
    color: #aaa;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 10px;
}

/* =========================
   Forms (for login/register/blog CRUD)
========================= */
.form-container {
    max-width: 600px;
    margin: 100px auto;
    padding: 30px 40px;
    background-color: #2f2f2f;
    border-radius: 20px;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.4);
    color: #f5f5f0;
}

.form-container h1 {
    text-align: center;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #ffffff;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background-color: #1e1e1e;
    color: #ffffff;
    font-family: "Satoshi", sans-serif;
    font-size: 1rem;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #604eaa;
    box-shadow: 0 0 0 3px rgba(96, 78, 170, 0.25);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.icon-preview-box {
    background-color: #1e1e1e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.5rem;
    min-width: 50px;
}

.form-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #604eaa91;
    color: #fff;
    font-family: inherit;
    font-weight: bold;
    text-decoration: none;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition:
        background-color 0.2s,
        transform 0.2s;
}

.form-btn:hover {
    background-color: #604eaaec;
    transform: scale(1.05);
}

.form-btn-danger {
    background-color: #cc4444;
}

.form-btn-danger:hover {
    background-color: #e05555;
}

.form-btn-secondary {
    background-color: #444;
}

.form-btn-secondary:hover {
    background-color: #555;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.alert-danger {
    background-color: rgba(243, 146, 146, 0.15);
    border: 1px solid #f39292;
    color: #f39292;
    padding: 10px 15px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.alert-danger ul {
    margin: 0;
    padding-left: 20px;
}

.form-hint {
    display: block;
    margin-top: 5px;
    font-size: 0.82rem;
    color: #999;
    line-height: 1.4;
}

/* =========================
   Misc / Spacers
========================= */

.spacer100 {
    height: 100px;
}

.spacer500 {
    height: 500px;
}

.scroll-down {
    position: absolute;
    top: 90vh;
    left: 50%;
    transform: translateX(-50%);
    font-size: 40px;
    color: #ffffff;
    z-index: 10;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    85% {
        transform: translateY(-20px) translateX(-50%);
    }
    90% {
        transform: translateY(0) translateX(-50%);
    }
    95% {
        transform: translateY(-10px) translateX(-50%);
    }
}

.scroll-down-profile {
    position: absolute;
    top: 90vh;
    left: 50%;
    transform: translateX(-50%);
    font-size: 40px;
    color: #ffffff;
    z-index: 10;
}

/* Fallback cardboard images for 2D mode */
.robot img,
.phone img {
    position: absolute;
    object-fit: contain;
    pointer-events: none;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.5));
}

.robot img {
    right: 12%;
    top: 15%;
    height: 70%;
    max-width: 50%;
    z-index: -1;
    animation: float 6s ease-in-out infinite;
}

.phone img {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    height: 65%;
    max-width: 50%;
    z-index: 0;
    animation: float-center 6s ease-in-out infinite;
}

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

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

/* Startup Modal Experience Cards */
.experience-card {
    flex: 1;
    padding: 20px;
    background: #1e1e1e;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: #ffffff;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.2s, background-color 0.2s;
}
.experience-card.active-card {
    background-color: #1e1e1e !important;
    border-color: #604eaaec !important;
}
.experience-card:focus-visible {
    outline: 2px solid #604eaaec;
    outline-offset: 3px;
}

/* Make startup modal backdrop completely solid and matching the site background */
#startup-modal .grade-modal-backdrop {
    background: #151515 !important;
}

/* =========================
   Hobbies Page
========================= */
.hobbies-container {
    max-width: 1200px;
    margin: 100px auto;
    padding: 0 40px;
}

.watchlist-header {
    margin-bottom: 24px;
}

.watchlist-title-text {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0 0 8px 0;
    color: #a78bfa; /* Beautiful light purple */
    letter-spacing: -0.5px;
}

.watchlist-dates-row {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e5e7eb; /* Off white */
    margin: 0;
    letter-spacing: 0.5px;
}

.watchlist-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    gap: 16px;
    color: #cfcfcf;
}

.watchlist-status p {
    margin: 0;
    font-size: 1.1rem;
}

/* Netflix Style Scrollable Row */
.watchlist-grid {
    display: flex;
    flex-direction: row;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 24px 4px 40px 4px; /* space for card scaling hover */
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(167, 139, 250, 0.3) transparent;
}

/* Custom thin scrollbar for Netflix row */
.watchlist-grid::-webkit-scrollbar {
    height: 8px;
}

.watchlist-grid::-webkit-scrollbar-track {
    background: transparent;
}

.watchlist-grid::-webkit-scrollbar-thumb {
    background: rgba(167, 139, 250, 0.2);
    border-radius: 4px;
}

.watchlist-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(167, 139, 250, 0.5);
}

/* Netflix Portrait Card */
.watchlist-item {
    flex: 0 0 180px; /* Fixed width */
    aspect-ratio: 2 / 3;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: box-shadow 0.3s ease;
}

.watchlist-item:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
}

.watchlist-item::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: none;
    transition: box-shadow 0.3s ease;
}

.watchlist-item:hover::after {
    box-shadow: inset 0 0 0 2px #a78bfa;
}

/* Dark Gradient Overlay for Portrait Card */
.watchlist-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 15, 15, 0.95) 0%, rgba(15, 15, 15, 0.4) 40%, rgba(15, 15, 15, 0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 12px;
    box-sizing: border-box;
    border-radius: inherit;
}

.watchlist-card-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.watchlist-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}

.watchlist-card-detail {
    font-size: 0.75rem;
    color: #d1d5db;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}


.watchlist-card-time {
    font-size: 0.7rem;
    color: #9ca3af;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}

/* =========================
   Mobile Specific Styles (.mobile-device)
========================= */
.hamburger-menu {
    display: none;
}

.mobile-device .hamburger-menu {
    display: block;
    position: fixed;
    top: 25px;
    left: 25px;
    z-index: 2500;
    background: #2f2f2f;
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 2.5rem;
    width: 70px;
    height: 70px;
    border-radius: 16px;
    cursor: pointer;
    box-shadow: 0px 8px 25px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background-color 0.2s;
}

.mobile-device .hamburger-menu:active {
    transform: scale(0.95);
    background-color: #3f3f3f;
}

/* Scroll lock when mobile navigation is open */
html.mobile-nav-open,
body.mobile-nav-open {
    overflow: hidden !important;
    height: 100% !important;
}

/* Hide desktop floating navbars on mobile, show solid fullscreen menu overlay */
.mobile-device .nav-container-wrapper {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: #151515 !important; /* Solid dark background to cover screen */
    z-index: 2000;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    padding: 60px 0;
    box-sizing: border-box;
}

/* Display overlay when open */
.mobile-device.mobile-nav-open .nav-container-wrapper {
    display: flex;
}

.mobile-device .navbar {
    position: static;
    width: 100%;
    margin-bottom: 20px;
}

.mobile-device .navbar ul,
.mobile-device .navbar-right ul {
    position: static;
    background: none;
    box-shadow: none;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    margin: 0;
    border-radius: 0;
}

.mobile-device .navbar li {
    float: none;
    width: 100%;
    text-align: center;
}

.mobile-device .navbar a,
.mobile-device .navbar-btn {
    font-size: 1.8rem;
    font-weight: bold;
    padding: 20px;
    width: 100%;
    display: block;
    box-sizing: border-box;
    color: #ffffff;
    text-align: center;
}

.mobile-device .navbar a:hover,
.mobile-device .navbar a.active,
.mobile-device .navbar-btn:hover {
    background-color: #604eaa91;
}

/* Hide 3D toggle on mobile */
.mobile-device #toggle-3d-button {
    display: none !important;
}

/* Hide scroll-down chevron V-icons on mobile */
.mobile-device .scroll-down,
.mobile-device .scroll-down-profile {
    display: none !important;
}

/* Mobile size and layout adjustments (scaling up typography and cards) */
.mobile-device {
    font-size: 20px;
}

.mobile-device h1 {
    font-size: 3.2rem !important;
}

.mobile-device h2 {
    font-size: 2.6rem !important;
}

.mobile-device p,
.mobile-device li,
.mobile-device td,
.mobile-device th {
    font-size: 1.4rem !important;
}

.mobile-device .aboutme,
.mobile-device .aboutme p,
.mobile-device .experience,
.mobile-device .experience p {
    font-size: 1.4rem !important;
}

/* Homepage Flexbox Stacking & Layout */
.mobile-device .home-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.mobile-device .robot {
    order: 1;
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    min-height: 540px; /* Increased to fit larger image (20% bigger) */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 120px;
    margin-bottom: 40px;
    z-index: 5;
}

.mobile-device .robot img {
    position: static;
    transform: none;
    height: 500px; /* Made roughly 20% bigger (420px -> 500px) */
    width: auto;
    max-width: 100%;
    margin: 0 auto;
    animation: float 6s ease-in-out infinite;
}

.mobile-device .home-container {
    order: 2;
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 85%; /* Constrain to 85% screen width */
    max-width: 620px; /* Made roughly 20% bigger (520px -> 620px) */
    margin: 100px auto; /* Spacing between containers */
    height: auto;
    padding: 50px 40px; /* Scaled up padding */
}

.mobile-device .home-container h1 {
    font-size: 3.8rem !important; /* Scaled up by roughly 20% */
}

.mobile-device .home-container p {
    font-size: 1.8rem !important; /* Scaled up by roughly 20% */
}

.mobile-device .home-container .pfp {
    width: 290px; /* Made roughly 20% bigger (240px -> 290px) */
    height: 290px;
}

.mobile-device .icons {
    font-size: 2.2rem !important; /* Scaled up by roughly 20% */
}

.mobile-device .whyict-wrapper {
    order: 3;
    margin-top: 500px; /* Moved down more so it can only be seen when scrolled */
    margin-bottom: 120px;
    height: auto;
    min-height: auto;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mobile-device .whyict-container {
    width: 80%; /* Constrain to 80% screen width */
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    position: static;
    transform: none;
}

.mobile-device .whyict-content {
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.mobile-device .whyictimg {
    width: 80%;
    height: auto;
}

/* Profile Page Flexbox Reordering & Layout */
.mobile-device .profile-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.mobile-device .page-title {
    order: 1;
    margin-top: 120px;
    margin-bottom: 40px;
    width: 100%;
    text-align: center;
}

.mobile-device .aboutme {
    order: 2;
    position: relative;
    left: auto;
    top: auto;
    width: 80%; /* Constrain to 80% screen width */
    max-width: 800px;
    margin: 100px auto; /* Increased spacing between containers */
    padding: 40px;
}

.mobile-device .phone {
    order: 4;
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    min-height: 550px; /* Increased to fit larger image */
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 450px auto 100px auto; /* Moved down 3 times as much */
}

.mobile-device .phone img {
    position: static;
    transform: none;
    height: 520px; /* Made way bigger */
    width: auto;
    max-width: 100%;
    margin: 0 auto;
    animation: float-center 6s ease-in-out infinite;
}

.mobile-device .experience {
    order: 5;
    position: relative;
    right: auto;
    top: auto;
    width: 80%; /* Constrain to 80% screen width */
    max-width: 800px;
    margin: 100px auto; /* Increased spacing between containers */
    padding: 40px;
}

.mobile-device .swot-wrapper {
    order: 6;
    margin-top: 100px; /* Increased spacing between containers */
    margin-bottom: 120px;
    width: 100%;
    min-height: auto;
    height: auto;
}

.mobile-device .swottable {
    width: 80%; /* Constrain to 80% screen width */
    max-width: 900px;
    margin: 0 auto 80px auto; /* Centered with bottom spacing */
    padding: 40px;
    left: auto;
    top: auto;
}

.mobile-device .swot-grid {
    grid-template-columns: 1fr;
    gap: 16px;
}

.mobile-device .swot-box {
    min-height: auto;
    padding: 20px;
}

/* Other Containers Width Constraint */
.mobile-device .faq-container,
.mobile-device .blog-container,
.mobile-device .blog-post,
.mobile-device .hobbies-container {
    width: 80%; /* Constrain to 80% screen width */
    max-width: 800px;
    margin: 100px auto 40px auto;
}

.mobile-device .form-container {
    width: 80%; /* Constrain to 80% screen width */
    max-width: 500px;
    margin: 100px auto 40px auto;
}