:root {
    --primary-bg: #0f172a;
    --secondary-bg: #1e293b;
    --accent-color: #38bdf8;
    --text-color: #f1f5f9;
    --text-muted: #94a3b8;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(56, 189, 248, 0.2);
    --gradient-1: linear-gradient(135deg, #3b82f6 0%, #2dd4bf 100%);
    --font-main: 'Poppins', sans-serif;
    --font-body: 'Lato', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--primary-bg);
    color: var(--text-color);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    perspective: 1000px;
}

/* Background & Particles */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.overlay-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.9)),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2338bdf8' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 1;
    pointer-events: none;
}

/* Landing Scene */
#landing-scene {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    perspective: 1000px;
    transition: opacity 1s ease, visibility 1s ease;
}

#landing-scene.fade-out {
    opacity: 0;
    visibility: hidden;
}

.monitor-container {
    width: 600px;
    height: 400px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 1.5s cubic-bezier(0.7, 0, 0.3, 1);
    cursor: pointer;
}

.monitor-container:hover {
    transform: rotateX(-5deg) rotateY(5deg);
}

.monitor-container.zoom-in {
    transform: translateZ(800px) scale(5);
}

.monitor {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
}

.monitor-bezel {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: #1e293b;
    border-radius: 20px;
    box-shadow: 
        inset 0 0 10px rgba(0,0,0,0.8),
        0 20px 50px rgba(0,0,0,0.5);
    transform: translateZ(0);
}

.monitor-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    overflow: hidden;
    border-radius: 5px;
    transform: translateZ(2px);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.screen-content {
    text-align: center;
    color: var(--accent-color);
    font-family: 'Courier New', monospace;
    z-index: 2;
}

.glitch-text {
    font-size: 3rem;
    font-weight: bold;
    text-shadow: 2px 2px #ef4444;
    animation: glitch 1s infinite;
}

.screen-content p {
    font-size: 1.2rem;
    margin-top: 10px;
    opacity: 0.8;
    animation: blink 1s infinite;
}

.scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: rgba(56, 189, 248, 0.2);
    opacity: 0.5;
    animation: scanline 3s linear infinite;
}

.monitor-stand {
    position: absolute;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%) translateZ(-50px);
    width: 100px;
    height: 100px;
    background: #334155;
}

.monitor-base {
    position: absolute;
    bottom: -120px;
    left: 50%;
    transform: translateX(-50%) translateZ(-50px) rotateX(60deg);
    width: 300px;
    height: 150px;
    background: #1e293b;
    border-radius: 20px;
    box-shadow: 0 20px 30px rgba(0,0,0,0.5);
}

/* Animations for Monitor */
@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

@keyframes scanline {
    0% { top: -10%; }
    100% { top: 110%; }
}

/* Container */
.presentation-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    opacity: 1;
    transition: opacity 1s ease 1s;
    overflow: hidden;
}

.presentation-container::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 2px solid rgba(56, 189, 248, 0.3);
    border-radius: 20px;
    pointer-events: none;
    z-index: 10;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.1);
}

.presentation-container::after {
    content: "";
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px dashed rgba(56, 189, 248, 0.1);
    border-radius: 25px;
    pointer-events: none;
    z-index: 9;
}

.presentation-container.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Controls */
.controls {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 30px;
    z-index: 100;
    background: rgba(15, 23, 42, 0.9);
    padding: 15px 30px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--accent-color);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
}

.nav-btn {
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s;
}

.nav-btn:hover {
    color: var(--accent-color);
    transform: scale(1.2);
    text-shadow: 0 0 15px var(--accent-color);
}

.progress-container {
    width: 300px;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.progress-bar {
    height: 100%;
    background: var(--gradient-1);
    width: 0%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 15px var(--accent-color);
}

.slide-counter {
    position: absolute;
    top: 40px;
    right: 40px;
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    color: var(--accent-color);
    z-index: 100;
    background: rgba(15, 23, 42, 0.8);
    padding: 10px 20px;
    border-radius: 5px;
    border: 1px solid var(--accent-color);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

/* Mascot */
.mascot-container {
    position: absolute;
    bottom: 40px;
    left: 40px;
    z-index: 100;
    display: flex;
    align-items: flex-end;
    gap: 15px;
}

/* ... Mascot styles remain similar ... */

/* Slides */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px;
    transition: none; /* Managed by JS for glitch effect */
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 5;
}

.content-wrapper {
    max-width: 1600px; /* Expanded width */
    width: 90vw;
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* animation handled by JS */
}

.center-content {
    text-align: center;
    align-items: center;
}

/* Glitch Transitions */
.glitch-in {
    animation: glitch-in 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.glitch-out {
    animation: glitch-out 0.6s cubic-bezier(0.55, 0.085, 0.68, 0.53) both;
}

@keyframes glitch-in {
    0% {
        opacity: 0;
        transform: scale(1.1) translateX(-50px);
        filter: blur(10px) brightness(0);
    }
    20% {
        opacity: 1;
        transform: scale(1.05) translateX(10px);
        filter: blur(5px) brightness(1.5);
    }
    40% {
        transform: scale(1) translateX(-10px);
        filter: blur(2px) hue-rotate(90deg);
    }
    60% {
        transform: scale(1) translateX(5px);
        filter: blur(0) hue-rotate(-90deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateX(0);
        filter: blur(0) brightness(1);
    }
}

@keyframes glitch-out {
    0% {
        opacity: 1;
        transform: scale(1) translateX(0);
        filter: blur(0);
    }
    20% {
        transform: scale(0.95) translateX(-10px);
        filter: blur(2px) hue-rotate(-45deg);
    }
    40% {
        opacity: 0.8;
        transform: scale(1.1) translateX(20px);
        filter: blur(5px) hue-rotate(45deg);
    }
    100% {
        opacity: 0;
        transform: scale(1.2) translateX(-50px);
        filter: blur(10px) brightness(0);
    }
}

/* Typography & Components - Scaled Up */
h1.main-title {
    font-size: 4.5rem;
    margin-bottom: 3rem;
}

h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

p {
    font-size: 1.4rem;
}

.glass-card {
    padding: 30px;
}

.grid-2-col {
    gap: 40px;
}

.tools-grid {
    gap: 30px;
}

/* ... Rest of styles ... */


.subtitle-group p {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.course-name { color: var(--accent-color); font-weight: 600; }
.lecturer { color: var(--text-muted); }
.presenter { margin-top: 1rem; font-style: italic; }

/* Components */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 20px;
    border-radius: 12px;
    backdrop-filter: blur(5px);
    margin-bottom: 1rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.tilt-card {
    transform-style: preserve-3d;
}

.glass-card:hover, .tool-card:hover, .bug-card:hover {
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.2);
    border-color: var(--accent-color);
}

.highlight-text {
    font-size: 1.3rem;
    border-left: 4px solid var(--accent-color);
    padding-left: 15px;
}

.feature-list, .strategy-list {
    list-style: none;
    margin-top: 1rem;
}

.feature-list li, .strategy-list li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.feature-list li::before {
    content: "•";
    color: var(--accent-color);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.5rem;
    line-height: 1rem;
}

.strategy-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: transform 0.2s;
}

.strategy-list li:hover {
    transform: translateX(10px);
    background: rgba(56, 189, 248, 0.1);
}

.example-box {
    background: rgba(59, 130, 246, 0.1);
    border: 1px dashed var(--accent-color);
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    color: #bae6fd;
}

/* Table */
.table-container {
    overflow-x: auto;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: var(--secondary-bg);
    border-radius: 10px;
    overflow: hidden;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

th {
    background: rgba(56, 189, 248, 0.2);
    color: var(--accent-color);
    font-family: var(--font-main);
}

tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Grids */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.tool-card, .bug-card {
    background: var(--secondary-bg);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    transition: transform 0.3s;
}

/* Accordion */
.accordion-item {
    margin-bottom: 10px;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
}

.accordion-item:hover {
    transform: translateX(5px);
    border-color: var(--accent-color);
}

.accordion-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    cursor: pointer;
    font-weight: 600;
    font-family: var(--font-main);
    transition: background 0.3s;
}

.accordion-header:hover {
    background: rgba(56, 189, 248, 0.1);
}

.accordion-body {
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-muted);
}

/* Process Flow */
.process-flow {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 2rem 0;
}

.step {
    background: var(--gradient-1);
    color: #0f172a;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
    font-family: var(--font-main);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
    transition: transform 0.3s;
}

.step:hover {
    transform: scale(1.1);
}

.arrow {
    font-size: 1.5rem;
    color: var(--text-muted);
}

/* Timeline */
.timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.timeline-item {
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid;
    background: var(--secondary-bg);
    transition: transform 0.3s;
}

.timeline-item:hover {
    transform: translateY(-5px);
}

.type-1 { border-color: #3b82f6; }
.type-2 { border-color: #f97316; }
.type-3 { border-color: #eab308; }
.type-4 { border-color: #22c55e; }
.type-5 { border-color: #a855f7; }
.type-6 { border-color: #64748b; }

/* Case Study */
.case-study-box {
    background: var(--secondary-bg);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.case-study-box ol {
    margin-left: 20px;
    margin-top: 10px;
}

.case-study-box li {
    margin-bottom: 8px;
}

/* Conclusion */
.conclusion-list {
    display: inline-block;
    text-align: left;
    margin: 2rem 0;
}

.conclusion-item {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.conclusion-item.highlight {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.6rem;
    margin-top: 1.5rem;
}

.references {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    border-top: 1px solid var(--glass-border);
    padding-top: 1rem;
}

/* Animations Keyframes */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes blink {
    0%, 90%, 100% { transform: scaleY(1); }
    95% { transform: scaleY(0.1); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(56, 189, 248, 0); }
    100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}

/* Entrance Animations classes */
.slideInUp { animation: slideInUp 0.8s ease-out forwards; opacity: 0; }
.slideInLeft { animation: slideInLeft 0.8s ease-out forwards; opacity: 0; }
.slideInDown { animation: slideInDown 0.8s ease-out forwards; opacity: 0; }
.fadeInUp { animation: fadeInUp 0.8s ease-out forwards; opacity: 0; }
.fadeInRight { animation: fadeInRight 0.8s ease-out forwards; opacity: 0; }
.fadeInLeft { animation: fadeInLeft 0.8s ease-out forwards; opacity: 0; }
.fadeInZoom { animation: fadeInZoom 0.8s ease-out forwards; opacity: 0; }
.zoomIn { animation: zoomIn 0.6s ease-out forwards; opacity: 0; }
.pulse-anim { animation: pulse 2s infinite; }

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInDown {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInZoom {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

/* Responsive */
@media (max-width: 768px) {
    h1.main-title { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    .grid-2-col, .timeline { grid-template-columns: 1fr; }
    .process-flow { flex-direction: column; }
    .arrow { transform: rotate(90deg); }
    .controls { width: 90%; justify-content: space-between; }
    .progress-container { width: 100px; }
    .mascot-container { display: none; } /* Hide mascot on mobile to save space */
}

/* Dual Entry Styles */
.entry-options {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.entry-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.entry-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.icon-wrapper {
    font-size: 4rem;
    filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.5));
    transition: all 0.3s ease;
}

.entry-btn:hover .icon-wrapper {
    filter: drop-shadow(0 0 20px rgba(56, 189, 248, 0.8));
    animation: pulse 1s infinite;
}

.label {
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 5px var(--accent-color);
}

#btn-risk .icon-wrapper {
    filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.5));
}

#btn-risk:hover .icon-wrapper {
    filter: drop-shadow(0 0 20px rgba(239, 68, 68, 0.8));
    animation: spin 4s linear infinite;
}

#btn-risk .label {
    color: #ef4444;
    text-shadow: 0 0 5px #ef4444;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
