html { box-sizing: border-box;}
*, *:before, *:after {
  box-sizing: inherit;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
}

.back-home {
    position: fixed;
    top: 35px;
    left: 24px;

    z-index: 999;

    font-family: "Syne", sans-serif;
    font-size: 0.75rem;
    letter-spacing: 2px;

    color: #f2ede6;
    text-decoration: none;

    transition: all 0.3s ease;
}

.back-home:hover {
    color: #bada33;
}

/* HERO SECTION */

.container {
width: 90%;
max-width: 1200px;
margin: 0 auto;
}

header {
    min-height: 100vh;
    background-image: url("images/hero/herowoman.jpg");
    background-size: cover;
    background-position: bottom;
    background-repeat: no-repeat;
}


.top-bar {
    font-family: 'Encode Sans SC', sans-serif;
    font-size: 18px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    font-size: 14px;
    letter-spacing: 1px;
    color: white;
    border-radius: 0px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
}

nav {
    font-family: 'Encode Sans SC', sans-serif;
    font-size: 18px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    padding: 12px 30px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 40px;
} 

nav a {
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 1px;
    transition: 0.3s ease;
}

nav a:hover {
    color:rgba(74, 62, 46, 0.54)
}

.logo {
    position: absolute;
    left: 10%;
}
.logo img {
    height: 130px;
    transform: translateY(5px);

}


.main-nav {
    position: relative;
    padding-top: 30px;
}

.main-nav .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

nav ul {
    display: flex;
    gap: 35px;
    list-style: none;
    padding: 0;
    margin: 0px;
}

.hero-button-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(100vh - 150px);

}

.hero-button {
    font-family: 'Encode Sans SC', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: white;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: none;
    padding: 15px 30px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s;
}

.hero-button:hover {
    background-color:rgba(74, 62, 46, 0.54) ;
    transform: translateY(-2px);
}

/* ABOUT US SECTION */

.section1 {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: #EFE8DF;
}

.section1 img {
    width: 50%;
    height: 100vh;
    object-fit: cover;
}

.section1 .about-text {
    width: 50%;
    padding: 80px;
    max-width: 600px;
}


.about-text {
    max-width: 500px;
   padding: 60px;
}

.about-text h1 {
    text-align: left;
    font-family: 'Encode Sans SC', sans-serif;
    font-size: 48px;
    letter-spacing: 3px;
    margin-bottom: 40px;
    font-weight: 300;
    color:#5C6F68;
}

.about-text h1::after {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background-color: #5C6F68;
    margin-top: 15px;
}

.about-text p {
    font-family: 'Encode Sans', sans-serif;
    color: #4a3e2e;
    font-size: 18px;
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 50px;
}

.about-text p:first-of-type {
    font-size: 20px;
    font-weight: 400;
}

/* CLASSES SECTION */

.section2 {
    background-color: #EFE8DF;
    padding: 80px 0;
    margin: 0 auto;
}

.classes {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.class-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden; 
    transition: 0.4s;

    height: 320px;
    perspective: 1000px;
}

.class-card:hover {
    transform: translateY(-8px);
}

.class-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block; 
}

.class-title {
    position: absolute;
    bottom: 20px;
    left: 25px;

    font-family: 'Encode Sans SC', sans-serif;
    font-size: 22px;
    letter-spacing: 2px;
    z-index: 2;
    color:white;
}

.card-front {
    position: relative;
    overflow: hidden;
    transition: 0.6s;
}

.card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.class-card:hover img {
    transform: scale(1.06);
}

.card-front::after {
    content:"";
    position:absolute;
    inset: 0;
    background:rgba(0,0,0,0.25);
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s ease;
    transform-style: preserve-3d;
}

.class-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    overflow: hidden;
    backface-visibility: hidden;
}

.card-back {

    transform: rotateY(180deg);
    background: rgba(255,255,255,0.35);
    backdrop-filter: blur(12px);
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 15px;
}

.card-back p {
    font-family: 'Encode Sans', sans-serif;
    color: #4a3e2e;
    font-size: 16px;
    font-weight: 300;
}

.card-back h3 {
    text-align: left;
    font-family: 'Encode Sans SC', sans-serif;
    font-size: 22px;
    letter-spacing: 3px;
    margin-bottom:20px;
    font-weight: 300;
    color:#5C6F68;
}

.book-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 22px;
    border-radius: 30px;
    text-decoration: none;
    font-family: 'Encode Sans SC', sans-serif;
    font-size: 14px;
    letter-spacing: 1px;
    color: #4A3E2E;
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(6px);
    transition: 0.3s;
}

.book-btn:hover {
    background: rgba(74,62,46,0.7);
    color: white;
    transform: translateY(-2px);
}

/* BOOKING SECTION */

.section-booking {
    position: relative;
    background: url("images/booking-background.jpg");
    background-size: cover;
    background-position: bottom;

    padding: 120px 0;
    text-align: center;
    overflow: hidden;
}

.booking-wrapper {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.section-booking::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.booking-wrapper h2 {
    font-family: 'Encode Sans SC', sans-serif;
    font-size: 44px;
    font-weight: 300;
    letter-spacing: 4px;
    color: #5C6F68;
    margin-bottom: 30px;
}

.booking-wrapper p {
    font-family: 'Encode Sans', sans-serif;
    font-size: 18px;
    color: #4a3e2e;
    line-height: 1.7;
    margin-bottom: 40px;
}

.booking-btn {
    padding: 16px 36px;
    border-radius: 40px;
    text-decoration: none;

    font-family: 'Encode Sans', sans-serif;
    font-size: 15px;
    letter-spacing: 2px;

    background: #5C6F68;
    color: white;
    transition: 0.3s;
}

.booking-btn:hover {
    background: #4a3e2e;
    transform: translateY(-3px);
}

.booking-form {
    margin-top: 40px;
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.booking-form select {
    padding: 14px 20px;
    border-radius: 30px;
    border: none;

    font-family: 'Encode Sans', sans-serif;
    font-size: 16px;
    background:  #EFE8DF;
    min-height: 22px;
}

.card-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.booking-form select{

    padding:14px 18px;
    border-radius:25px;
    border:none;   
    background:white;   
    font-family:'Encode Sans', sans-serif;   
    font-size:16px;   
    color:#5C6F68;
    margin-right:15px;
    cursor:pointer; 
    }

/* ONLINE COACHING SECTION */

.online {
    background: #F5F1EC;
    padding: 120px 0;
}

.online-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 100px;
}

.online-text {
    width: 50%;
}

.online img{
    width: 50%;
    border-radius: 20px;
    object-fit: cover;
}

.online h2 {
    font-family: 'Encode Sans SC', sans-serif;
    font-weight: 300;
    letter-spacing: 3px;
    color: #5C6F68;
    font-size: 44px;
    margin-bottom: 25px;
}

.online p {
    font-family: 'Encode Sans', sans-serif;
    color: #4A3E2E;
    margin-bottom: 20px;
    line-height: 1.7;
}

.online-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 14px 28px;
    border-radius: 30px;
    background: #5C6F68;
    color: white;
    text-decoration: none;
    transition: 0.3s;
    font-family: 'Encode Sans', sans-serif;
    font-size: 15px;
    letter-spacing: 2px;
}

.online-btn:hover {
    transform: translateY(-3px);
    background-color: #4A3E2E;
}

.online-image {
    position: relative;
    width: 50%;

    transition: 0.4s ease;
}

.online-image:hover {
    transform: translateY(-6px);
}

.online-image img {
    width: 100%;
    border-radius: 20px;
    display: block;

    transition: 0.5s ease;
}

.online-image:hover img{
    transform: scale(1.05);
}

.online-glass {
    position: absolute;
    bottom: 30px;
    left: 30px;
    padding: 18px 28px;
    border-radius: 20px;

    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border: 1px solid rgba(255, 255, 255, 0.6);

    font-family: 'Encode Sans SC', sans-serif;
    letter-spacing: 2px;
    color: #4A3E2E;

    transition: 0.4s ease;
}

.online-image:hover .online-glass{
    background-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

/* FOOTER */

.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        rgba(92, 111, 104, 0.4)
    );

    margin-top: 12px;
}

.footer{
    background: #5C6F68;
    color: white;

    padding-top: 60px;
}

.footer-wrapper{
    max-width: 1200px;
    margin: 0 auto;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 30px;
}

.footer-logo img{
    height: 90px;
}

.footer-info {
    display: flex;
    gap: 40px;

    align-items: center;
    flex-wrap: wrap;

    justify-content: center;

    font-family: 'Encode Sans', sans-serif;
}

.footer-item {
    display: flex;
    gap: 10px;
    align-items: center;

    font-size: 16px;
}

.footer-social {
    display: flex;
    gap: 18px;
}
.footer-social a{
    color: white;
    font-size: 18px;
    transition: 0.3s;
}

.footer-social a:hover {
    transform: translateY(-3px);
    opacity: 0.8;
}

.footer-bottom{
    margin-top: 40px;
    padding: 20px;

    text-align: center;
    background: #4a3e2e;
    font-family: 'Encode Sans', sans-serif;
    font-size: 14px;
}

/*RESPONSIVE MOBILE*/

@media (max-width:768px) {
    header {
        background-image: url(images/hero/hero-responsive2.jpg);
        background-size: cover;
        min-height: 90vh;
        background-position: right;
        position: relative;
        overflow: hidden;
    }

    header::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(
            to bottom,
            rgba(0,0,0,0.15),
            rgba(0,0,0,0.05),
            rgba(0,0,0,0)
        );
    }

    .logo img {
        height: 80px;
    }

    .logo {
    
        left: 20px;
        top: 12vh;
    }

    nav ul{
        gap: 15px;
    }

    nav{
        padding: 10px 20px;
    }

    .hero-button-wrapper{
        height: 60vh;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .hero-button {
        font-size: 16px;
        padding: 14px 26px;
    }

    .section1 {
        flex-direction: column-reverse;
        min-height: 300px;
    }

    .section1 img{
        width: 100%;
        height: 300px;
        object-fit: cover;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
    }

    .section1 .about-text {
        width: 100%;
        padding: 40px 25px;
    }

    .about-text h1{
        font-size: 34px;
    }

    .about-text p {
        font-size: 16px;
        margin-bottom: 25px;
    }

    .about-text p:first-of-type {
        font-size: 18px;
    }

    .classes {
        margin-top: 40px;
        grid-template-columns: 1fr;
    }

    .class-card {
        height: 280px;
    }
    
    .class-card img {
        height: 280px;
    }

    .class-title {
        font-size: 18px;
        left: 20px;
        bottom: 15px;
    }

    .card-back {
        padding: 10px;
    }

    .card-back h3 {
        font-size: 16px;
    }

    .card-back p{
        font-size: 13px;
    }

    .section-booking {
        background: url("images/booking-background-mobile.jpg") no-repeat;
        background-size: cover;
        background-position: center 30%;
    }

    .booking-wrapper h2 {
        font-size: 32px;
        letter-spacing: 2px;
    }

    .booking-wrapper p {
        font-size: 16px;
    }

    .booking-form {
        flex-direction: column;
        gap: 15px;
    }

    .booking-form select {
        width: 80%;
    }

    .booking-btn {
        width: 80%;
        text-align: center;
    }

    .online{
        padding: 80px 0;
    }

    .online-wrapper {
        display: flex;
        flex-direction: column;
        gap: 40px;
        padding: 0 20px;
    }

    .online-text {
        width: 100%;
        text-align: center;
        max-width: 500px;
        margin: 0 auto;
    }

    .online-image {
        width: 100%;
        padding: 0 10px;
    }

    .online h2 {
        font-size: 32px;
    }

    .online-btn {
        padding: 16px 32px;
        font-size: 16px;
    }

    .online-glass {
        bottom: 20px;
        left: 20px;
        padding: 14px 20px;
        font-size: 14px;
    }

    .footer {
        padding-top: 40px;
    }

    .footer-wrapper {
        gap: 20px;
        padding: 0 20px;
    }

    .footer-logo img {
        height: 80px;
    }

    .footer-info {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .footer-item {
        font-size: 15px;
    }
    foote-social a {
        font-size: 16px;
    }

    .booter-bottom {
        margin-top: 25px;
        font-size: 13px;
    }
}