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

:root {
    /* Enhanced Color Palette */
    --primary-color: #0066ff;
    --primary-dark: #0052cc;
    --primary-light: #3385ff;
    --secondary-color: #ff6b35;
    --accent-color: #7c3aed;
    --accent-light: #a78bfa;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-warm: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --gradient-cool: linear-gradient(135deg, #30cfd0 0%, #330867 100%);

    /* Text Colors */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-light: #64748b;
    --text-white: #ffffff;

    /* Background Colors */
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --bg-dark: #1e293b;
    --bg-gradient: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);

    /* Border and Shadow */
    --border-color: #e2e8f0;
    --border-radius: 16px;
    --border-radius-lg: 24px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 24px 48px rgba(0, 0, 0, 0.16);
    --shadow-colored: 0 12px 32px rgba(102, 126, 234, 0.25);

    /* Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.3);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-gradient);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Enhanced Navigation */
.navbar {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.375rem;
    font-weight: 700;
}

.nav-brand span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    transition: all 0.3s;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

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

/* Hero Section - Enhanced */
.hero {
    background: var(--gradient-primary);
    color: white;
    padding: 6rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero-bg-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    filter: blur(60px);
}

.hero-bg-shape.shape-1 {
    width: 600px;
    height: 600px;
    background: #fff;
    top: -200px;
    right: -100px;
    animation: float 20s infinite ease-in-out;
}

.hero-bg-shape.shape-2 {
    width: 400px;
    height: 400px;
    background: #4facfe;
    bottom: -100px;
    left: -100px;
    animation: float 15s infinite ease-in-out reverse;
}

.hero-bg-shape.shape-3 {
    width: 300px;
    height: 300px;
    background: #f5576c;
    top: 50%;
    left: 50%;
    animation: float 25s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: fadeInUp 0.6s ease;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    animation: fadeInUp 0.6s ease 0.2s backwards;
}

.hero-title .highlight {
    background: linear-gradient(135deg, #fee140 0%, #fa709a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.7;
    animation: fadeInUp 0.6s ease 0.4s backwards;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.6s backwards;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    animation: fadeInUp 0.6s ease 0.8s backwards;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Hero Image */
.hero-image {
    position: relative;
    animation: fadeInRight 0.8s ease 0.4s backwards;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.hero-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
}

.floating-card {
    position: absolute;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    font-weight: 600;
    animation: floatCard 3s infinite ease-in-out;
}

.floating-card svg {
    color: var(--primary-color);
}

.floating-card.card-1 {
    top: 5%;
    right: 5%;
    animation-delay: 0s;
}

.floating-card.card-2 {
    bottom: 10%;
    left: 5%;
    animation-delay: 1.5s;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Enhanced Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn:hover::before {
    opacity: 1;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.btn-outline {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-outline:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

.section-title {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Enhanced Modules Section */
.modules {
    padding: 5rem 0;
    background: var(--bg-white);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.module-card {
    background: var(--bg-white);
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    transform: scaleY(0);
    transition: transform 0.4s;
}

.module-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-colored);
    transform: translateY(-8px);
}

.module-card:hover::before {
    transform: scaleY(1);
}

.module-header {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.3s;
}

.module-header:hover {
    opacity: 0.9;
}

.module-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: all 0.4s;
}

.module-card:hover .module-icon {
    transform: scale(1.1) rotate(5deg);
}

.module-icon svg {
    color: white;
    width: 24px;
    height: 24px;
}

.module-content {
    flex: 1;
}

.module-title {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.module-description {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.module-card.active .module-description {
    max-height: 200px;
    opacity: 1;
    margin-top: 0.75rem;
}

.module-expand-icon {
    flex-shrink: 0;
    color: var(--primary-color);
    transition: transform 0.3s;
    margin-top: 0.25rem;
}

.module-card.active .module-expand-icon {
    transform: rotate(180deg);
}

/* Enhanced Case Studies Section */
.case-studies {
    padding: 5rem 0;
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
    position: relative;
}

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

.case-studies-text .section-title {
    text-align: left;
    margin-bottom: 1.5rem;
}

.case-studies-text .section-title::after {
    left: 0;
    transform: none;
}

.case-studies-text .section-description {
    text-align: left;
    margin: 0 0 2.5rem 0;
}

.case-studies-features {
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

.feature-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(8px);
}

.feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--gradient-accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    color: white;
}

.feature-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.feature-desc {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.case-studies-tagline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    color: var(--text-secondary);
    font-weight: 600;
    font-style: italic;
}

.case-studies-tagline svg {
    color: var(--secondary-color);
}

.case-studies-image {
    position: relative;
}

.case-study-img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    transition: transform 0.4s;
}

.case-study-img:hover {
    transform: scale(1.02);
}

/* Enhanced Community Section */
.community {
    padding: 5rem 0;
    background: var(--bg-white);
}

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

.community-image {
    position: relative;
}

.community-img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
}

.community-badge {
    position: absolute;
    background: white;
    padding: 0.875rem 1.5rem;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-weight: 700;
    color: var(--text-primary);
    animation: floatCard 3s infinite ease-in-out;
}

.community-badge svg {
    color: var(--primary-color);
}

.community-badge.badge-1 {
    top: 8%;
    right: 3%;
}

.community-badge.badge-2 {
    bottom: 8%;
    left: 3%;
    animation-delay: 1.5s;
}

.community-text .section-title {
    text-align: left;
    margin-bottom: 1.5rem;
}

.community-text .section-title::after {
    left: 0;
    transform: none;
}

.community-text .section-description {
    text-align: left;
    margin: 0 0 2rem 0;
}

.community-features {
    margin-bottom: 2rem;
}

.community-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 1.0625rem;
}

.community-feature svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

.community .btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
}

.community .btn-primary:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6a4091 100%);
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* Enhanced FAQ Section */
.faq {
    padding: 5rem 0;
    background: var(--bg-light);
}

.faq .section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.faq-item {
    background: var(--bg-white);
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    margin-bottom: 1.25rem;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.75rem 2rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s;
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-icon {
    flex-shrink: 0;
    transition: transform 0.3s;
    color: var(--primary-color);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 2rem 2rem 2rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1.0625rem;
}

/* Enhanced Footer */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 3rem 0;
    padding-bottom: 7rem;
    text-align: center;
}

.footer p {
    opacity: 0.8;
    font-size: 1rem;
}

/* Adjust bottom padding on mobile for floating button */
@media (max-width: 768px) {
    .footer {
        padding-bottom: 6rem;
    }
}

@media (max-width: 480px) {
    .footer {
        padding-bottom: 5rem;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content,
    .case-studies-content,
    .community-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-image,
    .case-studies-image,
    .community-image {
        order: -1;
    }

    .section-title {
        font-size: 2.25rem;
    }

    .hero-title {
        font-size: 2.75rem;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1.5rem;
        box-shadow: var(--shadow-lg);
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
        gap: 1rem;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .hero {
        padding: 4rem 0 3rem;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn {
        justify-content: center;
        width: 100%;
    }

    .hero-stats {
        gap: 2rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-description {
        font-size: 1.0625rem;
    }

    .module-header {
        flex-wrap: wrap;
    }

    .floating-card {
        font-size: 0.875rem;
        padding: 0.75rem 1rem;
    }

    .community-badge {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 3rem 0 2rem;
    }

    .hero-title {
        font-size: 1.875rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .value-proposition,
    .modules,
    .case-studies,
    .community,
    .faq {
        padding: 3rem 0;
    }

    .module-card {
        padding: 1.5rem;
    }

    .module-title {
        font-size: 1.125rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .floating-card {
        display: none;
    }

    .faq-question {
        font-size: 1.0625rem;
        padding: 1.25rem 1.5rem;
    }

    .faq-answer p {
        padding: 0 1.5rem 1.5rem 1.5rem;
    }
}

/* Floating Action Button */
.floating-action-btn {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem 3rem;
    max-width: 600px;
    width: calc(100% - 4rem);
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1.125rem;
    box-shadow: var(--shadow-xl);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideInUp 0.6s ease 1s backwards;
}

.floating-action-btn svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.floating-action-btn:hover {
    transform: translateX(-50%) translateY(-4px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.4);
}

.floating-action-btn:active {
    transform: translateX(-50%) translateY(-2px);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Responsive Floating Button */
@media (max-width: 768px) {
    .floating-action-btn {
        bottom: 1.5rem;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .floating-action-btn {
        bottom: 1rem;
        padding: 0.875rem 1.25rem;
        font-size: 0.9375rem;
        border-radius: 12px;
    }

    .floating-action-btn svg {
        width: 20px;
        height: 20px;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Loading Animation for Images */
img {
    transition: opacity 0.3s;
}

img:not([src]) {
    opacity: 0;
}
