/* CSS Variables */
:root {
    --primary-bg: #e6f7fb;
    --accent-color: #00bcd4;
    --secondary-color: #0288d1;
    --text-color: #212121;
    --button-color: #00bcd4;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --dark-gray: #666666;
    --gradient-primary: linear-gradient(135deg, #00bcd4, #0288d1);
    --gradient-secondary: linear-gradient(135deg, #e6f7fb, #b3e5fc);
    --shadow-light: rgba(0, 188, 212, 0.1);
    --shadow-medium: rgba(0, 188, 212, 0.2);
    --shadow-dark: rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --border-radius-large: 20px;
    --transition: all 0.3s ease;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--primary-bg);
}

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

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
}

p {
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-family: var(--font-primary);
    font-weight: 500;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    min-width: 140px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 15px var(--shadow-light);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-medium);
}

.btn-secondary {
    background: var(--white);
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.btn-secondary:hover {
    background: var(--accent-color);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 188, 212, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo .logo-img {
    height: 40px;
    width: auto;
}

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

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

.nav-link:hover {
    color: var(--accent-color);
}

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

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

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

.nav-toggle .bar {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 2px;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 188, 212, 0.8), rgba(2, 136, 209, 0.6));
    z-index: 2;
}

.hero-content {
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 2rem;
    animation: fadeInUp 1s ease-out;
    position: relative;
    z-index: 3;
}

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

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 300;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    color: inherit;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: inherit;
}

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

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

.scroll-arrow {
    width: 30px;
    height: 30px;
    fill: var(--white);
    opacity: 0.7;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

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

/* About Section */
.about {
    padding: 6rem 0;
    background: var(--white);
}

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

.about-text {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature-card {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: var(--border-radius-large);
    transition: var(--transition);
    border: 1px solid rgba(0, 188, 212, 0.1);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-light);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.feature-icon svg {
    width: 30px;
    height: 30px;
    fill: var(--white);
}

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

.about-image {
    position: relative;
}

.floating-image {
    width: 100%;
    border-radius: var(--border-radius-large);
    box-shadow: 0 20px 40px var(--shadow-dark);
    animation: float 6s ease-in-out infinite;
}

/* Facilities Section */
.facilities {
    padding: 6rem 0;
    background: var(--primary-bg);
}

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

.facility-card {
    background: var(--white);
    border-radius: var(--border-radius-large);
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-light);
    transition: var(--transition);
}

.facility-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--shadow-medium);
}

.facility-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.facility-content {
    padding: 2rem;
}

.facility-content h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

/* Schedule Section */
.schedule {
    padding: 6rem 0;
    background: var(--white);
}

.schedule-container {
    max-width: 800px;
    margin: 0 auto;
}

.schedule-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: var(--light-gray);
    color: var(--text-color);
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--accent-color);
    color: var(--white);
}

.day-schedule {
    display: none;
    background: var(--light-gray);
    border-radius: var(--border-radius-large);
    padding: 2rem;
}

.day-schedule.active {
    display: block;
}

.class-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 188, 212, 0.1);
    align-items: center;
}

.class-item:last-child {
    border-bottom: none;
}

.class-time {
    font-weight: 600;
    color: var(--accent-color);
}

.class-name {
    font-weight: 500;
    color: var(--text-color);
}

.class-level {
    background: var(--accent-color);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Membership Section */
.membership {
    padding: 6rem 0;
    background: var(--primary-bg);
}

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

.membership-card {
    background: var(--white);
    border-radius: var(--border-radius-large);
    padding: 2rem;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px var(--shadow-light);
    transition: var(--transition);
}

.membership-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--shadow-medium);
}

.membership-card.featured {
    border: 3px solid var(--accent-color);
    transform: scale(1.05);
}

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

.popular-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: var(--white);
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

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

.price {
    margin-bottom: 2rem;
}

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

.currency {
    font-size: 1rem;
    color: var(--dark-gray);
}

.features-list {
    list-style: none;
    margin-bottom: 2rem;
}

.features-list li {
    padding: 0.5rem 0;
    color: var(--dark-gray);
    border-bottom: 1px solid var(--light-gray);
}

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

/* Instructors Section */
.instructors {
    padding: 6rem 0;
    background: var(--white);
}

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

.instructor-card {
    text-align: center;
    background: var(--light-gray);
    border-radius: var(--border-radius-large);
    padding: 2rem;
    transition: var(--transition);
}

.instructor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px var(--shadow-light);
}

.instructor-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    border: 4px solid var(--accent-color);
}

.instructor-title {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.instructor-description {
    color: var(--dark-gray);
    line-height: 1.6;
}

/* Success Stories Section */
.success-stories {
    padding: 6rem 0;
    background: var(--primary-bg);
}

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

.story-card {
    background: var(--white);
    border-radius: var(--border-radius-large);
    padding: 2rem;
    box-shadow: 0 10px 30px var(--shadow-light);
    transition: var(--transition);
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px var(--shadow-medium);
}

.story-content {
    margin-bottom: 2rem;
}

.story-content p {
    font-style: italic;
    font-size: 1.1rem;
    color: var(--dark-gray);
    line-height: 1.7;
}

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

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-avatar svg {
    width: 30px;
    height: 30px;
    fill: var(--white);
}

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

.author-info span {
    color: var(--dark-gray);
    font-size: 0.9rem;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--white);
}

.contact-details h3 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: var(--dark-gray);
    margin: 0;
}

.contact-form-container {
    background: var(--light-gray);
    border-radius: var(--border-radius-large);
    padding: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: var(--text-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    background: var(--white);
    color: var(--text-color);
    font-family: var(--font-secondary);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px var(--shadow-light);
}

/* Success Page */
.success-page {
    padding: 8rem 0 4rem;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.success-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    animation: scaleIn 0.6s ease-out;
}

.success-icon svg {
    width: 40px;
    height: 40px;
    fill: var(--white);
}

.success-message {
    font-size: 1.2rem;
    color: var(--dark-gray);
    margin-bottom: 3rem;
    line-height: 1.7;
}

.next-steps {
    margin: 3rem 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.step-item {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: var(--border-radius-large);
    text-align: center;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0 auto 1rem;
}

.contact-info-box {
    background: var(--primary-bg);
    border-radius: var(--border-radius-large);
    padding: 2rem;
    margin: 2rem 0;
}

.contact-item {
    display: flex;
    gap: 2rem;
    color: var(--text-color);
}

.contact-item svg {
    width: 20px;
    height: 20px;
    fill: var(--white);
}

.success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Policy Pages */
.policy-page {
    padding: 8rem 0 4rem;
    background: var(--white);
}

.policy-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.last-updated {
    color: var(--dark-gray);
    font-style: italic;
    margin-bottom: 2rem;
}

.policy-section {
    margin-bottom: 3rem;
}

.policy-section h2 {
    color: var(--text-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.policy-section h3 {
    color: var(--text-color);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.policy-section ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.policy-section li {
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
}

.contact-box {
    background: var(--primary-bg);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border-left: 4px solid var(--accent-color);
    margin: 1rem 0;
}

.policy-section li a {
    color: var(--accent-color);
    text-decoration: none;
}

.policy-section li a:hover {
    color: inherit;
}

/* Footer */
.footer {
    background: var(--text-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--accent-color);
}

.footer-logo img {
    height: 40px;
    margin-bottom: 1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px var(--shadow-medium);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--shadow-medium);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    fill: var(--white);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: var(--transition);
        backdrop-filter: blur(10px);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .facilities-grid,
    .membership-grid,
    .instructors-grid,
    .stories-grid {
        grid-template-columns: 1fr;
    }

    .schedule-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 1rem;
    }

    .class-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        text-align: center;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .contact-details {
        flex-direction: column;
        gap: 1rem;
    }

    .success-actions {
        flex-direction: column;
        align-items: center;
    }

    .membership-card.featured {
        transform: none;
    }

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

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }

    .section-header,
    .about,
    .facilities,
    .schedule,
    .membership,
    .instructors,
    .success-stories,
    .contact {
        padding: 4rem 0;
    }

    .hero-content {
        padding: 1rem;
    }

    .feature-card,
    .facility-content,
    .instructor-card,
    .story-card,
    .contact-form-container {
        padding: 1.5rem;
    }

    .btn {
        padding: 10px 20px;
        min-width: 120px;
    }

    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .scroll-indicator,
    .back-to-top,
    .hero-buttons {
        display: none;
    }

    .hero {
        height: auto;
        min-height: auto;
        padding: 2rem 0;
    }

    body {
        background: white;
    }

    .section-header,
    .about,
    .facilities,
    .schedule,
    .membership,
    .instructors,
    .success-stories,
    .contact {
        padding: 2rem 0;
    }
}

.success-page .contact-item svg {
    fill: var(--accent-color);
}