/* Modern CSS for Pengantar Teknik Informatika Materials */

/* Base Styles */
body { 
    font-family: 'Poppins', 'Inter', sans-serif; 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    margin: 0;
    padding: 0;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Slide Styles */
.slide { 
    min-height: 100vh; 
    page-break-inside: avoid; 
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: -1;
}

/* Gradient Backgrounds */
.gradient-bg { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    position: relative;
}

.gradient-bg::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 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.gradient-blue { 
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

.gradient-green { 
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

/* Glass Effects */
.glass-card {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.glass-card-dark {
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);
    border-radius: 20px;
}

/* Modern Cards */
.modern-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2);
    transition: all 0.3s ease;
    padding: 2rem;
}

.modern-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(31, 38, 135, 0.3);
}

/* Code Blocks */
.code-block { 
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #f9fafb; 
    padding: 1.5rem; 
    border-radius: 1rem; 
    font-family: 'Fira Code', 'Courier New', monospace;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.code-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #f5576c, #4facfe);
}

/* Text Effects */
.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    width: 120px;
    height: 120px;
    top: 20%;
    right: 15%;
    animation-delay: 2s;
}

.floating-element:nth-child(3) {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Animations */
.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.slide-in {
    animation: slideIn 0.8s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons */
.modern-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    cursor: pointer;
}

.modern-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

/* Effects */
.icon-glow {
    filter: drop-shadow(0 0 10px currentColor);
}

.border-gradient {
    border: 2px solid;
    border-image: linear-gradient(135deg, #667eea, #764ba2, #f093fb, #f5576c, #4facfe) 1;
}

/* Navigation */
.nav-button {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    color: white;
    border: none;
    padding: 20px 15px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-button:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 12px 40px rgba(31, 38, 135, 0.5);
    background: linear-gradient(135deg, rgba(102, 126, 234, 1) 0%, rgba(118, 75, 162, 1) 100%);
}

.nav-button:active {
    transform: translateY(-50%) scale(0.95);
}

.nav-button.prev {
    left: 20px;
}

.nav-button.next {
    right: 20px;
}

.nav-button.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%) scale(0.8);
}

/* Slide Indicator */
.slide-indicator {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 1000;
}

.slide-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.slide-dot.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.6);
}

.slide-dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

/* Slide Counter */
.slide-counter {
    position: fixed;
    bottom: 20px;
    right: 30px;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-weight: 600;
    color: #6B7280;
    z-index: 1000;
}

/* Home Button */
.home-button {
    position: fixed;
    bottom: 20px;
    left: 30px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.9) 0%, rgba(16, 185, 129, 0.9) 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(34, 197, 94, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.home-button:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(34, 197, 94, 0.5);
    background: linear-gradient(135deg, rgba(34, 197, 94, 1) 0%, rgba(16, 185, 129, 1) 100%);
    border-color: rgba(255, 255, 255, 0.4);
}

.home-button:active {
    transform: scale(0.95);
}

.home-button i {
    font-size: 18px;
}

.home-button span {
    font-size: 14px;
    font-weight: 600;
}

/* Background Variations */
.bg-slide-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%) !important;
}

.bg-slide-2 {
    background: linear-gradient(135deg, #43cea2 0%, #185a9d 100%) !important;
}

.bg-slide-3 {
    background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%) !important;
}

.bg-slide-4 {
    background: linear-gradient(135deg, #f7971e 0%, #ffd200 100%) !important;
}

.bg-slide-5 {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%) !important;
}

.bg-slide-6 {
    background: linear-gradient(135deg, #f857a6 0%, #ff5858 100%) !important;
}

.bg-slide-7 {
    background: linear-gradient(135deg, #232526 0%, #414345 100%) !important;
}

.bg-slide-8 {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%) !important;
}

.bg-slide-9 {
    background: linear-gradient(135deg, #fc5c7d 0%, #6a82fb 100%) !important;
}

.bg-slide-10 {
    background: linear-gradient(135deg, #f7971e 0%, #ffd200 100%) !important;
}

.bg-slide-11 {
    background: linear-gradient(135deg, #00c3ff 0%, #ffff1c 100%) !important;
}

.bg-slide-12 {
    background: linear-gradient(135deg, #f953c6 0%, #b91d73 100%) !important;
}

.bg-slide-13 {
    background: linear-gradient(135deg, #43cea2 0%, #185a9d 100%) !important;
}

.bg-slide-14 {
    background: linear-gradient(135deg, #ff9966 0%, #ff5e62 100%) !important;
}

.bg-slide-15 {
    background: linear-gradient(135deg, #7f53ac 0%, #657ced 100%) !important;
}

.bg-slide-16 {
    background: linear-gradient(135deg, #f7971e 0%, #ffd200 100%) !important;
}

.bg-slide-17 {
    background: linear-gradient(135deg, #43cea2 0%, #185a9d 100%) !important;
}

.bg-slide-18 {
    background: linear-gradient(135deg, #f953c6 0%, #b91d73 100%) !important;
}

.bg-slide-19 {
    background: linear-gradient(135deg, #00c3ff 0%, #ffff1c 100%) !important;
}

.bg-slide-20 {
    background: linear-gradient(135deg, #fc5c7d 0%, #6a82fb 100%) !important;
}

.bg-slide-21 {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%) !important;
}

.bg-slide-22 {
    background: linear-gradient(135deg, #f7971e 0%, #ffd200 100%) !important;
}

.bg-slide-23 {
    background: linear-gradient(135deg, #f857a6 0%, #ff5858 100%) !important;
}

.bg-slide-24 {
    background: linear-gradient(135deg, #232526 0%, #414345 100%) !important;
}

.bg-slide-25 {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%) !important;
}

.bg-slide-26 {
    background: linear-gradient(135deg, #fc5c7d 0%, #6a82fb 100%) !important;
}

.bg-slide-27 {
    background: linear-gradient(135deg, #7f53ac 0%, #657ced 100%) !important;
}

.bg-slide-28 {
    background: linear-gradient(135deg, #ff9966 0%, #ff5e62 100%) !important;
}

.bg-slide-29 {
    background: linear-gradient(135deg, #43cea2 0%, #185a9d 100%) !important;
}

/* Utility Classes */
.card-hover { 
    transition: all 0.3s ease; 
}

.card-hover:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); 
}

/* Responsive Design */
@media (max-width: 768px) {
    .slide {
        padding: 1rem;
    }
    
    .modern-card {
        padding: 1.5rem;
    }
    
    .nav-button {
        padding: 15px 10px;
        font-size: 14px;
    }
    
    .nav-button span {
        display: none;
    }
}

@media (max-width: 480px) {
    .slide {
        padding: 0.5rem;
    }
    
    .modern-card {
        padding: 1rem;
    }
    
    .slide-indicator {
        bottom: 20px;
    }
    
    .slide-counter {
        bottom: 10px;
        right: 20px;
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* Loading Animation */
.loading {
    opacity: 0;
    transition: opacity 1s ease;
}

.loading.loaded {
    opacity: 1;
}

/* Progress Bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #f5576c, #4facfe);
    z-index: 9999;
    transition: width 0.3s ease;
}

/* Enhanced Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    font-weight: 900;
}

h2 {
    font-size: 2.5rem;
    font-weight: 800;
}

h3 {
    font-size: 2rem;
    font-weight: 700;
}

/* Enhanced Grid System */
.grid {
    display: grid;
    gap: 2rem;
}

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

@media (max-width: 768px) {
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }
}

/* Enhanced Spacing */
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }

/* Enhanced Colors */
.text-blue-600 { color: #2563eb; }
.text-green-600 { color: #16a34a; }
.text-purple-600 { color: #9333ea; }
.text-red-600 { color: #dc2626; }
.text-yellow-600 { color: #ca8a04; }
.text-indigo-600 { color: #4f46e5; }
.text-pink-600 { color: #db2777; }

.bg-blue-50 { background-color: #eff6ff; }
.bg-green-50 { background-color: #f0fdf4; }
.bg-purple-50 { background-color: #faf5ff; }
.bg-red-50 { background-color: #fef2f2; }
.bg-yellow-50 { background-color: #fefce8; }
.bg-indigo-50 { background-color: #eef2ff; }
.bg-pink-50 { background-color: #fdf2f8; }

/* Enhanced Borders */
.border-l-4 { border-left-width: 4px; }
.border-blue-500 { border-color: #3b82f6; }
.border-green-500 { border-color: #22c55e; }
.border-purple-500 { border-color: #a855f7; }
.border-red-500 { border-color: #ef4444; }
.border-yellow-500 { border-color: #eab308; }
.border-indigo-500 { border-color: #6366f1; }
.border-pink-500 { border-color: #ec4899; }
