/* 
* Homeverra - Sports Nutrition Studio
* CSS Styles
* Author: Developer
* Version: 1.0
*/

/* ===== GLOBAL STYLES ===== */
:root {
    --black: #0C0C0C;
    --green: #A3D9A5;
    --gray: #E5E5E5;
    --white: #F5F5F5;
    --heading-font: "Montserrat", sans-serif;
    --body-font: 'Barlow', sans-serif;
    --container-width: 1200px;
    --section-spacing: 100px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--black);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: var(--black);
    transition: var(--transition);
}

a:hover {
    color: var(--green);
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    line-height: 1.2;
    text-transform: uppercase;
    margin-bottom: 20px;
}

p {
    margin-bottom: 20px;
}

section {
    padding: var(--section-spacing) 0;
}

.section-title {
    font-size: 34px;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--green);
    margin: 15px auto 0;
}

.btn {
    display: inline-block;
    padding: 14px 30px;
    font-family: var(--heading-font);
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--green);
    color: var(--black);
}

.btn-primary:hover {
    background-color: var(--black);
    color: var(--white);
}

.btn-secondary {
    background-color: var(--black);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--green);
    color: var(--black);
}

/* ===== HEADER STYLES ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-list a {
    font-family: var(--heading-font);
    font-size: 18px;
    text-transform: uppercase;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--black);
    position: absolute;
    transition: var(--transition);
}

.mobile-menu-toggle span:nth-child(1) {
    top: 0;
}

.mobile-menu-toggle span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.mobile-menu-toggle span:nth-child(3) {
    bottom: 0;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 50%;
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 50%;
}

/* ===== HERO SECTION ===== */
.hero {
    padding-top: 160px;
    padding-bottom: 80px;
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-color: var(--gray);
    z-index: 1;
    clip-path: polygon(100px 0, 100% 0, 100% 100%, 0 100%);
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1;
    padding-right: 50px;
}

.hero h1 {
    font-size: 50px;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
}

.hero-image {
    flex: 1;
    position: relative;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    background-color: var(--green);
    z-index: -1;
}

.hero-image img {
    position: relative;
    z-index: 1;
    object-fit: cover;
    width: 100%;
    height: 400px;
}

/* ===== FEATURES SECTION ===== */
.features {
    background-color: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--gray);
    padding: 30px;
    border-radius: 5px;
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

/* ===== PRODUCTS SECTION ===== */
.products {
    background-color: var(--gray);
}

.product-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: none;
    border: 2px solid var(--black);
    padding: 8px 20px;
    font-family: var(--heading-font);
    font-size: 16px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--black);
    color: var(--white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--white);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.product-card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-image {
    height: 300px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.product-content {
    padding: 25px;
}

.product-content h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.product-price {
    display: block;
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--green);
}

/* ===== BLOG SECTION ===== */
.blog {
    background-color: var(--white);
    position: relative;
}

.blog-slider {
    display: flex;
    gap: 30px;
    overflow-x: hidden;
    margin-bottom: 30px;
}

.blog-card {
    flex: 0 0 calc(33.333% - 20px);
    background-color: var(--gray);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.blog-content {
    padding: 25px;
}

.blog-date {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.blog-content h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.read-more {
    display: inline-block;
    font-weight: 600;
    color: var(--black);
    position: relative;
}

.read-more::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--green);
    transition: var(--transition);
}

.blog-card:hover .read-more::after {
    width: 100%;
}

.blog-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.blog-prev,
.blog-next {
    background: none;
    border: 2px solid var(--black);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.blog-prev:hover,
.blog-next:hover {
    background-color: var(--black);
}

.blog-prev:hover svg path,
.blog-next:hover svg path {
    fill: var(--white);
}

/* ===== ABOUT SECTION ===== */
.about {
    background-color: var(--gray);
}

.about .container {
    display: flex;
    align-items: center;
    gap: 80px;
}

.about-content {
    flex: 1;
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 100%;
    height: 100%;
    background-color: var(--green);
    z-index: 1;
}

.about-image img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 550px;
    object-fit: cover;
}

.stats-container {
    display: flex;
    gap: 30px;
    margin: 30px 0;
}

.stat-item {
    flex: 1;
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--heading-font);
    font-size: 48px;
    color: var(--green);
}

.stat-text {
    font-weight: 600;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
    background-color: var(--white);
    position: relative;
}

.testimonials-slider {
    display: flex;
    gap: 30px;
    overflow-x: hidden;
    margin-bottom: 30px;
}

.testimonial-card {
    flex: 0 0 calc(33.333% - 20px);
    background-color: var(--gray);
    border-radius: 5px;
    overflow: hidden;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-rating {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-info h4 {
    margin-bottom: 5px;
    font-size: 18px;
}

.author-info span {
    font-size: 14px;
    color: #666;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.testimonial-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--gray);
    cursor: pointer;
    transition: var(--transition);
}

.testimonial-dot.active,
.testimonial-dot:hover {
    background-color: var(--green);
}

/* ===== CONTACT SECTION ===== */
.contact {
    background-color: var(--gray);
    position: relative;
}

.contact-wrapper {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 30px;
}

.contact-icon {
    flex-shrink: 0;
}

.contact-text h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.contact-form {
    flex: 1;
    background-color: var(--white);
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-family: var(--body-font);
    font-size: 16px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--green);
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-checkbox input {
    width: auto;
}

.form-checkbox label {
    margin-bottom: 0;
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--black);
    color: var(--white);
    padding: 80px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-logo {
    flex: 0 0 300px;
    margin-bottom: 30px;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 15px;
    filter: brightness(0) invert(1);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
}

.footer-links-group h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--green);
}

.footer-links-group ul li {
    margin-bottom: 10px;
}

.footer-links-group a {
    color: var(--white);
}

.footer-links-group a:hover {
    color: var(--green);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
}

/* ===== SUCCESS PAGE ===== */
.success-message {
    padding-top: 160px;
    padding-bottom: 80px;
    text-align: center;
}

.success-content {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 50px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.success-icon {
    margin-bottom: 20px;
}

.success-title {
    font-size: 42px;
    margin-bottom: 20px;
}

.success-message-text {
    margin-bottom: 30px;
}

.form-data {
    text-align: left;
    background-color: var(--gray);
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 30px;
}

.form-data h3 {
    margin-bottom: 15px;
}

.success-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* ===== PAGE CONTENT ===== */
.page-content {
    padding-top: 160px;
    padding-bottom: 80px;
}

.page-title {
    font-size: 48px;
    margin-bottom: 50px;
    text-align: center;
}

.content-block {
    margin-bottom: 40px;
}

.content-block h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.content-block ul,
.content-block ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.content-block ul li,
.content-block ol li {
    margin-bottom: 10px;
    list-style-type: disc;
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--black);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--green);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeIn {
    animation: fadeIn 0.8s ease forwards;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1200px) {
    :root {
        --section-spacing: 80px;
    }

    .container {
        max-width: 960px;
    }
}

@media (max-width: 992px) {
    :root {
        --section-spacing: 70px;
    }

    .container {
        max-width: 720px;
    }

    .hero h1 {
        font-size: 50px;
    }

    .section-title {
        font-size: 34px;
    }

    .blog-card,
    .testimonial-card {
        flex: 0 0 calc(50% - 15px);
    }

    .about .container {
        flex-direction: column;
    }

    .about-content,
    .about-image {
        flex: auto;
        width: 100%;
    }

    .contact-wrapper {
        flex-direction: column;
    }

    .contact-info,
    .contact-form {
        flex: auto;
        width: 100%;
    }
}

@media (max-width: 768px) {
    :root {
        --section-spacing: 60px;
    }

    .container {
        max-width: 540px;
    }

    .hero .container {
        flex-direction: column;
        gap: 40px;
    }

    .hero-content {
        padding-right: 0;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        z-index: 1000;
        padding: 40px;
    }

    .nav-list.active {
        right: 0;
    }

    .blog-card,
    .testimonial-card {
        flex: 0 0 100%;
    }

    .success-actions {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    :root {
        --section-spacing: 50px;
    }

    .container {
        padding: 0 15px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .section-title {
        font-size: 32px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .stats-container {
        flex-direction: column;
        gap: 20px;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-logo {
        flex: auto;
        width: 100%;
        text-align: center;
    }

    .footer-links {
        width: 100%;
        justify-content: space-between;
    }

    .footer-links-group {
        flex: 0 0 calc(50% - 15px);
    }
}