:root {
    --primary: #00b4d8;
    --secondary: #f9844a;
    --accent: #5865f2;
    --background: #f2f2f2;
    --dark-overlay: rgba(0, 0, 0, 0.7);
    --card-bg: rgba(0, 0, 0, 0.5);
    --text-shadow: rgba(0, 0, 0, 0.5);
}

/* ===== GLOBAL ===== */
body {
    background-image: url(backgrounds/portfolio4.jpeg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ===== HEADER ===== */
header {
    text-align: center;
    padding: 20px 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

h1 {
    font-size: 4em;
    margin-bottom: 20px;
    font-family: 'Bebas Neue', sans-serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

h1 a {
    color: white;
    text-decoration: none;
}

/* ===== NAV ===== */
nav ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

nav a {
    display: block;
    padding: 1rem 2rem;
    background-color: var(--accent);
    color: var(--background);
    text-decoration: none;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

nav a:hover {
    background-color: var(--secondary);
    transform: translateY(-5px);
}

/* ===== SECTION ===== */
.pdfs-section {
    text-align: center;
    padding: 3rem;
}

.pdfs-section h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px var(--text-shadow);
}

.pdfs-section p {
    font-size: 1.2rem;
    opacity: 0.85;
    margin-bottom: 2rem;
}

/* ===== PDF GRID ===== */
.pdfs-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

/* ===== PDF CARD ===== */
.pdf-card {
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 1.5rem;
    width: 300px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.pdf-card:hover {
    transform: translateY(-5px);
}

.pdf-card h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    margin: 0.5rem 0 1rem 0;
    text-shadow: 1px 1px 2px var(--text-shadow);
}

.pdf-desc {
    color: #ddd;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0.5rem 0 1.5rem 0;
    padding: 0 1rem;
}

/* ===== PDF EMBED PREVIEW ===== */
.pdf-card embed {
    width: 100%;
    height: 200px;
    border-radius: 5px;
    margin-bottom: 1rem;
}

/* ===== PDF BUTTONS ===== */
.pdf-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    padding: 0 1rem;
}

.pdf-links .btn {
    background-color: var(--accent);
    color: var(--background);
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 1rem;
    flex: 1 1 auto;
    text-align: center;
    min-width: 140px;
}

.pdf-links .btn:hover {
    background-color: var(--secondary);
    transform: translateY(-2px);
}

.pdf-links .btn:nth-child(1) {
    background-color: var(--primary);
}

.pdf-links .btn:nth-child(2) {
    background-color: var(--accent);
}

.pdf-links .btn:nth-child(3) {
    background-color: var(--secondary);
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--dark-overlay);
    color: var(--background);
    padding: 20px;
    text-align: center;
    margin-top: auto;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    .pdfs-grid {
        flex-direction: column;
        align-items: center;
    }

    .pdf-card {
        width: 90%;
    }

    h1 {
        font-size: 2.5rem;
    }

    nav a {
        font-size: 1.3rem;
    }
}

@media (max-width: 500px) {
    .pdf-links {
        flex-direction: column;
        align-items: stretch;
    }

    .pdf-links .btn {
        width: 100%;
    }.pdf-thumb {
        width: 100%;
        height: auto;
        border-radius: 5px;
        margin-bottom: 1rem;
        object-fit: cover;
    }
    
}