* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #13132f;
    --text-primary: #ffffff;
    --text-secondary: #e0e4e9;
    --accent: #7f5af0;
    --accent-hover: #2cb67d;
    --glass-bg: rgba(22, 22, 26, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Background Decorations */
.bg-decoration {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.6;
}

.dec-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #7f5af0 0%, transparent 70%);
    animation: float 15s ease-in-out infinite alternate;
}

.dec-2 {
    bottom: -15%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #2cb67d 0%, transparent 70%);
    animation: float 20s ease-in-out infinite alternate-reverse;
}

.dec-3 {
    top: 40%;
    left: 40%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #ef4565 0%, transparent 70%);
    animation: float 12s ease-in-out infinite alternate;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(30px, -50px);
    }
}

/* Container */
.presentation-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Progress bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 100;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #7f5af0, #2cb67d);
    width: 0%;
    transition: width 0.4s ease-out;
}

/* Slides Container */
.slides {
    flex: 1;
    position: relative;
    width: 100%;
    height: 100%;
}

/* Single Slide */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform: translateY(30px) scale(0.95);
    padding: 2rem;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    z-index: 10;
}

.slide.prev {
    transform: translateY(-30px) scale(0.95);
}

.slide.next {
    transform: translateY(30px) scale(0.95);
}

/* Content Box */
.content {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 4rem;
    max-width: 900px;
    width: 100%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: translateZ(0);
    /* Hardware acceleration */
}

/* Layout for Slides with Images */
.content.with-image {
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 1100px;
}

.text-content {
    flex: 1;
}

.slide-image {
    width: 350px;
    height: 350px;
    object-fit: contain;
    border-radius: 16px;
    filter: drop-shadow(0 10px 20px rgba(127, 90, 240, 0.3));
    animation: floating-image 6s ease-in-out infinite alternate;
}

@keyframes floating-image {
    0% {
        transform: translateY(0px);
    }

    100% {
        transform: translateY(-15px);
    }
}

/* Typography */
h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fffffe, #94a1b2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1rem;
    font-weight: 500;
}

p {
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

ul {
    margin-top: 1.5rem;
    padding-left: 2rem;
}

li {
    font-size: 1.4rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
}

li strong {
    color: var(--text-primary);
}

/* Title Slide Specific */
.title-slide {
    text-align: center;
    padding: 6rem 4rem;
    border-top: 4px solid var(--accent);
}

.title-slide h1 {
    font-size: 4.5rem;
    background: linear-gradient(90deg, #7f5af0, #2cb67d);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Controls */
.controls {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    z-index: 100;
}

.control-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.control-btn:hover:not(:disabled) {
    background: rgba(127, 90, 240, 0.2);
    color: var(--accent);
}

.control-btn:disabled {
    color: rgba(255, 255, 255, 0.2);
    cursor: not-allowed;
}

#slideCounter {
    font-size: 1.1rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: 2px;
}

/* Custom Scrollbar for Content */
.content::-webkit-scrollbar {
    width: 6px;
}

.content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.content::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
}

/* Responsive */
@media (max-width: 1024px) {
    .content {
        padding: 3rem;
        max-width: 85%;
    }
}

@media (max-width: 900px) {
    .content.with-image {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .slide-image {
        width: auto;
        max-width: 100%;
        height: auto;
        max-height: 220px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }

    h2 {
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
    }

    p,
    li {
        font-size: 1.05rem;
        line-height: 1.5;
    }

    li {
        margin-bottom: 0.6rem;
    }

    .content {
        padding: 1.5rem;
        width: 90%;
        max-height: 75vh;
        overflow-y: auto;
        border-radius: 16px;
    }

    .title-slide {
        padding: 3rem 1.5rem;
    }

    .title-slide h1 {
        font-size: 2.8rem;
    }

    .slide {
        padding: 1rem;
    }

    .controls {
        bottom: 1rem;
        padding: 0.5rem 1rem;
        gap: 1rem;
    }

    .control-btn {
        width: 38px;
        height: 38px;
    }

    #slideCounter {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }

    h2 {
        font-size: 1.2rem;
    }

    p,
    li {
        font-size: 0.95rem;
    }

    ul {
        padding-left: 1.2rem;
    }

    .content {
        padding: 1.2rem;
        width: 92%;
        max-height: 78vh;
        border-radius: 12px;
    }

    .title-slide {
        padding: 2rem 1rem;
    }

    .title-slide h1 {
        font-size: 2.2rem;
    }

    .title-slide p {
        font-size: 1rem;
    }

    .slide-image {
        max-height: 160px;
        border-radius: 12px;
    }

    .controls {
        bottom: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .control-btn {
        width: 34px;
        height: 34px;
    }

    #slideCounter {
        font-size: 0.85rem;
    }
}