/* General Style */

* {
    margin: 0;
    padding: 0;
}

body {

    font-family:  'Poppins', sans-serif;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
   
}

html{
    scroll-behavior: smooth;
}

p {
    color: rgb(85, 85, 85);
}

/*Transition*/

a, .btn{
    transition: all 300ms ease;
}

/* Desktop nav*/

nav, .nav-links {
    display: flex;
}

nav {
    justify-content: space-around;
    align-items: center;
    height: 17vh;
    max-width: 1200px;
    margin: 0 auto;
}

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

.nav-links li {
    position: relative;
}

.nav-links a, .nav-links-container a, .logo {
    color: black;
    text-decoration: none;
    font-size: 1.5rem;
    transition: all 300ms ease;
    display: inline-block;
    position: relative;
    padding: 0.2rem 0;
}

.nav-links a::after, .nav-links-container a::after, .lang-btn::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    background-color: rgb(181, 181, 181);
    left: 0;
    bottom: -0.5rem;
    transition: width 300ms ease;
}

.nav-links a:hover::after, .nav-links-container a:hover::after, .lang-btn:hover::after {
    width: 100%;
}

.nav-links a:hover, .nav-links-container a:hover, .lang-btn:hover {
    color: grey;
}

/* Contact links style */
.contact-info {
    color: black;
    text-decoration: none;
    font-size: larger;
    transition: all 300ms ease;
    cursor: pointer;
}

.contact-info:hover {
    color: grey;
}

.logo {
    font-size: 2rem;
}

.logo:hover {
    cursor: default;
    color: black;
}

/* Language switcher */
.lang-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 300ms ease;
    font-family: 'Poppins', sans-serif;
    position: relative;
    padding: 0.2rem 0;
    color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.material-symbols-outlined {
    font-variation-settings:
    'FILL' 0,
    'wght' 400,
    'GRAD' 0,
    'opsz' 24;
    font-size: 1.5rem;
    color: black;
    transition: all 300ms ease;
}

.lang-btn:hover .material-symbols-outlined {
    color: grey;
}

/* About section icons */
.about-icon.material-symbols-outlined {
    font-size: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: default;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

/* School icon hover effect */
.about-section-details:hover .about-icon.material-symbols-outlined {
    transform: scale(1.2);
}

/* Lightbulb icon default and hover states */
.rotate-horizontal {
    transform: rotate(-180deg);
    transition: transform 0.3s ease;
}

.lang-btn.mobile {
    display: flex;
    justify-content: center;
    font-size: 1.5rem;
    padding: 0.2rem 0;
    width: 100%;
}

/* Hamburger menu*/

#hamburger-nav{
    display: none;
}

.hamburger-menu {
    position: relative;
    display: inline-block;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 24px;
    width: 30px;
    cursor: pointer;
}

.hamburger-icon span {
    width: 100%;
    height: 2px;
    background-color: black;
    transition: all 0.3 ease-in-out;
}

.menu-links {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    width: fit-content;
    min-width: 200px;
    max-height: 0;
    overflow: hidden;
    transition: all 300ms ease-in-out;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.menu-links a {
    display: block;
    padding: 10px;
    text-align: center;
    font-size: 1.5rem;
    color: black;
    text-decoration: none;
    transition: all 300ms ease;
}

.menu-links li {
    list-style: none;
}

.menu-links.open {
    max-height: 350px;
}

.menu-links a:hover {
    color: grey;
}

/* Mobile language button style override */
.menu-links .lang-btn {
    background: none;
    border: none;
    width: 100%;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.menu-links .lang-btn:hover {
    color: grey;
}

.menu-links .lang-btn::after {
    display: none;
}

.hamburger-icon.open span:first-child{
    transform: rotate(45deg) translate(10px, 5px);
}
.hamburger-icon.open span:nth-child(2){
    opacity: 0;
}
.hamburger-icon.open span:last-child{
    transform: rotate(-45deg) translate(10px, -5px);
}

.hamburger-icon span:first-child {
    transform: none;
}
.hamburger-icon span:nth-child(2) {
   opacity: 1;
}
.hamburger-icon span:last-child {
    transform: none;
}

/* Sections */

section {
    padding-top: 4vh;
    height: 96vh;
    margin: 0 auto;
    box-sizing: border-box;
    min-height: fit-content;
    max-width: 1200px;
}

.section-container {
    display: flex;
}

/* Profile section*/

#profile {
    display: flex;
    justify-content: center;
    gap: 5rem;
    height: 80vh;
    position: relative;
}

.profile-arrow {
    position: absolute;
    right: 0;
    bottom: 2.5rem;
    cursor: pointer;
}
.profile-pic {
    width: 400px;          
    max-width: 400px;
    aspect-ratio: 1 / 1;   
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.section__profile-pic-container {
    display: flex;
    height: 400px;
    width: 400px;
    margin: auto 0;
}

.section__text {
    align-self: center;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.section__text p {
    font-weight: 600;
}

.section__text > * {
    margin: 0;
}

.section__text .btn-container {
    margin-top: 1rem;
}

.section__text__p1 {
    text-align: center;
    font-size: 1.5rem;
    color: rgb(85, 85, 85);
}

.section__text__p2 {
    font-size: 1.75rem;
    margin-bottom: 0;
}

.title  {
    font-size: 3rem;
    text-align: center;
    margin: 0.2rem 0;
}

#socials-container{
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    gap: 1rem;
}

/* Icons */

.icon {
    cursor: pointer;
    height: 2rem;
}

/* Buttons */

.btn-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn {
    font-weight: 600;
    transition: all 300ms ease;
    padding: 1rem;
    width: 8rem;
    border-radius: 2rem;
}

.btn-color-1,
.btn-color-2 {
    border: rgb(53, 53, 53) 0.1rem solid;
}

.btn-color-1:hover,
.btn-color-2:hover {
    cursor: pointer;
}

.btn-color-1,
.btn-color-2:hover {
    background: rgb(53, 53, 53);
    color: white;
}

.btn-color-1:hover {
    background: rgb(0, 0, 0);
}

.btn-color-2 {
    background: none;
    color: rgb(53, 53, 53);
}

.btn-color-2:hover {
    border: rgb(255, 255, 255) 0.1rem solid;
    color: white;
}

.btn-container {
    gap: 1rem;
}

/* About section */

#about {
    position: relative;
}

/* About section specific containers */
.about-containers {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    width: 100%;
}

.about-details-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-details-container .text-container {
    padding: 0;
}

.about-details-container .text-container p {
    text-align: left;
    line-height: 1.8;
    font-size: 1.1rem;
    color: rgb(85, 85, 85);
    margin: 0;
}

.about-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2rem;
}

/* About section details container */
.about-section-details {
    padding: 1.5rem;
    flex: 1;
    background: white;
    border-radius: 2rem;
    border: rgb(53, 53, 53) 0.1rem solid;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: calc(50% - 1rem);  /* Ensure equal widths */
}

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

.about-section-details h3 {
    margin: 1rem 0;
    font-size: 1.5rem;
    color: rgb(53, 53, 53);
}

.about-section-details p {
    margin: 0.5rem 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

.section__about-pic-container {
    flex: 0 0 400px;
    height: 400px;       /* ITT A VÁLTOZÁS: Fix magasság "auto" helyett */
    width: 400px;        /* Biztosítjuk a szélességet is */
    border-radius: 2rem; /* Lekerekítés a konténerre is */
    overflow: hidden;    /* Hogy a képek ne lógjanak ki a sarkoknál */
    position: relative;  /* A gombok pozicionálása miatt */
}

.arrow {
    position: absolute;
    right: -5rem;
    bottom: 2.5rem;
}


/* --- Carousel / Slider Styles --- */
.carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 2rem;
    touch-action: pan-y;
}

.carousel-track {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-track::-webkit-scrollbar {
    display: none; 
}

.carousel-item {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%); 
    
    width: 45px;
    height: 45px;
    border-radius: 50%;
    
    z-index: 10;
    cursor: pointer;
    
    display: flex;
    justify-content: center;
    align-items: center;
    
    border: none;
    padding: 0;
    line-height: 0;
    outline: none; 
    
    /* Üveghatás */
    background-color: rgba(255, 255, 255, 0.15); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); 
    
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-btn .material-symbols-outlined {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 2.1rem; 
    transition: color 0.3s ease; 
}

@media (hover: hover) {
    .carousel-btn:hover {
        background: rgba(255, 255, 255, 0.7); 
        transform: translateY(-50%) scale(1.1); 
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.5);
    }

    .carousel-btn:hover .material-symbols-outlined {
        color: rgba(255, 255, 255, 1) !important;
    }
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.prev-btn {
    left: 1rem;
}

.next-btn {
   right: 1rem;
}

#about .carousel-btn span.material-symbols-outlined {
    color: #ffffff !important;
    opacity: 0.9;
}

@media (hover: hover) {
    #about .carousel-btn:hover span.material-symbols-outlined {
        color: #ffffff !important;
        opacity: 1;
    }
}

/* Shared section container */
.section-container {
    gap: 4rem;
    height: auto;
    margin: 2rem 0;
    display: flex;
}

/* Experience Section */
#experience {
    position: relative;
    padding: 4rem 2rem;
}

.experience-sub-title {
    color: rgb(85, 85, 85);
    font-weight: 600;
    font-size: 1.75rem;
    margin-bottom: 2rem;
    text-align: center;
}

.experience-details-container {
    display: flex;
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 4rem auto 0;
}

/* Individual Article Container (Frontend/Backend boxes) */
.experience-article-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1.5rem;
    background: rgb(250, 250, 250);
    border-radius: 2rem;
    border: 1px solid rgb(163, 163, 163);
    flex: 1 1 400px;
    min-width: 300px;
    max-width: 550px;
}

/* Skills container inside each box */
.experience-article-skills {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1rem;
    justify-content: center;
    flex-direction: row;
    text-align: left;
    margin-top: 2rem;
    width: 100%;
}

/* Individual skill items */
.experience-article {
    align-items: center;
    display: flex;
    flex-direction: row;
    flex: 0 1 150px;
    max-width: 12rem;
    gap: 0.7rem;
    padding: 0.5rem;
    transition: transform 0.3s ease;
}

.experience-article:hover {
    transform: translateX(10px);
}

.experience-article .icon {
    cursor: default;
    width: 30px;
    height: 30px;
    object-fit: contain;
    flex-shrink: 0;
}

.experience-article-text {
    display: flex;
    flex-direction: column;
}

.experience-article-text h3 {
    font-size: 1.2rem;
    margin: 0;
    color: rgb(53, 53, 53);
    font-weight: 600;
}

.experience-article-text p {
    font-size: 0.95rem;
    margin: 0;
    color: rgb(85, 85, 85);
}


/* Projects Section */
#projects {
    position: relative;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto;
}

/* Project Card */
.project-card {
    background: white;
    border-radius: 2rem;
    border: rgb(53, 53, 53) 0.1rem solid;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Project Image */
.project-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0;
    display: block;
}

/* Project Content */
.project-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.5rem;
    gap: 0.75rem;
}

/* Project Title */
.project-title {
    color: rgb(53, 53, 53);
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
    text-align: center;
}

/* Project Description */
.project-description {
    color: rgb(85, 85, 85);
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: left;
    flex: 1;
    margin: 0;
}

/* Project Button */
.project-btn {
    font-weight: 600;
    transition: all 300ms ease;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    border: rgb(53, 53, 53) 0.1rem solid;
    background: none;
    color: rgb(53, 53, 53);
    cursor: pointer;
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
}

.project-btn:hover {
    background: rgb(53, 53, 53);
    color: white;
}

/* Contact section */

#contact {
    display: flex;
    justify-content: center;
    flex-direction: column;
    height: 70vh;
}

.contact-info-upper-container {
    display: flex;
    justify-content: center;
    border-radius: 2rem;
    border: rgb(53, 53, 53) 0.1rem solid;
    border-color: rgb(163, 163, 163);
    background: rgb(250, 250, 250);
    margin: 2rem auto;
    padding:  0.5rem;
}

.contact-info-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem;
}

.contact-info-container p {
    font-size: larger;
}

.contact-icon {
    cursor: default;
}

.contact-info {
    cursor: pointer;
}

.email-icon {
    height: 2.5rem;
}

/* Footer section */

footer{
    height: 26vh;
    margin: 0 1rem;
}

footer p {
    text-align: center;
}