/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0175C2;
    --primary-light: #13B9FD;
    --accent: #00D4AA;
    --bg-dark: #0a0f1a;
    --bg-card: #141b2d;
    --bg-code: #1a2332;
    --text-primary: #ffffff;
    --text-secondary: #a8b2c1;
    --text-muted: #6b7688;
    --border: #2a3548;
    --success: #00d68f;
    --warning: #ffaa00;
    --danger: #ff4d6a;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow: hidden;
}

/* ===== PRESENTATION CONTAINER ===== */
.presentation {
    width: 100vw;
    height: 100vh;
    position: relative;
}

/* ===== SLIDE STYLES ===== */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 80px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(50px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, var(--bg-dark) 0%, #0d1525 50%, #111827 100%);
}

.slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.slide.prev {
    transform: translateX(-50px);
}

.slide-content {
    width: 100%;
    max-width: 1400px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* ===== TITLE SLIDE ===== */
.title-slide {
    align-items: center;
    justify-content: center;
    text-align: center;
}

.dart-logo {
    margin-bottom: 30px;
}

.dart-icon {
    width: 120px;
    height: 120px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* ===== DART ICON IMAGE ===== */
.dart-icon-img {
    width: 120px;
    height: 120px;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 10px 30px rgba(1, 117, 194, 0.4));
}

/* ===== FLOATING DART DECORATIONS ===== */
.floating-dart {
    position: absolute;
    pointer-events: none;
    opacity: 0.15;
    z-index: 0;
}

.floating-dart.dart-1 {
    width: 80px;
    height: 80px;
    top: 8%;
    left: 10%;
    animation: floatDrift1 8s ease-in-out infinite;
}

.floating-dart.dart-2 {
    width: 60px;
    height: 60px;
    top: 15%;
    right: 12%;
    animation: floatDrift2 10s ease-in-out infinite;
}

.floating-dart.dart-3 {
    width: 100px;
    height: 100px;
    bottom: 15%;
    left: 8%;
    animation: floatDrift3 12s ease-in-out infinite;
}

.floating-dart.dart-4 {
    width: 70px;
    height: 70px;
    bottom: 20%;
    right: 10%;
    animation: floatDrift4 9s ease-in-out infinite;
}

@keyframes floatDrift1 {

    0%,
    100% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0.15;
    }

    25% {
        transform: translateY(-20px) translateX(15px) rotate(5deg);
        opacity: 0.2;
    }

    50% {
        transform: translateY(-10px) translateX(-10px) rotate(-3deg);
        opacity: 0.12;
    }

    75% {
        transform: translateY(-25px) translateX(5px) rotate(8deg);
        opacity: 0.18;
    }
}

@keyframes floatDrift2 {

    0%,
    100% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0.12;
    }

    33% {
        transform: translateY(-30px) translateX(-20px) rotate(-10deg);
        opacity: 0.18;
    }

    66% {
        transform: translateY(-15px) translateX(25px) rotate(5deg);
        opacity: 0.1;
    }
}

@keyframes floatDrift3 {

    0%,
    100% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0.18;
    }

    20% {
        transform: translateY(-15px) translateX(20px) rotate(3deg);
        opacity: 0.12;
    }

    40% {
        transform: translateY(-35px) translateX(-15px) rotate(-5deg);
        opacity: 0.2;
    }

    60% {
        transform: translateY(-20px) translateX(10px) rotate(7deg);
        opacity: 0.15;
    }

    80% {
        transform: translateY(-10px) translateX(-5px) rotate(-2deg);
        opacity: 0.1;
    }
}

@keyframes floatDrift4 {

    0%,
    100% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0.1;
    }

    50% {
        transform: translateY(-25px) translateX(-30px) rotate(-8deg);
        opacity: 0.2;
    }
}

.title-slide h1 {
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.title-slide h2 {
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.chapter-badge {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.topics-preview {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.topic-tag {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.topic-tag:hover {
    border-color: var(--primary-light);
    color: var(--primary-light);
}

/* ===== SECTION HEADER ===== */
.section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.section-number {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 600;
}

/* ===== CONTENT GRID ===== */
.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    flex: 1;
}

/* ===== EXPLANATION BOX ===== */
.explanation-box {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid var(--border);
}

.explanation-box h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--primary-light);
}

.explanation-box p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

/* ===== TYPE LIST ===== */
.type-list {
    list-style: none;
}

.type-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--bg-code);
    border-radius: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.type-name {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    padding: 8px 18px;
    border-radius: 8px;
    font-family: 'Fira Code', monospace;
    font-weight: 600;
    font-size: 1rem;
    min-width: 90px;
    text-align: center;
}

.type-desc {
    color: var(--text-primary);
    font-size: 1rem;
}

.type-example {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
}

/* ===== INFO CARD ===== */
.info-card {
    background: linear-gradient(135deg, rgba(1, 117, 194, 0.15), rgba(19, 185, 253, 0.1));
    border: 1px solid rgba(19, 185, 253, 0.3);
    border-radius: 15px;
    padding: 25px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.info-icon {
    font-size: 2rem;
}

.info-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
}

.info-card code {
    background: var(--bg-code);
    padding: 3px 8px;
    border-radius: 5px;
    font-family: 'Fira Code', monospace;
    color: var(--primary-light);
}

/* ===== WARNING CARD ===== */
.warning-card {
    background: linear-gradient(135deg, rgba(255, 170, 0, 0.15), rgba(255, 77, 106, 0.1));
    border: 1px solid rgba(255, 170, 0, 0.3);
    border-radius: 15px;
    padding: 25px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.warning-icon {
    font-size: 2rem;
}

.warning-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.warning-card code {
    background: var(--bg-code);
    padding: 3px 8px;
    border-radius: 5px;
    font-family: 'Fira Code', monospace;
    color: var(--warning);
}

/* ===== CODE CONTAINER ===== */
.code-container {
    background: var(--bg-code);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--border);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.code-container.small {
    flex: none;
}

.code-header {
    background: #1e2939;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-dot.red {
    background: #ff5f56;
}

.code-dot.yellow {
    background: #ffbd2e;
}

.code-dot.green {
    background: #27ca40;
}

.code-title {
    margin-left: 15px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.code-block {
    padding: 20px 25px;
    overflow-x: auto;
    font-family: 'Fira Code', monospace;
    font-size: 0.95rem;
    line-height: 1.7;
    flex: 1;
}

.code-block.small-code {
    font-size: 0.85rem;
    line-height: 1.6;
}

/* Syntax Highlighting */
.keyword {
    color: #c792ea;
}

.function {
    color: #82aaff;
}

.string {
    color: #c3e88d;
}

.number {
    color: #f78c6c;
}

.bool {
    color: #ff9cac;
}

.comment {
    color: #546e7a;
    font-style: italic;
}

.property {
    color: #89ddff;
}

/* ===== OPERATORS GRID ===== */
.operators-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    margin-top: 25px;
}

.operator-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s;
}

.operator-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-3px);
}

.operator-card .op {
    display: block;
    font-family: 'Fira Code', monospace;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 8px;
}

.operator-card .op-name {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* ===== METHODS GRID ===== */
.methods-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.method-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
}

.method-card code {
    display: block;
    color: var(--primary-light);
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.method-card span {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ===== BOOLEAN DISPLAY ===== */
.bool-display {
    display: flex;
    gap: 30px;
    margin-top: 25px;
}

.bool-value {
    flex: 1;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.bool-value.true {
    background: linear-gradient(135deg, rgba(0, 214, 143, 0.2), rgba(0, 214, 143, 0.05));
    border: 2px solid var(--success);
}

.bool-value.false {
    background: linear-gradient(135deg, rgba(255, 77, 106, 0.2), rgba(255, 77, 106, 0.05));
    border: 2px solid var(--danger);
}

.bool-icon {
    font-size: 2.5rem;
}

.bool-text {
    font-family: 'Fira Code', monospace;
    font-size: 1.5rem;
    font-weight: 600;
}

.bool-value.true .bool-text {
    color: var(--success);
}

.bool-value.false .bool-text {
    color: var(--danger);
}

.bool-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== CHARACTERISTICS BOX ===== */
.characteristics-box {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid var(--border);
}

.characteristics-box h4 {
    color: var(--primary-light);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.characteristics-box ul {
    list-style: none;
}

.characteristics-box li {
    padding: 10px 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

.characteristics-box li::before {
    content: "→";
    color: var(--accent);
}

.characteristics-box code {
    background: var(--bg-code);
    padding: 3px 8px;
    border-radius: 5px;
    font-family: 'Fira Code', monospace;
    color: var(--primary-light);
}

/* ===== TWO COLUMN LAYOUT ===== */
.two-column {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
    flex: 1;
}

/* ===== OPERATORS TABLE ===== */
.operators-table {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid var(--border);
}

.operators-table h4 {
    color: var(--primary-light);
    margin-bottom: 15px;
    font-size: 1rem;
}

.operators-table table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
}

.operators-table td {
    padding: 10px;
    border-bottom: 1px solid var(--border);
}

.operators-table td:first-child {
    width: 60px;
}

.operators-table td:first-child code {
    background: var(--bg-code);
    padding: 5px 12px;
    border-radius: 5px;
    font-family: 'Fira Code', monospace;
    color: var(--accent);
    font-size: 1rem;
}

.operators-table td:last-child {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ===== FEATURE LIST ===== */
.feature-list {
    display: grid;
    gap: 15px;
    margin-top: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--bg-code);
    border-radius: 12px;
}

.feature-icon {
    font-size: 2rem;
}

.feature-item strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.feature-item code {
    color: var(--primary-light);
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
}

/* ===== COMPARISON TABLE ===== */
.comparison-table {
    margin-top: 20px;
}

.compare-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px;
    background: var(--bg-code);
    border-radius: 12px;
    margin-bottom: 12px;
}

.compare-type {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    padding: 10px 20px;
    border-radius: 8px;
    font-family: 'Fira Code', monospace;
    font-weight: 600;
    min-width: 100px;
    text-align: center;
}

.compare-desc {
    color: var(--text-secondary);
}

.compare-desc strong {
    color: var(--accent);
}

/* ===== CONVERSION TABLE ===== */
.conversion-table {
    margin-top: 20px;
}

.conversion-table h4 {
    color: var(--primary-light);
    margin-bottom: 15px;
}

.conversion-table table {
    width: 100%;
    border-collapse: collapse;
}

.conversion-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border);
}

.conversion-table td:first-child code {
    background: var(--bg-code);
    padding: 8px 15px;
    border-radius: 8px;
    font-family: 'Fira Code', monospace;
    color: var(--accent);
}

.conversion-table td:last-child {
    color: var(--text-secondary);
}

/* ===== PROJECT STYLES ===== */
.project-icon {
    font-size: 5rem;
    margin-bottom: 20px;
}

.project-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 40px;
    text-align: left;
}

.project-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s;
}

.project-item:hover {
    border-color: var(--primary-light);
    transform: translateY(-3px);
}

.project-num {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.3rem;
}

/* ===== PROJECT HEADER ===== */
.project-header {
    margin-bottom: 25px;
}

.project-badge {
    background: linear-gradient(135deg, var(--accent), #00b894);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
}

.project-header h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.project-goal {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ===== OUTPUT BOX ===== */
.output-box {
    background: #0d1117;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid var(--border);
}

.output-box h4 {
    color: var(--accent);
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.output-box pre {
    font-family: 'Fira Code', monospace;
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
}

/* ===== SUMMARY GRID ===== */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.summary-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s;
}

.summary-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-5px);
}

.summary-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.summary-card h3 {
    color: var(--primary-light);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.summary-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.end-message {
    margin-top: 30px;
}

.end-message p {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.end-message .small {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 10px;
}

/* ===== NAVIGATION ===== */
.navigation {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--bg-card);
    padding: 15px 25px;
    border-radius: 50px;
    border: 1px solid var(--border);
    z-index: 100;
}

.nav-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background: var(--bg-code);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.nav-btn:hover {
    background: var(--primary);
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.nav-btn svg {
    width: 24px;
    height: 24px;
}

.slide-counter {
    font-size: 1rem;
    color: var(--text-secondary);
    min-width: 70px;
    text-align: center;
}

.slide-counter #currentSlide {
    color: var(--primary-light);
    font-weight: 600;
}

/* ===== PROGRESS BAR ===== */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--bg-card);
    z-index: 100;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--accent));
    width: 0%;
    transition: width 0.3s ease;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .slide {
        padding: 40px 50px;
    }

    .title-slide h1 {
        font-size: 3rem;
    }

    .operators-grid,
    .methods-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .summary-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .two-column {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .slide {
        padding: 30px 25px;
    }

    .title-slide h1 {
        font-size: 2.2rem;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .bool-display {
        flex-direction: column;
    }

    .project-list {
        grid-template-columns: 1fr;
    }

    .summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .operators-grid,
    .methods-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}