/* Custom CSS for Fintern.net - Updated Branding */

/* Base styles and utilities */
:root {
    /* New Fintern.net Color Palette */
    --primary-color: #6B46C1;        /* Primary purple */
    --primary-hover: #553C9A;
    --light-color: #E0E7FF;          /* Light purple */
    --mint-color: #10B981;           /* Accent mint */
    --coral-color: #F97316;          /* Accent coral */
    --success-color: #10B981;        /* Using mint for success */
    --background-light: #f9fafb;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    
    /* Fintern.net Spacing System */
    --spacing-xs: 8px;               /* Small */
    --spacing-sm: 16px;              /* Medium */
    --spacing-md: 32px;              /* Large */
    --spacing-lg: 64px;              /* XL */
    --spacing-xl: 96px;              /* XXL */
    
    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-secondary: 'Poppins', sans-serif;
    
}

/* Base typography */
body {
    font-family: var(--font-primary);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 600;
}

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

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Header specific styles */
.header-container {
    transition: all 0.3s ease;
}

.header-container.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.logo h1 {
    color: var(--primary-color);
}

/* Navigation styles */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(90deg, var(--primary-color), var(--coral-color));
    transition: width 0.3s ease;
}

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

/* Fintern.net Button Styles */

/* Primary Button - Gradient */
.btn-primary, .btn-hero-primary, .course-cta, .membership-cta, .newsletter-submit {
    background: linear-gradient(135deg, var(--primary-color), var(--coral-color));
    color: white;
    border: none;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 8px;
    font-family: var(--font-primary);
    font-weight: 600;
    transition: all 0.3s ease;
    transform: translateY(0);
    cursor: pointer;
}

.btn-primary:hover, .btn-hero-primary:hover, .course-cta:hover, .membership-cta:hover, .newsletter-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(107, 70, 193, 0.3);
    background: linear-gradient(135deg, var(--primary-hover), var(--coral-color));
    filter: brightness(0.9);
}

/* Secondary Button - Outlined */
.btn-secondary, .btn-hero-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: calc(var(--spacing-sm) - 2px) calc(var(--spacing-md) - 2px);
    border-radius: 8px;
    font-family: var(--font-primary);
    font-weight: 600;
    transition: all 0.3s ease;
    transform: translateY(0);
    cursor: pointer;
}

.btn-secondary:hover, .btn-hero-secondary:hover {
    transform: translateY(-2px);
    background: var(--primary-color);
    color: white;
    box-shadow: 0 10px 25px rgba(107, 70, 193, 0.2);
}

/* Success Button - Green Gradient */
.btn-success {
    background: var(--mint-color);
    color: white;
    border: none;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 8px;
    font-family: var(--font-primary);
    font-weight: 600;
    transition: all 0.3s ease;
    transform: translateY(0);
    cursor: pointer;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
    background: var(--mint-color);
    filter: brightness(0.9);
}

/* Hero section */
.hero-container {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--coral-color) 100%);
    position: relative;
    overflow: hidden;
}

.hero-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="2" fill="white" opacity="0.1"/><circle cx="80" cy="20" r="1" fill="white" opacity="0.1"/><circle cx="40" cy="60" r="1.5" fill="white" opacity="0.1"/><circle cx="90" cy="70" r="1" fill="white" opacity="0.1"/><circle cx="10" cy="90" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.btn-hero-primary,
.btn-hero-secondary {
    transition: all 0.3s ease;
    transform: translateY(0);
}

.btn-hero-primary:hover,
.btn-hero-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* Intro cards */
.intro-card {
    transition: all 0.3s ease;
    transform: translateY(0);
}

.intro-card:hover {
    transform: translateY(-10px);
}

/* Course cards */
.course-card {
    transition: all 0.3s ease;
    transform: translateY(0);
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.course-features li {
    transition: all 0.2s ease;
}

.course-features li:hover {
    transform: translateX(5px);
}

.course-cta {
    transition: all 0.3s ease;
}

.course-cta:hover {
    transform: translateY(-2px);
}

/* Blog styles */
.blog-post {
    transition: all 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.blog-preview {
    transition: all 0.3s ease;
}

.blog-preview:hover {
    transform: translateY(-5px);
    background-color: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.blog-read-more {
    transition: all 0.3s ease;
}

.blog-read-more:hover {
    transform: translateX(5px);
}

/* Membership section */
.membership-container {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--coral-color) 100%);
    position: relative;
}

.membership-pricing {
    transition: all 0.3s ease;
    transform: scale(1);
}

.membership-pricing:hover {
    transform: scale(1.05);
}

.membership-cta {
    transition: all 0.3s ease;
    transform: translateY(0);
}

.membership-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.faq-item {
    transition: all 0.3s ease;
}

.faq-question {
    transition: all 0.3s ease;
}

.faq-question:hover {
    background-color: #f8fafc;
    border-color: var(--primary-color);
}

.faq-question.active {
    border-color: var(--primary-color);
    background-color: #f3f4f6;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-icon.rotate {
    transform: rotate(45deg);
}

.faq-answer {
    animation: fadeInUp 0.3s ease;
}

/* Newsletter form */
.newsletter-form input {
    transition: all 0.3s ease;
}

.newsletter-form input:focus {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(107, 70, 193, 0.1);
}

.newsletter-submit {
    transition: all 0.3s ease;
    transform: translateY(0);
}

.newsletter-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(107, 70, 193, 0.3);
}

/* Telegram section */
.telegram-container {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--coral-color) 100%);
}

.telegram-feature {
    transition: all 0.3s ease;
    transform: translateY(0);
}

.telegram-feature:hover {
    transform: translateY(-5px);
}

.telegram-join-btn {
    transition: all 0.3s ease;
    transform: translateY(0);
    animation: bounce 2s infinite;
}

.telegram-join-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    animation: none;
}

/* Footer */
.footer-container {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

.social-links a {
    transition: all 0.3s ease;
    transform: translateY(0);
}

.social-links a:hover {
    transform: translateY(-3px);
}

/* Mobile Menu */
.mobile-menu-container {
    animation: fadeInUp 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-container {
        padding: 60px 0;
    }
    
    .hero-container h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .course-card,
    .blog-post,
    .intro-card {
        margin-bottom: 20px;
    }
    
    .cta-group {
        flex-direction: column;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        text-align: center;
    }
}

/* Loading animation for dynamic content */
.loading {
    opacity: 0.5;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success animations */
.success-animation {
    animation: bounce 0.6s ease-in-out;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), var(--coral-color));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-hover), var(--coral-color));
}

/* Print styles */
@media print {
    .header-container,
    .telegram-container,
    .newsletter-container {
        display: none !important;
    }
    
    .hero-container {
        background: none !important;
        color: black !important;
    }
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hero-container,
    .membership-container,
    .telegram-container {
        background: #000;
        color: #fff;
    }
    
    .btn-primary,
    .btn-secondary {
        border: 2px solid #fff;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}