﻿/* Modern Home Page Styles - Beautiful UI/UX Design */

/* CSS Variables for Consistent Design */
:root {
    --primary-color: #667eea;
    --primary-dark: #764ba2;
    --secondary-color: #f093fb;
    --accent-color: #4facfe;
    --success-color: #00d4aa;
    --warning-color: #feca57;
    --danger-color: #ff6b6b;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --white: #ffffff;
    --gray-50: #f8f9fa;
    --gray-100: #e9ecef;
    --gray-200: #dee2e6;
    --gray-300: #ced4da;
    --gray-400: #adb5bd;
    --gray-500: #6c757d;
    --gray-600: #495057;
    --gray-700: #343a40;
    --gray-800: #212529;
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    --border-radius: 0.5rem;
    --border-radius-lg: 1rem;
    --border-radius-xl: 1.5rem;
    --transition: all 0.3s ease;
    --font-family: 'IRANSans', 'Tahoma', sans-serif;
}


body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--gray-700);
    background-color: var(--gray-50);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Modern Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    background: transparent;
    white-space: nowrap;
}

    .btn:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow);
    }

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

    .btn-primary:hover {
        background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
        box-shadow: var(--shadow-lg);
        color: var(--white);
    }

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

    .btn-outline:hover {
        background: var(--white);
        color: var(--primary-color);
    }

.btn-outline-primary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

    .btn-outline-primary:hover {
        background: var(--primary-color);
        color: var(--white);
    }

.btn-arrow {
    transition: var(--transition);
}

.btn:hover .btn-arrow {
    transform: translateX(-4px);
}

/* Premium Hero Section - Ultra Modern Design */
.modern-hero {
    width: 100%;
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100% );
    background-size: 400% 400%;
    animation: gradientWave 15s ease infinite;
}

@keyframes gradientWave {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Animated particles background */
.modern-hero::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.3) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.3) 0%, transparent 50%), radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.2) 0%, transparent 50%), radial-gradient(circle at 60% 60%, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    animation: particlesFloat 20s linear infinite;
    z-index: 1;
}

@keyframes particlesFloat {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    100% {
        transform: translateY(-100px) rotate(360deg);
    }
}

/* Geometric shapes animation */
.modern-hero::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    background: linear-gradient(45deg, transparent 48%, rgba(255, 255, 255, 0.05) 50%, transparent 52%), linear-gradient(-45deg, transparent 48%, rgba(255, 255, 255, 0.05) 50%, transparent 52%);
    background-size: 50px 50px;
    transform: translate(-50%, -50%) rotate(0deg);
    animation: meshRotate 60s linear infinite;
    z-index: 1;
    opacity: 0.5;
}

@keyframes meshRotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

    .hero-background img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0.2;
        mix-blend-mode: overlay;
    }

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.6) 100% );
    z-index: 3;
}

.hero-content {
    position: relative;
    z-index: 4;
    width: 100%;
    color: var(--white);
    text-align: center;
    padding: 2rem;
}

.hero-text {
    max-width: 900px;
    margin: 0 auto;
    animation: heroContentFade 1.5s ease-out;
}

@keyframes heroContentFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #ffffff, #ffd4fc, #d4f1ff, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: titleShine 4s ease-in-out infinite;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.3);
    letter-spacing: -1px;
    line-height: 1.1;
}
.cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background-color: #333;
    animation: blink 0.7s infinite;
    vertical-align: middle;
    margin-right: 2px;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}
@keyframes titleShine {
    0%, 100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    font-weight: 400;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: subtitleFade 1.5s ease-out 0.3s both;
}

@keyframes subtitleFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 0.95;
        transform: translateY(0);
    }
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    animation: featuresFade 1.5s ease-out 0.6s both;
}

@keyframes featuresFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100% );
    border-radius: 50px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 2px 2px rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

    .feature-item:hover {
        transform: translateY(-5px) scale(1.05);
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.1) 100% );
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2), inset 0 2px 4px rgba(255, 255, 255, 0.3);
    }

.feature-icon {
    font-size: 1.8rem;
    animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

.feature-item:nth-child(1) .feature-icon {
    animation-delay: 0s;
}

.feature-item:nth-child(2) .feature-icon {
    animation-delay: 0.2s;
}

.feature-item:nth-child(3) .feature-icon {
    animation-delay: 0.4s;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    animation: actionsFade 1.5s ease-out 0.9s both;
}

@keyframes actionsFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced button styles for hero */
.hero-actions .btn {
    padding: 1.1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

    .hero-actions .btn::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.5);
        transform: translate(-50%, -50%);
        transition: width 0.6s, height 0.6s;
        z-index: -1;
    }

    .hero-actions .btn:hover::before {
        width: 300px;
        height: 300px;
    }

.hero-actions .btn-primary {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
    color: var(--primary-dark);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    font-weight: 700;
}

    .hero-actions .btn-primary:hover {
        transform: translateY(-3px) scale(1.05);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    }

.hero-actions .btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

    .hero-actions .btn-outline:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.8);
        transform: translateY(-3px) scale(1.05);
    }

/* Floating scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollBounce 2s ease-in-out infinite;
    z-index: 4;
}

@keyframes scrollBounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

/* Hero Stats Section - Integrated in Hero */
.hero-stats {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    z-index: 5;
    padding: 0 2rem;
}

    .hero-stats .stats-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
        text-align: center;
    }

    .hero-stats .stat-item {
        padding: 2rem 1.5rem;
        border-radius: 20px;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100% );
        backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.8);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), inset 0 2px 2px rgba(255, 255, 255, 1);
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        position: relative;
        overflow: hidden;
        cursor: pointer;
    }

        .hero-stats .stat-item::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            border-radius: 20px;
            background: linear-gradient( 45deg, transparent, var(--primary-color), var(--secondary-color), transparent );
            background-size: 300% 300%;
            opacity: 0;
            z-index: -1;
            transition: opacity 0.4s ease;
            animation: heroStatsGradient 4s ease infinite;
        }

@keyframes heroStatsGradient {
    0%, 100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.hero-stats .stat-item:hover::before {
    opacity: 0.1;
}

.hero-stats .stat-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2), inset 0 2px 4px rgba(255, 255, 255, 1);
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(247, 250, 255, 0.95) 100% );
}

.hero-stats .stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    animation: heroIconFloat 3s ease-in-out infinite;
}

@keyframes heroIconFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.hero-stats .stat-item:nth-child(1) .stat-icon {
    animation-delay: 0s;
}

.hero-stats .stat-item:nth-child(2) .stat-icon {
    animation-delay: 0.3s;
}

.hero-stats .stat-item:nth-child(3) .stat-icon {
    animation-delay: 0.6s;
}

.hero-stats .stat-item:nth-child(4) .stat-icon {
    animation-delay: 0.9s;
}

.hero-stats .stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

    .hero-stats .stat-number::after {
        content: '+';
        position: absolute;
        right: -15px;
        top: 0;
        font-size: 1.2rem;
        opacity: 0;
        animation: heroNumberPulse 2s ease-in-out infinite;
    }

@keyframes heroNumberPulse {
    0%, 100% {
        opacity: 0;
        transform: translateY(5px);
    }

    50% {
        opacity: 0.7;
        transform: translateY(0);
    }
}

.hero-stats .stat-label {
    font-size: 0.95rem;
    color: var(--gray-700);
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero-stats .stat-progress {
    width: 80%;
    height: 3px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 10px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.hero-stats .stat-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 10px;
    width: 0;
    animation: heroProgressGrow 2s ease-out 1s forwards;
}

@keyframes heroProgressGrow {
    to {
        width: 85%;
    }
}

/* Responsive adjustments for hero stats */
@media (max-width: 992px) {
    .hero-stats .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-stats {
        position: static;
        margin-top: 3rem;
        padding: 0 1rem;
    }

        .hero-stats .stats-grid {
            gap: 1rem;
        }

        .hero-stats .stat-item {
            padding: 1.5rem 1rem;
        }

        .hero-stats .stat-number {
            font-size: 1.8rem;
        }

        .hero-stats .stat-icon {
            font-size: 2rem;
        }
}

@media (max-width: 576px) {
    .hero-stats .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-stats .stat-item {
        padding: 1.25rem 0.75rem;
    }

    .hero-stats .stat-number {
        font-size: 1.6rem;
    }
}

/* Quick Course Search Section */
.quick-search-section {
    width: 100%;
    /*background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(247, 250, 255, 0.9) 100% );*/
    /*backdrop-filter: blur(10px);*/
    position: relative;
    z-index: 4;
    border-radius: 40px 40px 0 0;
}

.quick-search-header {
    text-align: center;
    margin-bottom: 3rem;
}

.quick-search-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.quick-search-subtitle {
    font-size: 1.2rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

.quick-search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.6) 100% );
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    /*box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), inset 0 2px 2px rgba(255, 255, 255, 0.9);*/
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

    .tech-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent );
        transition: left 0.6s ease;
    }

    .tech-item:hover::before {
        left: 100%;
    }

    .tech-item:hover {
        transform: translateY(-8px) scale(1.05);
        box-shadow: 0 15px 40px rgba(102, 126, 234, 0.15), inset 0 2px 4px rgba(255, 255, 255, 1);
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(247, 250, 255, 0.8) 100% );
    }

.tech-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}
.tech-icon img{
    width:100%;
}
.tech-item:hover .tech-icon {
    transform: scale(1.1) rotate(5deg);
}

.tech-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.tech-courses {
    font-size: 0.875rem;
    color: var(--gray-500);
    opacity: 0.8;
}

/* SVG Icons for Technologies */
.python-icon {
    background: linear-gradient(135deg, #3776ab, #ffd43b);
    border-radius: 12px;
    padding: 12px;
}

.csharp-icon {
    background: linear-gradient(135deg, #239120, #68217a);
    border-radius: 12px;
    padding: 12px;
}

.javascript-icon {
    background: linear-gradient(135deg, #f7df1e, #e6c200);
    border-radius: 12px;
    padding: 12px;
}

.react-icon {
    background: linear-gradient(135deg, #61dafb, #21232a);
    border-radius: 12px;
    padding: 12px;
}

.java-icon {
    background: linear-gradient(135deg, #ed8b00, #b07219);
    border-radius: 12px;
    padding: 12px;
}

.php-icon {
    background: linear-gradient(135deg, #777bb4, #4f5b93);
    border-radius: 12px;
    padding: 12px;
}

.web-icon {
    background: linear-gradient(135deg, #e34f26, #1572b6);
    border-radius: 12px;
    padding: 12px;
}

.ai-icon {
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    border-radius: 12px;
    padding: 12px;
}

/* Quick Search CTA */
.quick-search-cta {
    text-align: center;
    margin-top: 2rem;
}

.search-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    transition: all 0.4s ease;
}

    .search-all-btn:hover {
        transform: translateY(-3px) scale(1.05);
        box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
        color: var(--white);
    }

    .search-all-btn .icon-arrow-right {
        transition: transform 0.3s ease;
    }

    .search-all-btn:hover .icon-arrow-right {
        transform: translateX(3px);
    }

/* Responsive Design for Quick Search */
@media (max-width: 768px) {
    .quick-search-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .tech-item {
        padding: 1.5rem 1rem;
    }

    .tech-icon {
        width: 50px;
        height: 50px;
    }

    .quick-search-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .quick-search-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tech-item {
        padding: 1.25rem 0.75rem;
    }

    .tech-name {
        font-size: 0.9rem;
    }

    .tech-courses {
        font-size: 0.8rem;
    }
}


/* Section Headers - Enhanced Typography */
.section-header {
    text-align: center;
    position: relative;
    animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    letter-spacing: -0.5px;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(102, 126, 234, 0.1);
}

    .section-title::before {
        content: '';
        position: absolute;
        bottom: -15px;
        left: 50%;
        transform: translateX(-50%);
        width: 100px;
        height: 5px;
        background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
        border-radius: 10px;
        animation: widthAnimation 2s ease-in-out infinite;
    }

@keyframes widthAnimation {
    0%, 100% {
        width: 100px;
        opacity: 0.8;
    }

    50% {
        width: 150px;
        opacity: 1;
    }
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 5px;
    background: var(--white);
    border-radius: 10px;
    z-index: 1;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
    font-weight: 400;
    opacity: 0.9;
    animation: fadeIn 1s ease 0.3s both;
}

/* Beautiful Section Title Variants for Specific Sections */
.courses-section .section-title::before {
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
}

.news-section .section-title::before {
    background: linear-gradient(90deg, #4facfe, #00f2fe, #43e97b);
}

/* Courses Section - Enhanced Beautiful Design */
.courses-section {


    position: relative;
    overflow: hidden;
}


.course-tabs {
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.section-footer {
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

/* News Section - Enhanced Beautiful Design */
.news-section {
    position: relative;
    overflow: hidden;
}

    .news-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 2px;
        background: linear-gradient(90deg, transparent, var(--primary-color), var(--secondary-color), transparent);
        animation: shimmer 3s ease-in-out infinite;
    }

@keyframes shimmer {
    0%, 100% {
        opacity: 0.5;
        transform: translateX(-100%);
    }

    50% {
        opacity: 1;
        transform: translateX(0);
    }
}

.news-section::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -200px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(79, 172, 254, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(-20px) rotate(0deg);
    }

    50% {
        transform: translateY(20px) rotate(180deg);
    }
}

.news-tabs {
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

/* Newsletter Section */
.newsletter-section {
    width: 100%;
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    position: relative;
    overflow: hidden;
}

    .newsletter-section::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
        animation: pulse 4s ease-in-out infinite;
    }

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.3;
    }
}

.newsletter-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    position: relative;
    z-index: 2;
}

.newsletter-text h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.newsletter-text p {
    font-size: 1.125rem;
    opacity: 0.9;
}

.newsletter-form {
    flex-shrink: 0;
}

.input-group {
    display: flex;
    gap: 0;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.form-control {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    font-size: 1rem;
    outline: none;
    min-width: 300px;
}

    .form-control::placeholder {
        color: var(--gray-500);
    }

.input-group .btn {
    border-radius: 0;
    border: none;
}

/* Premium Tab Navigation - Ultra Modern Design */
.tabtitel {
    border: none;
    width: fit-content;
    margin: 0 auto 3.5rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 100px;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.15), 0 10px 20px rgba(0, 0, 0, 0.05), inset 0 1px 1px rgba(255, 255, 255, 1);
    position: relative;
    overflow: hidden;
}

    /* Animated background gradient */
    .tabtitel::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 200%;
        height: 100%;
        background: linear-gradient( 90deg, transparent, rgba(102, 126, 234, 0.1), rgba(240, 147, 251, 0.1), rgba(79, 172, 254, 0.1), transparent );
        animation: shimmerTab 8s linear infinite;
    }

@keyframes shimmerTab {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.tabtitel button {
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 100px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--gray-600);
    position: relative;
    z-index: 1;
    min-width: 140px;
    text-align: center;
    letter-spacing: 0.3px;
}

    /* Hover effect with glow */
    .tabtitel button::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(240, 147, 251, 0.15) );
        border-radius: 100px;
        opacity: 0;
        transform: scale(0.8);
        transition: all 0.4s ease;
        z-index: -1;
    }

    .tabtitel button:hover::before {
        opacity: 1;
        transform: scale(1);
    }

    .tabtitel button:hover {
        color: var(--primary-color);
        transform: translateY(-1px);
    }

    /* Active state with beautiful gradient and shadow */
    .tabtitel button.active {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: var(--white);
        box-shadow: 0 10px 25px rgba(102, 126, 234, 0.35), 0 5px 10px rgba(0, 0, 0, 0.1), inset 0 1px 1px rgba(255, 255, 255, 0.3);
        position: relative;
        font-weight: 700;
    }

        /* Glowing dot indicator for active tab */
        .tabtitel button.active::after {
            content: '';
            position: absolute;
            bottom: -20px;
            left: 50%;
            transform: translateX(-50%);
            width: 6px;
            height: 6px;
            background: var(--accent-color);
            border-radius: 50%;
            box-shadow: 0 0 10px var(--accent-color);
            animation: pulse 2s ease-in-out infinite;
        }

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 10px var(--accent-color);
        opacity: 1;
    }

    50% {
        box-shadow: 0 0 20px var(--accent-color);
        opacity: 0.8;
    }
}

.tabtitel button.active:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4), 0 5px 15px rgba(0, 0, 0, 0.12);
}

/* Special styles for course section tabs */
.courses-section .tabtitel {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(230, 240, 255, 0.95) );
}

    .courses-section .tabtitel button.active {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }

/* Special styles for news section tabs */
.news-section .tabtitel {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 255, 250, 0.95) );
}

    .news-section .tabtitel button.active {
        background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    }

/* Tab content animation */
.tab-content {
    animation: fadeInUp 0.6s ease;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .tabtitel {
        width: calc(100% - 2rem);
        gap: 0.25rem;
        padding: 0.5rem;
    }

        .tabtitel button {
            padding: 0.75rem 1.25rem;
            font-size: 0.9rem;
            min-width: auto;
        }

            .tabtitel button.active::after {
                display: none;
            }
}

/* Enhanced Card Styles - Beautiful Course Cards */
.card-course {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    padding: 2rem 0;
}

.card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(102, 126, 234, 0.1);
    position: relative;
    cursor: pointer;
}

    .card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
        transform: scaleX(0);
        transition: transform 0.4s ease;
        transform-origin: left;
    }

    .card:hover::before {
        transform: scaleX(1);
    }

    .card:hover {
        transform: translateY(-12px) scale(1.02);
        box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
        border-color: var(--primary-color);
    }

    .card .img-wrapper {
        position: relative;
        overflow: hidden;
        height: 220px;
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    }

    .card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: all 0.5s ease;
    }

    .card:hover img {
        transform: scale(1.1) rotate(2deg);
        opacity: 0.9;
    }

    .card .body {
        padding: 1.5rem;
        position: relative;
    }

        .card .body h2 {
            font-size: 1.4rem;
            font-weight: 700;
            color: var(--dark-color);
            margin-bottom: 0.75rem;
            line-height: 1.4;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            transition: color 0.3s ease;
        }

    .card:hover .body h2 {
        color: var(--primary-color);
    }

    .card .body p {
        color: var(--gray-600);
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1rem;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .card .body .meta {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-top: 1rem;
        border-top: 1px solid var(--gray-200);
    }

        .card .body .meta .price {
            font-size: 1.2rem;
            font-weight: 700;
            color: var(--success-color);
        }

        .card .body .meta .duration {
            font-size: 0.875rem;
            color: var(--gray-500);
            display: flex;
            align-items: center;
            gap: 0.25rem;
        }

    .card .badge {
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: rgba(255, 255, 255, 0.95);
        padding: 0.5rem 1rem;
        border-radius: 20px;
        font-size: 0.75rem;
        font-weight: 600;
        color: var(--primary-color);
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        z-index: 2;
    }

/* Card2 for News - Beautiful Article Cards */
.card2-course {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 0;
}

.card2 {
    display: flex;
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(79, 172, 254, 0.1);
    align-items: center;
    gap: 2rem;
    padding: 1.5rem;
    position: relative;
    cursor: pointer;
}

    .card2::after {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 4px;
        background: linear-gradient(180deg, var(--accent-color), var(--primary-color));
        transform: scaleY(0);
        transition: transform 0.4s ease;
        transform-origin: bottom;
    }

    .card2:hover::after {
        transform: scaleY(1);
    }

    .card2:hover {
        transform: translateX(10px) translateY(-5px);
        box-shadow: 0 15px 35px rgba(79, 172, 254, 0.15);
        border-color: var(--accent-color);
        background: linear-gradient(135deg, var(--white) 0%, rgba(79, 172, 254, 0.02) 100%);
    }

    .card2 .img-wrapper {
        width: 240px;
        height: 160px;
        flex-shrink: 0;
        border-radius: 12px;
        overflow: hidden;
        position: relative;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .card2 img {
        object-fit: cover;
        transition: all 0.5s ease;
    }

    .card2:hover img {
        transform: scale(1.1);
    }

    .card2 .img-wrapper::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, transparent 0%, rgba(102, 126, 234, 0.2) 100%);
        opacity: 0;
        transition: opacity 0.3s ease;
        z-index: 1;
    }

    .card2:hover .img-wrapper::before {
        opacity: 1;
    }

    .card2 .body {
        flex: 1;
        padding: 0.5rem;
    }

        .card2 .body h2 {
            color: var(--dark-color);
            font-size: 1.4rem;
            font-weight: 700;
            margin-bottom: 0.75rem;
            line-height: 1.4;
            transition: color 0.3s ease;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

    .card2:hover .body h2 {
        color: var(--primary-color);
    }

    .card2 .body p {
        color: var(--gray-600);
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .card2 .body .meta {
        display: flex;
        gap: 1.5rem;
        align-items: center;
        color: var(--gray-500);
        font-size: 0.875rem;
    }

        .card2 .body .meta .date {
            display: flex;
            align-items: center;
            gap: 0.25rem;
        }

        .card2 .body .meta .author {
            display: flex;
            align-items: center;
            gap: 0.25rem;
            color: var(--primary-color);
            font-weight: 600;
        }

    .card2 .body .tags {
        display: flex;
        gap: 0.5rem;
        margin-top: 0.75rem;
    }

    .card2 .body .tag {
        padding: 0.25rem 0.75rem;
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(79, 172, 254, 0.1));
        border-radius: 20px;
        font-size: 0.75rem;
        color: var(--primary-color);
        font-weight: 600;
        transition: all 0.3s ease;
    }

    .card2:hover .body .tag {
        background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
        color: var(--white);
    }

/* Responsive Design */
@media (max-width: 1200px) {
    .card-course {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 992px) {
    .card-course {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-features {
        gap: 1rem;
    }

    .feature-item {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

        .hero-actions .btn {
            width: 100%;
            max-width: 300px;
        }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }

    .form-control {
        min-width: auto;
    }

    .input-group {
        flex-direction: column;
    }

    .card2 {
        flex-direction: column;
        text-align: center;
    }

        .card2 img {
            width: 100%;
            height: 200px;
        }

    .card-course {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .card-course {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-item {
        padding: 1.5rem 1rem;
    }

    .feature-item {
        flex-direction: column;
        text-align: center;
        gap: 0.25rem;
    }

    .tabtitel {
        flex-direction: column;
    }

        .tabtitel button {
            width: 100%;
        }

    .card-course {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

/* Local Icon System - No CDN Required */
.icon {
    display: inline-block;
    width: 1.25em;
    height: 1.25em;
    vertical-align: middle;
    position: relative;
}

.icon-clock::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.icon-clock::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    border-left: 2px solid currentColor;
    border-top: 2px solid currentColor;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%) rotate(45deg);
}

.icon-user::before {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border: 2px solid currentColor;
    border-radius: 50%;
    top: 25%;
    left: 50%;
    transform: translateX(-50%);
}

.icon-user::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 8px;
    border: 2px solid currentColor;
    border-radius: 10px 10px 0 0;
    border-bottom: none;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
}

.icon-calendar::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 14px;
    border: 2px solid currentColor;
    border-radius: 2px;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.icon-calendar::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 2px;
    background: currentColor;
    top: 40%;
    left: 50%;
    transform: translateX(-50%);
}

.icon-check::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 14px;
    border-right: 3px solid currentColor;
    border-bottom: 3px solid currentColor;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}

.icon-star::before {
    content: '★';
    position: absolute;
    font-size: 1.2em;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.icon-heart::before {
    content: '♥';
    position: absolute;
    font-size: 1.2em;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--danger-color);
}

.icon-play::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 10px solid currentColor;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
}

.icon-arrow-right::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    top: 50%;
    left: 45%;
    transform: translate(-50%, -50%) rotate(45deg);
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

.slide-up {
    transform: translateY(30px);
    opacity: 0;
    animation: slideUp 0.6s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Enhanced Visual Effects */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transition: var(--transition);
    z-index: 1;
}

.card:hover::before {
    left: 100%;
    transition: left 0.6s ease;
}

/* Modern Focus Styles */
.btn:focus,
.form-control:focus,
button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .modern-hero,
    .newsletter-section {
        background: var(--white) !important;
        color: var(--dark-color) !important;
    }

    .btn {
        border: 1px solid var(--dark-color) !important;
        background: transparent !important;
        color: var(--dark-color) !important;
    }
}
/*modern*/

.social-icons {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 1000;
}

    .social-icons a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 50px;
        height: 50px;
        background: #ffffff;
        border-radius: 12px;
        box-shadow: 6px 6px 12px rgba(0, 0, 0, 0.1), -6px -6px 12px rgba(255, 255, 255, 0.8);
        color: #333;
        text-decoration: none;
        transition: all 0.3s ease;
    }

        .social-icons a:hover {
            transform: translateY(-3px);
            box-shadow: 8px 8px 16px rgba(0, 0, 0, 0.15), -8px -8px 16px rgba(255, 255, 255, 0.9);
        }

.telegram {
    color: #0088cc;
}

.instagram {
    color: #e4405f;
}

.whatsapp {
    color: #25d366;
}

.social-icons a:hover.telegram {
    background: linear-gradient(145deg, #0088cc, #006699);
    color: #fff;
}

.social-icons a:hover.instagram {
    background: linear-gradient(145deg, #e4405f, #c13548);
    color: #fff;
}

.social-icons a:hover.whatsapp {
    background: linear-gradient(145deg, #25d366, #1eb356);
    color: #fff;
}

.social-icons svg {
    width: 28px;
    height: 28px;
    transition: transform 0.3s ease;
}

.social-icons a:hover svg {
    transform: scale(1.1);
}
.social-icons a img {
    width: 3em;
}