:root {
    --primary-color: #1c2325;
    --primary-color-light: rgb(74, 91, 108);
    --primary-color-extra-light: rgb(159, 172, 184);
    --secondary-color-dark: #f58f27;
    --secondary-color: #ffab34;
    --secondary-color-light: #f8bf6f;
}

html {
    font-size: calc(0.533vw + 0.533vh);
    scroll-behavior: smooth;
}


/* * {
    outline: 1px solid lime;
} */

body {
    margin: 0;
    padding: 0;
    background: linear-gradient(to right, rgb(205, 210, 215), #FFF) no-repeat;
    background-size: 100%;
    font-family: 'Source Sans Pro', sans-serif;
    width: 100vw;
    overflow-x: hidden;
}

header.desktop {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8rem;
    box-sizing: border-box;
    backdrop-filter: blur(9px);
    z-index: 99;
    background: linear-gradient(to right, rgba(205, 210, 215, 0.6), #FFFFFF96);
    box-shadow: 0 0 1.5rem -3px rgba(0, 0, 0, 0.333);
}

header.desktop .logo-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
}

.logo-container svg {
    width: 7.5rem;
    height: 6rem;
    padding-bottom: 0.5rem;
    filter: drop-shadow(4px 4px 3px #1c23253e);
}

.logo-container svg:hover {
    cursor: pointer;
    filter: drop-shadow(2px 3px 2px #1c23254f);
    transition: filter 300ms;
}

.logo-container svg g {
    fill: var(--secondary-color);
}

.logo-container h2 {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-color);
}

header.desktop nav {
    display: flex;
    gap: 6rem;
}

header.desktop nav a {
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--primary-color);
}

header.desktop nav a:hover {
    text-shadow: 0.25rem 0.25rem 2px var(--primary-color-extra-light);
    text-decoration: none;
    transition: text-shadow 300ms cubic-bezier(0.6, 0.05, 0.35, 1);
}

header.desktop .languages {
    position: relative;
    cursor: pointer;
}

header.desktop .languages-list {
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    border-radius: 0.25rem;
    background: #fff5;
    overflow: hidden;
    transition: opacity 200ms ease-in-out;
    box-shadow: 0 0 0.4rem -0.05rem var(--primary-color);
}

header.desktop .languages:hover .languages-list {
    opacity: 1;
    pointer-events: all;
}

header.desktop .languages-list a:not(:last-child) {
    border-bottom: 0.05rem solid var(--primary-color-light);
}

header.desktop .languages-list a {
    padding: 0.5rem 1.25rem;
    height: 2.25rem;
    box-sizing: border-box;
    text-align: center;
    font-weight: 600;
    white-space: nowrap;
    position: relative;
}

header.desktop .languages-list a:hover {
    text-shadow: none;
    background: var(--secondary-color-light);
}

header.desktop .languages-list a svg {
    height: 1.25rem;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

header.mobile {
    display: none;
}

header.mobile input {
    position: fixed;
    display: block;
    height: 2rem;
    width: 2rem;
    top: 2rem;
    right: 2rem;
    z-index: 15;
    opacity: 0 !important;
    animation: none !important;
    cursor: pointer;
}

header.mobile .menu-btn {
    display: block;
    height: 2.5rem;
    width: 3rem;
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 13;
    display: flex;
    flex-direction: column;
    transition: opacity 200ms;
    justify-content: space-between;
}

header.mobile .line {
    display: block;
    height: 0.56rem;
    width: 100%;
    border-radius: 10px;
    background: var(--primary-color);
}

.line1 {
    transform-origin: 0% 0%;
    transition: transform 0.4s ease-in-out;
}

header.mobile input:checked ~ .menu-btn .line1 {
    transform: rotate(45deg);
}

.line2 {
    transition: transform 0.2s ease-in-out;
}

header.mobile input:checked ~ .menu-btn .line2 {
    transform: scaleY(0);
}

.line3 {
    transform-origin: 0% 100%;
    transition: transform 0.4s ease-in-out;
}

header.mobile input:checked ~ .menu-btn .line3 {
    transform: rotate(-45deg);
}

.mobile-header {
    display: flex;
    color: white;
    flex-direction: column;
    align-items: center;
    right: -100%;
    height: 105vh;
    padding: 10rem 1rem 1rem 1rem;
    transition: right 0.4s ease-in-out;
    z-index: 10;
    position: fixed;
    top: 0;
    bottom: 0;
    backdrop-filter: blur(8px);
    background: #1c232550;
    width: 40%;
}

header.mobile input:checked ~ .mobile-header {
    right: 0;
}

.mobile-header h2 {
    font-size: 3.25rem;
    margin-bottom: 6rem;
}

.mobile-header a {
    text-decoration: none;
    font-size: 2.5rem;
    font-weight: 500;
    color: white;
    letter-spacing: 0.1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.mobile-header > p {
    font-size: 2rem;
    margin-top: 6rem;
}

.mobile-header .languages-list {
    display: flex;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    padding: 0 1rem;
}

.mobile-header .languages-list svg {
    height: 2.75rem;
}

section {
    display: flex;
    padding: 0 8rem;
}

section:nth-of-type(2) {
    background: linear-gradient(to right, var(--secondary-color-light), var(--secondary-color));
    margin-top: 6rem;
}

section:nth-of-type(3) {
    margin-top: 3rem;
    flex-direction: column;
}

section:nth-of-type(4) {
    padding: 0 4rem;
    margin-top: 12rem;
    background: linear-gradient(to left, var(--secondary-color-light), var(--secondary-color));
    color: var(--primary-color);
}

section:nth-of-type(4) .section-title {
    white-space: nowrap;
    height: fit-content;
    font-weight: 900;
    color: white;
    text-shadow: 0.66rem 0.5rem 0.125rem var(--primary-color);
    transition: text-shadow 200ms cubic-bezier(0.6, 0.05, 0.35, 1);
}

section:nth-of-type(4) .section-title:hover {
    text-shadow: 0.5rem 0.33rem 0.33rem var(--primary-color);
}

.img-container {
    flex-grow: 1;
}

.img-container img {
    width: 100%;
    object-fit: cover;
}

.intro {
    width: 40%;
    display: flex;
    flex-direction: column;
    padding-top: 8rem;
    align-items: baseline;
}

.intro h1 {
    font-size: 4.5rem;
    font-weight: 900;
    color: var(--primary-color);
}

.intro p {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--primary-color-light);
    margin-bottom: 6rem;
    margin-top: 0;
}

.btn-primary {
    padding: 1rem 3rem;
    border: none;
    border-radius: 99rem;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease-in-out;
    text-decoration: none;
}

.btn-primary:focus {
    outline: none;
}

.btn-primary:not(:disabled):hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    cursor: pointer;
}

.results {
    display: flex;
    width: 100%;
    justify-content: space-around;
    /* border-top: 0.25rem solid rgb(159, 172, 184, 0.3);
    border-bottom: 0.25rem solid rgb(159, 172, 184, 0.3); */
}

.results-item {
    width: 30%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4rem 0;
}

.results-item h3 {
    font-size: 1.75rem;
    color: var(--primary-color);
    text-align: center;
}

.results-item svg {
    height: 4rem;
    stroke: var(--primary-color);
}

.results-item svg path {
    stroke-width: 1.5;
}

.scroller {
    width: 100%;
    height: 100vh;
}

.section-title {
    text-align: center;
    font-size: 6rem;
    font-weight: 200;
}

[lang="ka"] .section-title {
    font-size: 5rem;
}

.services {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 4rem;
    padding: 0 4rem;
    color: var(--primary-color);
}

.services-item {
    width: 100%;
    text-align: center;
    box-shadow: 0.2rem 0.2rem 1rem -0.5rem rgba(0, 0, 0, 0.333);
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
}

.services-title {
    width: 100%;
    box-sizing: border-box;
    padding: 1rem;
    background: linear-gradient(to right, var(--secondary-color-dark) 0%, var(--secondary-color-light) 40%, var(--secondary-color-light) 100%) no-repeat padding-box;
    background-size: 200%;
    background-position: 50% 0%;
    transition: background-position 300ms ease-in-out;
    display: grid;
    place-items: center;
}

.services-title h3 {
    margin: 0;
    font-size: 2rem;
}

.services-item input {
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    z-index: 3;
    opacity: 0;
    margin: 0;
    pointer-events: none;
}

.services-item span {
    display: none;
    position: absolute;
    right: 1.75rem;
}

.services-item input ~ span::before {
    content: "˅";
    font-size: 2.5rem;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI';
    color: var(--primary-color);
    opacity: 0.8;
    font-weight: 600;
    display: block;
    transition: transform 150ms ease-in-out;
}

.services-item input:checked ~ span::before {
    transform: scale(1, -1);
    transform-origin: center;
}

.services-item input:checked ~ .details {
    max-height: 100vw;
    padding: 2rem;
}

.services-item:hover .services-title {
    background-position: 0% 0%;
    transition: background-position 300ms ease-in-out;
}

.services-item .details {
    text-align: left;
    padding: 2rem;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.about-us {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6rem 2rem 6rem 6rem;
    font-size: 1.75rem;
    color: var(--primary-color);
}

.about-us p {
    margin: 0.5em 0;
}

.contact-us {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding-bottom: 8rem;
}

.contact-sections {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 8rem;
}

.contact-form {
    display: grid;
    grid-template-columns: 50% 50%;
    width: 50%;
    gap: 2rem;
}

.contact-form div {
    display: flex;
    flex-direction: column;
}

.contact-form div:nth-child(3),
.contact-form div:last-child {
    grid-column: 1 / 3;
}

.contact-form div:last-child {
    align-items: flex-end;
}

.contact-form button {
    width: fit-content;
}

.contact-form label {
    font-size: 1.6rem;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    font-size: 1.5rem;
    resize: none;
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background: #fffa;
    border: 0.125rem solid var(--primary-color-light);
    border-radius: 0.5rem;
}

input:focus,
textarea:focus {
    outline: none;
}

.contact-info {
    display: flex;
    flex-direction: column;
    width: 28%;
    padding: 0 3rem 6rem 3rem;
    gap: 3rem;
    justify-content: center;
}

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

.socials a {
    font-size: 2rem;
    color: var(--primary-color);
    text-decoration: none;
    width: 85%;
}

.socials a:hover {
    color: var(--primary-color-light);
    text-decoration: none;
}

.socials svg,
.socials path,
.socials stop {
    transition: all 0.4s;
    fill: var(--primary-color);
}

.socials svg {
    height: 3rem;
}

.fb-svg svg {
    margin-left: 0.5rem;
}

.fb-svg:hover path {
    fill: #3159b1;
}

.ig-svg path {
    fill: url(#ig-gradient) #8c24d6;
}

.ig-svg:hover stop[offset="0%"],
.ig-svg:hover stop[offset="5%"] {
    stop-color: #fdf497;
}

.ig-svg:hover stop[offset="45%"] {
    stop-color: #fd5949;
}

.ig-svg:hover stop[offset="60%"] {
    stop-color: #d6249f;
}

.ig-svg:hover stop[offset="90%"] {
    stop-color: #285AEB;
}

.mail-svg:hover path {
    fill: #d44638;
}

footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
    height: 6rem;
    background: var(--primary-color);
    color: white;
    font-size: 1.25rem;
}

footer span {
    font-weight: 600;
    margin-left: 0.4rem;
    color: var(--secondary-color);
}

::-webkit-scrollbar {
    width: 0.75rem;
}

::-webkit-scrollbar-track {
    background: none;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 0.75rem;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color-light);
}

.error {
    border: 0.125rem solid red !important; 
}

@media screen and (max-width: 763px) {
    html {
        font-size: max(calc(0.7vw + 0.7vh), 8.25px);
    }

    header.desktop {
        display: none;
    }

    header.mobile {
        display: flex;
    }

    .img-container {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translate(48%, -50%);
        z-index: -1;
    }

    section:first-of-type {
        padding: 0 8rem 0 4rem;
    }

    section {
        padding: 0px 4rem;
    }

    #intro {
        position: relative;
        overflow: hidden;
    }
    
    .intro {
        width: 69%;
        /* nice */
        padding-top: 6rem;
        padding-bottom: 4rem;
    }

    .intro p {
        width: 90%;
    }

    .results {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .results-item {
        width: 100%;
    }

    .results-item:nth-child(1), .results-item:nth-child(2) {
        padding-bottom: 0;
    }

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

    .services-item span, .services-item input {
        display: block;
        pointer-events: all;
    }

    .services-title{
        grid-template-columns: auto 2.5rem;
    }

    .services-item .details {
        font-size: 1.5rem;
        padding: 0 2rem;
        max-height: 0;
        overflow: hidden;
    }

    #about {
        flex-direction: column;
    }

    #about h2 {
        font-size: 7rem;
        margin: 4rem 0;
    }

    [lang="ka"] #about h2 {
        font-size: 6rem;
    }

    .about-us {
        padding: 0 2rem 6rem 2rem;
    }

    .contact-sections {
        flex-direction: column;
        padding: 0 2rem;
    }
    
    .contact-info {
        width: 100%;
        padding: 0 1rem 6rem 1rem;
        box-sizing: border-box;
    }

    .contact-form {
        width: 100%;
        gap: 1rem;
    }
}