@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    scroll-behavior: smooth;
    font-family: "Michroma", sans-serif;
}

table {
  border-collapse: collapse;
  width: 100%;
  background: #fff;
}

table, th, td {
  border: 1px solid black;
  font-size: 1.5rem;
}

th, td {
  padding: 8px;
  text-align: center;
}

:root {
    --bg-color: #F7F9FB;
    --second-bg-color: #A1B5C1;
    --text-color: #1C1F23;
    --main-color: #2c5a85;
    --third-bg-color: #2a2b37;
}

.map {
    width: 100%;
    height: 500px; /* stabil megoldás */
    margin: 2rem auto;
    border: 3px solid #000;
    border-radius: 50px;
    box-shadow: 10px 10px 10px rgba(0,0,0,0.5);
    position: relative;
    display: block;
    z-index: 1;
        }

.michroma-regular {
  font-family: "Michroma", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.highlight-button {
  border: 1px solid #6d92b5;
  background-color: transparent;
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.highlight-button:hover {
  background-color: #fff; /* sötétebb árnyalat hover-re */
  border: 1px solid #000;
  color: transparent;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}


html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    background: var(--bg-color) url("images/242_2.jpg");
    background-repeat: repeat;
    color: var(--text-color)
}

section {
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: var(--bg-color);
    background: transparent;
    border-bottom: var(--second-bg-color) 2px solid;
    backdrop-filter: blur(20px);
    box-shadow: #000 6px 4px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo {
    font-size: 2rem;
    color: var(--text-color);
    font-weight: 600;
    cursor: default;
    opacity: 0;
    animation: slideRight 1s ease forwards;
}


.profile-pic {
  width: min(60vw, 420px);  /* mobilon rugalmas, nagyobb kijelzőn max 220px */
  aspect-ratio: 1 / 1;      /* mindig négyzetes legyen */
  border-radius: 50%;       /* így lesz belőle kör */
  object-fit: cover;        /* ne torzuljon, csak „bezoomoljon” ha kell */
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5);
  border: 3px solid white;
}

.gab {
  display: block;
  text-align: center;
}

.centered-image {
  height: 150px;
  border-radius: 50%;        /* ettől lesz kör alakú */
  object-fit: cover;         /* biztosítja, hogy ne torzuljon */
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5); /* lágy árnyék */
  border: 3px solid white;   /* opcionális: fehér keret */
}


.navbar a {
    display: inline-block;
    font-size: 1.7rem;
    color: var(--text-color);
    margin-left: 4rem;
    transition: .8s;
    opacity: 0;
    animation: slideTop .5s ease forwards;
    animation-delay: calc(.2s * var(--i));
}

.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
}

#menu-icon {
    font-size: 3.6rem;
    color: var(--text-color);
    cursor: pointer;
	display: none;
}

.home {
    display: flex;
    justify-content: center;
    align-items: center;
	gap: 50px; /* <--- ezzel állítod a szöveg és a kép közti távolságot */
	
}

.home-img img {
    
    opacity: 0;
    animation: zoomIn 1s ease forwards, floatImage 4s ease-in-out infinite;
    animation-delay: 2s, 5s;
}

@media (max-width: 600px) {
  .profile-pic {
    width: 150px;
  }
}

.home-content h3 {
    font-size: 3.2rem;
    font-weight: 700;
    opacity: 0;
    animation: slideTop 1s ease forwards;
    animation-delay: .7s;
	
}

.home-content h3:nth-last-of-type(2) {
    margin-bottom: 2rem;
    animation: slideBottom 1s ease forwards;
    animation-delay: .7s;
}

span {
    color: var(--main-color);

}

#current-year {
	color: white;
}

.maps p {
    font-size: 1.6rem;
    text-align: justify;
    opacity: 0;
    animation: slideLeft 1s ease forwards;
    animation-delay: 1s;
	
}

.home-content h1 {
    font-size: 5rem;
    font-weight: 700;
    line-height: 1.7;
    opacity: 0;
    animation: slideRight 1s ease forwards;
    animation-delay: 1s;
	
}

.home-content p {
    font-size: 1.6rem;
	
    text-align: justify;
    opacity: 0;
    animation: slideLeft 1s ease forwards;
    animation-delay: 1s;
	
}

.faq-container {
  width: 100%;
  margin: 0 auto;
}

.faq-page {
  cursor: pointer;
  padding: 1.5rem;
  background-color: #fff;
  border-radius: 10px;
  font-size: 1.8rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: 0.3s;
  padding-left: 3.5rem; /* növeli a szöveg és a + közti távolságot */
  position: relative;
  cursor: pointer;
}

/* --- FAQ ikonok (+/-) --- */

/* Alapértelmezett ikon: + */
.faq-page::before {
  content: "+";
  position: absolute;
  left: 1.5rem;                /* fix hely a bal oldalon */
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;               /* fenntart egy kis helyet a jelnek */
  text-align: center;        /* középre rendezi a jelet */
  font-weight: 700;
  font-size: 2rem;
  color: var(--main-color);
  transition: color 0.2s ease, transform 0.2s ease;
}

/* Aktív (lenyitott) állapot: - */
.faq-page.active::before {
  content: "-";
  color: var(--text-color);
}

.faq-container h1 {
	padding-left: 7rem;  /* nagyobb térköz a + és a szöveg között */
	
}

.faq-container p {
	
	
}

.faq-page:hover {
  background-color: #6d92b5;
}

.faq-body {
  display: none;
  padding: 1.5rem;
  background-color: #e6ebed;
  border-left: 4px solid var(--main-color);
  font-size: 1.6rem;
}

/* Lenyitott (aktív) FAQ háttérszín */
.faq-page.active {
  background-color: #6d92b5 !important;
  color: #fff; /* hogy a szöveg olvasható maradjon */
  transition: background-color 0.3s ease, color 0.3s ease;
}


.faq-page.active + .faq-body {
  display: block;
  
}

/* --- FAQ spacing fix --- */
.faq-container > div {
  margin-bottom: 1rem; /* növeli a bejegyzések közti távolságot */
}

.hr-line {
  border: none;
  height: 1px;
  background-color: #ccc;
  margin: 1rem 0; /* ad egy kis lélegzetet a vonalak köré */
}

.project-meta {
  font-size: 1.4rem;
  color: #555;
  margin: 0.5rem 0 1.5rem 0;
}
.project-meta i {
  color: var(--main-color);
  margin-right: 0.3rem;
}


.footer {
  background-color: #111;
  color: #ccc;
  padding: 20px 10px;
  text-align: center;
  font-size: 14px;
}

.footer a {
  color: #66ccff;
  text-decoration: none;
  margin: 0 5px;
}

.footer a:hover {
  text-decoration: underline;
}

.social-media {
  display: flex;
  justify-content: center; /* Ez vízszintesen középre igazítja */
  gap: 1.5rem;              /* ez helyettesíti a margin-t a .social-media a{}-ban */
}

.social-media a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: .2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: .5s ease;
    opacity: 0;
    animation: slideTop .5s ease forwards;
    animation-delay: calc(.2s * var(--i));
}

.social-media a:hover{
    background: var(--main-color);
    color: var(--second-bg-color);
    box-shadow: 0 0 1rem var(--main-color);
}

.social-media-contact a{
	text-align: center;
    display: inline-flex;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: .2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: .5s ease;
    opacity: 0;
    animation: slideTop .5s ease forwards;
    animation-delay: calc(.2s * var(--i));
}

.social-media-contact a:hover{
    background: var(--main-color);
    color: var(--second-bg-color);
    box-shadow: 0 0 1rem var(--main-color);
}

.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--main-color);
    border-radius: 4rem;
    box-shadow: 0 0 1rem var(--main-color);
    font-size: 1.6rem;
    color: var(--second-bg-color);
    font-weight: 700;
    letter-spacing: .1rem;
    transition: .5s ease;
    opacity: 0;
    animation: slideTop 1s ease forwards;
    animation-delay: 2s;
}

.btn:hover {
    box-shadow: none;
    border:.1rem solid var(--main-color);
    background: var(--second-bg-color);
    color: var(--text-color);
}

.about-img img {
    width: 15vw;
}

.about {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    text-align: justify;
    background: var(--bg-color) url("images/242_2.jpg");
}

.heading {
    text-align: center;
    font-size: 4.5rem;
}

.about-content h2 {
    text-align: left;
    line-height: 1.2;
}

.about-content h3 {
    font-size: 2.6rem;
}

.about-content p {
    font-size: 1.6rem;
    margin: 2rem 0 3rem;
}

.skills h2 {
    margin-bottom: 5rem;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* mindig 3 oszlop desktopon/laptopon */
    gap: 2rem;
}

.skills {
    background: var(--bg-color) url("images/242_2.jpg");
}

.skills-container .skills-box {
    padding: 3rem 2rem 4rem;
    border-radius: 2rem;
    text-align: center;
    border: .1rem solid #999;
    transition: .5s ease;
    background: #fff;
    backdrop-filter: blur(20px);
    box-shadow: #000 6px 4px 8px;
}

.skills-container .skills-box:hover {
    border: .2rem solid var(--main-color);
    transform: scale(1.04);
}

.skills-box i {
    font-size: 7rem;
    color: var(--main-color);
}

.skills-box h3 {
    font-size: 2.6rem;
}

.skills-box p {
    font-size: 1.6rem;
    margin: 1rem 0 3rem;
    text-align: justify;
}

.skills-box img {
    width: 24vw;
}

.projects h2 {
    margin-bottom: 5rem;
}

.projects-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.projects {
    background: var(--bg-color) url("images/242_2.jpg");
}

.projects .projects-box {
    flex: 1 1 30rem;
    padding: 3rem 2rem 4rem;
    border-radius: 2rem;
    text-align: center;
    border: .1rem solid #999;
    transition: .5s ease;
    background: #fff;
    backdrop-filter: blur(20px);
    box-shadow: #000 6px 4px 8px;
}

.projects-container .projects-box:hover {
    border: .2rem solid var(--main-color);
    transform: scale(1.04);
}

.projects-box i {
    font-size: 7rem;
    color: var(--main-color);
}

.projects-box h3 {
    font-size: 2.6rem;
}

.projects-box p {
    font-size: 1.6rem;
    margin: 1rem 0 3rem;
    text-align: justify;
}

.projects-box img {
    width: 24vw;
}

.contact {
    background: var(--bg-color) url("images/242_2.jpg");
}

.contact h2 {
    margin-bottom: 3rem;
}

.contact form {
    max-width: 70rem;
    margin: 1rem auto;
    text-align: center;
    margin-bottom: 3rem;
}

.contact form .input-box {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
}

.contact form .input-box input,
.contact form textarea {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-color);
    border: .1rem solid #999;
    background: transparent;
    backdrop-filter: blur(20px);
    border-radius: 2.5rem;
    margin: .7rem 0;
}

.input-box {
    color: var(--text-color);
}

.contact form .input-box input {
    width: 49%;
}

.contact form textarea {
    resize: none;
}

.contact form textarea::placeholder {
    color: var(--text-color);
}
.contact form .btn {
    margin-top: 2rem;
    cursor: pointer;
}

/* Responsive Design Code */

@media (max-width: 1200px) {
	html {
		font-size: 55%;
	}
}

@media (max-width: 991px) {
	.header {
		padding: 2rem 3%;
	}
	section{
		padding: 10rem 3%;	
	}
	.skills{
		padding: 9rem 3%;
	}
	
	.contact form .input-box input {
		width: 100%;
	}
	
	.footer {
		padding: 2rem 3%;
	}
}

@media (max-width: 991px) {
	#menu-icon {
		display: block;
	}
	.navbar {
		position: absolute;
		top: 100%;
		right: -100%;
		width: 255px;
		min-height: 100vh;
		display: flex;
		flex-direction: column;
		background: white;
		color: black;
		transition: all 0.5s ease;
		
	}
	.navbar a{
		display: block;
		padding: 17px;
		font-size: 22px;
		color: black;
	}
	.navbar.active{
		right: 0;
	}
	.home{
		flex-direction: column;
		text-align: center;
		gap: 50px; /* <--- ezzel állítod a szöveg és a kép közti távolságot */

	}
	.home-content h3{
		font-size: 2.6rem;
	}
	.home-content h1 {
		font-size: 5rem;
	}
	.home-content{
		order: 2;
		margin-left: 1rem;
	}
	.home-img img{
		width: 70vw;
		margin-top: 4rem;
	}
	.about{
		flex-direction: column-reverse;
	}
	.about-img img{
		width: 70vw;
		margin-top: 4rem;
	}
	.skills h2{
		margin-bottom: 3rem;
	}
}

@media (max-width: 617px) {
	.home-img img{
		margin-top: 8rem;
	}
	.about-img img{
		width: 70vw;
		margin-top: 4rem;
	}
}

@media (max-width: 617px) {
	html{
		font-size: 50%;
	}
}

@keyframes slideRight {
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideTop {
    0% {
        transform: translateY(100px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideBottom {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideLeft {
    0% {
        transform: translateX(100px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes zoomIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    100% {
        transform: scale(100%);
        opacity: 1;
    }
}

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

/* --- Hero typed sor rendezése --- */

.hero-typed {
  /* desktopon minden marad block elem, mint eddig */
}

.hero-vagyok {
  color: #1C1F23; /* vagy amilyen a többi szöveged színe */
  white-space: nowrap;
}

@media (max-width: 768px) {
  .hero-vagyok {
    display: block;        /* új sorba kerül */
    margin-top: 0.25rem;   /* kis távolság a typed szöveg és a "vagyok..." között */
    text-align: center;    /* ha középre szeretnéd – ha balról jó, ezt elhagyhatod */
  }
}

.typed-cursor {
  animation: blink 0.8s infinite;
  opacity: 0.75;
}

@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0; }
}

@media (max-width: 768px) {
  .skills-container {
    grid-template-columns: 1fr;  /* mobilon 1 oszlop */
  }

  .skills-container .skills-box {
    max-width: 450px;
    margin: 0 auto;              /* szép, középre igazított kártyák */
  }
}

.skills-box h3 {
  word-wrap: break-word;
  overflow-wrap: break-word;
}