/* MindMasters Premium Design System */
:root {
    --primary-color: #4f46e5;
    --secondary-color: #7961f2;
    --accent-color: #0ea5e9;
    --dark-bg: #0f172a;
    --light-bg: #f8fafc;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --white: #ffffff;
    --gradient-hero: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    --gradient-card: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
    --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 40px -12px rgba(79, 70, 229, 0.25);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--light-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.text-center {
    text-align: center;
}

.section {
    padding: 6rem 0;
}

.full-width {
    width: 100%;
}

.active {
    display: block;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-soft);
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-bg);
}

.logo img {
    height: 40px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--text-primary);
    position: relative;
    font-size: 0.95rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-btn {
    padding: 0.7rem 1.5rem;
    background: var(--dark-bg);
    color: var(--white);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
}

.nav-btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* Hero Slider */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-slider {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
}

.hero-content h4 {
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    color: var(--accent-color);
    text-transform: uppercase;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    color: rgba(255, 255, 255, 0.9);
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    bottom: 2rem;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    z-index: 10;
}

.slider-controls button {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.slider-controls button:hover {
    background: var(--white);
    color: var(--dark-bg);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* About Section */
.about-section {
    background: var(--white);
}

.row {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.col-6 {
    flex: 1;
    min-width: 300px;
}

.col-4 {
    flex: 1;
    min-width: 250px;
}

.align-center {
    align-items: center;
}

.sub-heading {
    display: block;
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--dark-bg);
    margin-bottom: 2rem;
}

.lead {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.8rem;
    font-weight: 500;
    color: var(--dark-bg);
}

.feature-list i {
    color: var(--accent-color);
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.image-wrapper img {
    border-radius: 15px;
    width: 100%;
}

.founder-info {
    text-align: center;
    padding-top: 1.5rem;
}

.download-btn {
    margin-top: 1rem;
    font-size: 0.85rem;
    padding: 0.6rem 1.5rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 4rem;
}

.feature-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border: 1px solid #f0f0f0;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary-color);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Courses Section */
.courses-section {
    background: #f1f5f9;
}

.divider {
    height: 4px;
    width: 60px;
    background: var(--primary-color);
    border-radius: 2px;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 4rem;
}

.course-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.course-icon {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e0e7ff;
}

/* Matching the colors roughly from old site but modernized */
.ct_bg_1 {
    background-color: #ffedd5;
}

.ct_bg_2 {
    background-color: #d1fae5;
}

.ct_bg_3 {
    background-color: #dbeafe;
}

.ct_bg_4 {
    background-color: #fae8ff;
}

.ct_bg_5 {
    background-color: #ffe4e6;
}

.ct_bg_6 {
    background-color: #f3f4f6;
}

.course-icon img {
    height: 80px;
    transition: transform 0.4s ease;
}

.course-card:hover .course-icon img {
    transform: scale(1.1);
}

.course-details {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.course-details h3 {
    margin-bottom: 0.5rem;
    color: var(--dark-bg);
}

.target-audience {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.duration {
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-link {
    margin-top: auto;
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    font-size: 1rem;
    transition: gap 0.3s;
}

.btn-link:hover {
    gap: 10px;
}

/* Popular Section */
.popular-section {
    background: var(--white);
}

.popular-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.pop-card {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    height: 300px;
    box-shadow: var(--shadow-soft);
}

.pop-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.pop-card:hover img {
    transform: scale(1.1);
}

.pop-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 80%, rgba(0, 0, 0, 0) 100%);
    color: white;
}

.pop-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.pop-content p {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.badge {
    background: var(--accent-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Masterclass */
.masterclass-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 8rem 0;
    text-align: center;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
}

.relative {
    position: relative;
}

.z-10 {
    z-index: 10;
}

.text-white {
    color: white;
}

.sub-heading-white {
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-title-white {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.lead-white {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Testimonials */
.testimonials-section {
    background: var(--light-bg);
}

.testimonials-slider {
    max-width: 800px;
    margin: 4rem auto 0;
    position: relative;
    text-align: center;
}

.testi-slide {
    display: none;
    padding: 2rem;
}

.testi-slide.active {
    display: block;
    animation: fadeIn 0.8s;
}

.testi-content img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid var(--white);
    box-shadow: var(--shadow-soft);
    margin: 0 auto 1.5rem;
    object-fit: cover;
}

.testi-content blockquote {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--dark-bg);
    margin-bottom: 1.5rem;
    line-height: 1.4;
    font-family: var(--font-heading);
}

.testi-content cite {
    font-weight: 600;
    color: var(--text-secondary);
    font-style: normal;
}

.controls-testi {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.dot-testi {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: 0.3s;
}

.dot-testi.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
.footer-section {
    background: #0f172a;
    color: #e2e8f0;
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 4rem;
}

.footer-logo {
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.social-links {
    margin-top: 1.5rem;
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent-color);
    color: white;
}

.footer-col h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-col p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-col i {
    color: var(--accent-color);
    width: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    font-size: 0.9rem;
    opacity: 0.6;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    background-color: #fefefe;
    border-radius: 20px;
    padding: 2rem;
    /* Adjusted default padding */
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-height: 90vh;
    /* Ensure modal fits within viewport */
    overflow-y: auto;
    /* Add scroll if content exceeds viewport */
    display: flex;
    /* Helps with layout */
    flex-direction: column;
}

.modal.show .modal-content {
    transform: scale(1);
}

.close-modal {
    color: #aaa;
    position: absolute;
    /* Adjusted position logic */
    top: 15px;
    /* Fixed position from top */
    right: 20px;
    /* Fixed position from right */
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 10;
    /* Ensure it stays above content */
}

.close-modal:hover {
    color: var(--dark-bg);
}

.modal-content h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
}

.modal-content ul {
    list-style: none;
    /* List style reset was global, but memastikan di sini */
    padding-left: 0;
}

.modal-content ul li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 20px;
    color: var(--text-primary);
}

.modal-content ul li::before {
    content: '•';
    color: var(--accent-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}


/* Form Styling */
.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Responsive */
/* Responsive */
/* Tablet and Small Desktop */
@media (max-width: 1024px) {
    .container {
        width: 95%;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .courses-grid,
    .features-grid,
    .popular-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* Base Mobile Styles */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .section {
        padding: 4rem 0;
    }

    /* Navigation */
    .menu-toggle {
        display: block;
        cursor: pointer;
        z-index: 1001;
        /* Above mobile menu */
    }

    .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        transition: all 0.3s ease-in-out;
        background-color: var(--dark-bg);
    }

    /* Hamburger Animation */
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        padding: 2rem;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        transition: right 0.4s ease-in-out;
        z-index: 1000;
        backdrop-filter: blur(10px);
    }

    .nav-menu.active {
        right: 0;
        display: flex;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    /* Hero Section */
    .hero-content {
        padding: 0 1rem;
    }

    .hero-content h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .slider-controls button {
        width: 35px;
        height: 35px;
    }

    /* About Section */
    .about-section .row {
        flex-direction: column;
    }

    .col-6 {
        width: 100%;
        min-width: 0;
    }

    .about-text {
        text-align: center;
    }

    .feature-list {
        display: inline-block;
        text-align: left;
    }

    .image-wrapper {
        margin-top: 2rem;
    }

    /* Feature Cards */
    .features-grid {
        margin-top: 3rem;
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 1.5rem;
    }

    /* Courses & Modals */
    .courses-grid {
        margin-top: 2rem;
        grid-template-columns: 1fr;
    }

    .popular-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        padding: 1.5rem;
        margin: 10px;
    }

    .close-modal {
        top: 10px;
        right: 15px;
    }

    /* Testimonials */
    .testimonials-slider {
        margin-top: 2rem;
    }

    .testi-content blockquote {
        font-size: 1.1rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-logo {
        margin: 0 auto 1.5rem;
    }

    .social-links {
        justify-content: center;
    }

    .footer-col p {
        justify-content: center;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .container {
        width: 100%;
        padding: 0 20px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.8rem;
    }
}