:root {
  --main-bg-color: #96bfc3;
  --main-bg-color-bis: #4b94a2;
}

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

@font-face {
  font-family: 'medium_font';
  src: url('./font/medium.otf');
}
@font-face {
    font-family: 'light_font';
    src: url('./font/light.otf');
}
@font-face {
    font-family: 'regular_font';
    src: url('./font/regular.otf');
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

@keyframes gradient {
    0% {
      background-position: 0 50%;
    }
    50% {
      background-position: 100% 50%;
    }
    100% {
      background-position: 0 50%;
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body {
    font-family: 'medium_font', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #fff;
    overflow-x: hidden;
}

.container, .container__timeline {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.container__timeline {
    max-width: 1400px;
    padding: 0 1rem;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 4rem;
    background: linear-gradient(-45deg, #ffffff, #ffffff, #5d9a9c52);
    background-size: 400% 400%;
    animation: gradient 10s ease infinite;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="%23000" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    gap: 2rem;
    align-items: center;
    position: relative;
    z-index: 1;
}
.hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hero__content img {
  width: 60%;
  margin-bottom: 15px;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease-out forwards;
}

.hero__logo {
    display: contents;
}
.hero__title {
    font-size: clamp(1.5rem, 8vw, 1.5rem);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    font-family: 'light_font', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.hero__accent {
    background: linear-gradient(135deg, #858585 0%, var(--main-bg-color-bis) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-family: 'light_font', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #666;
    margin-top: 3rem;
    margin-bottom: 2.5rem;
    max-width: 500px;
    text-align: center;
    font-size: 16px;
}
.help {
    margin-top: 1rem;
    margin-bottom: 0;
}
.lastHelp {
    margin-bottom: 3rem;
}

.hero__cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn--primary {
    background: linear-gradient(135deg, var(--main-bg-color) 0%, var(--main-bg-color-bis) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn--secondary {
    background: transparent;
    color: var(--main-bg-color-bis);
    border: 2px solid transparent;
}

.btn--secondary:hover {
    background: var(--main-bg-color-bis);
    color: white;
    transform: translateY(-2px);
}

.btn--form {
    background: linear-gradient(135deg, var(--main-bg-color) 0%, var(--main-bg-color-bis) 100%);
    color: white;
}

.btn--form:hover {
    transform: translateY(-2px);
}

.btn--full {
    width: 100%;
}

.services {
    padding: 4rem 0;
    background: white;
}

.section__header {
    text-align: center;
    margin-bottom: 4rem;
}

.section__title {
    font-size: clamp(1.5rem, 5vw, 1.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.section__subtitle {
    font-family: 'light_font', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.services__grid {
    display: flex;
    gap: 2rem;
    margin-top: 4rem;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

.service__card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    width: 31%;
    min-width: 250px;
}

.service__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.service__icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--main-bg-color) 0%, var(--main-bg-color-bis) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
}

.service__icon svg, .service__icon img, .timeline__icon svg, .timeline__icon img {
    width: 28px;
    height: 28px;
}

.service__title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.service__description {
    font-family: 'light_font', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #666;
    line-height: 1.7;
}

.timeline {
    padding: 4rem 0;
    background: #f3f7f8;
}

.timeline__grid {
    display: flex;
    gap: 2rem;
    margin-top: 4rem;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

.timeline__card {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    text-align: center;
    transition: 0.3s;
    width: 18%;
    min-width: 230px;
}

.timeline__icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto .5rem;
    color: var(--main-bg-color);
    font-size: 30px;
    transition: 0.3s;
    background-color: #ffffff;
}

.timeline__card:hover .timeline__icon {
    background-color: var(--main-bg-color);
    transition: 0.3s;
}

.timeline__card:hover .timeline__icon svg, .timeline__card:hover .timeline__icon img {
    transition: 0.3s;
    display: block;
}

.timeline__card:hover .timeline__icon label {
    display: none;
    transition: 0.3s;
}

.timeline__icon svg, .timeline__icon img {
    display: none;
}

.about {
    padding: 8rem 0;
    background: #f8f9fa;
}

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

.about__title {
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

.about__description {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.about__stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat__number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.stat__label {
    font-size: 0.9rem;
    color: #666;
}
.about__form {
    display: flex;
    width: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.about__form form {
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 15px;
    width: 100%;
    max-width: 500px;
}
.about__form label {
    width: 100%;
    height: auto;
    font-size: 12px;
    font-family: 'light_font', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;;
}
.about__form input,
.about__form textarea {
    width: 100%;
    padding: 5px 7px;
    border: 1px solid #fff;
    font-size: 16px;
    border-radius: 7px;
    transition: 0.2s;
}
.about__form textarea {
    height: 100px;
    font-family: 'regular_font', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.about__form input:hover,
.about__form textarea:hover {
    border-color: var(--main-bg-color-bis);
}

.help__number {
    margin-top: 3rem;
    font-size: 14px;
    a {
        font-size: 14px;
    }
}

.about__shape {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--main-bg-color) 0%, var(--main-bg-color-bis) 100%);
    border-radius: 50% 30% 50% 30%;
    animation: morphing 10s ease-in-out infinite;
    opacity: 0.4;
}

.contact {
    padding: 8rem 0;
    background: white;
}

.contact__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact__title {
    font-family: 'medium_font', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.contact__subtitle {
    font-family: 'light_font', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

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

.contact__item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact__icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--main-bg-color) 0%, var(--main-bg-color-bis) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.contact__icon svg {
    width: 24px;
    height: 24px;
}

.contact__text {
    display: flex;
    flex-direction: column;
}

.contact__label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.contact__link {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact__link:hover {
    color: var(--main-bg-color-bis);
}

.form {
    background: #f8f9fa;
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid #e9ecef;
}

.form__group {
    margin-bottom: 1.5rem;
}

.form__input,
.form__textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: white;
    transition: border-color 0.3s ease;
}

.form__input:focus,
.form__textarea:focus {
    outline: none;
    border-color: #667eea;
}

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

.footer {
    background: #1a1a1a;
    color: white;
    padding: 3rem 0;
}

.footer__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer__brand div {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
}
.footer__brand img {
    height: 30px;
    width: auto;
}
.footer__brand h3 {
    font-size: 2rem;
    font-weight: 700;
    background-clip: text;
    color: #fff;
    font-family: 'medium_font', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.footer__brand p {
    color: #888;
    font-size: 0.9rem;
}
.footer__copy a {
    color: #afafaf;
    transition: 0.2s;
    text-decoration: none;
}
.footer__copy a:hover {
    color: #fff;
    text-decoration: underline;
}
.footer__copy p {
    color: #888;
    font-size: 0.9rem;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes morphing {
    0%, 100% {
        border-radius: 50% 20% 50% 20%;
        transform: rotate(0deg);
    }
    20% {
        border-radius: 40% 20% 30% 20%;
        transform: rotate(90deg);
    }
    35% {
        border-radius: 35% 20% 35% 20%;
        transform: rotate(45deg);
    }
    50% {
        border-radius: 50% 30% 50% 30%;
        transform: rotate(180deg);
    }
    70% {
        border-radius: 45% 50% 25% 50%;
        transform: rotate(225deg);
    }
    85% {
        border-radius: 35% 50% 25% 35%;
        transform: rotate(270deg);
    }
}

@media (max-width: 1024px) {
    .hero__container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

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

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

    .hero__visual {
        order: -1;
    }

    .about__stats {
        justify-content: center;
    }

    .contact__details {
        display: flex;
        flex-direction: row;
        gap: 1.5rem;
        justify-content: space-around;
    }
}

@media (max-width: 768px) {
    .nav__menu {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 2rem 1.5rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav__menu--active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav__toggle {
        display: flex;
    }

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

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

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

    .hero {
        padding: 6rem 0 3rem;
    }

    .services,
    .about,
    .contact {
        padding: 4rem 0;
    }

    .services__grid, .timeline__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service__card, .timeline__card {
        padding: 2rem;
    }

    .hero__cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .btn--form {
        max-width: none;
    }

    .hero__card--1 {
        width: 240px;
        height: 150px;
    }

    .hero__card--2 {
        width: 100px;
        height: 180px;
        right: -30px;
        top: 30px;
    }

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

    .footer__content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    .footer__brand div {
        justify-content: center;
    }
    .footer__brand h3 {
        display: none;
    }
    .footer__brand img {
        height: 45px;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    .container__timeline {
        padding: 0 0.5rem;
    }

    .nav {
        padding: 1rem;
    }

    .hero {
        padding: 5rem 0 2rem;
    }

    .services,
    .about,
    .contact {
        padding: 3rem 0;
    }

    .hero__card {
        display: none;
    }

    .hero__visual {
        min-height: 200px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-radius: 16px;
        opacity: 0.1;
    }

    .service__card, .timeline__card {
        padding: 1.5rem;
    }

    .form {
        padding: 1.5rem;
    }

    .contact__details {
        gap: 1rem;
    }

    .contact__item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .section__header {
        margin-bottom: 2rem;
    }
}

@media print {
    .nav__toggle,
    .hero__visual{
        display: none;
    }

    .hero__container,
    .about__content,
    .contact__content {
        grid-template-columns: 1fr;
    }

    .btn {
        border: 1px solid #667eea;
        background: white !important;
        color: #667eea !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}
