/* ===== CSS RESET & VARIABLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --header-height: 4rem;
    
    /* Colors */
    --primary-color: #1e40af;      /* Dark Blue */
    --primary-light: #3b82f6;
    --primary-dark: #1e3a8a;
    --secondary-color: #22c55e;    /* Fresh Green */
    --secondary-light: #4ade80;
    --white-color: #ffffff;        /* Clean White */
    --text-color: #374151;
    --text-light: #6b7280;
    --body-color: #f9fafb;
    --container-color: #ffffff;
    --border-color: #e5e7eb;
    --shadow-light: 0 2px 16px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 32px rgba(0, 0, 0, 0.12);
    --shadow-strong: 0 8px 48px rgba(0, 0, 0, 0.15);

    /* Typography */
    --body-font: 'Poppins', sans-serif;
    --biggest-font-size: 2.5rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.75rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
    --smaller-font-size: 0.75rem;

    /* Font weights */
    --font-light: 300;
    --font-regular: 400;
    --font-medium: 500;
    --font-semi-bold: 600;
    --font-bold: 700;

    /* Spacing */
    --mb-0-25: 0.25rem;
    --mb-0-5: 0.5rem;
    --mb-0-75: 0.75rem;
    --mb-1: 1rem;
    --mb-1-25: 1.25rem;
    --mb-1-5: 1.5rem;
    --mb-2: 2rem;
    --mb-2-5: 2.5rem;
    --mb-3: 3rem;
    
    /* Animation */
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}

/* Responsive typography */
@media screen and (max-width: 968px) {
    :root {
        --biggest-font-size: 2rem;
        --h1-font-size: 1.875rem;
        --h2-font-size: 1.5rem;
        --h3-font-size: 1.125rem;
        --normal-font-size: 0.875rem;
        --small-font-size: 0.8125rem;
        --smaller-font-size: 0.6875rem;
    }
}

/* ===== BASE STYLES ===== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    font-weight: var(--font-regular);
    background-color: var(--body-color);
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    color: var(--text-color);
    font-weight: var(--font-semi-bold);
    line-height: 1.2;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

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

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
}

input, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* ===== REUSABLE CSS CLASSES ===== */
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.section {
    padding: 5rem 0 3rem;
}

.section__header {
    text-align: center;
    margin-bottom: var(--mb-3);
}

.section__title {
    font-size: var(--h2-font-size);
    color: var(--primary-color);
    margin-bottom: var(--mb-0-75);
}

.section__subtitle {
    font-size: var(--normal-font-size);
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: var(--font-medium);
    font-size: var(--normal-font-size);
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-decoration: none;
}

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

.btn--primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* ===== HEADER & NAVIGATION ===== */
.header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: transparent;
    transition: var(--transition);
}

.header.scroll-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-light);
}

.nav {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__brand .logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--h3-font-size);
    font-weight: var(--font-bold);
    color: var(--primary-color);
}

.nav__brand .logo svg {
    color: var(--primary-color);
}

.nav__list {
    display: flex;
    column-gap: 2rem;
}

.nav__link {
    color: var(--text-color);
    font-weight: var(--font-medium);
    transition: var(--transition);
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 50%;
    background-color: var(--secondary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav__link:hover::after,
.nav__link.active-link::after {
    width: 100%;
}

.nav__link:hover,
.nav__link.active-link {
    color: var(--primary-color);
}

.nav__toggle, .nav__close {
    display: none;
}

/* ===== HERO SECTION ===== */
.hero {
    padding-top: calc(var(--header-height) + 2rem);
    background: linear-gradient(135deg, var(--white-color) 0%, var(--body-color) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero__title {
    font-size: var(--biggest-font-size);
    font-weight: var(--font-bold);
    margin-bottom: var(--mb-1);
    line-height: 1.1;
}

.hero__highlight {
    color: var(--secondary-color);
}

.hero__subtitle {
    font-size: var(--h3-font-size);
    color: var(--text-light);
    margin-bottom: var(--mb-2);
}

.hero__btn {
    margin-bottom: var(--mb-2);
}

.hero__image {
    position: relative;
}

.hero__img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: var(--shadow-medium);
}

.hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}

.hero__scroll-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-light);
    font-size: var(--small-font-size);
    transition: var(--transition);
}

.hero__scroll-button:hover {
    color: var(--primary-color);
}

.hero__scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-light);
    border-radius: 12px;
    position: relative;
    animation: scroll-animation 2s infinite;
}

.hero__scroll-mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 6px;
    background-color: var(--text-light);
    border-radius: 1px;
    animation: scroll-wheel 2s infinite;
}

@keyframes scroll-animation {
    0%, 20% {
        opacity: 1;
    }
    100% {
        opacity: 0.3;
    }
}

@keyframes scroll-wheel {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(16px);
    }
}

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

.about__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about__text {
    order: 1;
}

.about__description {
    margin-bottom: var(--mb-1-5);
    color: var(--text-light);
    line-height: 1.7;
}

.about__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: var(--mb-2-5);
}

.about__stat {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--body-color);
    border-radius: 0.75rem;
    transition: var(--transition);
}

.about__stat:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-light);
}

.about__stat-number {
    font-size: var(--h1-font-size);
    font-weight: var(--font-bold);
    color: var(--secondary-color);
    margin-bottom: var(--mb-0-5);
}

.about__stat-text {
    font-size: var(--small-font-size);
    color: var(--text-light);
    font-weight: var(--font-medium);
}

.about__image {
    order: 2;
}

.about__img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: var(--shadow-medium);
}

/* ===== PRODUCTS SECTION ===== */
.products__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product__card {
    background-color: var(--white-color);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.product__card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-strong);
}

.product__image {
    position: relative;
    overflow: hidden;
}

.product__img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.product__card:hover .product__img {
    transform: scale(1.1);
}

.product__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.8), rgba(34, 197, 94, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.product__card:hover .product__overlay {
    opacity: 1;
}

.product__icon {
    color: var(--white-color);
    transform: scale(0.8);
    transition: var(--transition);
}

.product__card:hover .product__icon {
    transform: scale(1);
}

.product__content {
    padding: 1.5rem;
}

.product__title {
    font-size: var(--h3-font-size);
    font-weight: var(--font-semi-bold);
    color: var(--primary-color);
    margin-bottom: var(--mb-0-75);
}

.product__description {
    color: var(--text-light);
    line-height: 1.6;
}

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

.testimonials__wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 1rem;
}

.testimonial__card {
    opacity: 0;
    transform: translateX(100px);
    transition: var(--transition-slow);
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
}

.testimonial__card.active {
    opacity: 1;
    transform: translateX(0);
    position: relative;
}

.testimonial__content {
    background-color: var(--body-color);
    padding: 2.5rem;
    border-radius: 1rem;
    text-align: center;
}

.testimonial__text {
    font-size: var(--h3-font-size);
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: var(--mb-2);
    font-style: italic;
    position: relative;
}

.testimonial__text::before {
    content: '"';
    font-size: 4rem;
    color: var(--secondary-color);
    position: absolute;
    top: -1rem;
    left: -1rem;
    font-family: serif;
}

.testimonial__author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.testimonial__img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--secondary-color);
}

.testimonial__name {
    font-size: var(--normal-font-size);
    font-weight: var(--font-semi-bold);
    color: var(--primary-color);
    margin-bottom: var(--mb-0-25);
}

.testimonial__job {
    font-size: var(--small-font-size);
    color: var(--text-light);
}

.testimonials__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: var(--mb-2);
}

.testimonial__btn {
    background-color: var(--primary-color);
    color: var(--white-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.testimonial__btn:hover {
    background-color: var(--primary-dark);
    transform: scale(1.1);
}

.testimonial__indicators {
    display: flex;
    gap: 0.5rem;
}

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

.testimonial__dot.active {
    background-color: var(--secondary-color);
}

/* ===== CONTACT SECTION ===== */
.contact__content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: start;
}

.contact__info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact__card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background-color: var(--white-color);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.contact__card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.contact__card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    flex-shrink: 0;
}

.contact__card-title {
    font-size: var(--normal-font-size);
    font-weight: var(--font-semi-bold);
    color: var(--primary-color);
    margin-bottom: var(--mb-0-25);
}

.contact__card-text {
    font-size: var(--small-font-size);
    color: var(--text-light);
    line-height: 1.4;
}

.contact__form {
    background-color: var(--white-color);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-light);
}

.form__group {
    margin-bottom: var(--mb-1-5);
}

.form__label {
    display: block;
    font-size: var(--small-font-size);
    font-weight: var(--font-medium);
    color: var(--text-color);
    margin-bottom: var(--mb-0-5);
}

.form__input,
.form__textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: var(--normal-font-size);
    color: var(--text-color);
    background-color: var(--white-color);
    transition: var(--transition);
}

.form__input:focus,
.form__textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form__textarea {
    resize: vertical;
    min-height: 120px;
}

.form__btn {
    width: 100%;
    margin-top: var(--mb-1);
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 3rem 0 1.5rem;
}

.footer__content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: var(--mb-2);
}

.footer__brand .logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--h3-font-size);
    font-weight: var(--font-bold);
    color: var(--white-color);
    margin-bottom: var(--mb-1);
}

.footer__brand .logo svg {
    color: var(--white-color);
}

.footer__description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    max-width: 300px;
}

.footer__title {
    font-size: var(--normal-font-size);
    font-weight: var(--font-semi-bold);
    margin-bottom: var(--mb-1);
}

.footer__list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer__link {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--small-font-size);
    transition: var(--transition);
}

.footer__link:hover {
    color: var(--secondary-color);
}

.footer__social-links {
    display: flex;
    gap: 1rem;
}

.footer__social-link {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    transition: var(--transition);
}

.footer__social-link:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
    text-align: center;
}

.footer__copyright {
    font-size: var(--small-font-size);
    color: rgba(255, 255, 255, 0.8);
}

/* ===== MODAL ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 2000;
}

.modal.show-modal {
    opacity: 1;
    visibility: visible;
}

.modal__content {
    background-color: var(--white-color);
    padding: 2.5rem;
    border-radius: 1rem;
    text-align: center;
    max-width: 400px;
    width: 90%;
    transform: scale(0.8);
    transition: var(--transition);
}

.modal.show-modal .modal__content {
    transform: scale(1);
}

.modal__icon {
    width: 60px;
    height: 60px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--mb-1);
    color: var(--white-color);
}

.modal__title {
    font-size: var(--h3-font-size);
    color: var(--primary-color);
    margin-bottom: var(--mb-0-75);
}

.modal__text {
    color: var(--text-light);
    margin-bottom: var(--mb-2);
    line-height: 1.6;
}

.modal__btn {
    width: 100%;
}

/* ===== SCROLL ANIMATIONS ===== */
.scroll-animation {
    opacity: 0;
    transform: translateY(50px);
    transition: var(--transition-slow);
}

.scroll-animation.show-animation {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE DESIGN ===== */
/* Large devices (laptops/desktops) */
@media screen and (max-width: 1200px) {
    .container {
        max-width: 968px;
    }
}

/* Medium devices (tablets) */
@media screen and (max-width: 968px) {
    .container {
        margin-left: var(--mb-1-5);
        margin-right: var(--mb-1-5);
    }

    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--white-color);
        padding: 6rem 2rem 2rem;
        transition: var(--transition);
        z-index: 1000;
    }

    .nav__menu.show-menu {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        row-gap: 2rem;
    }

    .nav__link {
        font-size: var(--h3-font-size);
        font-weight: var(--font-medium);
    }

    .nav__close {
        display: block;
        position: absolute;
        top: 2rem;
        right: 2rem;
        font-size: 2rem;
        color: var(--primary-color);
        cursor: pointer;
    }

    .nav__toggle {
        display: flex;
        flex-direction: column;
        width: 24px;
        height: 24px;
        cursor: pointer;
    }

    .nav__toggle span {
        width: 100%;
        height: 2px;
        background-color: var(--primary-color);
        margin: 2px 0;
        transition: var(--transition);
        transform-origin: center;
    }

    .nav__toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .nav__toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav__toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .hero__container {
        grid-template-columns: 1fr;
        row-gap: 2rem;
        text-align: center;
    }

    .hero__content {
        order: 2;
    }

    .hero__image {
        order: 1;
    }

    .about__content {
        grid-template-columns: 1fr;
        row-gap: 2rem;
    }

    .about__stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .contact__content {
        grid-template-columns: 1fr;
        row-gap: 2rem;
    }

    .footer__content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
}

/* Small devices (mobile phones) */
@media screen and (max-width: 576px) {
    .hero__img {
        height: 300px;
    }

    .about__img {
        height: 300px;
    }

    .about__stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

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

    .contact__card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer__social-links {
        justify-content: center;
    }

    .modal__content {
        padding: 2rem;
    }
}

/* Extra small devices */
@media screen and (max-width: 320px) {
    .container {
        margin-left: var(--mb-1);
        margin-right: var(--mb-1);
    }

    .hero__title {
        font-size: 1.5rem;
    }

    .section {
        padding: 4rem 0 2rem;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.d-flex {
    display: flex;
}

.d-none {
    display: none;
}

.d-block {
    display: block;
}

.w-100 {
    width: 100%;
}

.h-100 {
    height: 100%;
}

.mb-0 {
    margin-bottom: 0;
}

.mt-1 {
    margin-top: var(--mb-1);
}

.mb-1 {
    margin-bottom: var(--mb-1);
}

.p-1 {
    padding: var(--mb-1);
}

.border-radius {
    border-radius: 0.5rem;
}

.box-shadow {
    box-shadow: var(--shadow-light);
}