/* ========================================
   CSS Variables & Reset
   ======================================== */
:root {
    /* Colors */
    --primary-color: #ff6b35;
    --primary-dark: #e55a2b;
    --primary-light: #ff8557;
    --secondary-color: #004e89;
    --secondary-dark: #003d6b;
    --accent-color: #f77f00;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --text-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #1a1a1a;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Typography */
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-heading: 'Segoe UI', Arial, sans-serif;
    
    /* Shadows */
    --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 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    --radius-full: 50%;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: auto;
    }
    
    * {
        scroll-behavior: smooth;
        scroll-snap-type: none;
    }
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

ul {
    list-style: none;
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

/* ========================================
   Utility Classes
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

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

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-header h2 {
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition-base);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-white);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--text-white);
    border-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    border-color: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--text-white);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-nav-login {
    background-color: var(--primary-color);
    color: var(--text-white);
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
}

.btn-nav-login:hover {
    background-color: var(--primary-dark);
}

/* ========================================
   Header & Navigation
   ======================================== */
.header {
    background-color: var(--text-white);
    box-shadow: var(--shadow-sm);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition-base);
}

.navbar {
    padding: 1rem 0;
}

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

.logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo i {
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
    transition: var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    transition: var(--transition-base);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    margin-top: 0;
    padding-top: 70px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://images.unsplash.com/photo-1583454110551-21f2fa2afe61?w=1920&q=80');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    width: 100vw;
    height: 100vh;
    opacity: 0.75;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--text-white);
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.hero-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.hero-feature i {
    font-size: 2.5rem;
    color: var(--accent-color);
}

.hero-feature span {
    font-size: 1rem;
    font-weight: 500;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.hero-scroll i {
    font-size: 2rem;
    color: var(--text-white);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-in;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-in 0.3s both;
}

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

/* ========================================
   About Section
   ======================================== */
.about {
    padding: var(--spacing-xl) 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.about-content h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.about-content p {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.about-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.highlight-item i {
    color: var(--success-color);
    font-size: 1.2rem;
}

.about-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

/* ========================================
   Features Section
   ======================================== */
.features {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--text-white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 2rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ========================================
   Classes Section
   ======================================== */
.classes {
    padding: var(--spacing-xl) 0;
}

.classes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.class-card {
    background-color: var(--text-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.class-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.class-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.class-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.class-card:hover .class-image img {
    transform: scale(1.1);
}

.class-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--primary-color);
    color: var(--text-white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
}

.class-content {
    padding: 1.5rem;
}

.class-content h3 {
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.class-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.class-info {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
    flex-wrap: wrap;
}

.class-info span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
}

.class-info i {
    color: var(--primary-color);
    font-size: 1rem;
}

/* ========================================
   Membership Preview
   ======================================== */
.membership-preview {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-light);
}

.membership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.membership-card {
    background-color: var(--text-white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    position: relative;
    transition: var(--transition-base);
    border: 2px solid transparent;
}

.membership-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.membership-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.membership-card.featured:hover {
    transform: scale(1.08) translateY(-10px);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: var(--text-white);
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
}

.membership-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.price {
    margin-bottom: 2rem;
}

.price .currency {
    font-size: 1.5rem;
    color: var(--text-light);
    vertical-align: super;
}

.price .amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price .period {
    font-size: 1rem;
    color: var(--text-light);
}

.features-list {
    text-align: left;
    margin-bottom: 2rem;
}

.features-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.features-list li:last-child {
    border-bottom: none;
}

.features-list i.fa-check {
    color: var(--success-color);
}

.features-list i.fa-times {
    color: var(--text-light);
}

/* ========================================
   Reviews Section
   ======================================== */
.reviews {
    padding: var(--spacing-xl) 0;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.review-card {
    background-color: var(--text-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.review-card:hover {
    box-shadow: var(--shadow-lg);
}

.review-stars {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.review-text {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.author-info h4 {
    margin-bottom: 0.25rem;
    color: var(--text-dark);
    font-size: 1rem;
}

.author-info span {
    color: var(--text-light);
    font-size: 0.85rem;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: var(--text-white);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   Contact Section
   ======================================== */
.contact-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
}

.contact-content {
    margin-top: var(--spacing-lg);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: 2rem 1.5rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.2);
    border-color: var(--primary-color);
}

.info-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    width: 75px;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(247, 127, 0, 0.15));
    border-radius: 50%;
    transition: all 0.3s ease;
}

.info-item:hover i {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
}

.info-item h3 {
    font-size: 1.2rem;
    margin: 0.5rem 0 0.25rem 0;
    color: var(--text-dark);
    font-weight: 700;
}

.info-item p {
    color: var(--text-light);
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 500;
}

.info-item p.small {
    font-size: 0.875rem;
    margin-top: 0.25rem;
    color: #888;
    font-weight: 400;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background-color: var(--bg-dark);
    color: var(--text-white);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-contact {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
}

.footer-contact h4 {
    color: var(--text-white);
    margin-bottom: 1.5rem;
}

.footer-contact .contact-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-contact .contact-info li {
    margin-bottom: 0;
}

.footer-col h3,
.footer-col h4 {
    color: var(--text-white);
    margin-bottom: 1.5rem;
}

.footer-col p {
    color: #aaaaaa;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a {
    color: #aaaaaa;
    transition: var(--transition-base);
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #aaaaaa;
}

.contact-info i {
    color: var(--primary-color);
    width: 20px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaaaaa;
}

/* ========================================
   Chatbot
   ======================================== */
.chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 1.5rem;
    width: 380px;
    max-height: 480px;
    background-color: #ffffff;
    border-radius: 18px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    z-index: 999;
    transform: translateY(calc(100% + 100px));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
}

.chatbot-container.active {
    transform: translateY(0);
}

.chatbot-header {
    background: linear-gradient(135deg, #ff6b35 0%, #f77f00 100%);
    color: white;
    padding: 1.1rem 1.3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 18px 18px 0 0;
}

.chatbot-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    font-size: 1.05rem;
}

.chatbot-title i {
    font-size: 1.2rem;
}

.chatbot-controls {
    display: flex;
    gap: 0.6rem;
}

.chatbot-close,
.chatbot-clear {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1rem;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.chatbot-close:hover,
.chatbot-clear:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.chatbot-messages {
    flex: 1;
    padding: 1.3rem;
    overflow-y: auto;
    max-height: 340px;
    background: linear-gradient(to bottom, #fafbfc 0%, #f5f7fa 100%);
}

.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 10px;
}

.chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

.message {
    display: flex;
    gap: 0.65rem;
    margin-bottom: 1rem;
    animation: slideIn 0.3s ease;
    align-items: flex-start;
}

.user-message {
    flex-direction: row-reverse;
}

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

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b35, #f77f00);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.message-content {
    flex: 1;
}

.message-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 75%;
}

.user-message .message-content {
    align-items: flex-end;
}

.message-content p {
    background-color: white;
    padding: 0.65rem 0.95rem;
    border-radius: 16px 16px 16px 4px;
    margin-bottom: 0.5rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    line-height: 1.6;
    font-size: 0.93rem;
    color: #2d3748;
    word-wrap: break-word;
    word-break: break-word;
    max-width: fit-content;
    text-align: left;
}

.bot-message .message-content p {
    white-space: pre-wrap;
}

.user-message {
    flex-direction: row-reverse;
}

.user-message .message-avatar {
    background: #004e89;
}

.user-message .message-content p {
    background: linear-gradient(135deg, #ff6b35 0%, #f77f00 100%);
    color: white;
    box-shadow: 0 2px 6px rgba(255, 107, 53, 0.3);
    border-radius: 16px 16px 4px 16px;
}

.quick-replies {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: 0.65rem;
    width: 100%;
    max-width: 280px;
}

.quick-reply {
    background-color: white;
    border: 1.5px solid #ff6b35;
    color: #ff6b35;
    padding: 0.5rem 0.7rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    font-size: 0.84rem;
    font-weight: 500;
    white-space: nowrap;
}

.quick-reply:hover {
    background-color: #ff6b35;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(255, 107, 53, 0.3);
}

.chatbot-input {
    display: flex;
    padding: 0.9rem;
    border-top: 1px solid #e5e7eb;
    background-color: white;
    border-radius: 0 0 18px 18px;
    gap: 0.5rem;
}

.chatbot-input input {
    flex: 1;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 0.7rem 0.9rem;
    font-size: 0.9rem;
    outline: none;
}

.chatbot-input input:focus {
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.chatbot-input button {
    background-color: #ff6b35;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 0.7rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chatbot-input button:hover {
    background-color: #e55a2b;
    transform: scale(1.05);
}

.chatbot-toggle {
    position: fixed;
    bottom: 20px;
    right: 1.5rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b35, #f77f00);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.4);
    font-size: 1.4rem;
    transition: all 0.3s ease;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-toggle:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5);
}



/* ========================================
   Responsive Design
   ======================================== */

/* Extra large screens */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Tablet landscape and smaller desktops */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .features-grid,
    .classes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .membership-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet portrait */
@media (max-width: 968px) {
    .container {
        max-width: 100%;
        padding: 0 1.5rem;
    }
    
    .navbar {
        padding: 0.875rem 0;
    }
    
    .logo a {
        font-size: 1.3rem;
    }
    
    .logo i {
        font-size: 1.6rem;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 65px;
        flex-direction: column;
        background-color: var(--text-white);
        width: 100%;
        text-align: center;
        transition: var(--transition-base);
        box-shadow: var(--shadow-md);
        padding: 1.75rem 0;
        gap: 0;
        z-index: 1000;
        max-height: calc(100vh - 65px);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 0.875rem 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle span {
        width: 24px;
        height: 3px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .about-highlights {
        grid-template-columns: 1fr;
    }
    
    .about-image img {
        height: 400px;
    }
    
    .hero {
        min-height: 85vh;
        padding: 5rem 1rem 3rem;
    }
    
    .hero-title {
        font-size: 2.3rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.15rem;
    }
    
    .hero-features {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-feature {
        min-width: 150px;
    }
    
    .hero-cta {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }
    
    .hero-cta .btn {
        min-width: 200px;
    }
    
    .membership-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .membership-card.featured {
        transform: scale(1);
        order: -1;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-info {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
    
    .footer-contact .contact-info {
        gap: 1.5rem;
    }
    
    .chatbot-container {
        width: 90%;
        right: 5%;
        max-height: 550px;
    }
    
    h1 { font-size: 2.3rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.6rem; }
}

/* Mobile landscape */
@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }
    
    section {
        padding: 3.5rem 0;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.9rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .features-grid,
    .classes-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card,
    .class-card {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .class-image {
        height: 220px;
    }
    
    .contact-info {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
    .info-item {
        padding: 2rem 1rem;
    }
    
    .info-item i {
        font-size: 2rem;
        width: 60px;
        height: 60px;
    }
    
    .info-item h3 {
        font-size: 1.1rem;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .footer-contact .contact-info {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-content p {
        font-size: 1.05rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.4rem; }
}

/* Mobile portrait */
@media (max-width: 640px) {
    .container {
        padding: 0 1rem;
    }
    
    .navbar {
        padding: 0.75rem 0;
    }
    
    .logo a {
        font-size: 1.1rem;
    }
    
    .logo i {
        font-size: 1.4rem;
    }
    
    .nav-menu {
        top: 55px;
        padding: 1.25rem 0;
    }
    
    .nav-menu li {
        margin: 0.65rem 0;
    }
    
    .nav-link {
        font-size: 1rem;
    }
    
    .btn-nav-login {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }
    
    .hero {
        height: 100vh;
        min-height: 100vh;
        padding: 5rem 1rem 3rem;
        text-align: center;
    }
    
    .hero::before {
        background-size: cover;
        background-position: center center;
        background-attachment: scroll;
        width: 100%;
        height: 100%;
        left: 0;
        right: 0;
    }
    
    .hero-title {
        font-size: 1.75rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin: 1rem 0;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .hero-feature {
        width: 100%;
        max-width: 200px;
    }
    
    .hero-feature i {
        font-size: 2rem;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
        align-items: center;
    }
    
    .hero-cta .btn {
        width: 100%;
        max-width: 100%;
        display: block;
    }
    
    .section-header {
        margin-bottom: 2rem;
        padding: 0 0.5rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .section-header p {
        font-size: 0.95rem;
    }
    
    .about-grid {
        gap: 2rem;
    }
    
    .about-content {
        text-align: center;
    }
    
    .about-content .btn {
        display: block;
        width: 100%;
        max-width: 300px;
        margin: 1rem auto 0;
    }
    
    .about-highlights {
        grid-template-columns: 1fr;
    }
    
    .feature-card,
    .class-card,
    .membership-card,
    .review-card {
        margin: 0 auto;
        max-width: 100%;
    }
    
    .class-content .btn,
    .membership-card .btn {
        display: block;
        width: 100%;
        text-align: center;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0;
    }
    
    .info-item {
        padding: 1.5rem 1rem;
        width: 100%;
    }
    
    .info-item i {
        font-size: 2rem;
        width: 60px;
        height: 60px;
    }
    
    .info-item h3 {
        font-size: 1.1rem;
    }
    
    .info-item p {
        font-size: 0.95rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-col ul {
        text-align: center;
    }
    
    .footer-contact {
        text-align: center;
    }
    
    .footer-contact .contact-info {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .features-grid,
    .classes-grid,
    .membership-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
        width: 100%;
        max-width: 100%;
        text-align: center;
        display: inline-block;
    }
    
    .btn-lg {
        padding: 1rem 2rem;
        width: 100%;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 350px;
    }
    
    .text-center .btn {
        margin: 1rem auto;
        display: block;
        max-width: 300px;
    }
    
    .chatbot-toggle {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        bottom: 15px;
        right: 15px;
    }
    
    .chatbot-container {
        bottom: 75px;
        width: calc(100% - 2rem);
        right: 1rem;
        left: 1rem;
        max-height: 70vh;
    }
    
    .chatbot-header {
        padding: 0.9rem 1rem;
    }
    
    .chatbot-title {
        font-size: 0.95rem;
    }
    
    .chatbot-messages {
        max-height: 50vh;
        padding: 1rem;
    }
    
    .message-content p {
        font-size: 0.9rem;
        padding: 0.6rem 0.85rem;
    }
    
    .quick-replies {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
    
    .quick-reply {
        font-size: 0.8rem;
        padding: 0.5rem 0.6rem;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.1rem; }
}

/* Extra small mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .hero {
        padding: 4rem 1rem 3rem;
    }
    
    .hero-title {
        font-size: 1.6rem;
        padding: 0 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        padding: 0 0.5rem;
    }
    
    .hero-features {
        gap: 0.75rem;
    }
    
    .hero-feature {
        min-width: 120px;
    }
    
    .hero-feature i {
        font-size: 1.75rem;
    }
    
    .hero-feature span {
        font-size: 0.85rem;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }
    
    .feature-card h3,
    .class-card h3 {
        font-size: 1.2rem;
    }
    
    .btn {
        padding: 0.7rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .btn-lg {
        padding: 0.85rem 1.75rem;
        font-size: 0.95rem;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
    }
    
    .section-header p {
        font-size: 0.92rem;
    }
    
    .price .amount {
        font-size: 2.5rem;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .chatbot-container {
        max-height: 65vh;
        width: calc(100% - 1.5rem);
        right: 0.75rem;
        left: 0.75rem;
    }
    
    .chatbot-messages {
        max-height: 45vh;
    }
    
    .chatbot-header {
        padding: 0.85rem 1rem;
    }
    
    .chatbot-title {
        font-size: 0.9rem;
    }
    
    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.2rem; }
    h4 { font-size: 1rem; }
}

/* ========================================
   Loading Animation
   ======================================== */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--text-white);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   Form Styles
   ======================================== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: var(--transition-base);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-error {
    color: var(--danger-color);
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: none;
}

.form-group.error .form-error {
    display: block;
}

.form-group.error .form-input,
.form-group.error .form-select,
.form-group.error .form-textarea {
    border-color: var(--danger-color);
}
