/* ==========================================================================
   TABLE OF CONTENTS
   ==========================================================================
    1.  VARIABLES & GLOBAL STYLES
    2.  LAYOUT & HELPERS
    3.  HEADER & NAVIGATION
    4.  FOOTER
    5.  COMPONENTS (Buttons, Cards, Forms)
    6.  SECTION STYLES
        6.1 Hero Section
        6.2 Services Section
        6.3 About Section
        6.4 Process Section
        6.5 Calculator Section
        6.6 Testimonials Section
        6.7 CTA Section
        6.8 Contact Page Section
        6.9 Legal Pages Section
    7.  ANIMATIONS & EFFECTS
    8.  RESPONSIVENESS (Media Queries)
   ========================================================================== */

/* ==========================================================================
   1. VARIABLES & GLOBAL STYLES
   ========================================================================== */
:root {
    --primary-color: #FF6B00;
    --primary-color-alt: #FF8533;
    --secondary-color: #FF3366;
    --bg-dark: #0F0F0F;
    --bg-dark-alt: #1A1A1A;
    --bg-light: #F5F5F5;
    --text-light: #E8E8E8;
    --text-dark: #1E1E1E;
    --text-muted: #A8A8A8;
    --border-color: #2C2C2C;
    --white-color: #FFFFFF;
    --success-color: #22C55E;
    --error-color: #EF4444;

    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Roboto', sans-serif;

    --fs-h1: 3.5rem;
    --fs-h2: 2.5rem;
    --fs-h3: 1.5rem;
    --fs-body: 1rem;
    --fs-small: 0.875rem;

    --section-padding: 6rem 0;
    --container-width: 1140px;
    --container-padding: 0 1.5rem;

    --transition-fast: 0.2s ease-in-out;
    --transition-slow: 0.4s ease-in-out;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 25px rgba(255, 107, 0, 0.25);
}

/* Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-secondary);
    font-size: var(--fs-body);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--white-color);
    line-height: 1.3;
}

h1 {
    font-size: var(--fs-h1);
}

h2 {
    font-size: var(--fs-h2);
}

h3 {
    font-size: var(--fs-h3);
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-color-alt);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   2. LAYOUT & HELPERS
   ========================================================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: var(--container-padding);
}

.section {
    padding: var(--section-padding);
}

.section__title {
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.section__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section__subtitle {
    display: block;
    color: var(--primary-color);
    font-family: var(--font-primary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.text-center {
    text-align: center;
}

.text-center .section__title::after {
    left: 50%;
    transform: translateX(-50%);
}

.hidden-mobile {
    display: none;
}

.highlight {
    color: var(--primary-color);
}

/* ==========================================================================
   3. HEADER & NAVIGATION
   ========================================================================== */
.header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: transparent;
    transition: background-color var(--transition-slow), box-shadow var(--transition-slow), padding var(--transition-slow);
    padding: 1.5rem 0;
}

.header.scrolled {
    background-color: rgba(18, 27, 42, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    padding: 1rem 0;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 3.5rem;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--white-color);
}

.nav__logo img {
    height: 45px;
    filter: invert(1);
    width: auto;
}

.nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100%;
    background-color: var(--bg-dark-alt);
    padding: 6rem 2rem 2rem;
    transition: right var(--transition-slow);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
}

.nav__menu.show-menu {
    right: 0;
}

.nav__list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.nav__link {
    color: var(--text-light);
    font-family: var(--font-primary);
    font-weight: 500;
    position: relative;
    padding-bottom: 0.25rem;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-fast);
}

.nav__link:hover::after,
.nav__link.active-link::after {
    width: 100%;
}

.nav__link.active-link {
    color: var(--primary-color);
}

.nav__toggle,
.nav__close {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--white-color);
    z-index: 1001;
}

.nav__close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 24px;
    height: 24px;
}

/* ==========================================================================
   4. FOOTER
   ========================================================================== */
.footer {
    background-color: var(--bg-dark-alt);
    padding: 5rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer__column .footer__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--white-color);
    margin-bottom: 1rem;
}

.footer__column .footer__logo img {
    height: 45px;
    filter: invert(1);
}

.footer__description {
    color: var(--text-muted);
    max-width: 300px;
}

.footer__socials {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer__social-link {
    color: var(--text-muted);
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    transition: var(--transition-fast);
}

.footer__social-link:hover {
    color: var(--white-color);
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.footer__social-link svg {
    width: 20px;
    height: 20px;
}

.footer__title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--white-color);
}

.footer__links li {
    margin-bottom: 0.75rem;
}

.footer__link {
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.footer__link:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer__contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.footer__contact-info svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 4px;
    color: var(--primary-color);
}

.footer__bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-muted);
}

/* ==========================================================================
   5. COMPONENTS (Buttons, Cards, Forms)
   ========================================================================== */
/* Buttons */
.button {
    display: inline-block;
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    font-family: var(--font-primary);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-slow);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.button--primary {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
}

.button--primary:hover {
    background-color: var(--primary-color-alt);
    color: var(--white-color);
    box-shadow: var(--shadow-glow);
    transform: translateY(-3px);
}

.button--secondary {
    background-color: transparent;
    color: var(--white-color);
    border-color: var(--border-color);
}

.button--secondary:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
}

.button--header {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
}

.button--full {
    width: 100%;
}

/* Service Cards */
.service-card {
    background-color: var(--bg-dark-alt);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform var(--transition-slow), box-shadow var(--transition-slow), border-color var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 169, 157, 0.1), transparent 40%);
    transition: opacity 0.5s;
    opacity: 0;
    transform-origin: center;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.service-card:hover::before {
    opacity: 1;
    animation: rotateGradient 4s linear infinite;
}

.service-card__icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-dark), var(--bg-dark-alt));
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.service-card__icon svg {
    width: 32px;
    height: 32px;
}

.service-card__title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--white-color);
}

.service-card__description {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.service-card__link {
    font-weight: 500;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* Forms */
.form__group {
    margin-bottom: 1.5rem;
}

.form__label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-light);
}

.form__input {
    width: 100%;
    padding: 1rem;
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--white-color);
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form__input::placeholder {
    color: var(--text-muted);
}

.form__input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 169, 157, 0.2);
}

textarea.form__input {
    resize: vertical;
}

/* ==========================================================================
   6. SECTION STYLES
   ========================================================================== */

/* 6.1 Hero Section */
.hero {
    padding: 10rem 0 6rem;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at top left, rgba(0, 169, 157, 0.1), transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(74, 144, 226, 0.1), transparent 50%);
    z-index: -1;
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

.hero__title {
    font-size: calc(2rem + 2.5vw);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero__subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 550px;
}

.hero__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero__image-container {
    position: relative;
    justify-self: center;
}

.hero__image-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morph 8s ease-in-out infinite;
    z-index: -1;
    opacity: 0.3;
}

.hero__image {
    border-radius: 12px;
    max-width: 450px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.hero__decorator-1,
.hero__decorator-2 {
    position: absolute;
    border-radius: 50%;
    z-index: -1;
    opacity: 0.05;
}

.hero__decorator-1 {
    width: 400px;
    height: 400px;
    background-color: var(--primary-color);
    top: -100px;
    right: -150px;
}

.hero__decorator-2 {
    width: 200px;
    height: 200px;
    background-color: var(--secondary-color);
    bottom: 50px;
    left: -100px;
}


/* 6.2 Services Section */
.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

/* 6.3 About Section */
.about {
    background-color: var(--bg-dark-alt);
}

.about__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

.about__image-content {
    position: relative;
    justify-self: center;
}

.about__image {
    border-radius: 12px;
    max-width: 400px;
    position: relative;
    z-index: 2;
}

.about__image-decorator {
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary-color);
    border-radius: 12px;
    z-index: 1;
    transition: transform var(--transition-slow);
}

.about__image-content:hover .about__image-decorator {
    transform: translate(10px, 10px);
}

.about__description {
    margin-bottom: 2rem;
}

.about__stats {
    display: flex;
    gap: 2rem;
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
}

.about__stat-item {
    text-align: center;
}

.about__stat-number {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

.about__stat-label {
    color: var(--text-muted);
    font-size: var(--fs-small);
    margin: 0;
}

/* 6.4 Process Section */
.process__timeline {
    position: relative;
    max-width: 800px;
    margin: 4rem auto 0;
}

.process__item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
}

.process__icon-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.process__icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 50%;
    background-color: var(--bg-dark-alt);
    border: 2px solid var(--border-color);
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    transition: background-color var(--transition-slow), border-color var(--transition-slow);
    z-index: 2;
}

.process__item:hover .process__icon {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
}

.process__line {
    width: 2px;
    height: 100%;
    background: var(--border-color);
    flex-grow: 1;
}

.process__content {
    background-color: var(--bg-dark-alt);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.process__title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* 6.5 Calculator Section */
.calculator-section {
    background: linear-gradient(rgba(18, 27, 42, 0.95), rgba(18, 27, 42, 0.95)), url('https://images.unsplash.com/photo-1516321497487-e288fb19713f?ixlib=rb-4.0.3&q=85&fm=jpg&crop=entropy&cs=srgb&w=1200') no-repeat center center/cover;
}

.calculator__wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    background-color: var(--bg-dark-alt);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.calculator__info .section__title::after {
    left: 0;
    transform: none;
}

.calculator__disclaimer {
    font-size: var(--fs-small);
    color: var(--text-muted);
    font-style: italic;
    margin-top: 1.5rem;
}

.calculator__form {
    background-color: var(--bg-dark);
    padding: 2rem;
    border-radius: 8px;
}

.calculator__group {
    margin-bottom: 1.5rem;
}

.calculator__group label {
    font-weight: 500;
    display: block;
    margin-bottom: 0.75rem;
}

.calculator__checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.calculator__checkbox {
    display: flex;
    align-items: center;
}

.calculator__checkbox input {
    margin-right: 0.5rem;
}

.calculator__checkbox label {
    margin-bottom: 0;
    cursor: pointer;
}

.calculator__result {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.calculator__result p {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

#estimateResult {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* 6.6 Testimonials Section */
.testimonials {
    position: relative;
    overflow: hidden;
}

.testimonial__slider-container {
    max-width: 800px;
    margin: 4rem auto 0;
    position: relative;
}

.testimonial__slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 300px;
}

.testimonial__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background-color: var(--bg-dark-alt);
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    transform: translateX(20px);
}

.testimonial__slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.testimonial__text {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.testimonial__author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial__author-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
}

.testimonial__author-name {
    margin: 0;
    font-size: 1.1rem;
    color: var(--white-color);
}

.testimonial__author-title {
    font-size: var(--fs-small);
    color: var(--text-muted);
}

.testimonial__navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    left: 0;
    padding: 0 1rem;
}

.testimonial__nav-btn {
    background-color: var(--bg-dark-alt);
    color: var(--white-color);
    border: 1px solid var(--border-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: var(--transition-fast);
}

.testimonial__nav-btn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* 6.7 CTA Section */
.cta {
    background-color: var(--bg-dark-alt);
}

.cta__container {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 4rem 2rem;
    border-radius: 12px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta__title {
    font-size: 2.2rem;
    color: var(--white-color);
}

.cta__description {
    color: var(--white-color);
    opacity: 0.9;
    max-width: 600px;
    margin: 1rem auto 2rem;
}

.cta__decorator-1,
.cta__decorator-2 {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
}

.cta__decorator-1 {
    width: 200px;
    height: 200px;
    top: -50px;
    left: -50px;
}

.cta__decorator-2 {
    width: 150px;
    height: 150px;
    bottom: -40px;
    right: -40px;
}

/* 6.8 Contact Page Section */
.contact-page {
    padding-top: 10rem;
}

.contact-page__description {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 4rem;
}

.contact-page__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.contact-page__info {
    background-color: var(--bg-dark-alt);
    padding: 2rem;
    border-radius: 8px;
}

.contact-page__info-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contact-page__info-list {
    margin-top: 2rem;
}

.contact-page__info-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-page__info-list svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    margin-top: 4px;
}

.contact-page__info-list h4 {
    margin-bottom: 0.25rem;
    color: var(--white-color);
}

.contact-page__info-list span {
    color: var(--text-muted);
}

/* 6.9 Legal Pages Section */
.legal {
    padding-top: 10rem;
    padding-bottom: 6rem;
}

.legal__container {
    max-width: 800px;
    background-color: var(--bg-dark-alt);
    padding: 3rem;
    border-radius: 8px;
}

.legal__container h1 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 1rem;
}

.legal__container h2 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.legal__container p,
.legal__container ul {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.legal__container ul {
    padding-left: 1.5rem;
    list-style-type: disc;
}

.legal__container li {
    margin-bottom: 0.5rem;
}


/* ==========================================================================
   7. ANIMATIONS & EFFECTS
   ========================================================================== */
/* On-scroll animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Initial state for hero animations */
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes morph {

    0%,
    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    50% {
        border-radius: 60% 40% 30% 70% / 60% 70% 30% 40%;
    }
}

@keyframes rotateGradient {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Scroll to top button */
.scroll-up {
    position: fixed;
    right: 1.5rem;
    bottom: -30%;
    background-color: var(--primary-color);
    color: var(--white-color);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    z-index: 100;
    transition: bottom 0.4s, transform 0.4s;
}

.scroll-up.show-scroll {
    bottom: 3rem;
}

.scroll-up:hover {
    transform: translateY(-5px);
    background-color: var(--primary-color-alt);
}

.scroll-up svg {
    width: 24px;
    height: 24px;
}


/* ==========================================================================
   8. RESPONSIVENESS (Media Queries)
   ========================================================================== */

/* For small devices (phones) */
@media screen and (max-width: 375px) {
    :root {
        --fs-h1: 2.5rem;
        --fs-h2: 1.8rem;
    }

    .hero__buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero__buttons .button {
        width: 100%;
    }

    .calculator__checkbox-grid {
        grid-template-columns: 1fr;
    }
}

/* For medium devices (tablets) */
@media screen and (min-width: 768px) {
    :root {
        --fs-h1: 4.5rem;
        --fs-h2: 3rem;
    }

    .section {
        padding: 8rem 0;
    }

    .nav__menu {
        position: static;
        width: auto;
        height: auto;
        background-color: transparent;
        padding: 0;
        box-shadow: none;
    }

    .nav__list {
        flex-direction: row;
        gap: 2.5rem;
    }

    .nav__close,
    .nav__toggle {
        display: none;
    }

    .hidden-mobile {
        display: inline-block;
    }

    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero__container {
        grid-template-columns: 1fr 0.8fr;
        text-align: left;
    }

    .hero__data {
        text-align: left;
    }

    .about__container {
        grid-template-columns: 0.8fr 1fr;
    }

    .contact-page__grid {
        grid-template-columns: 1fr 1.2fr;
    }

    .calculator__wrapper {
        grid-template-columns: 1fr 1fr;
    }

    .testimonial__navigation {
        padding: 0;
        transform: translate(calc(-100% - 2rem), -50%);
        width: 40px;
        flex-direction: column;
        gap: 1rem;
        left: 0;
    }
}

/* For large devices (desktops) */
@media screen and (min-width: 1024px) {
    .footer__grid {
        grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    }

    .process__item {
        gap: 3rem;
    }
}

/* For extra-large devices */
@media screen and (min-width: 1200px) {
    .container {
        padding: 0;
    }

    .hero {
        padding: 12rem 0;
    }
}