/* Modern CSS Reset és Optimalizálások */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --text-color: #2c3e50;
    --background-light: #f8f9fa;
    --border-color: #e9ecef;
    --transition-speed: 0.3s;
}

/* Modern CSS Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Teljesítmény optimalizálások */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e9f2 100%);
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 20px;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

.container {
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgb(0 0 0 / 10%);
    width: 100%;
    max-width: 800px;
    overflow: hidden;
    position: relative;
    will-change: transform;
    transition: transform var(--transition-speed) ease;
}

@media (hover: hover) {
    .container:hover {
        transform: translateY(-5px);
    }
}

.header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent, rgb(255 255 255 / 10%));
    transform: skewY(-5deg);
    transform-origin: top left;
}

.header h1 {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 600;
    position: relative;
    text-shadow: 2px 2px 4px rgb(0 0 0 / 20%);
}

.content {
    padding: clamp(1rem, 3vw, 2.5rem);
    background-color: white;
}

.content p {
    margin-block-end: 1.5rem;
    font-size: clamp(1rem, 2vw, 1.1rem);
    color: var(--text-color);
    line-height: 1.8;
    opacity: 0;
    animation: fadeIn 0.5s ease-out forwards;
}

.content p:nth-child(1) { animation-delay: 0.2s; }
.content p:nth-child(2) { animation-delay: 0.4s; }
.content p:nth-child(3) { animation-delay: 0.6s; }

.email-container {
    background-color: var(--background-light);
    padding: clamp(1rem, 2vw, 1.5rem);
    border-radius: 12px;
    margin-block: 2rem;
    text-align: center;
    border: 1px solid var(--border-color);
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-color);
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

@media (hover: hover) {
    .email-container:hover {
        background-color: white;
        box-shadow: 0 5px 15px rgb(0 0 0 / 10%);
        transform: translateY(-2px);
    }
}

.email-container:focus-visible {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

.footer {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--background-light);
    color: #6c757d;
    border-block-start: 1px solid var(--border-color);
    font-size: 0.9rem;
}

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

/* Dark Mode Optimalizálások */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #1a1a1a, #2c3e50);
        color-scheme: dark;
    }

    .container,
    .content {
        background-color: #2c2c2c;
        color: #e4e9f2;
    }

    .email-container {
        background-color: #3a3a3a;
        color: #e4e9f2;
        border-color: #4a4a4a;
    }

    .footer {
        background-color: #3a3a3a;
        color: #a0a0a0;
        border-color: #4a4a4a;
    }
}