/* ==========================================================================
   EDUPORTAL PROJECT SHOWCASE — MUKE STUDIO
   Static Left Editorial Hero + Grounded 3D Cyberpunk Samurai Operative
   Authentic Studio Enclosure, Pure White Editorial Surface & Tactile Controls
   ========================================================================== */

/* Page Viewport Overrides */
html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
    background: #000000;
}

/* ==========================================================================
   MAIN DUAL-PANE LAYOUT (Static Left Branding + 3D Stage)
   ========================================================================== */
.edu-main-layout {
    position: relative;
    width: 100%;
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(40px, 5.8vw, 92px);
    overflow: hidden;
    box-sizing: border-box;
}

/* ==========================================================================
   STATIC LEFT COLUMN (Branding, Credentials & Octagonal Launch)
   ========================================================================== */
.edu-left-col {
    position: relative;
    z-index: 25;
    width: clamp(300px, 26vw, 420px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(16px, 2.4vh, 28px);
    margin-left: clamp(24px, 3.8vw, 72px);
    flex-shrink: 0;
    user-select: none;
}

/* Authentic App Icon Box with Drop Shadow */
.edu-icon-box {
    width: clamp(88px, 7.2vw, 118px);
    height: clamp(88px, 7.2vw, 118px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1.5px solid rgba(0, 0, 0, 0.08);
    border-radius: clamp(24px, 2.2vw, 34px);
    box-shadow: 0 14px 30px -4px rgba(0, 0, 0, 0.08), 0 4px 10px rgba(0, 0, 0, 0.03);
    animation: iconPopIn 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.edu-icon-box:hover {
    transform: translateY(-4px) scale(1.04);
    border-color: rgba(234, 88, 12, 0.35);
    box-shadow: 0 18px 36px -4px rgba(234, 88, 12, 0.12), 0 6px 14px rgba(0, 0, 0, 0.06);
}

.edu-icon-img {
    width: 62%;
    height: 62%;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.08));
}

/* Title Group: Edu PORTAL.. */
.edu-title-group {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    animation: leftColFadeIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both;
}

.edu-title-main {
    font-family: var(--font-primary, 'Outfit', sans-serif);
    font-size: clamp(2.8rem, 4.4vw, 4.5rem);
    font-weight: 800;
    line-height: 1;
    color: #000000;
    letter-spacing: -0.03em;
    margin: 0;
}

.edu-title-sub {
    font-family: var(--font-secondary, 'Space Grotesk', sans-serif);
    font-size: clamp(1.2rem, 1.8vw, 1.85rem);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #000000;
}

/* ==========================================================================
   DEMO CREDENTIALS & LAUNCH ACTION BLOCK
   ========================================================================== */
.edu-credentials-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(12px, 1.8vh, 18px);
    width: 100%;
    animation: leftColFadeIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.22s both;
}

/* Heading: DEMO / CREDENTIALS.. */
.edu-creds-heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.25;
}

.creds-heading-line {
    font-family: var(--font-secondary, 'Space Grotesk', sans-serif);
    font-size: clamp(1.1rem, 1.5vw, 1.5rem);
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #000000;
    text-transform: uppercase;
}

/* Horizontal Action Cluster: Credentials Card + Octagon Launch Button */
.edu-action-cluster {
    display: flex;
    align-items: center;
    gap: clamp(36px, 5.8vw, 84px);
    margin-top: 4px;
}

/* Credentials Card */
.edu-creds-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    user-select: text;
}

.creds-role {
    font-family: var(--font-primary, 'Outfit', sans-serif);
    font-size: clamp(1.3rem, 1.7vw, 1.75rem);
    font-weight: 800;
    color: #000000;
    letter-spacing: -0.02em;
    margin-bottom: 2px;
}

.creds-entry {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: clamp(0.96rem, 1.2vw, 1.15rem);
    line-height: 1.4;
}

.creds-label {
    font-family: var(--font-primary, 'Outfit', sans-serif);
    font-weight: 600;
    color: #6b7280;
    letter-spacing: 0.02em;
}

.creds-val {
    font-family: var(--font-primary, 'Outfit', sans-serif);
    font-weight: 600;
    color: #374151;
    letter-spacing: 0.02em;
    cursor: copy;
    padding: 1px 4px;
    border-radius: 4px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.creds-val:hover {
    color: #ea580c;
    background: rgba(234, 88, 12, 0.08);
}

/* Authentic Geometric Octagonal Launch Button */
.edu-octagon-btn {
    position: relative;
    width: clamp(96px, 8vw, 128px);
    height: clamp(96px, 8vw, 128px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: none;
    background: transparent;
    border: none;
    padding: 0;
    outline: none;
    text-decoration: none;
    margin-left: clamp(8px, 1.4vw, 24px);
    animation: octagonEntrance 0.95s cubic-bezier(0.16, 1, 0.3, 1) 0.32s both;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), filter 0.28s ease;
}

.edu-octagon-btn:hover {
    transform: scale(1.08);
}

.edu-octagon-btn:active {
    transform: scale(0.96);
}

.octagon-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.octagon-svg polygon {
    stroke: #d1d5db;
    stroke-width: 2.2;
    transition: stroke 0.25s ease, filter 0.25s ease;
}

.edu-octagon-btn:hover .octagon-svg polygon {
    stroke: #ea580c;
    filter: drop-shadow(0 4px 14px rgba(234, 88, 12, 0.3));
}

.octagon-text {
    position: relative;
    z-index: 2;
    font-family: var(--font-primary, 'Outfit', sans-serif);
    font-size: clamp(1.25rem, 1.7vw, 1.6rem);
    font-weight: 800;
    color: #4b5563;
    letter-spacing: -0.01em;
    user-select: none;
    transition: color 0.25s ease;
}

.edu-octagon-btn:hover .octagon-text {
    color: #ea580c;
}

/* ==========================================================================
   RIGHT HERO 3D CHARACTER STAGE
   ========================================================================== */
.edu-stage-wrapper {
    position: relative;
    flex: 1;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    overflow: visible;
    box-sizing: border-box;
}

/* Signature Background Watermark Typography */
.edu-slide-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    pointer-events: none;
    user-select: none;
    z-index: 1;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.edu-slide-watermark .watermark-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 0.8;
}

.edu-slide-watermark .watermark-line {
    font-family: var(--font-primary, 'Outfit', sans-serif);
    font-weight: 900;
    font-size: clamp(6.5rem, 16vw, 17rem);
    letter-spacing: 0.05em;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(0, 0, 0, 0.05);
    text-transform: uppercase;
    line-height: 0.82;
    white-space: nowrap;
    display: block;
}

/* Hero Character Stage Grounded on Bottom Bar */
.edu-hero-stage {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    margin-right: clamp(20px, 3.2vw, 56px);
    margin-bottom: -14px;
    z-index: 10;
    box-sizing: border-box;
}

.edu-char-col {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    height: 100%;
    animation: charSlideUp 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both;
}

.edu-char-img {
    height: clamp(440px, 84vh, 920px);
    max-height: calc(100% + 14px);
    width: auto;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
    filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.14));
    animation: eduFloatMain 6s ease-in-out infinite;
    transition: transform 0.18s ease-out;
}

/* ==========================================================================
   INTERACTIVE FEEDBACK TOAST
   ========================================================================== */
.edu-copy-toast {
    position: fixed;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #111827;
    color: #ffffff;
    font-family: var(--font-secondary, 'Space Grotesk', sans-serif);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 8px 16px;
    border-radius: 999px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100;
}

.edu-copy-toast.is-active {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   CANVAS FOOTER (HUD Bottom Bar — Natural Flex Flow)
   ========================================================================== */
.canvas-footer {
    position: relative;
    width: 100%;
    height: 48px;
    z-index: 35;
    background: #ffffff;
    border-top: 1px solid rgba(10, 10, 12, 0.05);
    box-sizing: border-box;
    flex-shrink: 0;
}

/* ==========================================================================
   ANIMATION KEYFRAMES
   ========================================================================== */
@keyframes charSlideUp {
    0% {
        opacity: 0;
        transform: translateY(140px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes iconPopIn {
    0% {
        opacity: 0;
        transform: scale(0.7) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes leftColFadeIn {
    0% {
        opacity: 0;
        transform: translateX(-40px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes octagonEntrance {
    0% {
        opacity: 0;
        transform: scale(0.65) rotate(-18deg);
    }
    70% {
        transform: scale(1.06) rotate(3deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes eduFloatMain {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */
@media (max-width: 1080px) {
    .edu-main-layout {
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 30px 24px;
        overflow-y: auto;
        gap: 28px;
    }

    .edu-left-col {
        width: 100%;
        max-width: 580px;
        align-items: center;
        text-align: center;
        margin-left: 0;
    }

    .edu-title-group {
        justify-content: center;
    }

    .edu-credentials-section {
        align-items: center;
    }

    .edu-creds-heading {
        align-items: center;
    }

    .edu-action-cluster {
        justify-content: center;
    }

    .edu-stage-wrapper {
        width: 100%;
        height: auto;
        justify-content: center;
        overflow: visible;
    }

    .edu-hero-stage {
        width: 100%;
        justify-content: center;
        margin-right: 0;
        margin-bottom: 0;
    }

    .edu-char-col {
        justify-content: center;
    }

    .edu-char-img {
        height: clamp(280px, 45vh, 480px);
        max-width: 90vw;
    }
}

/* ==========================================================================
   DARK MODE OVERRIDES (EduPortal Page)
   ========================================================================== */
body.dark-mode .edu-icon-box {
    background: #14151b;
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 14px 30px -4px rgba(0, 0, 0, 0.6), 0 4px 10px rgba(0, 0, 0, 0.3);
}

body.dark-mode .edu-icon-box:hover {
    border-color: rgba(234, 88, 12, 0.5);
    box-shadow: 0 18px 36px -4px rgba(234, 88, 12, 0.25), 0 6px 14px rgba(0, 0, 0, 0.5);
}

body.dark-mode .edu-title-main,
body.dark-mode .edu-title-sub,
body.dark-mode .creds-heading-line,
body.dark-mode .creds-role {
    color: #f8f9fa;
}

body.dark-mode .creds-label {
    color: #9ca3af;
}

body.dark-mode .creds-val {
    color: #e5e7eb;
}

body.dark-mode .creds-val:hover {
    color: #ea580c;
    background: rgba(234, 88, 12, 0.15);
}

body.dark-mode .edu-octagon-btn .octagon-svg polygon {
    stroke: rgba(255, 255, 255, 0.25);
}

body.dark-mode .edu-octagon-btn:hover .octagon-svg polygon {
    stroke: #ea580c;
}

body.dark-mode .edu-octagon-btn .octagon-text {
    color: #d1d5db;
}

body.dark-mode .edu-octagon-btn:hover .octagon-text {
    color: #ea580c;
}

body.dark-mode .edu-slide-watermark .watermark-line {
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.04) !important;
}

body.dark-mode .canvas-footer {
    background: var(--canvas-bg, #090a0d) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}

