/* ========================================
   Born to Be Academy - Main Stylesheet
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

@import url('variables.css');
@import url('base.css');
@import url('components.css');

/* ========================================
   Header Styles
   ======================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-header);
    background: var(--gradient-primary);
    padding: var(--space-md) 0;
    transition: all var(--transition-base);
}

.header.scrolled {
    background: rgba(30, 58, 138, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--color-white);
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
}

.logo-icon {
    width: 45px;
    height: 45px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    margin-left: auto;
}

.nav-menu a {
    color: var(--color-white);
    font-weight: var(--font-medium);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-white);
    transition: all var(--transition-base);
    transform: translateX(-50%);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 80%;
}

.nav-menu a:hover {
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.1);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: var(--space-sm);
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: var(--color-white);
    border-radius: 2px;
    transition: all var(--transition-base);
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--color-primary-dark);
        flex-direction: column;
        padding: var(--space-lg);
        gap: var(--space-md);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu a {
        width: 100%;
        text-align: center;
        padding: var(--space-md);
    }
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
    min-height: 100vh;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero h1 {
    color: var(--color-white);
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: var(--space-lg);
    line-height: 1.4;
}

.hero h1 span {
    display: inline-block;
    margin-left: var(--space-sm);
    background: linear-gradient(90deg, #FEF08A, #FDE047);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--text-xl);
    margin-bottom: var(--space-xl);
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: var(--space-2xl);
    margin-top: var(--space-3xl);
}

.stat-item {
    text-align: center;
    color: var(--color-white);
}

.stat-number {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    display: block;
}

.stat-label {
    font-size: var(--text-sm);
    opacity: 0.8;
}

.hero-shape {
    position: absolute;
    right: -100px;
    bottom: -100px;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.hero-shape-2 {
    position: absolute;
    right: 100px;
    top: 100px;
    width: 300px;
    height: 300px;
    background: rgba(220, 38, 38, 0.2);
    border-radius: 50%;
    filter: blur(80px);
}

/* ========================================
   Featured Courses Section
   ======================================== */

.featured-courses {
    background: var(--color-white);
}

.course-card .card-image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--color-gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.course-card:hover .card-image img {
    transform: scale(1.05);
}

.course-card .badge {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    z-index: 1;
}

.course-info {
    display: flex;
    gap: var(--space-lg);
    margin-top: var(--space-md);
    font-size: var(--text-sm);
    color: var(--color-gray-500);
}

.course-info span {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

/* ========================================
   Why Choose Us Section
   ======================================== */

.why-us {
    background: var(--color-gray-50);
}

.feature-card {
    text-align: center;
    padding: var(--space-2xl);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-lg);
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-3xl);
    color: var(--color-white);
    transition: all var(--transition-base);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

/* ========================================
   Reviews Section
   ======================================== */

.review-card {
    padding: var(--space-xl);
}

.review-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.review-info h4 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-xs);
}

.review-info p {
    font-size: var(--text-sm);
    color: var(--color-gray-500);
    margin: 0;
}

.review-text {
    color: var(--color-gray-700);
    font-style: italic;
    line-height: 1.8;
    position: relative;
    padding-left: var(--space-lg);
}

.review-text::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: var(--text-4xl);
    color: var(--color-primary);
    opacity: 0.3;
}

/* ========================================
   Promotions Section
   ======================================== */

.promo-card {
    background: var(--gradient-primary);
    color: var(--color-white);
    padding: var(--space-2xl);
    position: relative;
    overflow: hidden;
}

.promo-card::before {
    content: '';
    position: absolute;
    right: -50px;
    top: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.promo-discount {
    font-size: var(--text-5xl);
    font-weight: var(--font-bold);
}

.promo-title {
    font-size: var(--text-2xl);
    margin: var(--space-md) 0;
}

.countdown {
    display: flex;
    gap: var(--space-md);
    margin: var(--space-lg) 0;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.2);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-lg);
    text-align: center;
}

.countdown-number {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    display: block;
}

.countdown-label {
    font-size: var(--text-xs);
    opacity: 0.8;
}

/* ========================================
   Footer Styles
   ======================================== */

.footer {
    background: var(--color-gray-900);
    color: var(--color-gray-300);
    padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-brand .logo {
    margin-bottom: var(--space-lg);
}

.footer-brand p {
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}

.footer-title {
    color: var(--color-white);
    font-size: var(--text-lg);
    margin-bottom: var(--space-lg);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links a {
    color: var(--color-gray-400);
    transition: all var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-white);
    padding-left: var(--space-sm);
    animation: bounce-horizontal 0.5s ease;
}

@keyframes bounce-horizontal {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(5px);
    }
}

.social-links {
    display: flex;
    gap: var(--space-md);
}

.social-links a {
    width: 45px;
    height: 45px;
    background: var(--color-gray-800);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    transition: all var(--transition-base);
}

.social-links a:hover {
    background: var(--gradient-primary);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid var(--color-gray-800);
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer-bottom p {
    margin: 0;
}

/* ========================================
   Page Headers
   ======================================== */

.page-header {
    background: var(--gradient-primary);
    padding: calc(80px + var(--space-4xl)) 0 var(--space-4xl);
    text-align: center;
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-header h1 {
    color: var(--color-white);
    position: relative;
    z-index: 1;
}

.page-header p {
    position: relative;
    z-index: 1;
    opacity: 0.9;
    max-width: 600px;
    margin: var(--space-md) auto 0;
}

/* ========================================
   CTA Section
   ======================================== */

.cta-section {
    background: var(--gradient-primary);
    padding: var(--space-4xl) 0;
    text-align: center;
    color: var(--color-white);
}

.cta-section h2 {
    color: var(--color-white);
    margin-bottom: var(--space-md);
}

.cta-section p {
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto var(--space-xl);
}

.btn-consult {
    transition: all var(--transition-base) !important;
    display: inline-block;
}

.btn-consult:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3);
    background: #fff !important;
    color: var(--color-primary-dark) !important;
}

.consult-phones {
    margin-top: var(--space-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    opacity: 0.9;
}

.consult-phones p {
    margin: 0;
    font-weight: var(--font-medium);
    font-size: var(--text-base);
}

/* ========================================
   Floating LINE Button
   ======================================== */

.floating-line {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: #06C755;
    color: white;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: var(--font-bold);
    box-shadow: 0 4px 20px rgba(6, 199, 85, 0.4);
    transition: all var(--transition-base);
    animation: pulse-line 2s infinite;
}

.floating-line:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 30px rgba(6, 199, 85, 0.5);
}

.floating-line img {
    width: 28px;
    height: 28px;
}

@keyframes pulse-line {
    0% {
        box-shadow: 0 4px 20px rgba(6, 199, 85, 0.4);
    }

    50% {
        box-shadow: 0 4px 30px rgba(6, 199, 85, 0.6);
    }

    100% {
        box-shadow: 0 4px 20px rgba(6, 199, 85, 0.4);
    }
}

@media (max-width: 768px) {
    .floating-line {
        bottom: 20px;
        right: 20px;
        padding: var(--space-sm) var(--space-md);
    }

    .floating-line span {
        display: none;
    }

    /* Hero Section Mobile */
    .hero {
        min-height: auto;
        padding: calc(80px + var(--space-2xl)) 0 var(--space-2xl);
    }

    .hero h1 {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
        line-height: 1.3;
    }

    .hero p {
        font-size: var(--text-base);
        line-height: 1.6;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons .btn {
        text-align: center;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: var(--space-lg);
        margin-top: var(--space-xl);
        justify-content: center;
    }

    .stat-number {
        font-size: var(--text-2xl);
    }

    .hero-shape,
    .hero-shape-2 {
        display: none;
    }

    /* Page Header Mobile */
    .page-header {
        padding: calc(70px + var(--space-2xl)) 0 var(--space-2xl);
    }

    .page-header h1 {
        font-size: var(--text-2xl);
    }

    .page-header p {
        font-size: var(--text-sm);
    }

    /* CTA Section Mobile */
    .cta-section {
        padding: var(--space-2xl) 0;
    }

    .cta-section h2 {
        font-size: var(--text-2xl);
    }

    .cta-section p {
        font-size: var(--text-sm);
    }

    /* Footer Mobile */
    .footer {
        padding: var(--space-2xl) 0 var(--space-lg);
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: var(--space-sm);
    }

    .footer-bottom p {
        font-size: var(--text-sm);
    }

    /* Logo Mobile */
    .logo {
        font-size: var(--text-base);
    }

    .logo-icon {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 480px) {

    /* Extra small devices */
    .hero h1 {
        font-size: 1.5rem;
    }

    .hero-stats {
        flex-direction: column;
        align-items: center;
    }

    .page-header h1 {
        font-size: var(--text-xl);
    }

    .cta-section h2 {
        font-size: var(--text-xl);
    }

    .consult-phones p {
        font-size: var(--text-sm);
    }
}