/* ==========================================================
   Academic Competency Portfolio
   style.css
   Version 1.0
========================================================== */


@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Cormorant+Garamond:wght@400;500;600&display=swap');


:root {

    --background: #f7f5f3;
    --surface: #ffffff;

    --primary: #1f1f1f;
    --secondary: #5a5a5a;

    --accent: #A51C30;
    --accent-dark: #7E1525;
    --accent-light: #C74A5C;

    --border: #d8d3cf;

    --card-bg: #ffffff;

    --shadow: 0 8px 24px rgba(0, 0, 0, .08);
    --radius: 16px;

    --max-width: 1200px;

}

* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}

html {

    scroll-behavior: smooth;

}

body {

    background: var(--background);

    color: var(--primary);

    font-family: "Inter", sans-serif;

    line-height: 1.75;

}

h1 {

    font-family: "Cormorant Garamond",serif;

    font-size: 4rem;

    font-weight: 600;

    margin-bottom: .4rem;

}

h2 {

    font-family: "Cormorant Garamond",serif;

    font-size: 2.4rem;

    margin-bottom: 1rem;

}

h3 {

    font-size: 1.2rem;

    margin-bottom: .75rem;

}

p {

    margin-bottom: 1.25rem;

}

.lead {

    font-size: 1.2rem;

    color: var(--secondary);

    max-width: 800px;

}

.hero {

    padding: 120px 50px;

    background: linear-gradient(
        135deg,
        #ffffff 0%,
        #f9ecee 100%
    );

}

.hero-content {

    max-width: var(--max-width);

    margin: auto;

}

.subtitle {

    letter-spacing: 4px;

    text-transform: uppercase;

    color: var(--accent);

    margin-bottom: 20px;

    font-weight: 600;

}


/* ==========================================================
   NAVIGATION
========================================================== */

nav {

    background: white;

    border-bottom: 1px solid var(--border);

    position: sticky;

    top: 0;

    z-index: 1000;

}

nav ul {

    max-width: var(--max-width);

    margin: auto;

    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    list-style: none;

}

nav li {

    margin: 0;

}

nav a {

    display: block;

    padding: 20px;

    color: var(--primary);

    text-decoration: none;

    transition: .25s;

}

nav a:hover,
nav a.active {

    color: var(--accent);

    font-weight: 700;

}


/* ==========================================================
   MAIN
========================================================== */

main {

    max-width: var(--max-width);

    margin: auto;

    padding: 60px 30px;

}

section {

    margin-bottom: 80px;

}

.cards {

    display: grid;

    grid-template-columns: repeat(auto-fit,minmax(250px,1fr));

    gap: 30px;

}

.card {

    background: white;

    border-radius: var(--radius);

    padding: 35px;

    box-shadow: var(--shadow);

    transition: .3s;

}

.card:hover {

    transform: translateY(-6px);

}

.big-number {

    font-size: 2.5rem;

    font-weight: 700;

    color: var(--accent);

}

.button {

    display: inline-block;

    background: var(--accent);

    color: white;

    padding: 15px 20px;

    border-radius: 50px;

    text-decoration: none;

    transition: .3s;

}

.button:hover {

    opacity: .9;

    background: var(--accent-dark);

}

.note,
.notice {

    background: #fffef5;

    border-left: 5px solid #f0c84c;

    padding: 30px;

    border-radius: 10px;

}

footer {

    padding: 50px;

    text-align: center;

    color: var(--secondary);

}


/* ==========================================================
   TABLES
========================================================== */

table {

    width: 100%;

    border-collapse: collapse;

}

th {

    background: var(--accent);

    color: white;
    
}

th,td {

    padding: 16px;

    border: 1px solid var(--border);

    text-align: left;

}

.center {

    text-align: center;

}

.small {

    font-size: .9rem;

    color: var(--secondary);

}

.toolbar {

    position: sticky;

    top: 68px;

    z-index: 999;

    display: flex;

    justify-content: flex-end;

    gap: 12px;

    padding: 20px;

    max-width: 1200px;

    margin: auto;

}

#back-to-top {

    position: fixed;

    right: 35px;

    bottom: 35px;

    width: 55px;

    height: 55px;

    border: none;

    border-radius: 50%;

    background: var(--accent);

    color: white;

    font-size: 22px;

    cursor: pointer;

    opacity: 0;

    pointer-events: none;

    transition: .3s;

}

#back-to-top.visible{

    opacity: 1;

    pointer-events: auto;

}

.reveal {

    opacity: 0;

    transform: translateY(25px);

    transition: all .8s ease;

}

.revealed {

    opacity: 1;

    transform: none;

}

.progress {

    background: #dddddd;

    border-radius: 20px;

    overflow: hidden;

    height: 14px;

}

.progress-fill {

    width: 0;

    height: 100%;

    background: var(--accent);

    transition: width 1.6s ease;

}

.hero-badges {

    display: flex;

    flex-wrap: wrap;

    gap: 14px;

    margin-top: 30px;

}

.hero-badges span {

    background: white;

    padding: 10px 18px;

    border-radius: 40px;

    box-shadow: var(--shadow);

}

.pdf-container {

    display: flex;

    width: 100%;

    height: 80vh;

}

.pdf-container iframe {
    flex: 1;

    width: 100%;

    height: 100%;

    border: none;

}

.menu-toggle {

    display: none;

}


/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 768px) {
   
    .pdf-container {

        height: 60vh;
    
    }

    h1 {

        font-size: 2.8rem;

    }

    h2 {

        font-size: 2rem;

    }

    .hero {

        padding: 80px 30px;

    }

    nav {

        position: relative;

    }

    nav ul {

        display: none;

        flex-direction: column;

        justify-content: flex-start;

        overflow: visible;

        width: 100%;

        margin: 0;

        padding: 10px 0;

    }

    nav ul.active {

        display: flex;

    }

    nav li {

        width: 100%;

        text-align: center;

    }

    nav a {

        display: block;

        width: 100%;

        padding: 12px 20px;

    }

    .menu-toggle {

        display: block;

        margin: 0 auto;

        padding: 8px 14px;

        border: none;

        background: transparent;

        font-size: 28px;

        cursor: pointer;

    }

    nav ul {

        justify-content: flex-start;

        overflow: auto;

    }

    .slider-btn {

        display: none;

    }

    .mobile {

        display: none;

    }

}

