:root {
    --primary-color: #f7a524;
    --secondary-color: #192441;
    --background-color: #f4f4f9;
    --text-color: #333333;
    --background-gradient: linear-gradient(45deg, #f3f3f3, #ffffff);
}

body.dark-mode {
    --background-color: #121212;
    --text-color: #e0e0e0;
    --secondary-color: #f7a524;
    --primary-color: #192441;
    --background-gradient: linear-gradient(45deg, #1a1a1a, #121212);
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    transition: background-color 0.5s, color 0.5s;
    background-image: var(--background-gradient);
    background-size: 400% 400%;
    animation: gradient-animation 15s ease infinite;
}

@keyframes gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 3rem;
    background-color: var(--secondary-color);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s, transform 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger .line {
    width: 30px;
    height: 3px;
    background-color: white;
    transition: all 0.4s ease-in-out;
}

.mode-switch {
    display: flex;
    align-items: center;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

main {
    padding: 3rem;
}

section {
    padding: 5rem 3rem;
    margin: 0 auto 3rem auto;
    max-width: 1000px;
    background: var(--background-color);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

body.dark-mode section {
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

body.dark-mode section:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

#hero {
    text-align: center;
    padding: 8rem 3rem;
    background: var(--secondary-color);
    color: white;
    border-radius: 0;
    margin-bottom: 3rem;
}

#hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 900;
}

#hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

h2, h3, h4 {
    color: var(--secondary-color);
}

body.dark-mode h2, body.dark-mode h3, body.dark-mode h4 {
    color: var(--primary-color);
}

blockquote {
    border-left: 5px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
}

ul {
    line-height: 1.8;
}

footer {
    text-align: center;
    padding: 3rem;
    background-color: var(--secondary-color);
    color: white;
}

@media (max-width: 768px) {
    header {
        padding: 1rem 1.5rem;
    }

    .nav-links {
        position: fixed;
        right: 0;
        top: 68px;
        background-color: var(--secondary-color);
        height: 100vh;
        width: 60%;
        flex-direction: column;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.5s ease-in-out;
        padding-top: 3rem;
    }

    body.menu-open .nav-links {
        transform: translateX(0%);
    }

    .hamburger {
        display: flex;
    }

    body.menu-open .hamburger .line:nth-child(1) {
        transform: rotate(-45deg) translate(-6px, 7px);
    }

    body.menu-open .hamburger .line:nth-child(2) {
        opacity: 0;
    }

    body.menu-open .hamburger .line:nth-child(3) {
        transform: rotate(45deg) translate(-6px, -7px);
    }

    #hero h1 {
        font-size: 2.5rem;
    }

    main {
        padding: 1.5rem;
    }

    section {
        padding: 3rem 1.5rem;
    }
}