/* =====================================================
   Professional Online Learning Platform
   Dr. Reza Behrouzi - rezabehrouzi.com
   ===================================================== */

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Modern Professional Color Palette */
    --primary-color: #0f172a;
    --primary-light: #1e293b;
    --primary-dark: #020617;
    --accent-color: #3b82f6;
    --accent-hover: #2563eb;
    --accent-light: #60a5fa;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --background: #ffffff;
    --background-alt: #f8fafc;
    --background-dark: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-light: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --gradient-primary: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --gradient-accent: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

body {
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* =====================================================
   Header
   ===================================================== */
.main-header {
    background: var(--gradient-primary);
    color: white;
    padding: 20px 0;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

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

.logo-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-icon {
    font-size: 2.5rem;
    background: var(--gradient-accent);
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.logo-text h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.instructor-name {
    font-size: 0.95rem;
    opacity: 0.9;
    font-weight: 400;
}

.website-link {
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.website-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* =====================================================
   Hero Section
   ===================================================== */
.hero-section {
    background: var(--gradient-primary);
    padding: 100px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(16, 185, 129, 0.15);
    border: 2px solid rgba(16, 185, 129, 0.3);
    padding: 12px 24px;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 32px;
    animation: pulse 2s infinite;
}

.status-dot {
    width: 12px;
    height: 12px;
    background: var(--success-color);
    border-radius: 50%;
    animation: blink 1.5s infinite;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
}

@keyframes blink {
    0%, 100% { 
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
    }
    50% { 
        opacity: 0.5;
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 56px;
    font-weight: 400;
    color: var(--accent-light);
}

/* =====================================================
   Class Info Grid
   ===================================================== */
.class-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 48px 0;
}

.info-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 32px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.info-icon {
    font-size: 3rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.info-content h3 {
    font-size: 0.9rem;
    opacity: 0.85;
    margin-bottom: 6px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-content p {
    font-size: 1.25rem;
    font-weight: 600;
}

/* =====================================================
   CTA Button
   ===================================================== */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--gradient-accent);
    color: white;
    padding: 20px 48px;
    border-radius: 16px;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 24px;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.5);
}

.cta-button:active {
    transform: translateY(-2px);
}

.button-icon {
    font-size: 1.5rem;
}

.cta-note {
    margin-top: 20px;
    font-size: 0.95rem;
    opacity: 0.85;
}

/* =====================================================
   Instructions Section
   ===================================================== */
.instructions-section {
    padding: 100px 0;
    background: var(--background);
}

.section-title {
    text-align: center;
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 64px;
    position: relative;
    padding-bottom: 24px;
    letter-spacing: -0.02em;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background: var(--gradient-accent);
    border-radius: 10px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
    margin-bottom: 64px;
}

.step-card {
    background: var(--background);
    border: 2px solid var(--border-color);
    border-radius: 24px;
    padding: 40px 32px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-color);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: var(--gradient-accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
}

.step-icon {
    font-size: 4rem;
    margin: 32px 0 24px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.step-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.step-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Guest Notice */
.guest-notice {
    background: var(--gradient-accent);
    border-radius: 24px;
    padding: 48px;
    text-align: center;
    color: white;
    box-shadow: var(--shadow-xl);
}

.guest-notice h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.guest-notice p {
    font-size: 1.1rem;
    opacity: 0.95;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

/* =====================================================
   Resources Section
   ===================================================== */
.resources-section {
    padding: 100px 0;
    background: var(--background-alt);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.resource-card {
    background: var(--background);
    border: 2px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.resource-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-color);
}

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

.resource-card h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.resource-card p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

.resource-link {
    display: inline-block;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    padding: 12px 32px;
    border: 2px solid var(--accent-color);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.resource-link:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

/* =====================================================
   Requirements Section
   ===================================================== */
.requirements-section {
    padding: 100px 0;
    background: var(--background);
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.req-card {
    background: var(--background-alt);
    border: 2px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.req-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-color);
}

.req-card.highlight {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(37, 99, 235, 0.05));
    border-color: var(--accent-color);
}

.req-icon {
    font-size: 3rem;
    margin-bottom: 24px;
}

.req-card h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.req-card ul {
    list-style: none;
}

.req-card li {
    padding: 14px 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.req-card li:last-child {
    border-bottom: none;
}

.check {
    color: var(--success-color);
    font-weight: 700;
    font-size: 1.2rem;
}

/* =====================================================
   Features Section
   ===================================================== */
.features-section {
    padding: 100px 0;
    background: var(--background-alt);
}

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

.feature-card {
    background: var(--background);
    border: 2px solid var(--border-color);
    border-radius: 24px;
    padding: 36px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

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

/* =====================================================
   Support Section
   ===================================================== */
.support-section {
    padding: 100px 0;
    background: var(--gradient-primary);
    color: white;
    text-align: center;
}

.support-icon {
    font-size: 4rem;
    margin-bottom: 24px;
}

.support-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.support-content p {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.support-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.support-btn {
    padding: 16px 40px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid white;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.support-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

.support-btn.primary {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.support-btn.primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

/* =====================================================
   Footer
   ===================================================== */
.main-footer {
    background: var(--primary-dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
}

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

.footer-links a {
    color: var(--accent-light);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: white;
    transform: translateX(-4px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    opacity: 0.7;
    font-size: 0.9rem;
}

/* =====================================================
   Responsive Design
   ===================================================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .class-info-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-button {
        padding: 18px 36px;
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .steps-grid,
    .resources-grid,
    .requirements-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .header-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
    
    .support-buttons {
        flex-direction: column;
    }
    
    .guest-notice {
        padding: 32px 24px;
    }
    
    .logo-section {
        flex-direction: column;
    }
}

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

.hero-content > * {
    animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero-content > *:nth-child(1) { animation-delay: 0.1s; opacity: 0; }
.hero-content > *:nth-child(2) { animation-delay: 0.2s; opacity: 0; }
.hero-content > *:nth-child(3) { animation-delay: 0.3s; opacity: 0; }
.hero-content > *:nth-child(4) { animation-delay: 0.4s; opacity: 0; }
.hero-content > *:nth-child(5) { animation-delay: 0.5s; opacity: 0; }

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

/* Selection color */
::selection {
    background: var(--accent-color);
    color: white;
}

::-moz-selection {
    background: var(--accent-color);
    color: white;
}
