/* ==================== Hero Section ==================== */
.hero {
    position: relative;
    padding: 8rem 0 6rem;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 600px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

/* Geometric Background */
.geometric-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(2px);
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: 10%;
    animation: float-slow 25s infinite ease-in-out;
}

.circle-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: 15%;
    animation: float-slow 20s infinite ease-in-out reverse;
}

.circle-3 {
    width: 150px;
    height: 150px;
    top: 40%;
    left: 5%;
    animation: float-slow 30s infinite ease-in-out;
}

.triangle {
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
}

.triangle-1 {
    border-width: 0 75px 130px 75px;
    border-color: transparent transparent rgba(255, 255, 255, 0.08) transparent;
    top: 20%;
    right: 20%;
    animation: rotate-slow 40s infinite linear;
}

.triangle-2 {
    border-width: 0 50px 87px 50px;
    border-color: transparent transparent rgba(255, 255, 255, 0.08) transparent;
    bottom: 15%;
    right: 40%;
    animation: rotate-slow 35s infinite linear reverse;
}

.square {
    position: absolute;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(2px);
}

.square-1 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 8%;
    transform: rotate(45deg);
    animation: float-slow 28s infinite ease-in-out;
}

.square-2 {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 25%;
    transform: rotate(25deg);
    animation: float-slow 22s infinite ease-in-out reverse;
}

@keyframes float-slow {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-30px) translateX(20px);
    }
    50% {
        transform: translateY(-50px) translateX(-10px);
    }
    75% {
        transform: translateY(-20px) translateX(30px);
    }
}

@keyframes rotate-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.math-symbol {
    position: absolute;
    font-size: 8rem;
    font-weight: 700;
    color: white;
    animation: float 20s infinite;
    z-index: 2;
    opacity: 0.2;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.hero-background .math-symbol:nth-child(2) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.hero-background .math-symbol:nth-child(3) {
    top: 60%;
    left: 80%;
    animation-delay: 4s;
}

.hero-background .math-symbol:nth-child(4) {
    top: 30%;
    right: 15%;
    animation-delay: 2s;
}

.hero-background .math-symbol:nth-child(5) {
    bottom: 20%;
    left: 70%;
    animation-delay: 6s;
}

.hero-background .math-symbol:nth-child(6) {
    top: 70%;
    left: 20%;
    animation-delay: 8s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-30px) rotate(5deg);
    }
    50% {
        transform: translateY(-60px) rotate(-5deg);
    }
    75% {
        transform: translateY(-30px) rotate(3deg);
    }
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    opacity: 0.95;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.hero-stats {
    display: flex;
    gap: 4rem;
    justify-content: center;
    flex-wrap: wrap;
}

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

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

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* ==================== Tutorials Section ==================== */
.tutorials {
    padding: 6rem 0;
    background: var(--bg-primary);
}

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

.tutorial-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.tutorial-header {
    height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem;
}

.tutorial-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.tutorial-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.9);
}

.tutorial-badge.badge-easy {
    color: var(--success-color);
}

.tutorial-badge.badge-medium {
    color: var(--warning-color);
}

.tutorial-badge.badge-hard {
    color: var(--error-color);
}

.tutorial-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tutorial-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.tutorial-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex: 1;
}

.tutorial-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

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

/* ==================== Tutorial CTA ==================== */
.tutorial-cta {
    margin-top: 4rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-lg);
    padding: 4rem 3rem;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.tutorial-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.tutorial-cta::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.tutorial-cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
}

.cta-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: bounce 2s infinite;
}

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

.tutorial-cta-content h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.tutorial-cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-quiz-btn {
    background: white;
    color: var(--primary-color);
    font-size: 1.25rem;
    padding: 1.25rem 3rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.cta-quiz-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.cta-quiz-btn svg {
    transition: transform 0.3s;
}

.cta-quiz-btn:hover svg {
    transform: translateX(5px);
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
}

.feature-check {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

/* ==================== Features Section ==================== */
.features {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

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

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

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

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

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

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

/* ==================== How It Works Section ==================== */
.how-it-works {
    padding: 6rem 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
}

.step-card {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.step-card:hover {
    transform: scale(1.05);
}

.step-number {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.step-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.step-card p {
    opacity: 0.95;
    line-height: 1.7;
}

.step-arrow {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 700;
}

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

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

.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* ==================== Responsive ==================== */
@media (max-width: 1024px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .step-arrow {
        transform: rotate(90deg);
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 5rem 0 4rem;
    }

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

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

    .hero-stats {
        gap: 2rem;
    }

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

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

    .cta-content h2 {
        font-size: 2rem;
    }
}

/* ==================== Additional Responsive Styles ==================== */
@media (max-width: 768px) {
    .hero {
        min-height: 500px;
    }

    .math-symbol {
        font-size: 5rem;
    }

    .circle-1 {
        width: 200px;
        height: 200px;
    }

    .circle-2 {
        width: 150px;
        height: 150px;
    }

    .circle-3 {
        width: 100px;
        height: 100px;
    }

    .triangle-1 {
        border-width: 0 50px 87px 50px;
    }

    .triangle-2 {
        border-width: 0 35px 61px 35px;
    }

    .square-1 {
        width: 80px;
        height: 80px;
    }

    .square-2 {
        width: 60px;
        height: 60px;
    }

    .tutorial-cta {
        padding: 3rem 2rem;
    }

    .tutorial-cta-content h3 {
        font-size: 1.75rem;
    }

    .tutorial-cta-content p {
        font-size: 1.125rem;
    }

    .cta-quiz-btn {
        font-size: 1.125rem;
        padding: 1rem 2rem;
    }

    .cta-features {
        gap: 1rem;
    }

    .cta-feature {
        font-size: 0.875rem;
    }
}
