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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    overflow-x: hidden;
}

.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%), url('bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

.hero-content {
    max-width: 800px;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
}

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

.badge-container {
    margin-bottom: 2rem;
    animation: fadeInDown 1.2s ease-out 0.3s both;
}

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

.badge {
    max-width: 120px;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.logo-container {
    margin-bottom: 3rem;
    animation: fadeInUp 1.2s ease-out 0.6s both;
}

.logo {
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.4));
    transition: transform 0.3s ease;
}

.logo-container a:hover .logo {
    transform: scale(1.02);
}

.text-content {
    margin-bottom: 3rem;
    animation: fadeInUp 1.2s ease-out 0.9s both;
}

.main-text {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: #f8f9fa;
    line-height: 1.7;
}

.vagon-link {
    color: #4dabf7;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.vagon-link:hover {
    color: #74c0fc;
    text-decoration: underline;
}

.sub-text {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: #e9ecef;
    line-height: 1.6;
}

.support-text {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: #dee2e6;
    line-height: 1.6;
}

.support-text a {
    color: #4dabf7;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.support-text a:hover {
    color: #74c0fc;
    text-decoration: underline;
}

.thank-you {
    font-size: 1rem;
    font-weight: 300;
    color: #adb5bd;
    font-style: italic;
    line-height: 1.6;
}

.button-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1.2s ease-out 1.2s both;
    margin-bottom: 3rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    min-width: 200px;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #4dabf7 0%, #339af0 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(77, 171, 247, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #339af0 0%, #228be6 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(77, 171, 247, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Blog Section Styles */
.blog-section {
    animation: fadeInUp 1.2s ease-out 1.5s both;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #ffffff;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.blog-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 350px;
    text-decoration: none;
    color: inherit;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(77, 171, 247, 0.3);
}

.card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    flex-shrink: 0;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.card-content {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 120px;
}

.card-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.card-link {
    color: #4dabf7;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
    padding: 0.5rem 0;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-card:hover .card-link {
    color: #74c0fc;
    transform: translateX(4px);
}

.card-link::after {
    content: '→';
    transition: transform 0.3s ease;
}

.blog-card:hover .card-link::after {
    transform: translateX(4px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        padding: 1rem;
    }
    
    .hero-content {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }
    
    .logo {
        max-width: 280px;
    }
    
    .badge {
        max-width: 130px;
    }
    
    .main-text {
        font-size: 1.1rem;
    }
    
    .sub-text {
        font-size: 1rem;
    }
    
    .button-container {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        min-width: 250px;
        width: 100%;
        max-width: 300px;
    }
    
    .blog-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1rem;
    }
    
    .blog-card {
        min-height: 320px;
    }
    
    .card-content {
        padding: 1rem;
        min-height: 100px;
    }
    
    .card-title {
        font-size: 0.85rem;
        -webkit-line-clamp: 3;
        margin-bottom: 0.75rem;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 1.5rem 1rem;
    }
    
    .logo {
        max-width: 240px;
    }
    
    .badge {
        max-width: 140px;
    }
    
    .main-text {
        font-size: 1rem;
    }
    
    .sub-text {
        font-size: 0.95rem;
    }
    
    .support-text,
    .thank-you {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
        min-width: 200px;
    }
    
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .blog-card {
        min-height: 300px;
    }
    
    .card-content {
        padding: 0.75rem;
        min-height: 90px;
    }
    
    .card-title {
        font-size: 0.8rem;
        -webkit-line-clamp: 3;
        margin-bottom: 0.5rem;
    }
    
    .card-link {
        font-size: 0.75rem;
        padding: 0.4rem 0;
    }
    
    .section-title {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
}

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

/* Focus styles for accessibility */
.btn:focus {
    outline: 2px solid #4dabf7;
    outline-offset: 2px;
}

.blog-card:focus-within {
    outline: 2px solid #4dabf7;
    outline-offset: 2px;
}

/* Loading animation for images */
img {
    opacity: 0;
    animation: imageLoad 0.5s ease-out forwards;
}

@keyframes imageLoad {
    to {
        opacity: 1;
    }
} 