/* ===== RESET & GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Sky Blue Theme Colors */
    --sky-light: #E6F3FF;
    --sky-blue: #87CEEB;
    --sky-medium: #4A90E2;
    --sky-deep: #2E5B88;
    --sky-dark: #1B3A57;
    --sky-accent: #5BA8F5;
    --sky-gradient: linear-gradient(135deg, #87CEEB, #4A90E2);
    --sky-text: #1B3A57;
    --sky-white: #FAFCFF;
    --sky-cloud: #F0F8FF;
}

/* CSS untuk logo DPM baru */


body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--sky-text);
    background-color: var(--sky-light);
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(135, 206, 235, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(74, 144, 226, 0.1) 0%, transparent 50%);
    min-height: 100vh;
}

.header-title {
    font-family: 'Playfair Display', serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER STYLES ===== */
header {
    background: var(--sky-gradient);
    color: white;
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(74, 144, 226, 0.3);
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><text y="15" font-size="12" fill="rgba(255,255,255,0.05)" font-family="serif">☁️ DPM ☁️ DPM ☁️ DPM ☁️ DPM ☁️</text></svg>');
    opacity: 0.2;
}

header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 30px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,60 C300,100 500,20 800,60 C1000,100 1200,40 1200,60 L1200,120 L0,120 Z" fill="%23E6F3FF"/></svg>');
    background-size: cover;
}

.hero {
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    animation: float 3s ease-in-out infinite;
}

.hero .subtitle {
    font-size: 1.4rem;
    font-weight: 300;
    opacity: 0.95;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.hero .tagline {
    font-style: italic;
    opacity: 0.9;
    font-size: 1.1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ===== NAVIGATION BUTTONS ===== */
.nav-buttons {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin: 3rem 0;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 2rem;
    background: var(--sky-white);
    color: var(--sky-deep);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--sky-blue);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(135, 206, 235, 0.2);
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--sky-gradient);
    transition: left 0.4s ease;
    z-index: -1;
}

.nav-btn:hover::before {
    left: 0;
}

.nav-btn:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.4);
    border-color: var(--sky-accent);
}

.nav-btn i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.nav-btn:hover i {
    transform: scale(1.2);
}

/* ===== MAIN CONTENT ===== */
main {
    padding: 4rem 0;
    position: relative;
}

.content-section {
    background: var(--sky-white);
    border-radius: 25px;
    padding: 3.5rem;
    margin-bottom: 3rem;
    box-shadow: 
        0 10px 30px rgba(74, 144, 226, 0.1),
        0 1px 8px rgba(74, 144, 226, 0.05);
    border: 1px solid rgba(135, 206, 235, 0.2);
    position: relative;
    overflow: hidden;
}

.content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--sky-gradient);
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    color: var(--sky-deep);
    margin-bottom: 2.5rem;
    text-align: center;
    position: relative;
    font-weight: 600;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--sky-gradient);
    border-radius: 2px;
}

.section-title::before {
    content: '☁️';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    opacity: 0.3;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 
        0 5px 20px rgba(74, 144, 226, 0.08),
        0 1px 6px rgba(74, 144, 226, 0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(135, 206, 235, 0.15);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--sky-gradient);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 15px 40px rgba(74, 144, 226, 0.15),
        0 5px 15px rgba(74, 144, 226, 0.08);
    border-color: var(--sky-blue);
}

.card h3 {
    font-family: 'Playfair Display', serif;
    color: var(--sky-deep);
    margin-bottom: 1.2rem;
    font-size: 1.6rem;
    font-weight: 600;
}

.card-icon {
    font-size: 2.5rem;
    color: var(--sky-accent);
    margin-bottom: 1.5rem;
    display: block;
    transition: transform 0.3s ease;
}

.card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

.card p, .card li {
    color: var(--sky-text);
    opacity: 0.85;
    line-height: 1.7;
}

.card ul {
    padding-left: 1.2rem;
}

.card li {
    margin-bottom: 0.5rem;
    position: relative;
}

.card li::marker {
    color: var(--sky-accent);
}

/* ===== CHATBOT STYLES ===== */
.chatbot-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1000;
}

.chatbot-toggle {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: var(--sky-gradient);
    color: white;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    box-shadow: 
        0 8px 25px rgba(74, 144, 226, 0.4),
        0 3px 10px rgba(74, 144, 226, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.chatbot-toggle::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.3s ease;
}

.chatbot-toggle:hover::before {
    transform: scale(1);
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 
        0 12px 35px rgba(74, 144, 226, 0.5),
        0 5px 15px rgba(74, 144, 226, 0.3);
}

.chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    height: 520px;
    background: white;
    border-radius: 20px;
    box-shadow: 
        0 20px 60px rgba(74, 144, 226, 0.2),
        0 5px 20px rgba(74, 144, 226, 0.1);
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(135, 206, 235, 0.2);
}

.chatbot-header {
    background: var(--sky-gradient);
    color: white;
    padding: 1.2rem;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
}

.chatbot-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.chatbot-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    background: var(--sky-cloud);
    scrollbar-width: thin;
    scrollbar-color: var(--sky-blue) transparent;
}

.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: var(--sky-blue);
    border-radius: 3px;
}

.message {
    margin-bottom: 1.2rem;
    padding: 1rem 1.2rem;
    border-radius: 18px;
    max-width: 85%;
    word-wrap: break-word;
    position: relative;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.bot {
    background: white;
    color: var(--sky-text);
    align-self: flex-start;
    border: 1px solid rgba(135, 206, 235, 0.2);
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.08);
}

.message.bot::before {
    content: '🤖';
    position: absolute;
    left: -25px;
    top: 8px;
    font-size: 1.2rem;
}

.message.user {
    background: var(--sky-gradient);
    color: white;
    align-self: flex-end;
    margin-left: auto;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.2);
}

.chatbot-input {
    display: flex;
    padding: 1.2rem;
    border-top: 1px solid rgba(135, 206, 235, 0.2);
    background: white;
    gap: 0.8rem;
}

.chatbot-input input {
    flex: 1;
    padding: 0.9rem 1.2rem;
    border: 2px solid var(--sky-blue);
    border-radius: 25px;
    outline: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: var(--sky-cloud);
}

.chatbot-input input:focus {
    border-color: var(--sky-accent);
    box-shadow: 0 0 0 3px rgba(91, 168, 245, 0.2);
    background: white;
}

.chatbot-input button {
    padding: 0.9rem 1.2rem;
    background: var(--sky-gradient);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.2);
}

.chatbot-input button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

/* ===== STRUCTURE ORGANIZATION STYLES (UPDATED & NEW) ===== */
.structure-image-wrapper {
    position: relative;
    display: block;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 15px 35px rgba(74, 144, 226, 0.15),
        0 5px 15px rgba(74, 144, 226, 0.08);
    background: var(--sky-white);
    border: 3px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.structure-image-wrapper:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 25px 50px rgba(74, 144, 226, 0.2),
        0 10px 25px rgba(74, 144, 226, 0.12);
    border-color: var(--sky-blue);
}

.structure-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px; 
}

/* === BAGIAN BARU: Animasi CSS untuk slider === */
@keyframes continuous-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(var(--scroll-width, -4500px)); /* Nilai default jika JS gagal */
    }
}

.structure-slider-container {
    position: relative;
    max-width: 1100px;
    margin: 3rem auto 0;
    overflow: hidden;
    /* Membuat gradien transparan di tepi untuk efek fade */
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

/* === MODIFIKASI: Menerapkan animasi pada track slider === */
.structure-slider-track {
    display: flex;
    gap: 1.5rem;
    width: max-content; /* Memastikan lebar track cukup untuk semua kartu */
    /* Variabel --scroll-width akan diisi oleh JavaScript */
    animation: continuous-scroll 50s linear infinite;
}

/* === MODIFIKASI: Animasi berhenti saat di-hover === */
.structure-slider-container:hover .structure-slider-track {
    animation-play-state: paused;
}


.structure-slider-card {
    flex: 0 0 auto; /* Kartu tidak akan menyusut */
    width: 250px; /* Ukuran kartu dibuat tetap */
    background: var(--sky-white);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(74, 144, 226, 0.08);
    border: 1px solid rgba(135, 206, 235, 0.2);
    transition: all 0.3s ease;
    border-top: 4px solid var(--sky-blue);
}

.structure-slider-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.15);
    border-color: var(--sky-accent);
}

.structure-slider-card .position {
    font-weight: 600;
    color: var(--sky-accent);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.structure-slider-card .name {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--sky-deep);
    margin-bottom: 0.3rem;
}

.structure-slider-card .study-program {
    font-size: 0.9rem;
    color: var(--sky-text);
    opacity: 0.8;
}

/* ===== FOOTER ===== */
footer {
    background: var(--sky-dark);
    color: white;
    text-align: center;
    padding: 3rem 0;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 30px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,60 C300,20 500,100 800,60 C1000,20 1200,80 1200,60 L1200,0 L0,0 Z" fill="%23E6F3FF"/></svg>');
    background-size: cover;
}

footer p {
    position: relative;
    z-index: 2;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .content-section {
        padding: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .hero .subtitle {
        font-size: 1.2rem;
    }

    .nav-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .nav-btn {
        padding: 0.8rem 1.5rem;
        width: 200px;
        justify-content: center;
    }

    .content-section {
        padding: 2rem;
        margin-bottom: 2rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .card {
        padding: 2rem;
    }

    .chatbot-window {
        width: 320px;
        height: 450px;
        right: -10px;
    }

    .chatbot-toggle {
        width: 55px;
        height: 55px;
        font-size: 1.4rem;
    }
}


@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .content-section {
        padding: 1.5rem;
        border-radius: 15px;
    }

    .card {
        padding: 1.5rem;
    }

    .chatbot-window {
        width: 280px;
        height: 400px;
        right: -20px;
    }

    .chatbot-container {
        bottom: 15px;
        right: 15px;
    }
}