:root {
    /* Light theme variables */
    --primary-color: #2ecc71;
    --primary-color-rgb: 46, 204, 113;  /* Új sor */
    --secondary-color: #3498db;
    --accent-color: #9b59b6;
    --background-color: #ffffff;
    --text-color: #2c3e50;
    --card-bg: #f8f9fa;
    --timeline-color: #e9ecef;
    --nav-bg: rgba(255, 255, 255, 0.95);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --section-bg-light: #f8f9fa;  /* Új sor */
    --section-bg-dark: #ffffff;   /* Új sor */
}

[data-theme="dark"] {
    /* Dark theme variables */
    --primary-color: #32a852;
    --primary-color-rgb: 50, 168, 82;  /* Új sor */
    --secondary-color: #3a7bd5;
    --accent-color: #8e44ad;
    --background-color: #1a1a1a;
    --text-color: #f5f5f5;
    --card-bg: #2d2d2d;
    --timeline-color: #404040;
    --nav-bg: rgba(26, 26, 26, 0.95);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --section-bg-light: #2d2d2d;  /* Új sor */
    --section-bg-dark: #1a1a1a;   /* Új sor */
}

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

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    transition: all 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

/* Navbar Styles */
.navbar {
    background-color: var(--nav-bg);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px var(--shadow-color);
}

.navbar-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--primary-color);
}

.nav-link {
    font-weight: 500;
    color: var(--text-color);
    margin: 0 10px;
    transition: color 0.3s ease;
}

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

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0.5rem;
}

.theme-toggle:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.hero-content {
    position: relative;
    text-align: center;
    color: white;
    z-index: 1;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-content h2 {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

.hero-quote {
    font-style: italic;
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* About Section */
.about-section {
    background-color: var(--section-bg-light);
}

.about-image {
    position: relative;
    padding: 20px;
    margin: 2rem;
}

.about-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 3px solid var(--primary-color);
    transform: translate(15px, 15px);
    z-index: -1;
}

.about-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    box-shadow: 0 10px 30px var(--shadow-color);
}

.about-content {
    padding: 20px;
}

.about-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Education Timeline */
/* Education Timeline */

.education-section {
    background-color: var(--section-bg-dark);
}

.timeline {
    position: relative;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.timeline-item {
    margin-bottom: 100px;
    position: relative;
    width: 100%;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-content {
    position: relative;
    width: calc(50% - 40px);
    padding: 30px;
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 5px 25px var(--shadow-color);
    transition: transform 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 30px;
    width: 25px;
    height: 25px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--background-color), 0 0 0 8px var(--primary-color);
}

.timeline-item:nth-child(odd) .timeline-content::before {
    left: -70px;
}

.timeline-item:nth-child(even) .timeline-content::before {
    right: -70px;
}

.timeline-content .education-icon {
    position: absolute;
    top: -25px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 0 20px var(--shadow-color);
}

.date {
    display: inline-block;
    padding: 5px 15px;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.timeline-content h3 {
    color: var(--text-color);
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.timeline-content .institution {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.timeline-content .institution i {
    font-size: 1.2rem;
}

.timeline-content .degree {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 500;
    padding-left: 15px;
    border-left: 3px solid var(--secondary-color);
}

.timeline-content .thesis {
    font-size: 1rem;
    color: var(--text-color);
    padding: 15px;
    background: rgba(var(--primary-color-rgb), 0.1);
    border-radius: 8px;
    margin-top: 15px;
}

.timeline-content::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
    top: 40px;
}

.timeline-item:nth-child(odd) .timeline-content::after {
    left: -40px;
}

.timeline-item:nth-child(even) .timeline-content::after {
    right: -40px;
}

/* Responsive Timeline */
@media (max-width: 991px) {
    .timeline::before {
        left: 30px;
    }

    .timeline-content {
        width: calc(100% - 90px);
        margin-left: 90px !important;
    }

    .timeline-item:nth-child(odd) .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        left: -60px;
        right: auto;
    }

    .timeline-item:nth-child(odd) .timeline-content::after,
    .timeline-item:nth-child(even) .timeline-content::after {
        left: -30px;
        right: auto;
    }
}

@media (max-width: 576px) {
    .timeline-content {
        padding: 20px;
    }

    .timeline-content h3 {
        font-size: 1.5rem;
    }

    .timeline-content .institution {
        font-size: 1.1rem;
    }

    .timeline-content .degree {
        font-size: 1rem;
    }

    .timeline-content .thesis {
        font-size: 0.9rem;
    }

    .education-icon {
        display: none;
    }
}

/* Stats Section */
/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 25%, transparent 25%),
                linear-gradient(-45deg, rgba(255,255,255,0.1) 25%, transparent 25%),
                linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.1) 75%),
                linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.1) 75%);
    background-size: 20px 20px;
    opacity: 0.1;
}

.stats-section .row {
    margin: 0 -10px;
}

.stats-section .col-lg {
    padding: 0 10px;
}

.stat-item {
    text-align: center;
    padding: 25px 15px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    margin-bottom: 20px;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon i {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.stat-text {
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.9;
}

@media (min-width: 1200px) {
    .stats-section .container {
        max-width: 1300px;
    }
}

@media (max-width: 1199px) {
    .stat-number {
        font-size: 2.2rem;
    }

    .stat-text {
        font-size: 1rem;
    }
}

@media (max-width: 991px) {
    .stats-section .col-lg {
        flex: 0 0 33.333%;
        margin-bottom: 1rem;
    }

    .stat-item {
        padding: 20px 10px;
    }
}

@media (max-width: 767px) {
    .stats-section .col-lg {
        flex: 0 0 50%;
        margin-bottom: 1rem;
    }

    .stat-icon {
        font-size: 2rem;
        height: 50px;
    }

    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 575px) {
    .stats-section .col-lg {
        flex: 0 0 100%;
        margin-bottom: 1rem;
    }

    .stat-item {
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Skills Section */
.skills-section {
    background-color: var(--section-bg-light);
}

.skills-category {
    margin-bottom: 50px;
}

.skills-category h3 {
    text-align: center;
    margin-bottom: 30px;
}

.honeycomb-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0 auto;
    max-width: 1200px;
    padding: 20px;
}

.honeycomb-cell {
    width: 150px;
    height: 150px;
    margin: 10px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.honeycomb-cell:hover {
    transform: scale(1.1);
}

.honeycomb-cell i {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--text-color); /* változás itt */
    position: relative;
    z-index: 2;
}

.honeycomb-cell span {
    font-size: 0.9rem;
    text-align: center;
    color: var(--text-color); /* ez is új */
    position: relative;
    z-index: 2;
}

.honeycomb-cell::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--primary-color) var(--skill-level), var(--card-bg) var(--skill-level));
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    z-index: 1;
}

/* Subjects Section */
.subjects-section {
    background-color: var(--section-bg-dark);
}

.flip-card {
    perspective: 1000px;
    height: 300px;
    margin-bottom: 30px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 8px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.flip-card-front {
    background: var(--card-bg);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.flip-card-back {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: rotateY(180deg);
}

.flip-card-front i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

/* Contact Section */
.contact-section {
    background-color: var(--section-bg-light);
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.email-container {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.email-container i {
    font-size: 1.5rem; /* kisebb ikon */
    color: var(--primary-color);
}

.email-container a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.email-container a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    color: var(--text-color);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px var(--shadow-color);
}

.social-link:hover {
    color: white;
    background: var(--primary-color);
    transform: translateY(-5px);
}

/* Footer */
.footer {
    background-color: var(--card-bg);
    padding: 20px 0;
    text-align: center;
}

/* Scroll To Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s ease;
}

.scroll-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

/* Responsive Styles */
@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--nav-bg);
        padding: 15px;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-content {
        width: calc(100% - 80px);
        margin-left: 80px !important;
    }

    .timeline-item:nth-child(odd) .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        left: -50px;
        right: auto;
    }
}

@media (max-width: 767px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-image::before {
        transform: translate(10px, 10px);
    }

    .honeycomb-cell {
        width: 120px;
        height: 120px;
    }

    .honeycomb-cell i {
        font-size: 2rem;
    }

    .honeycomb-cell span {
        font-size: 0.8rem;
    }

    .stat-item {
        margin-bottom: 20px;
    }

    .flip-card {
        height: 250px;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content h2 {
        font-size: 1.2rem;
    }

    .hero-quote {
        font-size: 1rem;
        padding: 0 20px;
    }

    .about-image::before {
        transform: translate(5px, 5px);
    }

    .timeline-content {
        padding: 15px;
        width: calc(100% - 60px);
        margin-left: 60px !important;
    }

    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}
