* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
overflow-x: hidden;
}

/* home Page style */
.main {
width: 100%;
min-height: 100vh;
background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)), url('background.jpg');
background-repeat: no-repeat;
background-position: center;
background-size: cover;
background-attachment: fixed;
padding-bottom: 50px;
}

.navbar {
width: 100%;
max-width: 1200px;
height: 75px;
margin: 0 auto;
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 20px;
}

.logo {
color: orangered;
font-size: 35px;
font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
text-decoration: none;
}

.menu ul {
display: flex;
list-style: none;
}

.menu ul li {
margin-left: 30px;
}

.menu ul li a {
text-decoration: none;
color: white;
font-weight: bold;
transition: 0.4s ease-in-out;
cursor: pointer;
}

.menu ul li a:hover {
color: orangered;
}

.container {
width: 90%;
max-width: 660px;
background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('shutterstock_1204167769_2000x.jpg');
background-repeat: no-repeat;
background-position: center;
background-size: cover;
border-radius: 20px;
margin: 50px auto;
padding: 40px;
box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.content {
color: white;
}

.content h1 {
font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
font-size: 2.5rem;
letter-spacing: 2px;
margin-bottom: 10px;
}

.content h2 {
font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
font-style: italic;
margin-bottom: 15px;
font-size: 1.2rem;
}

.content h3 {
font-size: 1.5rem;
font-family: Verdana, Geneva, Tahoma, sans-serif;
margin-top: 20px;
}

.content .par {
font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
letter-spacing: 1.2px;
line-height: 1.6;
margin-bottom: 25px;
}

.content span {
color: orangered;
}

/* Login/Signup Section  */
.login-section {
    padding: 8% 0;
    background-color: rgba(225, 219, 255, 0);
    display: flex;
    justify-content: center;
}

.container-login {
    position: relative;
    width: 850px;
    height: 550px;
    background-color: white;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    overflow: hidden;
}

.form-box {
    position: absolute;
    right: 0;
    width: 50%;
    height: 100%;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 1;
    transition: transform 0.6s ease-in-out, visibility 0.6s;
}

.form-box.signup {
    visibility: hidden;
    z-index: 0;
}

/* Active State Logic for Sliding */
.container-login.active .form-box.login {
    transform: translateX(-100%);
    visibility: hidden;
}

.container-login.active .form-box.signup {
    transform: translateX(-100%);
    visibility: visible;
    z-index: 1;
}

.login-form {
    width: 90%;
}

.container-login h1 {
    font-weight: 400;
    font-size: 36px;
    margin-bottom: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.input-box {
    position: relative;
    margin: 20px 0;
}

.input-box input {
    width: 100%;
    padding: 13px 40px 13px 13px;
    background-color: rgb(220, 216, 216);
    border-radius: 10px;
    border: none;
    outline: none;
    font-size: 16px;
}

.input-box i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
}

.forgot-link a {
    font-size: 14px;
    color: #403e3e;
    text-decoration: none;
}

.btn {
    width: 160px;
    height: 45px;
    background-color: #ff4b03;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin-top: 10px;
    transition: 0.3s;
}

/* --- Toggle Panels --- */
.toggle-box {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.toggle-box::before {
    content: '';
    position: absolute;
    left: -250%;
    width: 300%;
    height: 100%;
    background-color: orangered;
    border-radius: 150px;
    z-index: 2;
    transition: 1.4s ease-in-out;
}

.container-login.active .toggle-box::before {
    left: 50%;
}

.toggle-panel {
    position: absolute;
    width: 50%;
    height: 100%;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
    transition: 0.6s ease-in-out;
}

.toggle-panel.toggle-left {
    left: 0;
    transition-delay: 1.2s;
}

.container-login.active .toggle-panel.toggle-left{
    left: -50%;
    transition-delay: .6s;

}

.toggle-panel.toggle-right {
    right: -50%;
    transition-delay: .6s;
}

.container-login.active .toggle-left {
    transform: translateX(-100%);
}

.container-login.active .toggle-panel.toggle-right{
    right: 0;
    transition-delay: 1.2s;
}

.toggle-panel .btn {
    background: transparent;
    border: 2px solid white;
}

/* About Section */
.about-section {
background: white;
padding: 60px 20px;
}

.section-content {
max-width: 1000px;
margin: 0 auto;
}

.main-about-title {
color: orangered;
font-size: 3rem;
text-align: center;
width: 100%;
margin-bottom: 40px;
font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.goals-wrapper {
display: flex;
flex-wrap: wrap;
gap: 25px;
width: 100%;
justify-content: center;
margin-bottom: 40px;
}

.info-box {
flex: 1;
min-width: 300px;
background-color: coral;
padding: 30px;
border-radius: 20px;
border: 3px solid orangered;
position: relative;
}

.info-box h2 {
color: rgb(69, 30, 16);
margin-bottom: 15px;
font-size: 28px;
}

.better-box {
width: 100%;
background: peachpuff;
padding: 40px;
border-radius: 20px;
border: 3px solid orangered;
text-align: center;
}

.better-box .selection-title {
color: rgb(69, 30, 16);
margin-bottom: 20px;
font-size: 32px;
}

.quote-text {
position: relative;
padding: 0 20px;
line-height: 1.6;
font-size: 18px;
color: #333;
}

/* Contact Section */
.contact-section {
padding: 50px 20px 100px;
background: white;
}

.contact-section .selection-title {
text-align: center;
margin-bottom: 30px;
color: orangered;
font-size: 2.5rem;
font-weight: 600;
}

.contact-container {
max-width: 900px;
margin: 0 auto;
display: flex;
flex-wrap: wrap;
gap: 40px;
background-color: ghostwhite;
border-radius: 25px;
padding: 40px;
box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.contact-info-list {
flex: 1;
min-width: 250px;
list-style: none;
}

.contact-info {
display: flex;
gap: 15px;
margin: 20px 0;
align-items: center;
color: #444;
font-size: 16px;
}

.contact-info i {
font-size: 24px;
color: orangered;
}

.contact-form {
flex: 1;
min-width: 300px;
display: flex;
flex-direction: column;
}

.form-input {
width: 100%;
padding: 15px;
margin-bottom: 15px;
border: 1px solid #ccc;
border-radius: 8px;
font-size: 15px;
font-family: inherit;
}

textarea.form-input {
resize: vertical;
min-height: 120px;
}

.submit-button {
padding: 15px;
background-color: orangered;
color: white;
border: none;
border-radius: 8px;
cursor: pointer;
font-size: 16px;
font-weight: bold;
transition: 0.3s;
}

.submit-button:hover {
background-color: #d63a00;
}

/* Dashboard style */
#dashboard-view {
display: none; 
background: #f9f9f9;
min-height: 100vh;
}

.dashboard-main { 
padding: 40px 5%; 
max-width: 1200px;
margin: 0 auto;
}

.dashboard-main h1 {
color: #333;
margin-bottom: 10px;
}

.dashboard-main > p {
color: #666;
margin-bottom: 30px;
}

.filter-section { 
margin-bottom: 40px; 
display: flex; 
gap: 15px; 
flex-wrap: wrap; 
align-items: center;
}

.filter-section .form-input {
margin-bottom: 0;
width: 300px;
max-width: 100%;
}

.filter-section .submit-button {
margin: 0;
padding: 14px 24px;
}

.exercise-grid { 
display: grid; 
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
gap: 25px; 
}

.exercise-card { 
background: white; 
padding: 25px; 
border-radius: 15px; 
box-shadow: 0 5px 15px rgba(0,0,0,0.08); 
border-top: 5px solid orangered;
transition: transform 0.3s;
display: flex;
flex-direction: column;
}

.exercise-card:hover {
transform: translateY(-5px);
}

.exercise-card h3 { 
color: #333; 
text-transform: capitalize; 
margin-bottom: 15px; 
font-size: 22px;
}

.tag-container {
margin-bottom: 15px;
}

.tag { 
display: inline-block; 
background: #ffe5d9; 
color: #d63a00;
padding: 6px 12px; 
border-radius: 20px; 
font-size: 13px; 
margin-bottom: 5px; 
font-weight: bold;
margin-right: 5px;
text-transform: capitalize;
}

.instructions { 
font-size: 14px; 
line-height: 1.6; 
color: #555; 
height: 120px; 
overflow-y: auto; 
margin-top: auto; 
padding-right: 10px;
}

/* Custom scrollbar for instructions */
.instructions::-webkit-scrollbar {
width: 6px;
}
.instructions::-webkit-scrollbar-track {
background: #f1f1f1; 
border-radius: 4px;
}
.instructions::-webkit-scrollbar-thumb {
background: #ccc; 
border-radius: 4px;
}
.instructions::-webkit-scrollbar-thumb:hover {
background: #aaa; 
}

/* Footer Styles */
.site-footer {
background-color: #222;
color: #ccc;
text-align: center;
padding: 25px 20px;
font-size: 14px;
width: 100%;
margin-top: auto;
}


@media (max-width: 768px) {
.container-login {
    flex-direction: column;
    height: auto;
    min-height: 600px;
}
.form-box {
    width: 100%;
    height: 50%;
    top: 0;
}
.toggle-box {
    display: none;
}
.form-box.signup, .form-box.login {
    visibility: visible;
    position: relative;
    transform: none !important;
    height: auto;
    padding: 40px 0;
}
.contact-container {
    flex-direction: column;
    padding: 20px;
}
}