/* ------------------------------------------------ */
/* LANDING PAGE STYLES */
/* ------------------------------------------------ */

@import url("https://fonts.googleapis.com/css2?family=Archivo:wght@300;400;600;700&display=swap");

body {
    animation: fadeBody 1s ease;
    background: var(--background-color);
    color: var(--text-color);
    overflow-x: hidden;
    font-family: "Archivo", sans-serif;
    font-size: 1rem;
}

/* ------------------------------------------------ */
/* INITIAL AJUDMENTS */
/* ------------------------------------------------ */

aside {
    display: none;
}
#toggle {
    display: none;
}
.right-toggle {
    display: none;
}

footer {
    color: white;
}

.landing-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: visible !important;
}

.landing-wrapper p,
.landing-wrapper h1,
.landing-wrapper h2,
.landing-wrapper h3,
.landing-wrapper .hero-content p,
.landing-wrapper .section-title {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
}

/* ------------------------------------------------ */
/* PROFESSOR AUTH STATUS */
/* ------------------------------------------------ */

.auth-status {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.auth-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
}

.auth-user {
    font-weight: 700;
}

.auth-link,
.auth-button {
    background: var(--autobutton-bg);
    color: var(--autobutton-text-color);
    padding: 6px 14px;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.auth-form {
    margin: 0;
}
/* ------------------------------------------------ */
/* HEADER */
/* ------------------------------------------------ */

.landing-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 92px;
    padding: 0 40px;
    background: var(--header);
    backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    transition:
        height 0.35s ease,
        background 0.3s ease;
}

.landing-header > * {
    align-self: center;
}

.landing-header.scrolled {
    background: var(--header-scrolled);
    height: 72px;
}

#logo {
    height: 92px;
    width: auto;
    object-fit: contain;
    display: block;
    transition:
        height 0.35s ease,
        transform 0.35s ease,
        opacity 0.3s ease;
}

.landing-header.scrolled #logo {
    height: 60px;
    transform: translateY(2px);
}

#logo:hover {
    opacity: 0.85;
}

/* ------------------------------------------------ */
/* SIDE MENU */
/* ------------------------------------------------ */

.menu-toggle {
    justify-self: start;
    padding: 6px 10px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--background-color);
    color: var(--text-color);
    border: 1px solid rgba(0, 0, 0, 0.25);
    border-radius: 8px;
    cursor: pointer;
    height: 34px;
    line-height: 1;
    width: 100px !important;
    transition: box-shadow 0.2s ease;
    transform: none !important;
}

.menu-toggle:hover {
    background-color: var(--header) !important;
    width: 100px !important;
    transform: none !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.13);
}

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1400;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.side-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 290px;
    height: 100vh;
    background-color: var(--menu-bg);
    box-shadow: 4px 0 18px rgba(0, 0, 0, 0.15);
    transform: translateX(-100%);
    transition: transform 0.32s ease-out;
    z-index: 1500;
    display: flex;
    flex-direction: column;
    padding: 24px;
}

.side-menu.open {
    transform: translateX(0);
    background-color: var(--menu-bg);
}

.side-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    font-size: 1.125rem;
    font-weight: 600;
}

.menu-close {
    all: unset;
    cursor: pointer;
    font-size: 1rem;
    color: #444;
}

.menu-close:hover {
    color: var(--background-color) !important;
    background: transparent !important;
}

.side-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 16px;
    font-size: 1rem;
}

.side-menu-list a {
    text-decoration: none;
    color: var(--menu-a);
    display: flex;
    align-items: center;
    gap: 8px;
}

.side-menu-list a:hover {
    color: var(--menu-a-active);
}

.side-menu-list a.active {
    color: var(--menu-a-active);
    font-weight: 700;
}

.side-menu-form {
    margin: 0;
}

.side-menu-link {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    color: var(--text-color);
    font: inherit;
    padding: 8px 0;
    cursor: pointer;
    transition: color 0.2s ease;
}

.side-menu-link:hover {
    color: var(--menu-a-active);
}

.side-menu-section {
    margin-bottom: 22px;
    font-size: 1.15rem;
    opacity: 0.7;
}

.side-menu hr {
    border: none;
    border-top: 1px solid #e5e5e5;
    margin: 22px 0;
}

.side-menu-bottom {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
}

/* ------------------------------------------------ */
/* THEME SELECTOR */
/* ------------------------------------------------ */

.right-column {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 34px;
}

.right-column > * {
    align-self: center;
}

.header-auth {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    white-space: nowrap;
    min-width: 360px;
    justify-content: flex-end;
    height: 34px;
}

.header-auth-info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.header-auth-user {
    font-weight: 700;
}

.header-auth-link,
.header-auth-button {
    background: var(--background-color);
    color: var(--text-color);
    padding: 8px 10px;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid rgba(0, 0, 0, 0.25);
    cursor: pointer;
    font-size: 0.95rem;
    height: 34px;
    line-height: 1;
    width: auto;
    min-width: unset;
    display: inline-flex;
    align-items: center;
    box-shadow: none;
}

.header-auth-form {
    margin: 0;
}

.header-auth-link:hover,
.header-auth-button:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.13);
}

.theme-toggle,
.theme-toggle * {
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

.theme-toggle {
    height: 34px;
    display: flex;
    box-sizing: border-box;
    align-items: center;
    line-height: 1;
    margin: 0;
    padding: 0;
    align-self: center;
}

.theme-toggle input {
    display: none;
}

.theme-toggle-track {
    position: relative;
    width: 70px;
    height: 34px;

    background: var(--background-color);
    border: 1px solid rgba(0, 0, 0, 0.25);
    border-radius: 8px;

    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    box-sizing: border-box;
    margin: 0;
    align-self: center;

    transition:
        box-shadow 0.2s ease,
        background 0.25s ease,
        border-color 0.25s ease;
}

.theme-toggle-track:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.13);
}

.theme-toggle-track .icon {
    font-size: 16px;
    z-index: 2;
    pointer-events: none;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.theme-toggle-track .sun {
    opacity: 1;
}

.theme-toggle-track .moon {
    opacity: 0.4;
}

.theme-toggle-track .thumb {
    position: absolute;
    top: 4px;
    left: 6px;

    width: 24px;
    height: 24px;

    background: #ffffff;
    border-radius: 6px;

    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle input:checked + .theme-toggle-track .thumb {
    transform: translateX(32px);
}

.theme-toggle input:checked + .theme-toggle-track .sun {
    opacity: 0.4;
}

.theme-toggle input:checked + .theme-toggle-track .moon {
    opacity: 1;
}

/* ------------------------------------------------ */
/* HERO */
/* ------------------------------------------------ */

.hero {
    width: 100%;
    min-height: 20vh;
    background: radial-gradient(circle at 20% 30%, #0072ce55, transparent 60%),
        radial-gradient(circle at 80% 70%, #5c068c66, transparent 60%),
        radial-gradient(circle at 50% 90%, #ffb34755, transparent 70%),
        linear-gradient(135deg, #0046a7 0%, #5c068c 100%);
    background-size: 200% 200%;
    animation: heroFloat 16s ease-in-out infinite alternate;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    transition: background-position 4s ease;
    text-align: center;
    padding: 70px 40px;
    margin-top: 96px;
}

.hero-social {
    margin-top: 40px;
    background: radial-gradient(circle at 20% 30%, #f0628455, transparent 60%),
        radial-gradient(circle at 80% 70%, #8b6dff66, transparent 60%),
        radial-gradient(circle at 50% 90%, #ffc56f55, transparent 70%),
        linear-gradient(135deg, #4a46c8 0%, #303f9f 100%);
    background-size: 200% 200%;
    animation: heroFloat 16s ease-in-out infinite alternate;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    transition: background-position 4s ease;
    text-align: center;
    padding: 70px 40px;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
}

.hero-content h1 {
    color: white;
    font-size: 2.25rem;
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin-bottom: 1.2rem;
    font-weight: 700;
}

.hero-content p {
    color: white;
    font-size: 1.15rem;
    line-height: 1.65;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
}

.hero-text {
    color: white;
    font-size: 1.15rem;
    line-height: 1.6;
}

.hero-content p a,
.hero-text a {
    color: #e3e3e3;
    font-style: italic;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.2s ease;
}

.hero-content p a:hover,
.hero-text a:hover {
    opacity: 0.65;
}

.button-container {
    margin-top: 0px;
    display: flex;
    flex-direction: row;
    gap: 26px;
    justify-content: center;
    align-items: center;
}

.index_button {
    width: 270px;
    background: white;
    padding: 15px 22px;
    border-radius: 14px;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease;
    cursor: pointer;
}

.index_button:hover:not(.disabled) {
    transform: translateY(-4px);
    background: #f5f5f5;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
    border-color: transparent;
}

/* Landing only */
.index_button.disabled {
    cursor: default; /* Change cursor */
    pointer-events: none; /* Make non-clickable */
    transform: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.index_button h2 {
    margin: 0;
    font-size: 1.15rem;
    color: black !important;
    font-weight: 700;
}

/* ------------------------------------------------ */
/* FEATURES */
/* ------------------------------------------------ */

.features {
    padding: 90px 20px 10px 20px;
    text-align: center;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 50px;
    font-weight: 700;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: auto;
}

.feature-card {
    background: var(--container-bg);
    padding: 40px 32px;
    border-radius: 20px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.1);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-top-color 0.25s ease;
    border-top: 4px solid transparent;
    text-align: left;
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text-color);
}

.feature-card p {
    font-size: 1rem;
    line-height: 1.55;
    color: var(--text-color);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
    border-top-color: var(--card-border);
}

/* ------------------------------------------------ */
/* CAROUSEL */
/* ------------------------------------------------ */

.carousel-section {
    max-width: 1320px;
    margin: 80px auto;
    padding: 10px 20px 30px 20px;
}

.carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 420px;
    min-width: 800px;
    overflow: hidden;
    border-radius: 26px;
    background: linear-gradient(135deg, rgba(20, 22, 32, 0.9), rgba(20, 22, 32, 0.6));
    border: 1px solid rgba(255, 255, 255, 0.363);
    box-shadow:
        0 20px 60px rgba(10, 12, 24, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.carousel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(9, 12, 24, 0.45), transparent 55%),
        linear-gradient(0deg, rgba(9, 12, 24, 0.55), transparent 40%);
    z-index: 1;
    pointer-events: none;
}

.slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(40px) scale(1.02);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05) contrast(1.02);
    transform: scale(1.01);
}

.slide.active {
    opacity: 1;
    transform: translateX(0) scale(1);
    z-index: 2;
}

.slide.prev {
    opacity: 0;
    transform: translateX(-40px) scale(1.02);
}

.slide.next {
    opacity: 0;
    transform: translateX(40px) scale(1.02);
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.25s ease;
    z-index: 3;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.12);
}

.carousel-prev {
    left: 16px;
}
.carousel-next {
    right: 16px;
}

.carousel-indicators {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    justify-content: center;
    padding: 8px 16px;
    background: rgba(12, 14, 26, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    backdrop-filter: blur(10px);
    z-index: 3;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition:
        background 0.25s ease,
        transform 0.25s ease,
        width 0.25s ease;
}

.carousel-dot.active {
    background: #fff;
    width: 20px;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .carousel {
        aspect-ratio: 16 / 10;
        min-height: 320px;
    }

    .carousel-prev,
    .carousel-next {
        width: 40px;
        height: 40px;
    }
}

/* ------------------------------------------------ */
/* CONTACT SECTION */
/* ------------------------------------------------ */

.contact-section {
    text-align: center;
    padding: 10px 20px 40px 20px;
}

.contact-container {
    margin: 50px auto 0;
    max-width: 1450px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: stretch;
}

.contact-map {
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.15);
    background: #f8f8f8;
    min-height: 380px;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.contact-info {
    background: var(--container-bg);
    padding: 42px 38px 20px 38px;
    border-radius: 22px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    border-left: 8px solid transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-left-color 0.25s ease;
}

.contact-info:hover {
    transform: translateY(-6px);
    border-left: 8px solid var(--card-border);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
}

.contact-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-color);
}

.contact-info p {
    font-size: 1.15rem;
    margin-bottom: 20px;
    line-height: 1.6;
    color: var(--text-color);
}

.contact-info a {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.contact-info a:hover {
    color: var(--card-border);
}

.contact-info span {
    display: inline-flex;
    align-items: center;
    font-size: 1rem;
    margin-right: 8px;
    color: var(--text-color);
}

.contact-info b[data-i18n="landing.contact.email_label"]::before {
    content: "✉️ ";
    font-size: 1.15rem;
}

.contact-info b[data-i18n="landing.contact.phone_label"]::before {
    content: "📞 ";
    font-size: 1.15rem;
}

@media (max-width: 900px) {
    .contact-container {
        grid-template-columns: 1fr;
        max-width: 650px;
    }

    .contact-info {
        padding: 32px 26px;
    }
}

/* ------------------------------------------------ */
/* CONTACT FORM */
/* ------------------------------------------------ */

.contact-form {
    margin: 60px auto 0;
    max-width: 1450px;

    background: var(--container-bg);
    padding: 42px 38px 20px 38px;
    border-radius: 22px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    border-left: 8px solid transparent;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-left-color 0.25s ease;

    text-align: left;
}

.contact-form:hover {
    transform: translateY(-6px);
    border-left: 8px solid var(--card-border);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
}

.contact-form.full-row {
    grid-column: 1 / -1;
}

.contact-form form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px 40px;
}

.contact-form h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    margin-left: 2px !important;
}

.cf-row {
    display: flex;
    flex-direction: column;
}

.cf-row label {
    font-size: 1rem;
    margin-bottom: 6px;
    position: relative !important;
    margin-left: 5px !important;
    margin-bottom: 10px !important;
}

.cf-row input,
.cf-row textarea {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: white;
    font-size: 1rem;
}

.cf-row textarea {
    grid-column: 1 / -1;
    min-height: 100px;
}

.cf-row.full-width {
    grid-column: 1 / -1;
}

.cf-row.full-width textarea {
    width: 100%;
}

.contact-submit-btn {
    grid-column: 1 / -1;
    margin-top: 10px;
    padding: 16px 30px;
    border: none;
    border-radius: 16px;
    font-size: 1rem;

    background: var(--card-border);
    color: var(--background-color);

    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
        background: 0.25s ease;
}

.contact-submit-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.25);
    background: var(--card-border);
}

.cf-status {
    grid-column: 1 / -1;
    margin-top: 12px;
    font-size: 1rem;
}

@media (max-width: 900px) {
    .contact-form form {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 32px 26px;
    }
}

/* ------------------------------------------------ */
/* ANIMATIONS */
/* ------------------------------------------------ */

@keyframes fadeBody {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(12px);
    animation: fadeInUp 0.55s ease-out forwards;
}

.delay-1 {
    animation-delay: 0.15s;
}
.delay-2 {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up {
    opacity: 0;
    animation: slideUp 0.7s forwards ease-out;
}

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

.pop {
    animation: popIn 0.35s ease forwards;
}

@keyframes popIn {
    from {
        transform: scale(0.92);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

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