@import url('https://fonts.googleapis.com/css2?family=Black+Ops+One&family=Inconsolata:wght@300;400;600&display=swap');

:root {
    --header-height: 3.5rem;
    --first-color: hsl(204, 86%, 45%);
    --first-color-dark: hsl(204, 88%, 38%);
    --first-color-light: hsl(204, 100%, 71%);
    --title-color: hsl(0, 0%, 87%);
    --text-color: hsl(0, 0%, 69%);
    --body-color: hsl(200, 12%, 5%);
    --container-color: hsl(200, 10%, 8%);
    --border-color: hsl(0, 0%, 20%);
    --white: #fff;
    --body-font: "Inconsolata", monospace;
    --bigger-font-size: 3.5rem;
    --big-font-size: 3rem;
    --h1-font-size: 2.5rem;
    --h2-font-size: 2.25rem;
    --h3-font-size: 1.5rem;
    --larger-font-size: 1.2rem;
    --large-font-size: 1.125rem;
    --weight-300: 300;
    --weight-400: 400;
    --weight-600: 600;
}

input[type="radio"],
input[type="checkbox"] {
    display: none;
}

.switcher__toggle .fa-moon {
    display: none;
}

#day-night:checked~* .fa-sun {
    display: none;
}

#day-night:checked~* .fa-moon {
    display: block;
}

#day-night:checked~* {
    --title-color: hsl(204, 86%, 45%);
    --text-color: hsl(0, 0%, 41%);
    --body-color: hsl(0, 0%, 100%);
    --container-color: hsl(204, 86%, 95%);
    --border-color: hsl(0, 0%, 87%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

input,
textarea,
button,
body {
    font-size: var(--larger-font-size);
}

#copy_text {
     -webkit-user-select: all;
    -ms-user-select: all;
    user-select: all;
}

main {
    font-family: var(--body-font);
    background-color: var(--body-color);
    color: var(--text-color);
}

input,
textarea,
button {
    outline: none;
    border: none;
    background-color: transparent;
}

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

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-thumb {
    background-color: var(--first-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--first-color-dark);
}

.container {
    max-width: 90%;
    margin-inline: auto;
    padding-inline: 1rem;
}

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

.section {
    padding-block: 6rem;
}

.section__title {
    font-size: var(--h1-font-size);
    font-weight: var(--weight-400);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.section__title::before {
    content: attr(data-title);
    display: block;
    color: var(--first-color);
    font-size: var(--large-font-size);
    font-weight: var(--weight-600);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.title-center {
    text-align: center;
    margin-bottom: 3rem;
}

.header {
    font-family: 'Inconsolata', cursive;
    position: fixed;
    font-weight: 1000;
    font-size: 120%;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--body-color);
    box-shadow: 0 3px 9px hsls(0, 0%, 0%, 0.05);
    z-index: 100;
}

.nav,
.nav__list {
    display: flex;
}

.nav {
    height: calc(var(--header-height) + 0.5rem);
    justify-content: space-between;
    align-items: center;
}

.nav__logo {
    color: var(--first-color);
    font-size: 3.5rem;
}

.nav__list {
    column-gap: 1.5rem;
}

.nav__link {
    color: var(--text-color);
    transition: all 0.3s ease;
}

.nav__toggle {
    display: none;
}

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

.home {
    padding-top: 13rem;
    height: 100vh;
}

.home__container {
    align-items: center;
    margin-left: 25rem;
}

.home__small {
    font-size: var(--big-font-size);
    font-weight: var(--weight-600);
    letter-spacing: 1px;
    color: var(--first-color-light);
}

.home__title {
    font-size: 5rem;
    line-height: 1.4;
    color: var(--first-color);
}

.home__title span {
    font-weight: var(--weight-300);
    color: var(--text-color);
}

.home__title a {
    font-weight: var(--weight-300);
    color: var(--first-color-light);
}

.home__btns {
    display: flex;
    column-gap: 1rem;
    margin-top: 1rem;
}

.btn {
    display: inline-block;
    background-color: var(--first-color);
    border: 1px solid var(--first-color);
    color: var(--white);
    padding: 0.9rem 2.5rem;
    font-size: var(--large-font-size);
    border-radius: 0.5rem;
    transition: all 0.5s ease;
    text-align: center;
}

.btn--transparent {
    background-color: transparent;
    color: var(--first-color);
}

.btn:hover {
    background-color: var(--first-color-dark);
}

.btn--transparent:hover {
    background-color: var(--first-color);
    color: var(--white);
}

.about__container {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto; 
    gap: 3rem; 
  }
  
.about__img-wrapper {
    position: relative;
    height: 400px;
}
  
  .about__image {
    width: 150px;
    height: 150px; 
    border-radius: 50%; 
  }

.about__img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
}

  
  .about__left, .about__right {
    padding: 1rem; 
  }
  
  .about__investors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); /* Responsive grid */
    gap: 20px;
  }
  
  .about__investor-img {
    width: 100%; 
    height: auto;
    border-radius: 10px; 
    box-shadow: 0 2px 5px rgba(0,0,0, 0.1);
  }

.about__description {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.about__data {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.25rem;
    margin-bottom: 3rem;
}

.data__item {
    display: flex;
    column-gap: 0.75rem;
}

.data__title {
    font-size: var(--large-font-size);
}

.about__link {
    color: hsl(209, 73%, 57%);
}

.about__bottom,
.about__social-links {
    display: flex;
    align-items: center;
}

.about__bottom {
    column-gap: 3rem;
}

.about__social-links {
    column-gap: 1.25rem;
}

.about__social-links::after,
.about__social-links::before {
    content: "";
    background-color: var(--text-color);
    width: 60px;
    height: 2px;
}

.about__social-link {
    color: var(--text-color);
    transition: all 0.3s ease;
}

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

.services__container {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 2rem;
  }
  
  .service {
     /* Creates clean card-like effect */
    border: 1px solid #eee; /* Subtle border */
    border-radius: 0.5rem;
    padding: 2rem;  /* More generous inner spacing */
    box-shadow:  0 2px 5px rgba(0,0,0, 0.08); /* Soft shadow definition */
  }
  
  .service__title { 
    color: var(--first-color);/* Darker heading color */
    margin-bottom: 1.25rem;
  }
  
  .service__description {
    margin-bottom: 1.5rem;
  }
  
  .service__detail, .service__use-case { 
    margin-top: 1rem; 
  }

  .services__intro {
    margin-bottom: 2rem; /* Space between the intro and the first service */
  }
  

.skills {
    background-color: var(--container-color);
}

.skills__container {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 4rem;
}

.skills__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--border-color);
    padding: 2.5rem 1.8rem;
    border-radius: 0.5rem;
}

.skills__img {
    height: 10rem;
}

.skills__name {
    text-align: center;
    padding-top: 1rem;
    font-size: var(--larger-font-size);
}

.work__container {
    grid-template-columns: repeat(3, 1fr);
}

.works p {
    text-align: center;
    padding: 1rem;
    margin: 1rem;
    color: var(--first-color);
}

.work__card {
    position: relative;
    cursor: pointer;
}

.work__img {
    vertical-align: middle;
}

.work__details {
    position: absolute;
    inset: 0;
    background-color: hsla(0, 0%, 0%, 0.75);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.4s ease-in-out;
}

.work__img,
.work__details {
    border-radius: 0.5rem;
}

.work__title {
    font-size: var(--h3-font-size);
}

.work__title,
.work__description {
    color: var(--white);
    transform: translateY(1.5rem);
    transition: all 0.3s ease-in-out;
}

.work__description {
    font-size: var(--large-font-size);
}

.work__card:hover .work__details {
    opacity: 1;
}

.work__card:hover :is(.work__title, .work__description) {
    transform: translateY(0);
}

.contact__container {
    grid-template-columns: 5fr 7fr;
    align-items: center;
}

.contact__item {
    display: flex;
    align-items: flex-start;
    column-gap: 1.25rem;
}

.contact__item:not(:last-child) {
    margin-bottom: 2.5rem;
}

.contact__icon {
    color: var(--first-color);
    font-size: var(--large-font-size);
    line-height: 1.8;
}

.contact__title {
    font-size: var(--larger-font-size);
}

.contact__data {
    font-size: var(--large-font-size);
}

.form__group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 1.25rem;
}

.input__control {
    color: var(--title-color);
    background-color: var(--container-color);
    padding: 0.9rem 0.75rem;
    width: 100%;
    border-radius: 0.5rem;
    margin-bottom: 1.25rem;
}

.textarea {
    height: 140px;
    resize: none;
}

.contact__btn {
    float: right;
}

.footer {
    font-family: 'Inconsolata', monospace;
    background-color: var(--container-color);
    padding-block: 3rem;
}

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

.footer__text {
    color: var(--text-color);
}

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

.footer__social-link {
    color: var(--text-color);
    font-size: var(--large-font-size);
}

@media screen and (max-width: 1200px) {
    .container {
        max-width: 960px;
    }

    :root {
        --bigger-font-size: 3rem;
        --big-font-size: 2.5rem;
        --h1-font-size: 2rem;
        --h2-font-size: 1.75rem;
        --h3-font-size: 1.25rem;
        --larger-font-size: 1rem;
        --large-font-size: 0.938rem;
    }

    .home__container {
        margin-left: 17rem;
    }

    .about__img-wrapper {
        height: 320px;
    }

}

@media screen and (max-width: 992px) {
    .container {
        max-width: 720px;
    }

    .home__container,
    .about__container,
    .contact__container {
        grid-template-columns: 1fr;
        margin-left: 0;
    }

    .home__content {
        order: 1;
    }

    .about__container,
    .contact__container {
        row-gap: 2rem;
    }

    .about__img:not(:first-child) {
        display: none;
    }

    .about__img:first-child {
        clip-path: initial;
        transform: initial;
        left: 50%;
        translate: -50%;
    }

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

}

@media screen and (max-width: 768px) {
    .container {
        max-width: 560px;
    }

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

    .nav__list {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--body-color);
        flex-direction: column;
        align-items: center;
        row-gap: 0.75rem;
        max-height: 0;
        overflow: hidden;
        transition: all 0.3s ease;
    }

    .nav__toggle {
        display: block;
        color: var(--text-color);
        font-size: 1.3rem;
    }

    #nav-toggler:checked~.nav__list {
        max-height: 500px;
        padding: 1.7rem;
    }

}

@media screen and (max-width: 576px) {
    .home {
        padding-top: 7rem;
    }

    .section {
        padding-block: 4rem;
    }

    .skills__container,
    .work__container,
    .form__group {
        grid-template-columns: 1fr;
    }

    .footer__container {
        flex-direction: column;
        row-gap: 1rem;
    }
}

.skills__desc{
    margin-top: 10%;
    text-align: center;
}

@media screen and (max-width: 450px) {
    .about__data {
        grid-template-columns: 1fr;
    }

    .about__bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .about__bottom {
        row-gap: 1.25rem;
    }

    .about__bottom .btn {
        order: 1;
    }

}
