html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-image: url('/images/bg.jpg');
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat; 
    color: #000;
}

/* Stylowanie headera */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 40px;
    background-color: transparent;
    position: fixed;
    position: relative;
    z-index: 100;
}

header.active {
    background-color: #D9B1D2;
}

/* Hamburger menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 20px;
    height: 20px;
    cursor: pointer;
    position: relative;
    z-index: 200; 
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #000;
    border-radius: 3px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.hamburger:hover span {
    background-color: #60A7FF;
}

/* Zmiana na "X" */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0; 
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: auto;
    background-color: #D9B1D2;
    color: #000; 
    z-index: 100;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.3s ease;
    padding: 10px 20px;
}

.mobile-menu.active {
    display: block;
    max-height: 300px;
    opacity: 1;
}

header img {
    height: 110px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Stylowanie dla menu desktopowego */
.desktop-menu {
    display: flex;
    align-items: center;
    justify-content: center;
}

.desktop-menu ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 15px;
    padding: 0;
}

.desktop-menu ul li a {
    text-decoration: none;
    color: #000; 
    font-weight: bold;
    font-size: 1rem;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    position: relative;
    padding-bottom: 4px;
}

.desktop-menu ul li a:hover {
    color: #8B5E3B;
}

/* Efekt podkreślenia na hover */
.desktop-menu ul li a:hover::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #8B5E3B;
    animation: underlineEffect 0.3s ease-out;
}

/* Animacja dla linii podkreślenia */
@keyframes underlineEffect {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

/* Przyciski */
.apply-button {
    background-color: transparent;
    color: #8B5E3B; 
    border: 2px solid #CFAF9E; 
    border-radius: 20px;
    padding: 10px 20px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border 0.3s ease;
}

.apply-button:hover {
    background-color: #F5E3DF; 
    border: 2px solid #D9B1D2; 
    color: #6A3E2F; 
}

.discord-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background-color: transparent;
    border: 2px solid #60A7FF;
    border-radius: 50%;
    color: #000;
    font-size: 1.2rem;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.discord-icon:hover {
    background-color: #60A7FF;
    border: 2px solid #D9B1D2;
    color: #fff;
}

/* Linki w menu mobilnym */
.mobile-menu .nav-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 0;
    padding: 10px 0;
}

.mobile-menu .nav-links li {
    list-style: none;
}

.mobile-menu .nav-links li a {
    font-size: 1rem;
    text-decoration: none;
    color: #000; 
    padding: 10px 0;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.mobile-menu .nav-links li a:hover {
    background-color: #60A7FF;
    color: #fff;
}

@media (max-width: 480px) {
    header {
        padding: 20px 15px;
    }
    .apply-button {
        text-align: center;
    }

    .discord-icon {
        font-size: 1.2rem;
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 320px) {
    header {
        padding: 15px 10px;
    }
}

/* Efekty responsywne */
@media (max-width: 768px) {
    header {
        padding: 30px 20px;
    }

    .header-right {
        gap: 10px;
    }

    .apply-button {
        font-size: 0.9rem;
        padding: 6px 12px;
    }

    .discord-icon {
        font-size: 1.2rem;
        width: 35px;
        height: 35px;
    }

    .hamburger {
        display: flex;
    }

    .desktop-menu {
        display: none;
    }
}

/* Animacje */
@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.main {
    margin: 0 auto;
    max-width: 1500px;
}

.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px;
    gap: 50px;
    text-align: left;
}

.hero .text {
    flex: 1;
    font-size: 1.25rem;
    line-height: 1.6;
    color: #8B5E3B; 
}

.hero .image {
    flex: 1;
    background-color: #D9B1D2;
    height: 500px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

@media (max-width: 768px) {
    .header {
        padding: 0px 0px;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .hero .text {
        font-size: 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero .discord-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

.hero h1 {
    font-size: 3rem;
    margin: 20px 0;
    color: #8B5E3B; 
}

@media screen and (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
}

.hero .highlight {
    position: relative;
    display: inline-block;
    font-weight: bold;
    color: #8B5E3B; 
}

.hero .highlight::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0%;
    height: 6px;
    background: linear-gradient(90deg, #D9B1D2, #CFAF9E); 
    border-radius: 3px;
    box-shadow: 0 2px 5px rgba(139, 94, 59, 0.3);
    animation: slideIn 0.6s forwards;
}

/* Animacja przesuwającej się linii */
@keyframes slideIn {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}


.hero p {
    font-size: 1.25rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 20px 0;
    color: #000; 
}

.hero .discord-button {
    margin-bottom: 80px;
    background-color: #0b0317;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    font-size: 1rem;
    margin-top: 60px;
    transition: all 0.3s ease;
    border: 2px solid #D9B1D2;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hero .discord-button:hover {
    background-color: #D9B1D2;
    color: #fff;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    border: 2px solid #60A7FF;
}

.content-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px;
    gap: 40px;
}

.content-section span {
    color: #60A7FF;
}

.content-section .text {
    flex: 1;
    font-size: 1.25rem;
    line-height: 1.6;
    color: #000; 
}

.content-section .text h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
    color: #8B5E3B;
}

.content-section .button-container {
    display: flex;
    justify-content: flex-start;
}

.link-regulamin {
    color: #000;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.link-regulamin::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #60A7FF;
    transition: width 0.3s ease;
}

.link-regulamin:hover {
    color: #60A7FF;
}

.link-regulamin:hover::after {
    width: 100%;
}

@media screen and (max-width: 768px) {
    .content-section .button-container {
        display: none;
    }
}

.content-section .apply-button {
    display: inline-block;
    margin-right: 10px;
    padding: 10px 20px;
    background-color: transparent;
    color: #8B5E3B; 
    border: 2px solid #CFAF9E;
    border-radius: 20px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border 0.3s ease;
}

.content-section .apply-button:hover {
    background-color: #F5E3DF; 
    color: #6A3E2F; 
    border: 2px solid #D9B1D2; 
}


@media screen and (max-width: 768px) {
    .content-section {
        flex-direction: column;
    }

    .content-section .text,
    .content-section .image {
        flex: none;
        width: 100%;
        text-align: center;
    }
    .content-section .text h2 {
        font-size: 1.9rem;
    }
}

.content-section .image {
    flex: 1;
    background-color: #D9B1D2;
    height: 500px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #60A7FF;
    font-size: 1.5rem;
    font-weight: 700;
    overflow: hidden;
}

.content-section .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .content-section {
        flex-direction: column;
    }

    .content-section .text,
    .content-section .image {
        flex: none;
        width: 100%;
    }
}

/* Sekcja */
.join-section {
    background-color: transparent;
    color: #8B5E3B; 
    text-align: center;
    padding: 50px 20px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Nagłówek sekcji */
.join-section h2 {
    font-size: 3em;
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #8B5E3B;
}

.join-section p {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2em;
    line-height: 1.7;
    margin-bottom: 30px;
    max-width: 600px;
    text-align: center;
    color: #000;
}

/* Kontener kart korepetytorów */
.tutor-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 30px;
}

/* Karta korepetytora */
.tutor-card {
    background: #FAF3E0;
    border: 2px solid #8B5E3B; 
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    width: 280px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tutor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.15);
}

/* Zdjęcie korepetytora */
.tutor-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #8B5E3B;
}

/* Imię i specjalizacja */
.tutor-card h3 {
    font-size: 1.4em;
    margin: 10px 0 5px;
    color: #8B5E3B;
}

.tutor-card .specialization {
    font-size: 1rem;
    color: #6D4C2F; 
    font-weight: 600;
}

/* Cena */
.tutor-card .price {
    margin: 10px 0;
    font-size: 1rem;
    color: #8B5E3B;
}

.tutor-card .price span {
    font-weight: bold;
    color: #6D4C2F;
}

/* Kontakt */
.tutor-card .contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #8B5E3B;
    color: #fff;
    padding: 8px 15px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.tutor-card .contact i {
    font-size: 1.2rem;
}

.tutor-card .contact:hover {
    background-color: #6D4C2F;
}

/* Metody nauczania */
.teaching-method {
    font-size: 0.9rem;
    margin-top: 10px;
    color: #6D4C2F;
    font-weight: bold;
    text-align: center;
}

.teaching-method i {
    color: #8B5E3B;
    margin-right: 5px;
    font-size: 1.1rem;
}



@media screen and (max-width: 768px) {
    .join-section h2 {
        font-size: 2.5em;
    }

    .join-section p {
        font-size: 1em;
        padding: 0 20px;
    }
}


/* Kontener przycisków */
.button-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

footer {
    background-color: transparent;
    color: #8B5E3B; 
    padding: 20px 15px;
    border-top: 1px solid #8B5E3B; 
    font-size: 0.9rem;
}

/* Kontener stopki */
.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

/* Lewa sekcja */
.footer-left {
    flex: 1;
}

/* Prawa sekcja */
.footer-right {
    flex: 2;
    text-align: right;
}

/* Logo w stopce */
.footer-logo {
    width: 120px;
}

/* Tekst w stopce */
.footer-right p {
    margin: 5px 0;
    font-size: 0.8rem;
    color: #8B5E3B; 
    line-height: 1.5;
}

/* Linki w stopce */
.footer-links {
    margin-top: 15px;
    font-size: 0.9rem;
    font-weight: bold;
}

.footer-links a {
    color: #8B5E3B; 
    text-decoration: none;
    margin-right: 20px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.footer-links a:last-child {
    margin-right: 0;
}

.footer-links a:hover {
    color: #CFAF9E; 
}

/* Dolna część stopki */
.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    margin-top: 20px;
    text-align: center;
}

/* Podkreślenie ważnego tekstu */
.footer-bottom span {
    color: #8B5E3B;
    font-weight: bold;
}

/* Tekst dolnej części stopki */
.footer-bottom p {
    color: #A67C64; 
    font-weight: bold;
}

/* Linki w dolnej części */
.footer-bottom a {
    color: #CFAF9E; 
    text-decoration: none;
    margin: 0 5px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #D9B1D2; 
}


/* Responsywność */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-right {
        text-align: center;
        margin-top: 15px;
    }

    .footer-links a {
        margin-right: 10px;
    }
}

/* Stylizacja scrollbara */
::-webkit-scrollbar {
    width: 12px;
}

/* Pasek przewijania (kciuk) */
::-webkit-scrollbar-thumb {
    background-color: #8B5E3B;
    border-radius: 6px;
    border: 3px solid transparent;
    background-clip: content-box;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #6D4C2F; 
    transform: scale(1.1);
}

/* Tło paska przewijania */
::-webkit-scrollbar-track {
    background-color: #3F2B1D; 
    border-radius: 6px;
    border: 3px solid #2E1E14;
}

::-webkit-scrollbar-track-piece {
    border-radius: 6px;
}


/* Animacje */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes buttonHover {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes glow {
    0% {
        box-shadow: 0 0 5px #6E44FF, 0 0 10px #6E44FF;
    }
    100% {
        box-shadow: 0 0 20px #6E44FF, 0 0 40px #6E44FF;
    }
}

.hero {
    animation: fadeIn 1.2s ease-in-out;
}

.hero .discord-button {
    position: relative;
    overflow: hidden;
}

.desktop-menu ul li {
    animation: fadeIn 0.6s ease-in-out;
    animation-delay: calc(0.1s * var(--order));
    animation-fill-mode: backwards;
}

.desktop-menu ul li:nth-child(1) {
    --order: 1;
}

.desktop-menu ul li:nth-child(2) {
    --order: 2;
}

.desktop-menu ul li:nth-child(3) {
    --order: 3;
}

header .mobile-menu {
    transition: background-color 0.5s ease, box-shadow 0.3s ease;
}

header.active .mobile-menu.active {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.content-section {
    animation: fadeIn 1s ease-in-out;
}
