/* ==========================================
   Promotion-Ready Skills Course - Main CSS
   ========================================== */

/* CSS Variables */
:root {
    --primary-purple: #667eea;
    --primary-blue: #4facfe;
    --primary-teal: #00f2fe;
    --primary-pink: #f093fb;
    --primary-orange: #ff9a56;
    --primary-green: #11998e;
    
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-4: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --gradient-5: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
    --gradient-6: linear-gradient(135deg, #ff9a56 0%, #ff6a88 100%);
    
    --bg-dark: #0f0c29;
    --bg-medium: #1a1a2e;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-card-hover: rgba(255, 255, 255, 0.1);
    
    --text-light: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --text-dim: rgba(255, 255, 255, 0.5);
    
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 15px 50px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 30px rgba(102, 126, 234, 0.3);
    
    --border-radius: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --header-height: 80px;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

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

/* Animated Background */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    animation: float 25s infinite ease-in-out;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--gradient-1);
    top: -150px;
    left: -150px;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--gradient-3);
    bottom: -100px;
    right: -100px;
    animation-delay: 7s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: var(--gradient-2);
    top: 50%;
    right: 10%;
    animation-delay: 15s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(60px, -60px) scale(1.1); }
    66% { transform: translate(-40px, 40px) scale(0.9); }
}

/* Hero Section */
.hero-section {
    padding: 120px 0 100px;
    text-align: center;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    padding: 12px 28px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
    font-size: 15px;
    font-weight: 500;
    animation: fadeInDown 0.8s ease;
}

.hero-badge i {
    font-size: 18px;
    background: var(--gradient-3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.gradient-text {
    background: var(--gradient-3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 50px;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 50px;
    animation: fadeInUp 0.8s ease 0.6s backwards;
}

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

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-module, .btn-primary-large {
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-1);
    color: var(--text-light);
    box-shadow: var(--shadow-md);
    animation: fadeInUp 0.8s ease 0.8s backwards;
}

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

.btn-primary-large {
    padding: 20px 50px;
    font-size: 18px;
    background: var(--gradient-3);
    color: var(--text-light);
    box-shadow: var(--shadow-lg);
}

.btn-primary-large:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.btn-module {
    width: 100%;
    justify-content: center;
    background: var(--gradient-3);
    color: white;
    padding: 14px 30px;
    font-size: 15px;
}

.btn-module:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.section-title i {
    background: var(--gradient-3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 60px;
}

/* Overview Section */
.overview-section {
    padding: 80px 0;
}

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

.overview-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
}

.overview-card:hover {
    transform: translateY(-10px);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-glow);
}

.overview-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: var(--gradient-1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    box-shadow: var(--shadow-md);
}

.overview-card:nth-child(2) .overview-icon {
    background: var(--gradient-2);
}

.overview-card:nth-child(3) .overview-icon {
    background: var(--gradient-3);
}

.overview-card:nth-child(4) .overview-icon {
    background: var(--gradient-4);
}

.overview-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

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

/* Modules Section */
.modules-section {
    padding: 80px 0;
    background: rgba(0, 0, 0, 0.2);
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.module-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 35px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-1);
    opacity: 0;
    transition: var(--transition);
}

.module-card:hover::before {
    opacity: 1;
}

.module-card:nth-child(2)::before { background: var(--gradient-2); }
.module-card:nth-child(3)::before { background: var(--gradient-3); }
.module-card:nth-child(4)::before { background: var(--gradient-4); }
.module-card:nth-child(5)::before { background: var(--gradient-6); }
.module-card:nth-child(6)::before { background: var(--gradient-5); }

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

.module-badge {
    display: inline-block;
    background: var(--gradient-1);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.module-card:nth-child(2) .module-badge { background: var(--gradient-2); }
.module-card:nth-child(3) .module-badge { background: var(--gradient-3); }
.module-card:nth-child(4) .module-badge { background: var(--gradient-4); }
.module-card:nth-child(5) .module-badge { background: var(--gradient-6); }
.module-card:nth-child(6) .module-badge { background: var(--gradient-5); }

.module-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.module-card:nth-child(2) .module-icon { background: var(--gradient-2); }
.module-card:nth-child(3) .module-icon { background: var(--gradient-3); }
.module-card:nth-child(4) .module-icon { background: var(--gradient-4); }
.module-card:nth-child(5) .module-icon { background: var(--gradient-6); }
.module-card:nth-child(6) .module-icon { background: var(--gradient-5); }

.module-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.module-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.module-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--text-dim);
}

.module-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.module-progress {
    margin-bottom: 25px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-3);
    border-radius: 50px;
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* Features Section */
.features-section {
    padding: 80px 0;
}

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

.feature-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-md);
}

.feature-card i {
    font-size: 40px;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    display: block;
}

.feature-card h4 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
}

.cta-content h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.4);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Module Page Header */
.module-header {
    position: sticky;
    top: 0;
    background: rgba(15, 12, 41, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    z-index: 1000;
}

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

.module-nav-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.back-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    font-size: 14px;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(-5px);
}

.module-nav-title {
    font-size: 1.2rem;
    font-weight: 600;
}

.module-nav-progress {
    display: flex;
    align-items: center;
    gap: 15px;
}

.progress-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: conic-gradient(var(--primary-blue) 0deg, rgba(255, 255, 255, 0.1) 0deg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
}

/* Module Content */
.module-content {
    padding: 60px 0;
    max-width: 900px;
    margin: 0 auto;
}

.learning-objectives {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--primary-blue);
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 50px;
}

.learning-objectives h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.learning-objectives h3 i {
    background: var(--gradient-3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.learning-objectives ul {
    list-style: none;
    padding: 0;
}

.learning-objectives li {
    padding: 12px 0;
    padding-left: 35px;
    position: relative;
    color: var(--text-muted);
    line-height: 1.7;
}

.learning-objectives li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-teal);
    font-weight: 700;
    font-size: 1.2rem;
}

/* Content Section */
.content-section {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 40px;
    margin-bottom: 40px;
}

.content-section h2 {
    font-size: 2rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.content-section h2 i {
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.content-section h3 {
    font-size: 1.5rem;
    margin: 30px 0 15px;
    color: var(--primary-blue);
}

.content-section p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 20px;
}

.content-section ul, .content-section ol {
    color: var(--text-muted);
    line-height: 1.8;
    margin-left: 25px;
    margin-bottom: 20px;
}

.content-section li {
    margin-bottom: 10px;
}

/* Highlight Box */
.highlight-box {
    background: rgba(79, 172, 254, 0.1);
    border-left: 4px solid var(--primary-blue);
    padding: 20px 25px;
    border-radius: 10px;
    margin: 25px 0;
}

.highlight-box.success {
    background: rgba(0, 242, 254, 0.1);
    border-left-color: var(--primary-teal);
}

.highlight-box.warning {
    background: rgba(255, 154, 86, 0.1);
    border-left-color: var(--primary-orange);
}

.highlight-box.info {
    background: rgba(240, 147, 251, 0.1);
    border-left-color: var(--primary-pink);
}

.highlight-box h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.highlight-box p {
    margin-bottom: 0;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

/* Responsive Design */
@media (max-width: 968px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-stats {
        gap: 40px;
    }
    
    .stat-number {
        font-size: 3rem;
    }
    
    .modules-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 30px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .modules-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-content h2 {
        font-size: 2.2rem;
    }
    
    .module-nav {
        flex-direction: column;
        gap: 15px;
    }
    
    .module-nav-left {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .module-card {
        padding: 25px;
    }
    
    .content-section {
        padding: 25px;
    }
}