:root {
    --bg-head: #ffe251;
    --bg-main: #ffd000;
    --bg-main-alt: #2a8b94;
    --bg-panel: #3a285d;
    --bg-panel-alt: #212008;

    --text-head: #323158;
    --text-main: #efe6b9;
    --text-muted: #e3ebf7;

    --accent-red: #d12929;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    background-color: var(--bg-main);
    display: flex;
    flex-direction: column;
}

body {
    margin: 0;
    font-family: "Segoe UI", "Inter", sans-serif;
    color: var(--text-main);
    line-height: 1.6;
}

header {
    background-color: var(--bg-head);
    opacity: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    margin: 1rem;
    margin-left: 5rem;
    width: 15rem;
}

.content {
    overflow: auto;
    background: linear-gradient(to bottom, var(--bg-main-alt), var(--bg-main));

}

.section {
    background: var(--bg-panel);
    border-radius: 4rem;
    padding: 1.5rem;
    margin: 3rem;
    margin-bottom: 2rem;
}

.heading-box {
    background: var(--bg-panel-alt);
    border-radius: 4rem;
    padding: 1.5rem;
    margin: 3rem;
    margin-bottom: 2rem;

}

/* ===== Text ===== */

h1 {
    margin-bottom: 0.5rem;
}

h2 {
    color: var(--text-muted);
}

/* ===== Navigation ===== */

nav {
    padding-right: 5rem;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

nav a {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-head);
    text-decoration: none;
}

nav a:hover {
    color: var(--accent-red);
    text-decoration: none;
}

nav h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-head);
    text-decoration: none;
}

/* ===== Footer ===== */

footer {
    text-align: center;
    padding: 1.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    background-color: var(--bg-head);
    margin-top: auto;
    display: flex;
    gap: 5rem;
}

footer nav {
    padding-right: 5rem;
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

/* ===== Project List ===== */

.project-div {
    background-color: var(--bg-panel);
    margin: auto;
    margin-bottom: 2rem;
    padding: 2rem;
    width: 70%;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    border-radius: 4rem;
}

.project-poster {
    width: 100%;
    border-radius: 2rem;
}

.project-poster-link {
    width: 220%;
    margin-right: 2rem;
}

.project-text {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.project-title {
    color: var(--text-main);
    font-size: 300%;
}

.project-desc {
    color: var(--text-muted);
    font-size: 120%;
}

/* ===== Icons with Text ===== */

.icon-with-text {
    display: flex;
    flex-direction: row;
}

.icon-link img {
    height: 1.5rem;
}

.icon-link h4 {
    color: var(--text-head);
    font-size: 1rem;
    text-decoration: none;
    margin-left: 1rem;
}

.icon-link h4:hover {
    color: var(--accent-red);
    text-decoration: none;
}

.footer-socials {
    margin-left: 3rem;
}

/* ===== Page Formating ===== */

.page-headding {
    margin-left: 3rem;
    font-size: 4rem;
}

.mainpage-img-wheel {
    position: relative;
}

.mainpage-img-wheel img {
    display: block;
    width: 100%;
    height: auto;
}

.mainpage-wheel-desc {
    position: absolute;
    bottom: 5%;
    right: 2%;
    background-color: var(--bg-panel);
    border-radius: 2rem;
    padding: 0.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.mainpage-wheel-desc h2 {
    font-size: 200%;
    color: var(--text-main);
}

.mainpage-wheel-desc h3 {
    font-size: 100%;
    color: var(--text-muted);
}

.front-page-paragraph {
    display: flex;
}

.front-page-txt {
    font-size: 120%;
    width: 60%;
    margin-right: 5%;
    margin-left: 2%;
}

.front-page-txt li {
    margin-left: 5%;
}

.front-page-img {
    width: 30%;
    height: 100%;
    border-radius: 4rem;
    position: relative;
    transform: translate(0, -5rem);
}

.section-headding {
    color: var(--text-main);
    margin-left: 4rem;
    size: 3rem;
}

.fill-txt {
    color: var(--text-muted);
    margin-left: 3rem;
    size: 2rem;
}

/* ===== Links (Animated) ===== */

.read-more {
    font-size: 20px;
    font-weight: 600;
    color: var(--bg-head);
    text-decoration: none;
    position: relative;
    transition: color 0.2s ease;
}

.read-more:hover {
    color: var(--accent-red);
}

.read-more:hover::after {
    width: 100%;
}