@import url('https://fonts.googleapis.com/css2?family=Public+Sans:ital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Public Sans", sans-serif;
}

:root {
    --primary: #3FAFDF;
    --secondary: #90C767;
    --black: #000;
    ---white: #fff;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1em 2em;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    gap: 2em;
}

.nav-left {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 5em;
    height: auto;
}

.nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1em;
}

.btn-camp-registration,
.btn-member-registration,
.btn-members,
.btn-list {
    padding: 0.8em 1.5em;
    border-radius: 0.5em;
    font-size: 0.95em;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-block;
}

.btn-camp-registration,
.btn-member-registration {
    background: var(--primary);
    color: white;
}

.btn-camp-registration:hover,
.btn-member-registration:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(63, 175, 223, 0.3);
}

.btn-members {
    background: #f0f0f0;
    color: var(--black);
    border: 2px solid var(--primary);
}

.btn-members:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(63, 175, 223, 0.3);
}

.btn-members.active {
    background: var(--primary);
    color: white;
}

.btn-member-registration.active {
    background: var(--secondary);
    box-shadow: 0 4px 12px rgba(63, 175, 223, 0.3);
}

.btn-list {
    background: var(--secondary);
    color: white;
}

.btn-list:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(144, 199, 103, 0.3);
}

.btn-logout {
    padding: 0.8em 1.5em;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 0.5em;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-logout:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.btn-camp-registration:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(63, 175, 223, 0.3);
}

.btn-list {
    background: var(--secondary);
    color: white;
}

.btn-list:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(144, 199, 103, 0.3);
}

.header figure img {
    width: 8em;
}

.membercta {
    text-decoration: none;
    background: var(--primary);
    padding: 1em;
    color: var(---white);
    font-size: 1em;
    border-radius: .5em;
    transition: .3s ease-in-out;
}

.membercta:hover {
    background: var(--secondary);
}

/* hero section ------------------------------ */
.heroSection {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 1em 2em;
    flex-wrap: wrap;
}

/* hero content css --------------------- */
.heroSection .content {
    display: flex;
    flex-direction: column;
    gap: 1em;
    align-items: start;
    justify-content: start;
    flex: 1 1 35%;
}

.heroSection .content h1 {
    font-size: 3em;
    color: var(--primary);
    font-weight: 900;
    line-height: 100%;
}

.heroSection .content h1 span {
    color: var(--black);
} 

/* swiper css --------------------- */
.swiper {
    width: 100%;
    height: 100%;
    flex: 1 1 60%;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 65vh;
    object-fit: cover;
    border-radius: 1em;
}

/* hero section ------------------------------ */
footer {
    text-align: center;
    padding: 1em;
    background: #333;
    color: var(---white);
    margin-top: 2em;
}

footer a {
    text-decoration: none;
    color: var(--primary);
}

/* ========== RESPONSIVE DESIGN ========== */

/* Mobile First - Small Phones (320px - 480px) */
@media (max-width: 480px) {
    .header {
        padding: 0.75em 1em;
        flex-direction: column;
        gap: 1em;
    }

    .logo img {
        width: 4em;
    }

    .nav-center {
        width: 100%;
        flex-direction: column;
    }

    .nav-center a {
        width: 100%;
        text-align: center;
        padding: 0.6em 1em !important;
        font-size: 0.85em !important;
    }

    .nav-right {
        width: 100%;
        gap: 0.5em;
        flex-direction: column;
    }

    .nav-right button,
    .nav-right a {
        width: 100%;
        padding: 0.6em 1em !important;
        font-size: 0.85em !important;
    }

    /* Hero Section */
    .heroSection {
        padding: 1em;
        gap: 1em;
        flex-direction: column;
    }

    .heroSection .content {
        flex: 1 1 100%;
        gap: 0.75em;
    }

    .heroSection .content h1 {
        font-size: 1.5em;
        line-height: 120%;
    }

    .heroSection .content p {
        font-size: 0.9em;
    }

    .membercta {
        padding: 0.75em 1em;
        font-size: 0.9em;
        width: 100%;
        text-align: center;
    }

    .swiper {
        flex: 1 1 100%;
    }

    .swiper-slide img {
        height: 40vh;
    }

    footer {
        font-size: 0.85em;
        padding: 0.75em;
    }
}

/* Tablets (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .header {
        padding: 1em 1.5em;
        gap: 1.5em;
    }

    .logo img {
        width: 4.5em;
    }

    .nav-center {
        flex-direction: column;
        gap: 0.5em;
    }

    .nav-center a {
        padding: 0.7em 1.2em !important;
        font-size: 0.9em !important;
    }

    .nav-right {
        gap: 0.75em;
    }

    /* Hero Section */
    .heroSection {
        padding: 1.5em;
        gap: 1.5em;
        flex-direction: column;
    }

    .heroSection .content {
        flex: 1 1 100%;
        gap: 1em;
    }

    .heroSection .content h1 {
        font-size: 2em;
        line-height: 110%;
    }

    .heroSection .content p {
        font-size: 0.95em;
    }

    .membercta {
        padding: 0.8em 1.2em;
        font-size: 0.95em;
        width: auto;
    }

    .swiper {
        flex: 1 1 100%;
    }

    .swiper-slide img {
        height: 50vh;
    }

    footer {
        font-size: 0.9em;
    }
}

/* Medium Screens (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .header {
        padding: 1.2em 2em;
        gap: 1.5em;
    }

    .logo img {
        width: 5em;
    }

    .nav-center {
        flex-direction: row;
        gap: 1em;
    }

    .nav-center a {
        padding: 0.75em 1.3em !important;
        font-size: 0.95em !important;
    }

    /* Hero Section */
    .heroSection {
        padding: 2em;
        gap: 2em;
        flex-direction: row;
    }

    .heroSection .content {
        flex: 1 1 45%;
        gap: 1.2em;
    }

    .heroSection .content h1 {
        font-size: 2.5em;
        line-height: 110%;
    }

    .heroSection .content p {
        font-size: 1em;
    }

    .membercta {
        padding: 0.9em 1.5em;
        font-size: 1em;
    }

    .swiper {
        flex: 1 1 50%;
    }

    .swiper-slide img {
        height: 60vh;
    }
}

/* Large Screens (1025px - 1440px) */
@media (min-width: 1025px) and (max-width: 1440px) {
    .header {
        padding: 1.2em 2.5em;
        gap: 2em;
    }

    .logo img {
        width: 5.5em;
    }

    /* Hero Section */
    .heroSection {
        padding: 2.5em;
        gap: 2.5em;
    }

    .heroSection .content {
        flex: 1 1 40%;
    }

    .heroSection .content h1 {
        font-size: 2.8em;
    }

    .swiper {
        flex: 1 1 55%;
    }

    .swiper-slide img {
        height: 65vh;
    }
}

/* Extra Large Screens (1441px and above) */
@media (min-width: 1441px) {
    .header {
        padding: 1.5em 3em;
        gap: 2.5em;
    }

    .logo img {
        width: 6em;
    }

    /* Hero Section */
    .heroSection {
        padding: 3em;
        gap: 3em;
        max-width: 1600px;
        margin: 0 auto;
    }

    .heroSection .content {
        flex: 1 1 35%;
    }

    .heroSection .content h1 {
        font-size: 3em;
    }

    .swiper {
        flex: 1 1 60%;
    }

    .swiper-slide img {
        height: 70vh;
    }
}

/* Orientation Changes */
@media (orientation: landscape) and (max-height: 600px) {
    .heroSection .content h1 {
        font-size: 1.8em;
    }

    .swiper-slide img {
        height: 40vh;
    }
}

/* Touch Device Optimization */
@media (hover: none) and (pointer: coarse) {
    .btn-camp-registration,
    .btn-member-registration,
    .btn-members,
    .btn-list,
    .btn-logout,
    .membercta {
        padding: 0.9em 1.4em;
        min-height: 44px;
        min-width: 44px;
    }

    button,
    a {
        -webkit-tap-highlight-color: transparent;
    }
}
