/* =========================================
   FOCUS TUITION CENTER - LOGO MATCH THEME
   Mood: Vibrant, Playful, Primary Colors
   Palette: Red (#D32F2F), Yellow (#FFEB3B), Sky Blue (#E3F2FD)
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    /* Brand Colors extracted from Logo */
    --brand-red: #D32F2F;
    /* Deep Red text */
    --brand-yellow: #FFC107;
    /* Darker Golden Yellow */
    --brand-blue: #1976D2;
    /* Strong Blue for accents */

    /* Backgrounds */
    --bg-sky-light: #E3F2FD;
    /* Sky blue tint */
    --bg-white: #FFFFFF;

    /* Accents (School Supplies) */
    --accent-orange: #FF6D00;
    --accent-green: #2E7D32;

    /* Text */
    --text-dark: #2c3e50;
    --text-light: #546e7a;

    /* Fonts */
    --font-heading: 'Nunito', sans-serif;
    /* Playful */
    --font-body: 'Poppins', sans-serif;
    /* Readable */

    /* UI */
    --shadow-pop: 4px 4px 0px rgba(0, 0, 0, 0.1);
    --radius-round: 25px;
    --radius-card: 15px;
    --transition: all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-heading);
    color: var(--brand-red);
    font-weight: 800;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
    border-radius: var(--radius-card);
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

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

.text-red {
    color: var(--brand-red);
}

.text-yellow {
    color: var(--brand-yellow);
    text-shadow: none;
    font-weight: 700;
}

.text-blue {
    color: var(--brand-blue);
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: var(--brand-red);
    color: white;
    font-family: var(--font-heading);
    font-weight: 700;
    border-radius: var(--radius-round);
    box-shadow: 0 4px 0 #b71c1c;
    border: none;
    transform: translateY(0);
}

.btn-primary:hover {
    background: #e53935;
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #b71c1c;
}

.btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    background: white;
    color: var(--brand-blue);
    border: 2px solid var(--brand-blue);
    font-family: var(--font-heading);
    font-weight: 700;
    border-radius: var(--radius-round);
    box-shadow: 0 4px 0 #bbdefb;
}

.btn-secondary:hover {
    background: var(--brand-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #0d47a1;
}

.small {
    padding: 8px 15px;
    font-size: 0.9rem;
}

.w-100 {
    width: 100%;
}

/* Scroll Progress */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 5px;
    background: var(--brand-yellow);
    width: 0%;
    z-index: 9999;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 3px solid var(--brand-yellow);
    padding: 15px 0;
    transition: 0.3s;
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 2rem;
    color: var(--brand-red);
    text-transform: lowercase;
    display: flex;
    align-items: center;
    background: var(--brand-yellow);
    padding: 5px 15px;
    border-radius: 30px;
    transform: rotate(-2deg);
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.1);
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    font-weight: 700;
    color: var(--text-dark);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--brand-blue);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 5px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding-top: 100px;
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, var(--bg-sky-light) 0%, white 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 15px;
    text-shadow: 2px 2px 0px white;
}

.highlight-text {
    background: var(--brand-yellow);
    padding: 0 10px;
    color: var(--brand-red);
    display: inline-block;
    transform: rotate(-1deg);
    border-radius: 5px;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: var(--text-light);
}

.hero-btns {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Illustrations / Images */
.hero-img {
    border: 5px solid white;
    box-shadow: var(--shadow-pop);
    transform: rotate(2deg);
    transition: 0.3s;
}

.hero-img:hover {
    transform: rotate(0deg) scale(1.02);
}

/* Shapes */
.shape {
    position: absolute;
    font-size: 5rem;
    opacity: 0.2;
    animation: float 5s ease-in-out infinite;
    z-index: 1;
}

.shape-1 {
    top: 15%;
    left: 5%;
    color: var(--brand-yellow);
    animation-delay: 0s;
}

.shape-2 {
    bottom: 10%;
    right: 5%;
    color: var(--brand-blue);
    animation-delay: 1s;
    font-size: 8rem;
}

.shape-3 {
    top: 20%;
    right: 10%;
    color: var(--brand-red);
    animation-delay: 2s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Cards & Sections */
.course-card,
.about-card {
    background: white;
    padding: 25px;
    border-radius: var(--radius-card);
    border: 2px solid #f0f0f0;
    border-bottom: 5px solid #f0f0f0;
    transition: 0.3s;
}

.course-card:hover,
.about-card:hover {
    transform: translateY(-5px);
    border-color: var(--brand-yellow);
    border-bottom-color: var(--brand-yellow);
}

.bg-1 .fas {
    color: var(--accent-orange);
}

.bg-2 .fas {
    color: var(--brand-blue);
}

.bg-3 .fas {
    color: var(--accent-green);
}

/* Forms */
.input-group input,
.input-group textarea,
.input-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-family: var(--font-body);
    transition: 0.3s;
    background: white;
    /* Ensure it covers anything behind */
}

.input-group input:focus,
.input-group textarea:focus,
.input-group select:focus {
    border-color: var(--brand-blue);
    outline: none;
}

.input-group {
    position: relative;
    margin-bottom: 25px;
}

.input-group label {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    background: white;
    padding: 0 5px;
    font-size: 1rem;
    color: var(--text-light);
    transition: 0.3s;
    pointer-events: none;
}

/* Floating State */
.input-group input:focus~label,
.input-group textarea:focus~label,
.input-group select:focus~label,
.input-group input:not(:placeholder-shown)~label,
.input-group textarea:not(:placeholder-shown)~label,
.input-group select:valid~label {
    top: 0;
    font-size: 0.8rem;
    color: var(--brand-blue);
    font-weight: 700;
    z-index: 10;
}

/* Stats Section */
.stats-section {
    padding: 60px 0;
    background: var(--brand-red);
    color: white;
    text-align: center;
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.stat-item {
    flex: 1;
    min-width: 200px;
}

.stat-item i {
    font-size: 3rem;
    margin-bottom: 10px;
    color: var(--brand-yellow);
}

.stat-item h3 {
    font-size: 2.5rem;
    margin-bottom: 5px;
    color: white;
}

/* Read More Button */
.read-more {
    display: inline-block;
    padding: 15px 35px;
    background: var(--brand-red);
    color: white;
    font-weight: 700;
    border-radius: var(--radius-round);
    box-shadow: 0 4px 0 #b71c1c;
    font-family: var(--font-heading);
    transition: 0.2s;
}

.read-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #b71c1c;
    background: #e53935;
}

/* Footer */
.footer {
    background: var(--brand-blue);
    color: white;
    padding: 50px 0 20px;
    text-align: center;
    border-top: 5px solid var(--brand-yellow);
}

.footer h2 {
    color: var(--brand-yellow);
    text-shadow: none;
    font-size: 2.2rem;
}

.footer p {
    color: #e3f2fd;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--brand-yellow);
    text-decoration: underline;
}

/* Feature Boxes (About Page) */
.bg-light {
    background-color: var(--bg-sky-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    background: white;
    padding: 30px;
    border-radius: var(--radius-card);
    text-align: center;
    box-shadow: var(--shadow-pop);
    border: 2px solid white;
    transition: 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
    border-color: var(--brand-red);
}

.f-icon {
    font-size: 2.5rem;
    color: var(--brand-blue);
    margin-bottom: 20px;
}

.f-text h4 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--brand-red);
}

.f-text p {
    color: var(--text-light);
}

.social-icons {
    margin-top: 20px;
}

.social-icons a {
    display: inline-block;
    margin: 0 15px;
    font-size: 2rem;
    color: white;
    transition: 0.3s;
}

/* Specific fix for Contact Page Info Section (White Background) */
.contact-info .social-icons a {
    color: var(--brand-blue);
}

.contact-info .social-icons a:hover {
    color: var(--brand-red);
    transform: scale(1.2);
}

.social-icons a:hover {
    color: var(--brand-yellow);
    transform: scale(1.2);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 80%;
        background: white;
        flex-direction: column;
        justify-content: center;
        box-shadow: -5px 0 10px rgba(0, 0, 0, 0.1);
    }

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

    .hamburger {
        display: block;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-btns {
        align-items: center;
    }

    .hero-img {
        margin-top: 30px;
    }
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

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

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

/* =========================================
   SUCCESS MODAL
   ========================================= */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    backdrop-filter: blur(5px);
}

.modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: var(--radius-card);
    text-align: center;
    max-width: 400px;
    width: 90%;
    transform: translateY(20px);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-bottom: 5px solid var(--brand-red);
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-icon {
    font-size: 4rem;
    color: #4CAF50;
    margin-bottom: 20px;
}

.modal-content h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.modal-content p {
    margin-bottom: 25px;
    color: var(--text-light);
}

.modal-btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--brand-red);
    color: white;
    border: none;
    border-radius: var(--radius-round);
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.modal-btn:hover {
    background: #e53935;
    transform: scale(1.05);
}
/* Form Responsive Design */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

/* Fix Mobile Navbar Z-Index */
@media (max-width: 768px) {
    .nav-links {
        z-index: 9999;
    }
    .hamburger {
        z-index: 10000;
    }
}
