/* style.css */

:root {

    --primary-color: #0f4c81;
    --secondary-color: #1f7a8c;
    --accent-color: #f4b400;
    --dark-color: #0d1b2a;
    --light-color: #f8fafc;
    --text-color: #333;

    --gradient-primary: linear-gradient(135deg, #0f4c81, #1f7a8c);

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);

    --transition: all 0.3s ease;
}

/* DARK MODE */

body.dark-mode {

    --primary-color: #4ea8de;
    --secondary-color: #64dfdf;
    --accent-color: #ffb703;
    --dark-color: #081018;
    --light-color: #111827;
    --text-color: #f1f1f1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--light-color);
    color: var(--text-color);
    transition: var(--transition);
}

/* ===================== */
/* NAVBAR */
/* ===================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    padding: 15px 8%;
}

.navbar.scrolled .nav-links a {
    color: var(--text-color);
}

.navbar.scrolled .logo {
    color: var(--primary-color);
}

.navbar.scrolled .menu-toggle {
    color: var(--text-color);
}

body.dark-mode .navbar.scrolled {
    background: rgba(10, 10, 10, 0.9);
}

body.dark-mode .navbar.scrolled .nav-links a,
body.dark-mode .navbar.scrolled .logo,
body.dark-mode .navbar.scrolled .menu-toggle {
    color: white;
}

.logo {
    font-size: 1.7rem;
    font-weight: 700;
    color: white;
}

.logo span {
    color: var(--accent-color);
}

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

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0%;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

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

.theme-toggle {
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    background: var(--accent-color);
    color: #fff;
    font-size: 1rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
}

/* ===================== */
/* HERO */
/* ===================== */

.hero {
    height: 100vh;
    background: url("./Images/remedia.jpg") center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(13, 27, 42, 0.75);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
    color: white;
    padding: 20px;
    animation: fadeUp 1s ease;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content h1 span {
    color: var(--accent-color);
}

.hero-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.primary-btn {
    background: var(--accent-color);
    color: #fff;
}

.secondary-btn {
    border: 2px solid white;
    color: white;
}

.btn:hover {
    transform: translateY(-3px);
}

/* ===================== */
/* SECTIONS */
/* ===================== */

.section {
    padding: 100px 8%;
}

.section:nth-child(even) {
    background: #f2f6fa;
}

body.dark-mode .section:nth-child(even) {
    background: #151d2b;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* ===================== */
/* ABOUT */
/* ===================== */

.about-grid,
.subjects-grid,
.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.about-card,
.subject-card,
.program-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    text-align: center;
}

body.dark-mode .about-card,
body.dark-mode .subject-card,
body.dark-mode .program-card,
body.dark-mode .faq-item,
body.dark-mode .contact-form {
    background: #1d2636;
}

.about-card:hover,
.subject-card:hover,
.program-card:hover {
    transform: translateY(-10px);
}

.about-card i,
.subject-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* ===================== */
/* FAQ */
/* ===================== */

.faq-container {
    max-width: 900px;
    margin: auto;
}

.faq-item {
    background: white;
    border-radius: 15px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    cursor: pointer;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: 0.4s ease;
    padding: 0 25px;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 25px 25px;
}

/* ===================== */
/* CONTACT */
/* ===================== */

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

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    outline: none;
    background: var(--light-color);
    color: var(--text-color);
}

.form-group select option {
    background: white;
    color: #333;
}

body.dark-mode .form-group select option {
    background: #1d2636;
    color: white;
}

.info-box {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-box i {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 1.2rem;
}

/* ===================== */
/* FOOTER */
/* ===================== */

.footer {
    background: var(--dark-color);
    color: white;
    padding: 60px 8%;
    text-align: center;
}

.footer-links {
    margin: 25px 0;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
}

/* ===================== */
/* SCROLL TOP */
/* ===================== */

.scroll-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    display: none;
    z-index: 1000;
}

/* ===================== */
/* ANIMATIONS */
/* ===================== */

@keyframes fadeUp {

    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* ===================== */
/* RESPONSIVE */
/* ===================== */

@media(max-width:900px) {

    .nav-links {
        position: absolute;
        top: 80px;
        right: -100%;
        flex-direction: column;
        background: var(--dark-color);
        width: 250px;
        padding: 30px;
        transition: var(--transition);
    }

    .nav-links.active {
        right: 0;
    }

    .menu-toggle {
        display: block;
    }

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

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}