@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* === Gaya Umum === */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8fafc;
    color: #334155;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* === Navigasi === */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background-color: #1e293b;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav img {
    height: 50px;
    width: auto;
    animation: slideInLeft 0.6s ease-out 0.2s both
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    animation: slideInRight 0.6s ease-out 0.2s both
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: #f8fafc;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

nav ul li a:hover {
    color: #60a5fa;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #60a5fa;
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

.content {
    flex: 1; /* Mengisi sisa ruang */
    padding-bottom: 0;
    animation: scaleIn 0.8s ease-out 0.6s both;
}

.content-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.image-format {
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
    font-size: 14px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.image-container {
    background-color: #f5f5f5;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    cursor: pointer;
    position: relative;
    display: inline-block;
    margin: 10px;
}

.image-container img {
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 16/9;
}

.image-container img:hover {
    transform: scale(1.02);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    z-index: 10;
    padding: 15px;
    box-sizing: border-box;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.overlay-content {
    text-align: center;
    max-width: 90%;
}

.content-video {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    padding: 30px;
    max-width: 140 0px;
    margin: 0 auto;
    font-family: 'Segoe UI', sans-serif;
    background-color: #f8f9fa;
}

.video-container {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.video-container:hover {
    transform: translateY(-3px);
}

.video-format {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.video-spec {
    padding-left: 5px;
}

video {
    width: 100%;
    border-radius: 6px;
    background: #000;
}

.unsupported-message {
    color: #e74c3c;
    text-align: center;
    padding: 10px;
    font-size: 14px;
    display: none;
}

.conversion-progress {
    display: none;
    margin-top: 10px;
    text-align: center;
    color: #3498db;
}

.font-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    padding: 30px;
    max-width: 1400px;
    margin: 0 auto;
    background-color: #f8f9fa;
}

.font-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.font-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.font-preview {
    font-size: 24px;
    line-height: 1.4;
}

/* Font Style Classes */
.serif { font-family: "Times New Roman", Times, serif; }
.sans-serif { font-family: Arial, Helvetica, sans-serif; }
.slab-serif { font-family: "Roboto Slab", "Courier New", serif; }
.comic { font-family: "Comic Sans MS", cursive, sans-serif; }
.stencil { font-family: "Stencil", "Impact", fantasy; }
.typewriter { font-family: "Courier New", monospace; }
.tnr { font-family: "Times New Roman", serif; }
.retro { font-family: "Press Start 2P", cursive; }
.georgia { font-family: Georgia, serif; }
.bodoni { font-family: "Bodoni MT", Didot, "Didot LT STD", serif; }

@media (max-width: 768px) {
    .font-gallery {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .content-video {
        grid-template-columns: 1fr;
    }
}

.audio-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    padding: 30px;
    max-width: 1300px;
    margin: 0 auto;
    font-family: 'Segoe UI', sans-serif;
}

.audio-player {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.audio-player:hover {
    transform: translateY(-5px);
}

.audio-header {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
    text-align: center;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

audio {
    width: 100%;
    border-radius: 8px;
    background: #f8f9fa;
}

audio::-webkit-media-controls-panel {
    background: #f8f9fa;
}

/* Responsif untuk layar kecil */
@media (max-width: 768px) {
    .audio-gallery {
        grid-template-columns: 1fr;
    }
}

.jenis-content {
    margin: 0 auto;
    max-width: 900px;
    margin-top: 40px;
}

/* === Konten Utama === */
.main-content {
    text-align: center;
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    animation: scaleIn 0.8s ease-out 0.6s both;
}

.main-content h1 {
    font-size: 2.5rem;
    color: #1e293b;
    margin-bottom: 1rem;
    font-weight: 700;
}

.main-content p {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto;
}

/* === Repositori PDF === */
.pdf-repository {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.pdf-item {
    background: #ffffff;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    cursor: pointer;
    border: 1px solid #e2e8f0;
    animation: scaleIn 0.8s ease-out 0.6s both;
}

.pdf-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-color: #93c5fd;
}

.pdf-icon {
    margin-right: 1.5rem;
    font-size: 2rem;
    color: #ef4444;
    min-width: 40px;
    text-align: center;
}

.pdf-info {
    flex-grow: 1;
    text-align: left;
}

.pdf-title {
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #2563eb;
    font-size: 1.1rem;
}

.pdf-meta {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
    display: flex;
    gap: 1rem;
}

.pdf-meta span {
    display: inline-flex;
    align-items: center;
}

.pdf-meta span::before {
    content: "•";
    margin-right: 0.5rem;
    color: #cbd5e1;
}

iframe {
    display: block;
    margin-bottom: 40px;
    max-width: 100%;
}

@media (max-width: 768px) {
    iframe {
        width: 90%;
        height: 200px;
    }
}

/* === Responsif === */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        padding: 1rem;
    }
    
    nav ul {
        margin-top: 1rem;
    }
    
    nav ul li {
        margin: 0 1rem;
    }
    
    .main-content {
        padding: 3rem 1rem;
    }
    
    .pdf-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .pdf-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .pdf-meta {
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .pdf-meta span::before {
        display: none;
    }
}

@media (max-width: 480px) {
    .main-content h1 {
        font-size: 2rem;
    }
    
    .pdf-repository {
        padding: 0 1rem;
    }
}

/* === Footer Styles === */
.footer {
    width: 100%;
    padding: 1.5rem 0;
    background-color: #1e293b;
    color: #f8fafc;
    text-align: center;
    position: relative;
    bottom: 0;
    left: 0;
    animation: fadeIn 1s ease-out 0.8s both;
}

.clickable-image {
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
}

.clickable-image img {
    width: auto;
    height: 50px;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: block;
}

.clickable-image:hover {
    transform: translateY(-5px);
}

.clickable-image:hover img {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.clickable-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.clickable-image:hover::after {
    opacity: 1;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from { 
        transform: translateX(-50px);
        opacity: 0;
    }
    to { 
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from { 
        transform: translateX(50px);
        opacity: 0;
    }
    to { 
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInUp {
    from { 
        transform: translateY(30px);
        opacity: 0;
    }
    to { 
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes scaleIn {
    from { 
        transform: scale(0.8);
        opacity: 0;
    }
    to { 
        transform: scale(1);
        opacity: 1;
    }
}


