:root {
    --primary-color: #2E4057;
    --bghover-color: #8695A6;
    --accent-color: #F18F01;
    --background-color: #F4F4F4;
    --font-color: #333333;
    --header-font: "Bricolage Grotesque", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    margin: 0;
    width: 100%;
    font-family: 'roboto', sans-serif;
    background-color: white;
}

/* === HEADER === */
header {
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
}

header > h1 {
    font-family: var(--header-font);
    color:white;
    font-size: 2rem;
    width: 50%;
    position: relative;
}

.logo {
    width: 120px;
    padding:20px;
}

.header-nav {
    position: absolute;
    top: 100%;
    right: 0;
    width: 180px;
    background-color: var(--primary-color);
    z-index: 1000;

    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);

    transition:
        opacity 0.3s ease,
        transform 0.3s ease,
        visibility 0.3s ease;

}

.header-nav.show {
    opacity: 1;
    visibility:visible;
    transform: translateY(0);
}

.header-nav li {
    display: block;
}

.navigation {
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-nav.show li {
    display: block;
}

.header-nav a {
    display: block;
    text-align: center;
    padding: 0.8rem;
    text-decoration: none;
    font-size: 1.5rem;
    transition: background-color 0.3s ease;
    color: var(--background-color);
}

.start-now {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.start-now a {
    color: var(--primary-color);
    font-weight: bold;
}

.header-nav a:hover, .header-nav a:active {
    color: white;
    background-color: #364b65;
    border-radius: 5px;
}

#menu {
    display: block;
    margin-left: auto;
    margin-right: 1rem;
    font-size: 2rem;
    font-weight:700;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    color: var(--background-color);
}

#menu:before {
    content: "≡";
    font-size: 2.8rem;
    font-weight: lighter;
    color: var(--background-color);
}

#menu.show::before {
    content: "✕";
    font-size: 2rem;
    font-weight: bold;
}

/* ***** PROJECT.HTML ***** */

/* === MAIN === */
.left-side {
    text-align: center;
    padding: 1rem;
}

.left-side h2,
.left-side p {
    margin-left: auto;
    margin-right: auto;
}

.left-side h2 {
    text-align: center;
    font-size: 2rem;
    width: 90%;
    align-items: center;
    margin-bottom: 50px;
}

.left-side a {
    display: inline-block;
    margin-top: 1rem;
}

p {
    font-size: 1.2rem;
    width: 90%;
    margin-bottom: 50px;
}

/* === Image Carousel === */

.carousel {
    width: 100%;
    height: 500px;
    overflow: hidden;
    position: relative;
    box-shadow: 5px 5px 20px 0px rgba(0, 0, 0, 0.5);
    margin-bottom: 50px;
    border-radius: 10px;
}

.carousel-track {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-track picture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.carousel-track picture:first-child {
    opacity: 1;
}

.carousel-track img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;

}

.start-btn {
    display: block;
    width: fit-content;
    margin: 2rem auto;
    background-color: var(--accent-color);
    text-align: center;
    padding: 1rem;
    text-decoration: none;
    font-size: 2rem;
    transition: background-color 0.3s ease;
    color: var(--background-color);
    border-radius: 5px;
    margin-bottom: 50px;
}

/* === Text Carousel === */

.text-carousel {
    min-height: 250px;
    position: relative;
    overflow: hidden;
    width: 90%;
    margin: 0 auto;
    margin-bottom: 50px;
}

.text-carousel-track {
    width: 100%;
    height: 100%;
    position: relative;
}

.text-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.text-slide:first-child {
    opacity: 1;
}

.text-slide h3 {
    text-align: center;
}

.text-slide p {
    width: 90%;
    margin: 0 auto;
    text-align: center;
}

/* ***** ABOUTUS.HTML ***** */
.profile {
    max-width: 900px;
    margin: 0 auto;
    text-align: justify;
}

.profile h2 {
    text-align: center;
    width: 100%;
}

.profile h3 {
    display: block;
    font-size: 1.5rem;
    text-align: center;
    width: 90%;
    margin: 1rem auto;
}

.profile img {
    display: block;
    width: 180px;
    height: auto;
    margin: 1rem auto;
    border-radius: 5px;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
}

.profile p {
    width: 90%;
    line-height: 1.6;
    margin: 0 auto 2rem;
}

/* ***** STARTNOW.HTML ***** */
.planner-main {
    WIDTH: 90%;
    max-width: 700px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.planner-main h2 {
    display: block;
    margin: 0 auto;
    width: 100%;
    padding-bottom: 2rem;
}

.task-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: var(--background-color);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 3px 3px 12px rgba(0,0,0,0.15);
    margin-bottom: 2rem;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.form-row label {
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.form-row input,
.form-row select {
    padding: 0.6rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.add-btn {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border: none;
    padding: 0.8rem;
    border-radius: 5px;
    font-size: 1.2rem;
    font-weight: bolder;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.add-btn:hover {
    background-color: #d67c00;
}

.filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.filter-btn {
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.task-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: white;
    border-left: 5px solid var(--primary-color);
    padding: 1rem;
    border-radius: 6px;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
}

.task-item.priority-high { border-left-color: #d64545; }
.task-item.priority-medium { border-left-color: var(--accent-color); }
.task-item.priority-low { border-left-color: #4a9d5f; }

.task-item.completed {
    opacity: 0.5;
}

.task-item.completed .task-info p {
    text-decoration: line-through;
}

.task-info {
    flex: 1;
}

.task-info strong {
    color: var(--primary-color);
}

.task-info p {
    margin: 0.2rem 0;
}

.task-date {
    font-size: 0.85rem;
    color: #777;
}

.task-priority {
    font-size: 0.8rem;
    text-transform: capitalize;
    color: #777;
}

.delete-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #d64545;
    cursor: pointer;
    line-height: 1;
}

.empty-message {
    display:block;
    margin: 1rem auto;
    text-align: center;
    color: #777;
    display: none;
}

/* === FOOTER === */

footer {
    background-color: var(--primary-color);
    padding: 2rem 1rem;
    color: white;
    text-align: center;
}

.footer-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-brand .logo {
    width: 60px;
    height: auto;
    margin: 0;
    padding: 0;
}

.footer-brand h2 {
    margin: 0.5rem 0 1rem;
    text-align: center;
    margin-bottom: 50px;
}

.footer-col > p {
    margin: 0 0 2rem;
    text-align: center;
}

.footer-nav {
    width: 100%;
}

.footer-nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}

.footer-nav li {
    text-align: center;
}

.footer-nav li a {
    display: block;
    text-decoration: none;
    color: white;
    padding: 0.5rem;
    font-size: 1rem;
}

.footer-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-info p {
    font-size: 0.8rem;
    margin: 0.3rem 0;
}