/* style.css */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #64748b;
    --accent: #10b981;
    --text: #334155;
    --text-light: #64748b;
    --bg: #ffffff;
    --bg-light: #f8fafc;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.logo p {
    font-size: 0.875rem;
    color: var(--text-light);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-info {
    display: flex;
    gap: 2rem;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.875rem;
    opacity: 0.8;
    margin-bottom: 0.25rem;
}

.info-value {
    font-weight: 600;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.computer-diagram {
    position: relative;
    width: 300px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: 1rem;
}

.cpu, .memory, .io {
    position: absolute;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    font-weight: 600;
}

.cpu { top: 20%; left: 10%; }
.memory { top: 20%; right: 10%; }
.io { bottom: 20%; left: 50%; transform: translateX(-50%); }
.bus {
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    height: 2px;
    left: 10%;
    right: 10%;
    top: 50%;
}

/* Sections Common */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
}

/* Pertemuan Grid */
.pertemuan-section {
    padding: 4rem 0;
    background: var(--bg-light);
}

.pertemuan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.pertemuan-card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border);
}

.pertemuan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px -8px rgba(0, 0, 0, 0.15);
}

.uts-card,
.uas-card {
    background: linear-gradient(135deg, #fef3c7, #fed7aa);
    border: 1px solid #fdba74;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.pertemuan-number {
    font-weight: 600;
    color: var(--primary);
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge.teori { background: #dbeafe; color: var(--primary); }
.badge.praktikum { background: #dcfce7; color: #166534; }
.badge.ujian { background: #fef3c7; color: #92400e; }
.badge.studi-kasus { background: #f3e8ff; color: #7c3aed; }
.badge.project { background: #ffe4e6; color: #be123c; }
.badge.presentasi { background: #ecfccb; color: #3f6212; }
.badge.review { background: #e0f2fe; color: #0369a1; }

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.card-description {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sub-cpmk {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
}

.btn-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: color 0.3s;
}

.btn-link:hover {
    color: var(--primary-dark);
}

/* Modul Section */
.modul-section {
    padding: 4rem 0;
}

.modul-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.modul-card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: transform 0.3s;
}

.modul-card:hover {
    transform: translateY(-4px);
}

.modul-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.modul-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.modul-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.btn-modul {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

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

/* CPL Section */
.cpl-section {
    padding: 4rem 0;
    background: var(--bg-light);
}

.cpl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.cpl-card {
    background: var(--bg);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
}

.cpl-card h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.cpmk-section {
    background: var(--bg);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.cpmk-section h3 {
    margin-bottom: 1rem;
    color: var(--text);
}

.cpmk-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.cpmk-item:last-child {
    border-bottom: none;
}

/* Referensi Section */
.referensi-section {
    padding: 4rem 0;
}

.referensi-list {
    max-width: 800px;
    margin: 0 auto;
}

.referensi-item {
    background: var(--bg);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--accent);
}

.referensi-item h4 {
    color: var(--text);
    margin-bottom: 0.25rem;
}

.referensi-item p {
    color: var(--text-light);
    font-style: italic;
}

/* Footer */
.footer {
    background: var(--text);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-info h4 {
    margin-bottom: 0.5rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    justify-content: flex-end;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 0.8;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-nav ul {
        gap: 1rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-info {
        justify-content: center;
    }
    
    .pertemuan-grid {
        grid-template-columns: 1fr;
    }
    
    .modul-grid {
        grid-template-columns: 1fr;
    }
    
    .cpl-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}
