* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
}

html {
    scroll-behavior: smooth;
}

/* ===== PAGE TRANSITION ===== */

body {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

body.fade-out {
    animation: fadeOut 0.5s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
    }
}

/* ===== LUXUS HÁTTÉR ===== */

body {
    font-family: 'Segoe UI', sans-serif;
    color: white;
    min-height: 100vh;
    background: linear-gradient(120deg, #0b1535, #142a66, #1b2f7a);
    background-size: 200% 200%;
    animation: silkMove 15s ease infinite, fadeIn 0.8s ease forwards;
}

@keyframes silkMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ===== HEADER ===== */

.header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 25px 40px;
    backdrop-filter: blur(20px);
    background: rgba(10, 20, 60, 0.6);
    overflow: visible;
    z-index: 100;
}

@media (max-width: 600px) {
    .header {
        justify-content: flex-end;
    }
}

.logo {
    height: 250px;
    width: 100%;
}

.header-logo {
    height: 100%;
    position: absolute;
    left: 10px;
    padding: 10px;
}

.header-logo img {
    height: 100%;
}

.logo img {
    max-height: 100%;
    max-width: 100%;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    background: none;
    border: none;
    color: #dfe6ff;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    transition: color 0.3s ease;
    z-index: 991;
}

.hamburger:hover {
    color: #ffffff;
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
}

.nav {
    display: flex;
    gap: 50px;
}

.nav a {
    text-decoration: none;
    color: #dfe6ff;
    font-size: 18px;
    position: relative;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .header {
        justify-content: center;
    }

    .nav {
        position: fixed;
        top: 75px;
        left: 0;
        right: 0;
        width: 100%;
        flex-direction: column;
        gap: 0;
        background: rgba(10, 20, 60, 0.98);
        backdrop-filter: blur(20px);
        /* border-bottom: 1px solid rgba(201, 169, 97, 0.2); */
        /* padding: 20px 0; */
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 990;
    }

    .nav.active {
        max-height: 300px;
        padding: 20px 0;
        border-bottom: 1px solid rgba(201, 169, 97, 0.2);
    }

    .nav a {
        display: block;
        padding: 15px 40px;
        font-size: 16px;
        border-bottom: 1px solid rgba(201, 169, 97, 0.1);
        transition: background 0.3s ease;
    }

    .nav a:hover {
        background: rgba(201, 169, 97, 0.1);
    }
}

/* ===== HERO BANNER ===== */

.banner {
    width: 100%;
    height: 60vh;
    background: url("banner.jpg") center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner h1 {
    font-size: 48px;
    font-weight: 300;
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.3);
    padding: 20px 40px;
    border-radius: 10px;
}

/* ===== CONTENT SECTION ===== */

.section {
    max-width: 1100px;
    margin: 80px auto;
    padding: 0 30px;
    text-align: center;
}

.section p {
    font-size: 18px;
    line-height: 1.7;
    color: #dfe6ff;
}

.section img {
    width: 100%;
    max-width: 700px;
    margin: 40px auto;
    display: block;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.nav a:hover,
.nav a.active {
    color: #ffffff;
    text-shadow: 0 0 8px #9fbfff;
}

/* ===== REGISZTRÁCIÓ GRID ===== */

.container {
    max-width: 1400px;
    margin: 80px auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.card {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(25px);
    border-radius: 18px;
    overflow: hidden;
    transition: 0.4s;
}

.card:hover {
    transform: translateY(-10px) scale(1.03);
}

.card img {
    width: 100%;
}

.btn {
    display: flex;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    color: #0b1535;
    background: linear-gradient(120deg, #ffffff, #dfe6ff, #9fbfff);
    position: relative;
    overflow: hidden;
    height: 50px;
    text-align: center;
    align-items: center;
    justify-content: center;
    font-weight: 200;
    border-radius: 20px;
}

/* Shine effect */
.btn::before {
    content: "";
    position: absolute;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.9), transparent);
    transform: skewX(-25deg);
    border-radius: 20px;
}

.btn:hover::before {
    animation: shine 1s forwards;
}

@keyframes shine {
    100% {
        left: 200%;
    }
}

/* ===== FORM ===== */

.form-section {
    padding: 80px 20px;
    text-align: center;
    min-height: 500px;
}

.form-wrapper {
    max-width: 900px;
    margin: auto;
    border-radius: 20px;
    max-height: 100%;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1024px) {
    .container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .container {
        grid-template-columns: 1fr;
    }

    .banner h1 {
        font-size: 32px;
    }
}









/* ===== EVENT BLOCKS ===== */

.content {

    max-width: 1200px;
    margin: auto;
    padding: 80px 30px;

}

.block {

    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 120px;

}

.block.reverse {
    flex-direction: row-reverse;
}

.text {
    flex: 1;
    font-size: 30px;
}

.text h2 {
    margin-bottom: 20px;
    font-weight: 500;
}

.text p {
    line-height: 1.7;
    margin-bottom: 20px;
    color: #e5e9ff;
}

.image {
    flex: 1;
}

.image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    transition: 0.5s;
}

.image img:hover {
    transform: scale(1.05);
}


/* ===== SCROLL REVEAL ===== */

.reveal {
    opacity: 0;
    transform: translateY(60px);
    animation: fadeIn 1s linear forwards;
    animation-timeline: view();
    animation-range: entry 0% entry 100%;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ===== MOBILE ===== */

@media(max-width:900px) {

    .block {
        flex-direction: column;
    }

    .block.reverse {
        flex-direction: column;
    }

}



/* ===== HERO SECTION ===== */

.hero {

    position: relative;
    align-items: center;
    flex-direction: column;
    gap: 40px;
    justify-content: flex-start;
    text-align: center;

    background: url("banner.jpg") center/cover no-repeat;
    overflow: hidden;
}

.hero h1 {
    padding: 50px 0;
}

.hero-title {

    font-size: 96px;
    font-weight: 300;
    letter-spacing: 3px;

    background: linear-gradient(90deg,
            #ffffff,
            #dfe6ff,
            #ffffff);

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.registration-title {
    font-size: 31px;
    padding-top: 30px;
    padding-bottom: 50px;
    /* -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; */
}

.image-wrapper img {
    border-radius: 20px;
}

.hero-sub {
    font-size: 36px;
    line-height: 1.6;
    color: #e7ebff;
}

.hero-btn {
    font-size: 22px;
    padding: 22px 60px;
    border-radius: 8px;
}

/* dark overlay */

.hero-overlay {

    position: absolute;
    width: 100%;
    height: 100%;

    background: linear-gradient(to bottom,
            rgba(10, 20, 60, 0.4),
            rgba(10, 20, 60, 0.85));

}

/* content */

.hero-content {

    position: relative;
    z-index: 2;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 50px;
    justify-content: center;
    align-items: center;

}

/* buttons */

.hero-buttons {

    margin-top: 40px;
    display: flex;
    gap: 20px;
    justify-content: center;
    font-size: 26px;

}

.hero-btn {
    font-size: 26px;
    padding: 20px 40px;
}

/* outline button */

.btn-outline {

    padding: 20px 40px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    text-decoration: none;
    color: white;
    border-radius: 6px;
    transition: 0.4s;

}

.btn-outline:hover {

    background: white;
    color: #0b1535;

}

/* ===== PARTICLES ===== */

.particles {

    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;

    background-image:
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 80% 20%, white, transparent),
        radial-gradient(2px 2px at 40% 80%, white, transparent),
        radial-gradient(1px 1px at 70% 50%, white, transparent);

    animation: sparkle 8s linear infinite;

    opacity: 0.6;

}

@keyframes sparkle {

    0% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-20px)
    }

    100% {
        transform: translateY(0)
    }

}

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

/* ===== MOBILE HERO ===== */

@media(max-width:768px) {

    .hero-title {
        font-size: 42px;
    }

    .hero-sub {
        font-size: 18px;
    }

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

}

/* ===== TIMELINE ===== */

.timeline {

    max-width: 1100px;
    margin: 120px auto;
    padding: 0 30px;

}

.timeline-title {

    text-align: center;
    font-size: 36px;
    margin-bottom: 80px;

}

.timeline-container {

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;

}

.timeline-day h3 {

    margin-bottom: 40px;
    font-weight: 500;

}

/* timeline item */

.timeline-item {

    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;

}

.timeline-dot {

    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: white;
    margin-top: 6px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);

}

.timeline-content h4 {

    margin-bottom: 6px;
    font-weight: 500;

}

.timeline-content p {

    color: #dfe6ff;
    font-size: 15px;

}

/* ===== MOBILE ===== */

@media(max-width:900px) {

    .timeline-container {

        grid-template-columns: 1fr;

    }
}

iframe {
    width: 100%;
}

/* ===== MASTERS PAGE ===== */

/* Masters Hero Section */
.masters-hero {
    position: relative;
    /* min-height: 60vh; */
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, rgba(10, 20, 60, 0.4), rgba(30, 50, 120, 0.3)), url("images/banner.jpg") center/cover no-repeat;
    overflow: hidden;
}

.masters-hero-content {
    gap: 20px !important
}

.masters-subtitle {
    font-size: 24px;
    letter-spacing: 4px;
    color: #c9a961;
    font-weight: 300;
    margin-bottom: 20px;
}

.masters-title {
    font-size: 120px;
    font-weight: 300;
    letter-spacing: 8px;
    background: linear-gradient(90deg, #c9a961, #dfe6ff, #c9a961);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    line-height: 1.2;
}

.masters-description {
    font-size: 18px;
    letter-spacing: 2px;
    color: #dfe6ff;
    font-weight: 300;
    line-height: 1.6;
}

/* Masters Section */
.masters-section {
    max-width: 1400px;
    margin: 100px auto;
    padding: 0 30px;
}

.masters-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

/* Master Card Styling */
.master-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(201, 169, 97, 0.4);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: row;
}

@media (max-width: 768px) {
    .master-card {
        flex-direction: column;
    }
}

.master-card:hover {
    transform: translateY(-15px);
    border-color: rgba(201, 169, 97, 0.8);
    box-shadow: 0 20px 60px rgba(201, 169, 97, 0.2);
}

.master-image {
    width: 40%;
    height: 100%;
    overflow: hidden;
    border-bottom: 1px solid rgba(201, 169, 97, 0.3);
}

@media (max-width: 768px) {
    .master-image {
        width: 100%;
    }
}

.master-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

@media (max-width: 768px) {
    .master-image img {
        object-position: top;
    }
}


.master-card:hover .master-image img {
    transform: scale(1.05);
}

.master-content {
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 60%;
}

@media (max-width: 768px) {
    .master-content {
        width: 100%;
    }
}

.master-name {
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 8px;
    line-height: 1.3;
    color: #dfe6ff;
}

.master-surname {
    font-weight: 600;
    color: #c9a961;
}

.master-title {
    font-size: 13px;
    letter-spacing: 3px;
    color: #c9a961;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.master-description {
    font-size: 14px;
    color: #dfe6ff;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

/* Master Features/Icons */
.master-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 25px;
}

.master-card-footer {
    display: none;
    width: 100%;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.feature img {
    width: 32px;
    height: 32px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.master-card:hover .feature img {
    opacity: 1;
}

.feature span {
    font-size: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #dfe6ff;
    font-weight: 300;
}

/* Master Gallery */
.master-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 25px;
}

.master-gallery img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.master-gallery img:hover {
    transform: scale(1.05);
}

/* Master Button */
.master-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 2px;
    font-weight: 600;
    padding: 15px 25px;
    border: 1px solid rgba(201, 169, 97, 0.6);
    color: #c9a961;
    background: rgba(201, 169, 97, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.master-btn:hover {
    background: rgba(201, 169, 97, 0.3);
    border-color: #c9a961;
    text-shadow: 0 0 10px rgba(201, 169, 97, 0.5);
}

/* CTA Section */
.masters-cta {
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, rgba(10, 20, 60, 0.5), rgba(30, 50, 120, 0.4)), url("images/banner.jpg") center/cover no-repeat;
    overflow: hidden;
    margin-top: 80px;
}

.masters-cta-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 20, 60, 0.3), rgba(10, 20, 60, 0.85));
    z-index: 1;
}

.masters-cta-content {
    position: relative;
    z-index: 2;
    padding: 40px;
}

.masters-cta-content h2 {
    font-size: 48px;
    letter-spacing: 3px;
    font-weight: 300;
    margin-bottom: 15px;
    color: #ffffff;
}

.masters-cta-content p {
    font-size: 32px;
    letter-spacing: 2px;
    font-weight: 300;
    margin-bottom: 40px;
    color: #dfe6ff;
}

.masters-cta-content p .highlight {
    color: #c9a961;
    font-weight: 600;
}

/* CTA Button */
.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 16px;
    letter-spacing: 2px;
    font-weight: 600;
    padding: 18px 50px;
    background: linear-gradient(120deg, #c9a961, #dfe6ff, #c9a961);
    color: #0b1535;
    border-radius: 25px;
    transition: all 0.4s ease;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.cta-btn::before {
    content: "";
    position: absolute;
    left: -100%;
    width: 50%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    transform: skewX(-25deg);
    border-radius: 25px;
    transition: left 1s ease;
}

.cta-btn:hover::before {
    left: 200%;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(201, 169, 97, 0.4);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .masters-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .masters-title {
        font-size: 80px;
    }
}

@media (max-width: 860px) {
    .masters-container {
        grid-template-columns: 1fr;
    }

    .masters-title {
        font-size: 30px;
    }

    .masters-description {
        font-size: 16px;
    }

    .masters-cta-content h2 {
        font-size: 32px;
    }

    .masters-cta-content p {
        font-size: 22px;
    }
}

/* ===== MODAL POPUP ===== */

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-backdrop.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: rgba(15, 25, 80, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(201, 169, 97, 0.3);
    border-radius: 25px;
    padding: 40px;
    max-width: 1200px;
    width: 90%;
    overflow-y: auto;
    position: absolute;
    top: 50px;
    animation: modalSlideIn 0.3s ease;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.8);
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: rgba(201, 169, 97, 0.2);
    border: 1px solid rgba(201, 169, 97, 0.5);
    color: #c9a961;
    font-size: 28px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.modal-close:hover {
    background: rgba(201, 169, 97, 0.4);
    border-color: #c9a961;
    transform: rotate(90deg);
}

.modal-master-card {
    display: grid;
    gap: 40px;
}

.modal-master-image {
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
}

.modal-master-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 15px;
}

.modal-master-content {
    display: flex;
    flex-direction: column;
}

.modal-master-content .master-name {
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 10px;
    line-height: 1.2;
    color: #dfe6ff;
}

.modal-master-content .master-name .master-surname {
    font-weight: 600;
    color: #c9a961;
}

.modal-master-content .master-title {
    font-size: 15px;
    letter-spacing: 3px;
    color: #c9a961;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.modal-master-content .master-description {
    font-size: 15px;
    color: #dfe6ff;
    line-height: 1.7;
    margin-bottom: 30px;
}

.modal-master-content .master-features {
    margin-bottom: 30px;
}

.modal-master-content .master-gallery {
    margin-bottom: 0;
}

/* Responsive Modal */
@media (max-width: 900px) {
    .modal-content {
        padding: 30px 20px;
        max-width: 95%;
    }

    .modal-master-card {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .modal-master-content .master-name {
        font-size: 24px;
    }

    .modal-close {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
}

@media (max-width: 600px) {
    .modal-content {
        padding: 20px 15px;
        width: 95%;
        border-radius: 15px;
    }

    .modal-master-card {
        grid-template-columns: 1fr;
    }

    .modal-master-content .master-name {
        font-size: 20px;
    }

    .modal-master-content .master-description {
        font-size: 14px;
    }

    .modal-close {
        width: 35px;
        height: 35px;
        font-size: 20px;
        top: 15px;
        right: 15px;
    }
}