.car-illustration.flipped {
    transform: translate(var(--car-x), -50%) scaleX(-1);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-wheel {
    transition: left 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Outlined circle style for contact icons */
.contact-icon.outlined-circle {
    width: 38px;
    height: 38px;
    border: 2.5px solid var(--primary-color, #2563eb);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    box-sizing: border-box;
    margin-right: 1rem;
    color: var(--primary-color, #2563eb);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --text-color: #1f2937;
    --light-bg: #f9fafb;
    --border-color: #e5e7eb;
    --white: #ffffff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--light-bg);
    max-width: 100vw;
    overflow-x: hidden;
}

html {
    max-width: 100vw;
    overflow-x: hidden;
}
    html {
        max-width: 100vw;
        overflow-x: hidden;
    }

/* Header/Navigation */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 7rem 2rem 4rem 2rem;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    min-height: 300px;
    margin: 0 auto;
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 2rem;
    border: 5px solid var(--white);
    object-fit: cover;
    animation: slideInDown 0.8s ease-out, rollWheel 5s ease-in-out infinite;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform-origin: center center;
}

/* Car Illustration */
/* Car Illustration: now positioned absolutely but width is flexible */

/* Car Wrapper for responsive scaling */
.car-wrapper {
    position: relative;
    width: 100vw;
    height: clamp(180px, 26vw, 260px);
    margin: 0 calc(50% - 50vw) 2rem;
    overflow: visible;
    pointer-events: none;
}

.car-illustration {
    position: absolute;
    left: 0;
    top: 50%;
    width: clamp(220px, 24vw, 360px);
    aspect-ratio: 7 / 4;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    --car-x: 0px;
    transform: translate(var(--car-x), -50%);
    will-change: transform;
}

.car-illustration svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
}

.profile-wheel {
    position: absolute;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: spinWheel 8s linear infinite;
    transform: translate(-50%, -50%);
    transform-origin: center center;
}


.profile-wheel {
    position: absolute;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: spinWheel 8s linear infinite;
    transform: translate(-50%, -50%);
    transform-origin: center center;
}
.profile-wheel-front {
    top: 70%;
    left: 25.5%;
}
.profile-wheel-right {
    top: 70%;
    left: 74.5%;
}

@media (max-width: 768px) {
    .car-wrapper {
        max-width: 95vw;
        aspect-ratio: 7/4;
    }
    .profile-wheel {
        width: 40px;
        height: 40px;
    }
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-color);
    font-weight: bold;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    font-weight: bold;
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* Main Container */
main {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 4rem 0;
    border-bottom: 1px solid var(--border-color);
}

section:last-child {
    border-bottom: none;
}

h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
/* Car Illustration: now positioned absolutely but width is flexible */
    background: var(--primary-color);
    border-radius: 2px;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}

.about-text p {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.8;
}

.about-list {
    list-style: none;
    margin-top: 1rem;
}

.about-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.about-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.skill-category {
    background: var(--white);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.skill-category h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.skill-list {
    list-style: none;
}

.skill-list li {
    padding: 0.5rem 0;
    color: var(--text-color);
}

.skill-list li::before {
    content: '▪ ';
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Experience Section */
.experience-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* keep company name and icon on the same line */
.experience-item h3 {
    display: inline-block;
    margin: 0;
    vertical-align: middle;
}

.experience-item h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.experience-item .position {
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.experience-item .date {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.experience-item p {
    color: #4b5563;
    line-height: 1.8;
}

/* small icon link next to company name */
.company-link {
    display: inline-flex;
    align-items: center;
    margin-left: 0.5rem;
    vertical-align: middle;
    text-decoration: none;
}

.company-link svg {
    display: inline-block;
    width: 20px;
    height: 20px;
}

.company-link:hover svg path {
    stroke: var(--secondary-color);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: var(--white);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}
/* Appearances Section (Megjelenések) */
.appearances-grid {
     display: grid;
     grid-template-columns: 1fr;
     gap: 2rem;
     margin-top: 2rem;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.project-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 2rem;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.project-card .project-tech {
    font-size: 0.85rem;
    opacity: 0.9;
}

.project-body {
    padding: 2rem;
}

.project-body p {
    color: #4b5563;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-links a {
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 0.3rem;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.project-links a:hover {
    background: var(--secondary-color);
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-info {
    background: var(--white);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.contact-info h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.contact-item {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.3rem;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
footer {
    padding: 28px 0; /* space around the footer */
    background-color: #f8f9fa; /* light background */
    text-align: center;
}

/* give sections a top margin so native anchor jumps won't hide headings under a fixed nav */
section {
    scroll-margin-top: 90px; /* adjust if your nav height is different */
}

footer .social-links {
    margin-bottom: 14px;
}

/* OVÁLIS GOMBOK A FOOTER LINKEKHEZ */
footer .social-links a {
    display: inline-block;
    padding: 10px 18px;
    margin: 6px 6px;
    border-radius: 999px; /* fully rounded (oval) */
    background: linear-gradient(180deg, #2563eb 0%, #1e40af 100%);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(37,99,235,0.15);
    transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}

footer .social-links a:hover,
footer .social-links a:focus {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(37,99,235,0.18);
    opacity: 0.98;
}

/* Ensure footer isn't affected by slide-in animations */
footer, footer * {
    opacity: 1 !important;
    transform: none !important;
}

/* Contact mail button (replaces removed form) */
.contact-mail {
    margin-top: 8px;
}

.contact-mail-button {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 999px;
    background: linear-gradient(180deg, #16a34a 0%, #15803d 100%);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(16,185,129,0.12);
    transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}

.contact-mail-button:hover,
.contact-mail-button:focus {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(16,185,129,0.16);
}

/* contact icon sizing and layout */
.contact-item { display: flex; gap: 12px; align-items: center; }
.contact-icon { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; color: var(--primary-color, #2563eb); }
.contact-icon svg { width: 22px; height: 22px; display: block; }

/* support for icon images (external SVGs) */
.contact-icon img { width: 22px; height: 22px; display: block; object-fit: contain; }

/* Profile Image Animations */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spinWheel {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes drive {
    0% {
        left: 0;
        transform: scaleX(1);
    }
    49.99% {
        left: calc(100vw - 350px);
        transform: scaleX(1);
    }
    50% {
        left: calc(100vw - 350px);
        transform: scaleX(-1);
    }
    99.99% {
        left: 0;
        transform: scaleX(-1);
    }
    100% {
        left: 0;
        transform: scaleX(1);
    }
}

@keyframes danceSwing {
    0% {
        transform: rotate(-8deg) translateY(0px);
    }
    25% {
        transform: rotate(8deg) translateY(-5px);
    }
    50% {
        transform: rotate(-6deg) translateY(0px);
    }
    75% {
        transform: rotate(6deg) translateY(-5px);
    }
    100% {
        transform: rotate(-8deg) translateY(0px);
    }
}

@keyframes floatImage {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(37, 99, 235, 0.2);
    }
    50% {
        box-shadow: 0 10px 40px rgba(37, 99, 235, 0.6);
    }
}

@keyframes glow {
    0%, 100% {
        filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(37, 99, 235, 0.8));
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes spinDance {
    0% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(90deg) scale(1.05);
    }
    50% {
        transform: rotate(180deg) scale(1);
    }
    75% {
        transform: rotate(270deg) scale(1.05);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

@keyframes wobble {
    0%, 100% {
        transform: translateX(0px) rotate(0deg);
    }
    25% {
        transform: translateX(10px) rotate(-5deg);
    }
    50% {
        transform: translateX(0px) rotate(0deg);
    }
    75% {
        transform: translateX(-10px) rotate(5deg);
    }
}

@keyframes bounceSpin {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(-10deg);
    }
    50% {
        transform: translateY(0px) rotate(180deg);
    }
    75% {
        transform: translateY(-15px) rotate(-350deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}
