/* RESET & GLOBAL STYLES */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #e6e0f8;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* LOADER STYLES */

.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s ease;
}

.loader-container.hide {
    opacity: 0;
    pointer-events: none;
}

.loader {
    --ANIMATION-DELAY-MULTIPLIER: 70ms;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.loader span {
    padding: 0;
    margin: 0;
    letter-spacing: -5rem;
    animation-delay: 0s;
    transform: translateY(4rem);
    animation: hideAndSeek 1s alternate infinite cubic-bezier(0.86, 0, 0.07, 1);
}

.loader .l {
    animation-delay: calc(var(--ANIMATION-DELAY-MULTIPLIER) * 0);
}

.loader .o {
    animation-delay: calc(var(--ANIMATION-DELAY-MULTIPLIER) * 1);
}

.loader .a {
    animation-delay: calc(var(--ANIMATION-DELAY-MULTIPLIER) * 2);
}

.loader .d {
    animation-delay: calc(var(--ANIMATION-DELAY-MULTIPLIER) * 3);
}

.loader .ispan {
    animation-delay: calc(var(--ANIMATION-DELAY-MULTIPLIER) * 4);
}

.loader .n {
    animation-delay: calc(var(--ANIMATION-DELAY-MULTIPLIER) * 5);
}

.loader .g {
    animation-delay: calc(var(--ANIMATION-DELAY-MULTIPLIER) * 6);
}

.letter {
    width: fit-content;
    height: 3rem;
}

.i {
    margin-inline: 5px;
}

@keyframes hideAndSeek {
    0% {
        transform: translateY(4rem);
    }
    100% {
        transform: translateY(0rem);
    }
}

/* HEADER & NAVIGATION */

header {
    background-color: #aacef3;
    padding: 10px 20px;
    border-bottom: 2px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.logo {
    height: 70px;
    width: auto;
}

.journal-info h1 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 0;
}

.journal-info p {
    color: #555;
    font-size: 0.9rem;
    margin-top: 0;
}

.menu-toggle {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    padding: 5px;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-list li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-list li a:hover,
.nav-list li a.active {
    background-color: #2a5d8f;
    color: #fff;
    transform: translateY(-2px);
}

/* HERO SECTION */

.hero {
    background: linear-gradient(135deg, #2a5d8f);
    color: #fff;
    text-align: center;
    padding: 4rem 20px;
    margin: 2rem 0;
    border-radius: 10px;
    animation: fadeIn 1s ease-in-out;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

/* SECTION STYLES */

.section {
    padding: 4rem 20px;
    margin: 2rem 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* FORM STYLES */

.form-sections {
    display: flex;
    gap: 3rem;
    justify-content: space-between;
    flex-wrap: wrap;
}

.form-section {
    flex: 1;
    padding: 2rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.form-section h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #2a5d8f;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #444;
}

input[type="text"],
input[type="email"],
textarea,
select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #2a5d8f;
    box-shadow: 0 0 0 3px rgba(118, 199, 118, 0.2);
    outline: none;
}

.error {
    border-color: #e74c3c !important;
    background: #fff3f3;
}

/* BUTTONS */

.btn-cta {
    background: #2a5d8f;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-cta:hover {
    background: #2a5d8f;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

/* FOOTER */

footer {
    background: #2c3e50;
    color: #fff;
    padding: 3rem 20px;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    color: #2a5d8f;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    padding-left: 0;
}

.footer-section li {
    margin: 0.5rem 0;
}

.footer-section a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #2a5d8f;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icons a {
    color: #fff;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #90ee90;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #3a4b5c;
}

/* ANIMATIONS */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hideAndSeek {
    0% {
        transform: translateY(4rem);
    }
    100% {
        transform: translateY(0rem);
    }
}

/* RESPONSIVE DESIGN */

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    .nav-list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        padding: 1rem;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    .nav-list.show {
        display: flex;
    }
    .hero {
        padding: 60px 20px;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .form-sections {
        flex-direction: column;
    }
    .form-section {
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .logo-container {
        flex-direction: column;
        text-align: center;
    }
    .btn-cta {
        width: 100%;
    }
}