@import url("global.css");

/* HERO */
.logo {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 0 auto;
    justify-content: center;
    padding: 5px;
}

.logo img {
    margin-right: 10px;
    height: 30px;
    width: 30px;
}

.logo p {
    margin: 0;
    font-size: 12px;
    font-weight: bold;
    background: linear-gradient(45deg, var(--info), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline;
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1010;
    background: transparent;
    backdrop-filter: blur(10px);
    width: fit-content;
    margin: 0 auto;
    border-radius: 10px;
}

.nav-links {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.nav-links a {
    position: relative;
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
    padding: 10px;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 5px;
    height: 3px;
    background-color: var(--info);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.nav-links a:hover {
    color: var(--info);
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

.menu-icon {
    display: none;
    font-size: 30px;
    cursor: pointer;
    text-align: right;
    padding: 10px;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1010;
}

.fullscreen-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1020;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;
}

.fullscreen-menu a {
    color: var(--text-color);
    font-size: 24px;
    text-decoration: none;
}
.fullscreen-menu a:hover {
    color: var(--info);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    color: var(--error);
    cursor: pointer;
}
/*NAVBAR*/

.container {
    width: 90%;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.hero {
    background: var(--bg-color);
    padding: 2em 1em;
    text-align: center;
    position: relative;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    margin: 2em auto;
    max-width: 90%;
}

.hero-content {
    display: inline-block;
    vertical-align: top;
    max-width: 60%;
    text-align: left;
}

.hero h1 {
    font-size: 2em;
}

.hero p {
    font-size: 1em;
    margin: 1em 0;
}
.hero-buttons .btn {
    position: relative;
    background-color: transparent;
    color: var(--text-color);
    padding: 0.8em 1.5em;
    margin-right: 1em;
    margin-top: 10px;
    border: 1px solid var(--info);
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    overflow: hidden;
    z-index: 1;
    transition: background-image 0.3s;
}

.hero-buttons .btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-20deg);
    z-index: 2;
    pointer-events: none;
}

.hero-buttons .btn:hover::before {
    animation: shine 0.75s ease-out;
}

@keyframes shine {
    0% {
        left: -75%;
    }
    100% {
        left: 125%;
    }
}

.hero-buttons .btn:hover {
    background-image: linear-gradient(to right, var(--main-color), var(--info));
}
.hero-buttons .btn-secondary {
    background-image: radial-gradient(
        circle at center,
        var(--info),
        var(--bg-color)
    );
    border: none;
}

.hero-buttons .btn-secondary:hover {
    background-image: radial-gradient(
        circle at center,
        var(--main-color),
        var(--second-bg-color)
    );
}

.hero-image {
    display: inline-block;
    vertical-align: top;
    max-width: 35%;
    text-align: center;
}

.hero-image img {
    max-width: 350px;
    max-height: 350px;
    border-radius: 15px;
}

#modelViewer {
    width: 350px;
    height: 350px;
    position: relative;
}

/* PARTNERS */
.partners {
    padding: 20px 10px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.partners > .container,
.partners > #partnersBtn {
    position: relative;
    z-index: 1;
}

#partnersBtn {
    margin-bottom: 20px;
    color: var(--text-color);
    text-align: right;
    cursor: pointer;
}
#partnersBtn:hover {
    color: var(--info);
}

.partners .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    align-items: center;
    justify-content: center;
}

.partner-item {
    border-radius: 10px;
    padding: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.partner-item p {
    margin: 0;
    font-size: 12px;
    color: var(--text-secondary);
}

.partner-item:hover {
    transform: translateY(-5px);
}

.partners .clientele {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(2.5rem, 8vw, 10rem);
    font-weight: 700;
    color: var(--info);
    opacity: 0.1;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    user-select: none;
    white-space: nowrap;
    pointer-events: none;
    z-index: 0;
    width: 100%;
    text-align: center;
}

.partners img {
    height: 80px;
    width: 80px;
    border-radius: 10px;
    object-fit: contain;
    transition: transform 0.3s;
    margin-bottom: 5px;
}

.partners img:hover {
    transform: scale(1.1);
}

.partner-title {
    font-size: 12px;
    color: var(--text-color);
    margin-top: 5px;
    text-transform: uppercase;
    white-space: normal;
    word-break: break-word;
}

@media (max-width: 768px) {
    .partners .container {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 15px;
    }
    .partners img {
        height: 80px;
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    overflow: auto;
}

.modal.active {
    display: block;
}

.modal-content {
    background-color: transparent;
    backdrop-filter: blur(10px);
    margin: 10% auto;
    padding: 20px;
    width: 80%;
    max-width: 800px;
    border-radius: 8px;
    position: relative;
}

.modal-content h2 {
    font-size: 20px;
    font-weight: 100;
    margin-bottom: 20px;
    color: var(--text-color);
}

.modal-content .close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.modal-content .close:hover {
    color: var(--error);
}

.modal-partners-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.modal-partners-container .partner-item {
    background-color: transparent;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.modal-partners-container .partner-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.modal-partners-container .partner-item img {
    height: 100px;
    width: 100px;
    object-fit: contain;
    transition: transform 0.3s;
    margin-bottom: 5px;
}

.modal-partners-container .partner-item img:hover {
    transform: scale(1.05);
}

.modal-partners-container .partner-title {
    font-size: 14px;
    color: var(--text-color);
    margin-top: 3px;
    text-align: center;
    white-space: normal;
    word-break: break-word;
}

/* FEATURE CARDS */
.contp {
    text-decoration: none !important;
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    justify-items: center;
    align-items: stretch;
    border-radius: 20px;
    animation: slideUp 1s ease-in-out;
}

.feature-card {
    padding: 20px;
    background-color: var(--bg-color);
    border-radius: 20px;
    margin-bottom: 20px;
    width: 100%;
    max-width: 300px;
    text-align: center;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    transform: scale(1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.05);
}
.feature-card h3 {
    margin-bottom: 10px;
    color: var(--text-color);
    z-index: 2;
    position: relative;
}
.feature-card a {
    color: var(--info);
    text-decoration: none;
}
.feature-card h3:hover {
    color: var(--info);
}

.scontainer a {
    color: var(--info);
    text-decoration: none;
}
.scontainer a:hover {
    text-decoration: underline;
}

.feature-card img {
    width: 150px;
    height: 150px;
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: 15px;
    transition: transform 0.4s;
    z-index: 2;
    position: relative;
}

.feature-card:hover img {
    transform: scale(1.1);
}

.feature-card p {
    color: var(--text-color);
    z-index: 2;
    position: relative;
    line-height: 1.6;
}

.step-number {
    position: absolute;
    top: 50%;
    left: 25%;
    transform: translate(-50%, -50%);
    font-size: 120px;
    color: var(--text-secondary);
    font-weight: bold;
    z-index: 10;
    pointer-events: none;
    user-select: none;
}
.step-number:hover {
    color: var(--info);
}

@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* TECH&COMMUNITY */
.technology {
    text-align: center;
}

.technology h2 {
    margin-bottom: 1em;
}

.tech-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1em;
    width: 90%;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.tech-cardbig-content {
    display: flex;
    align-items: center;
    background-color: var(--second-bg-color);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    padding: 10px;
    border-radius: 15px;
    cursor: pointer;
    transition: transform 0.3s, filter 0.3s;
    width: 100%;
}

.tech-cardbig-content:hover {
    transform: translateY(-10px);
    filter: brightness(1.1);
}

.tech-cardbig {
    width: fit-content;
}

.tech-cardbig-image {
    flex: 1;
}

.tech-cardbig-image img {
    max-width: 500px;
    max-height: 500px;
    border-radius: 15px;
}

.tech-cardbig-text {
    flex: 1;
    padding: 0 1em;
    text-align: left;
}

/* OFFER */
.dycontainer {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    height: 100%;
    gap: 20px;
    padding: 20px;
    justify-content: center;
}

.dysection {
    position: relative;
    flex: 1;
    min-width: 280px;
    height: 300px;
    background-size: cover;
    background-position: center;
    transition: flex 0.5s, background-color 0.3s, filter 0.3s;
    filter: brightness(0.6);
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.dysection .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: var(--text-color);
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s, transform 0.5s ease-out;
}

.dysection:hover {
    flex: 2;
    background-color: rgba(0, 0, 0, 0.2);
    filter: brightness(1);
}

.dysection:hover .overlay {
    opacity: 1;
    transform: translateY(0);
}

.dysection h2 {
    margin: 0;
    font-size: 1.6em;
    font-weight: bold;
    text-transform: uppercase;
}

.dysection p {
    margin-top: 10px;
    font-size: 1.1em;
    line-height: 1.5em;
}

#section1 {
    background-image: url("../images/webdesign.jpeg");
}

#section2 {
    background-image: url("../images/webmarket.jpeg");
}

#section3 {
    background-image: url("../images/appdesign.jpeg");
}

#section4 {
    background-image: url("../images/appmarket.jpeg");
}

@media (max-width: 900px) {
    .dycontainer {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
        width: 90%;
        height: auto;
        margin: 0 auto;
    }

    .dysection {
        height: 250px;
        transition: transform 0.3s ease, filter 0.3s ease;
    }

    .dysection h2 {
        font-size: 1.3em;
    }

    .dysection p {
        font-size: 1em;
    }

    .overlay {
        font-size: 14px;
    }
}

/*SCROLLBAR*/
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--text-color);
    border-radius: 10px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    cursor: grabbing;
}

@media screen and (max-width: 900px) {
    .hero-content,
    .hero-image {
        max-width: 100%;
        text-align: center;
    }

    .hero-image {
        margin-top: 2em;
    }

    .tech-content {
        flex-direction: row;
        align-items: center;
    }

    .feature-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-card {
        margin: 1em;
    }

    .tech-card {
        width: 80%;
    }

    .section {
        flex: 100%;
        height: 200px;
    }

    .navbar {
        justify-content: flex-end;
        display: none;
    }

    .menu-icon {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        gap: 10px;
    }

    .nav-links.active {
        display: flex;
    }

    .fullscreen-menu.active {
        display: flex;
    }

    .tech-cardbig-content {
        flex-direction: column;
    }

    .tech-cardbig-text {
        padding: 1em 0;
    }

    .tech-cardbig-image {
        margin-bottom: 1em;
    }
}

@media screen and (max-width: 600px) {
    .hero h1 {
        font-size: 1.8em;
    }
    .hero p {
        font-size: 1em;
    }

    .navbar {
        flex-direction: column;
    }

    .navbar a {
        margin: 0.5em 0;
    }

    .hero-buttons .btn {
        padding: 0.6em 1em;
    }
    .step-number {
        display: none;
    }

    .feature-card,
    .tech-card {
        width: 100%;
    }

    .feature-cards {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 600px) {
    .navbar {
        text-align: center;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .nav-links a {
        margin: 10px 0;
        text-align: center;
    }

    .menu-icon {
        text-align: center;
        font-size: 1.5rem;
    }

    .hero {
        text-align: center;
    }

    .hero-content {
        padding: 0 10px;
    }

    .hero-content h1 {
        font-size: 15px;
    }

    .hero-content p {
        font-size: 12px;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons a {
        margin: 10px 0;
        width: 80%;
        text-align: center;
        font-size: 12px;
    }

    .hero-image {
        text-align: center;
    }

    .model-container {
        display: none;
    }

    .features {
        padding: 0 10px;
    }

    .feature-cards {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .feature-card {
        margin: 10px 0;
        width: 100%;
        text-align: center;
    }

    .feature-card h3 {
        margin-bottom: 10px;
    }

    .feature-card img {
        width: 100%;
        height: auto;
    }

    .tech-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0px;
    }

    .tech-cardbig-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .tech-cardbig-image img {
        width: 100%;
        height: auto;
    }

    .dysection {
        width: 100%;
        margin: 10px 0;
    }

    .dysection .overlay {
        padding: 20px;
    }
}

.not-available {
    margin: 0 auto;
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    grid-column: 1/-1;
}

.not-available img {
    margin-bottom: 1rem;
    width: 30px;
    height: 30px;
}
