/* =============== GOOGLE FONTS =============== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&family=Space+Grotesk:wght@300;500;700&display=swap');

/* =============== VARIABLES CSS =============== */
:root {
    --header-height: 3.5rem;

    /* Colors */
    --hue: 190;
    /* Cyan base */
    --first-color: hsl(var(--hue), 100%, 50%);
    --first-color-alt: hsl(var(--hue), 100%, 40%);
    --first-color-light: hsl(var(--hue), 100%, 75%);
    --title-color: hsl(var(--hue), 10%, 95%);
    --text-color: hsl(var(--hue), 8%, 75%);
    --text-color-light: hsl(var(--hue), 8%, 55%);
    --body-color: hsl(220, 20%, 8%);
    /* Very dark blue/black */
    --container-color: hsl(220, 20%, 12%);
    --border-color: hsl(220, 20%, 20%);

    /* Font and Typography */
    --body-font: 'Outfit', sans-serif;
    --title-font: 'Space Grotesk', sans-serif;
    --big-font-size: 2.5rem;
    --h1-font-size: 1.75rem;
    --h2-font-size: 1.25rem;
    --h3-font-size: 1rem;
    --normal-font-size: .938rem;
    --small-font-size: .813rem;
    --smaller-font-size: .75rem;

    /* Font Weight */
    --font-light: 300;
    --font-medium: 500;
    --font-bold: 700;

    /* Z Index */
    --z-tooltip: 10;
    --z-fixed: 100;
    --z-modal: 1000;
}

/* Responsive Typography */
@media screen and (min-width: 968px) {
    :root {
        --big-font-size: 4rem;
        --h1-font-size: 2.5rem;
        --h2-font-size: 1.75rem;
        --h3-font-size: 1.25rem;
        --normal-font-size: 1rem;
        --small-font-size: .875rem;
        --smaller-font-size: .813rem;
    }
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    background-color: var(--body-color);
    color: var(--text-color);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    color: var(--title-color);
    font-family: var(--title-font);
    font-weight: var(--font-bold);
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

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

/* =============== REUSABLE CSS CLASSES =============== */
.container {
    max-width: 1024px;
    margin-left: 1.5rem;
    margin-right: 1.5rem;
}

.grid {
    display: grid;
    gap: 1.5rem;
}

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

.section__title {
    font-size: var(--h1-font-size);
    color: var(--title-color);
    text-align: center;
    margin-bottom: 0.5rem;
}

.section__subtitle {
    display: block;
    font-size: var(--small-font-size);
    color: var(--first-color);
    text-align: center;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.gradient-text {
    background: linear-gradient(90deg, var(--first-color), #a855f7);
    -webkit-background-clip: text;
    color: transparent;
}

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

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

.nav__logo {
    color: var(--title-color);
    font-family: var(--title-font);
    font-weight: var(--font-bold);
    font-size: var(--h3-font-size);
    letter-spacing: 1px;
}

.nav__logo .highlight {
    color: var(--first-color);
}

.nav__toggle {
    font-size: 1.25rem;
    color: var(--title-color);
    cursor: pointer;
}

@media screen and (max-width: 767px) {
    .nav__menu {
        position: fixed;
        top: -100%;
        left: 0;
        width: 100%;
        background-color: rgba(16, 20, 30, 0.95);
        backdrop-filter: blur(10px);
        padding: 2.5rem 0 2.5rem;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
        transition: .4s;
        display: flex;
        flex-direction: column;
        align-items: center;
        row-gap: 1.5rem;
        z-index: var(--z-fixed);
    }
}

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

.nav__list {
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 2rem;
}

.nav__link {
    color: var(--title-color);
    font-weight: var(--font-medium);
    transition: .3s;
}

.nav__link:hover {
    color: var(--first-color);
}

.nav__close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
    color: var(--title-color);
    cursor: pointer;
}

/* =============== HOME =============== */
.home__container {
    padding-top: 2rem;
    row-gap: 2.5rem;
}

.home__content {
    text-align: center;
}

.home__title {
    font-size: var(--big-font-size);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.home__description {
    margin-bottom: 2.5rem;
    color: var(--text-color-light);
}

.home__buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.button {
    display: inline-block;
    background-color: var(--first-color);
    color: var(--body-color);
    padding: 1rem 2rem;
    border-radius: .5rem;
    font-weight: var(--font-medium);
    transition: .3s;
    border: 1px solid var(--first-color);
}

.button:hover {
    background-color: transparent;
    color: var(--first-color);
    box-shadow: 0 0 15px var(--first-color-alt);
}

.button--link {
    background: transparent;
    color: var(--title-color);
    border: 1px solid var(--border-color);
}

.button--link:hover {
    border-color: var(--first-color);
    color: var(--first-color);
    box-shadow: none;
}

.button--flex {
    display: flex;
    align-items: center;
    column-gap: .5rem;
}

/* Visual Tech Grid Animation */
.home__visual {
    position: relative;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    transform: rotateX(45deg) rotateZ(45deg);
    perspective: 1000px;
}

.grid-item {
    width: 60px;
    height: 60px;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid var(--first-color);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
    animation: float 4s ease-in-out infinite;
}

.item-2 {
    animation-delay: 1s;
    background: rgba(168, 85, 247, 0.2);
    border-color: #a855f7;
}

.item-3 {
    animation-delay: 2s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* =============== SERVICES =============== */
.services__container {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.services__card {
    background-color: var(--container-color);
    padding: 3rem 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    transition: .4s;
    position: relative;
    overflow: hidden;
}

.services__card:hover {
    transform: translateY(-10px);
    border-color: var(--first-color);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.1);
}

.services__icon {
    font-size: 2.5rem;
    color: var(--first-color);
    margin-bottom: 1.5rem;
}

.services__title {
    font-size: var(--h3-font-size);
    margin-bottom: 1rem;
}

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

.services__card--featured {
    border-color: #a855f7;
}

.services__card--featured .services__icon {
    color: #a855f7;
}

/* =============== ABOUT =============== */
.about__container {
    row-gap: 3rem;
}

.about__data {
    text-align: left;
}

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

.about__description {
    margin-bottom: 2rem;
    color: var(--text-color-light);
}

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

.about__item {
    display: flex;
    column-gap: 1rem;
    align-items: flex-start;
}

.about__icon {
    font-size: 1.25rem;
    color: var(--first-color);
    margin-top: 0.25rem;
}

.about__item-title {
    font-size: var(--normal-font-size);
    margin-bottom: 0.25rem;
}

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

.about__tech-visual {
    background: var(--container-color);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    font-family: 'Courier New', Courier, monospace;
    color: var(--text-color);
}

.code-block span:nth-child(1) {
    color: #a855f7;
}

/* const */
.code-block span:nth-child(2) {
    color: var(--first-color);
}

/* future */
.code-block span:nth-child(3) {
    color: #a855f7;
}

/* new */
.code-block span:nth-child(4) {
    color: #ffcc00;
}

/* Innovation */

/* =============== CONTACT =============== */
.contact__container {
    row-gap: 3rem;
}

.contact__title {
    font-size: var(--h3-font-size);
    margin-bottom: 1.5rem;
}

.contact__info {
    display: grid;
    gap: 1rem;
}

.contact__card {
    background-color: var(--container-color);
    padding: 1rem;
    border-radius: .75rem;
    text-align: center;
    border: 1px solid var(--border-color);
}

.contact__card-icon {
    font-size: 2rem;
    color: var(--first-color);
    margin-bottom: .25rem;
}

.contact__card-title {
    font-size: var(--small-font-size);
    font-weight: var(--font-medium);
}

.contact__card-data {
    font-size: var(--small-font-size);
    display: block;
    margin-bottom: .75rem;
}

.contact__form-div {
    position: relative;
    margin-bottom: 2rem;
    height: 4rem;
}

.contact__form-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid var(--border-color);
    background: none;
    color: var(--text-color);
    outline: none;
    padding: 1.5rem;
    border-radius: .75rem;
    z-index: 1;
    transition: .3s;
}

.contact__form-tag {
    position: absolute;
    top: -.75rem;
    left: 1.25rem;
    font-size: var(--smaller-font-size);
    padding: .25rem;
    background-color: var(--body-color);
    z-index: 10;
    color: var(--text-color-light);
}

.contact__form-area {
    height: 11rem;
}

.contact__form-area textarea {
    resize: none;
}

.contact__form-input:focus {
    border-color: var(--first-color);
}

/* =============== FOOTER =============== */
.footer {
    background-color: var(--container-color);
    padding: 2rem 0 6rem;
    border-top: 1px solid var(--border-color);
}

.footer__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 1.5rem;
}

.footer__title {
    font-size: var(--h1-font-size);
    margin-bottom: 0.5rem;
}

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

.footer__link {
    color: var(--text-color);
    transition: .3s;
}

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

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

.footer__social-link {
    font-size: 1.25rem;
    color: var(--text-color);
    transition: .3s;
}

.footer__social-link:hover {
    color: var(--first-color);
}

.footer__copy {
    font-size: var(--smaller-font-size);
    color: var(--text-color-light);
    margin-top: 2rem;
}

/* =============== MEDIA QUERIES =============== */
@media screen and (min-width: 576px) {

    .home__container,
    .about__container,
    .contact__container {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact__form-div {
        width: 100%;
    }
}

@media screen and (min-width: 767px) {
    .header {
        position: fixed;
        background-color: rgba(16, 20, 30, 0.8);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid var(--border-color);
    }

    .nav {
        height: calc(var(--header-height) + 1.5rem);
    }

    .nav__toggle,
    .nav__close {
        display: none;
    }

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

    .nav__menu {
        display: flex;
        margin-left: auto;
    }

    .home__content {
        text-align: left;
    }

    .home__buttons {
        justify-content: flex-start;
    }

    .about__container {
        column-gap: 5rem;
    }
}

@media screen and (min-width: 1024px) {
    .container {
        margin-left: auto;
        margin-right: auto;
    }
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    display: none;
}

@media screen and (min-width: 1024px) {

    .cursor-dot,
    .cursor-outline {
        display: block;
    }
}

.cursor-dot {
    width: 5px;
    height: 5px;
    background-color: var(--first-color);
}

.cursor-outline {
    width: 30px;
    height: 30px;
    border: 1px solid var(--first-color);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}