/* ============================================
   СЕРГЕЙ БАТРАК - КИНЕМАТОГРАФИЧЕСКАЯ КОНЦЕПЦИЯ
   Современный дизайн с эстетикой классического кино
   ============================================ */

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Цветовая палитра - Кинематографическая */
    --color-primary: #1a1a1a;
    --color-secondary: #2d2d2d;
    --color-accent: #d4af37; /* Золотой акцент */
    --color-text: #e8e8e8;
    --color-text-muted: #a0a0a0;
    --color-background: #0d0d0d;
    --color-card: #1f1f1f;
    --color-border: #333333;
    
    /* Типографика */
    --font-display: 'Playfair Display', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-decorative: 'Cormorant Garamond', serif;
    
    /* Размеры */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2.5rem;
    --spacing-xl: 4rem;
    
    /* Анимации */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Эффекты */
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-strong: 0 8px 40px rgba(0, 0, 0, 0.7);
    --blur-amount: 20px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* === ACCESSIBILITY === */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--color-accent);
    color: var(--color-primary);
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    font-weight: 600;
    z-index: 10000;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 0;
}

/* === FILM GRAIN EFFECT === */
.film-grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    z-index: 1;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='6.29' numOctaves='6' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    animation: grain 8s steps(10) infinite;
}

@keyframes grain {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -10%); }
    20% { transform: translate(-15%, 5%); }
    30% { transform: translate(7%, -25%); }
    40% { transform: translate(-5%, 25%); }
    50% { transform: translate(-15%, 10%); }
    60% { transform: translate(15%, 0%); }
    70% { transform: translate(0%, 15%); }
    80% { transform: translate(3%, 35%); }
    90% { transform: translate(-10%, 10%); }
}

/* === CONTAINER === */
.container {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    position: relative;
    z-index: 2;
}

/* === HERO SECTION === */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4) contrast(1.1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(13, 13, 13, 0.3) 0%,
        rgba(13, 13, 13, 0.7) 60%,
        rgba(13, 13, 13, 0.95) 100%
    );
}

/* === PROFILE CARD === */
.profile-card {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-lg);
    background: rgba(31, 31, 31, 0.7);
    backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--color-border);
    border-radius: 20px;
    box-shadow: var(--shadow-strong);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.3s;
}

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

.profile-avatar {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto var(--spacing-lg);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-accent);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
    position: relative;
    z-index: 2;
}

.avatar-ring {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    opacity: 0.3;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.6;
    }
}

.profile-name {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--spacing-sm);
    letter-spacing: 0.02em;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.profile-tagline {
    font-family: var(--font-decorative);
    font-size: 1.25rem;
    color: var(--color-text-muted);
    font-weight: 400;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-md);
}

.profile-accent {
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--color-accent), transparent);
    margin: 0 auto;
}

/* === MAIN CONTENT === */
.main-content {
    background: var(--color-background);
    position: relative;
    z-index: 2;
    padding: var(--spacing-xl) 0;
}

/* === SECTION === */
.section {
    margin-bottom: var(--spacing-xl);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.section:nth-child(1) { animation-delay: 0.1s; }
.section:nth-child(2) { animation-delay: 0.2s; }
.section:nth-child(3) { animation-delay: 0.3s; }
.section:nth-child(4) { animation-delay: 0.4s; }
.section:nth-child(5) { animation-delay: 0.5s; }

.section-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
    text-align: center;
    position: relative;
    padding-bottom: var(--spacing-sm);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--color-accent);
}

/* === ALERT SECTION === */
.alert-section {
    margin-bottom: var(--spacing-xl);
}

.alert-card {
    background: linear-gradient(135deg, #8b0000 0%, #4a0000 100%);
    border: 2px solid #ff4444;
    border-radius: 16px;
    padding: var(--spacing-lg);
    box-shadow: 0 4px 20px rgba(139, 0, 0, 0.4);
}

.alert-title {
    color: #ffffff !important;
    margin-bottom: var(--spacing-md);
}

.alert-title::after {
    background: #ff4444;
}

.alert-content {
    color: #ffcccc;
    text-align: center;
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.alert-actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    align-items: center;
}

/* === SOCIAL ICONS === */
.social-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) 0;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-accent) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.social-link:hover {
    transform: translateY(-4px);
    border-color: var(--color-accent);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.3);
}

.social-link:hover::before {
    opacity: 0.1;
}

.social-link img {
    width: 32px;
    height: 32px;
    position: relative;
    z-index: 1;
    filter: brightness(0.9);
    transition: filter var(--transition-fast);
}

.social-link:hover img {
    filter: brightness(1.2);
}

/* === BUTTONS === */
.button, .shine-button, .cta-button {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, var(--color-accent) 0%, #b8941f 100%);
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

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

.button:hover, .shine-button:hover, .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.5);
}

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

.button:active, .shine-button:active, .cta-button:active {
    transform: translateY(0);
}

/* === QUOTE SECTION === */
.quote-section {
    padding: var(--spacing-xl) 0;
}

.quote {
    position: relative;
    padding: var(--spacing-lg);
    background: var(--color-card);
    border-left: 4px solid var(--color-accent);
    border-radius: 8px;
    font-family: var(--font-decorative);
}

.quote::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 6rem;
    color: var(--color-accent);
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
}

.quote-text {
    font-size: 1.125rem;
    font-style: italic;
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
    position: relative;
    z-index: 1;
}

.quote-author {
    display: block;
    text-align: right;
    color: var(--color-accent);
    font-size: 1rem;
    font-style: normal;
    font-weight: 600;
}

/* === DIVIDER === */
.divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-border), transparent);
    margin: var(--spacing-lg) 0;
}

/* === FOOTER === */
.footer {
    background: var(--color-secondary);
    padding: var(--spacing-lg) 0;
    border-top: 1px solid var(--color-border);
    position: relative;
    z-index: 2;
}

.footer-content {
    text-align: center;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    :root {
        --spacing-xl: 2.5rem;
        --spacing-lg: 1.5rem;
    }
    
    .profile-name {
        font-size: 2rem;
    }
    
    .profile-tagline {
        font-size: 1rem;
    }
    
    .profile-avatar {
        width: 120px;
        height: 120px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .social-link {
        width: 48px;
        height: 48px;
    }
    
    .social-link img {
        width: 28px;
        height: 28px;
    }
    
    .quote-text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .profile-card {
        padding: var(--spacing-lg) var(--spacing-md);
    }
    
    .profile-name {
        font-size: 1.75rem;
    }
    
    .button, .shine-button, .cta-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.9375rem;
        width: 100%;
    }
    
    .alert-actions .button,
    .alert-actions .shine-button {
        width: 100%;
    }
}

/* === ANIMATIONS === */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* === UTILITY CLASSES === */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
