/* fonts*/
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400..800&display=swap');

:root {
    --header-height: 3.5rem;
    --hue: 200;
    --first-color: hsl(var(--hue), 55%, 55%);
    --first-color-light: hsl(var(--hue), 55%, 65%);
    --first-color-alt: hsl(var(--hue), 50%, 50%);
    --title-color: hsl(var(--hue), 30%, 95%);
    --text-color: hsl(var(--hue), 20%, 80%);
    --text-color-light: hsl(var(--hue), 20%, 70%);
    --body-color: hsl(var(--hue), 40%, 16%);
    --container-color: hsl(var(--hue), 40%, 20%);

    --body-font: "syne", sans-serif;

    /* Type scale (mobile-first) */
    --biggest-font-size: 2.6rem;
    --big-font-size: 1.5rem;
    --h1-font-size: 1.85rem;
    --h2-font-size: 1.45rem;
    --h3-font-size: 1.15rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;

    --font-regular: 400;
    --font-semi-bold: 600;
    --font-bold: 700;

    --z-tooltip: 10;
    --z-fixed: 100;
}

@media  screen and (min-width: 1150px) {
    :root {
        --biggest-font-size: 3.05rem;
        --big-font-size: 2.25rem;
        --h1-font-size: 2.35rem;
        --h2-font-size: 1.75rem;
        --h3-font-size: 1.35rem;
        --normal-font-size: 1.0625rem;
        --small-font-size: .9375rem;
    }
}

/*main part of css*/
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

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

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

input,
button,
textarea {
    border: none;
    outline: none;
}

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

p {
    line-height: 130%;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}
/* reusable css classes*/
.container {
    max-width: 1120px;
    margin-inline: 1.5rem;
}

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

.section {
    padding-block: 5rem 2rem;
}


#web, #game {
  color: #00e5ff;
}

.orbit {
  position: absolute;
  width: 320px;
  height: 320px;
  pointer-events: none;
  display: flex;
  transform: translate(-50%, -50%);
   /* Cross-platform fix: Ensures the container stays 3D and centered */
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    justify-content: center;
    
}

#ufo {
  width: 100px;
  position: absolute;
  top: 0;
  left: 50%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  filter: drop-shadow(0 0 15px cyan);
  cursor: pointer;
}

.ufo-bot {
    width: 80px;
    height: auto;
    pointer-events: auto;
    cursor: pointer;
    filter: drop-shadow(0 0 10px #00bcd4);
}

.ufo-bot:active {
    transform: scale(0.9); /* Visual feedback on click for mobile */
}

.ufo-light {
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; fill: yellow; }
    50% { opacity: 0.3; fill: #00bcd4; }
}

/* Professional Chat Bubble */
.ufo-chat-bubble {
    position: absolute;
    bottom: 110%; /* Sits above the UFO */
    background: #00e5ff;
    color: #000;
    padding: 10px 15px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(10px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    white-space: nowrap;
}

.ufo-chat-bubble.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Mobile Fixes */
@media (max-width: 768px) {
    .orbit {
        width: 220px;
        height: 220px;
        /* Re-centering for mobile viewports */
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }
}
.section__title {
    text-align: center;
    font-size: var(--h1-font-size);
    font-weight: var(--font-bold);
    margin-bottom: 2rem;
}

.main {
    overflow: hidden;
}
/*   header & nav    */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background-color: transparent;
    z-index: var(--z-fixed);
}

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

.nav__logo {
    color: var(--title-color);
    font-weight: var(--font-bold);
}

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

@media screen and (max-width: 1150px) {
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        background-color: hsla(var(--hue), 70%, 4%, .2);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        width: 80%;
        height: 100%;
        padding: 7rem 3rem;
        transition: right .4s;
    }
}

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

.nav__link {
    position: relative;
    color: var(--title-color);
    font-weight: var(--font-semi-bold);
    transition: color .4s;
}

.nav__link::after {
    content: '';
    width: 0              ;
    height: 2px;
    background-color: var(--first-color-light);
    position: absolute;
    left: 0;
    bottom: -.5rem;
    transition: width .3s;
}

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

.nav__link:hover::after {
    width: 30%;
}

.nav__close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
}

.show-menu {
    right: 0;
}

.blur-header::after {
    content: '';
    position: absolute;
    width: 1000%;
    height: 100%;
    background-color: hsla(var(--hue), 70%, 4%, .2);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    top: 0;
    left: 0;
    z-index: -1;
}

.active-link {
    color: var(--first-color-light);
}

.active-link::after {
    width: 30%;
}

.home__container {
    row-gap: 2rem;
    padding-top: 1rem;
}

.home__img {
    width: 220px;
    justify-self: center;
    mask-image: linear-gradient(to bottom, hsla(var(--hue), 40%, 16%) 60%, transparent 100%);
}

.home__name {
    font-size: var(--biggest-font-size);
    font-weight: var(--font-bold);
    word-break: break-word;
    margin-bottom: 1rem;
}

.home__profession {
    position: relative;
    font-size: var(--big-font-size);
    color: var(--text-color);
}

.home__profession::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -.5rem;
    width: 25%;
    height: 3px;
    background-color: var(--text-color);
}

.home__scroll {
    color: var(--title-color);
    display: inline-flex;
    column-gap: .5rem;
    align-items: center;
    justify-self: center;
    margin-top: 3rem;
}

.home__scroll-box {
    background-color: var(--first-color);
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    overflow: hidden;
}

.home__scroll-text {
    font-weight: var(--font-semi-bold);
}

.home__scroll-box i {
    animation: scroll-down 3s infinite;
}

@keyframes scroll-down {
    0% {
        transform: translateY(-1rem);
        opacity: 0;
    }
    50% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(.6rem);
        opacity: 0;
    }
}

.button {
    display: inline-flex;
    justify-content: center;
    background-color: var(--first-color);
    color: var(--title-color);
    font-weight: var(--font-semi-bold);
    padding: 1.25rem 2rem;
    transition: background-color .4s;
}

.button:focus {
    outline: 2px solid var(--first-color-light);
    outline-offset: 2px;
}

.button:hover {
    background-color: var(--first-color-alt);
}



/* Ghost button (secondary CTA) */
.button--ghost{
    background-color: transparent;
    border: 2px solid var(--first-color);
    color: var(--title-color);
}
.button--ghost:hover{
    background-color: rgba(127, 255, 212, 0.08);
}

/* Section subtitle */
.section__subtitle{
    max-width: 52ch;
    margin: 0 auto 2rem;
    text-align: center;
    color: var(--text-color);
    line-height: 1.6;
}

/* Home copy + CTAs */
.home__eyebrow{
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: .85rem;
    opacity: .85;
    margin-bottom: .75rem;
}
.home__headline{
    font-size: 1.05rem;
    line-height: 1.6;
    margin-top: .75rem;
    margin-bottom: .75rem;
    color: var(--text-color);
}
.home__tagline{
    max-width: 48ch;
    line-height: 1.7;
    color: var(--text-color);
    opacity: .9;
}
.home__cta{
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}
.work {
    background-color: var(--container-color);
}

/* Case-study cards */
.work__card{
    background-color: var(--body-color);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 1.25rem;
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease;
}

.work__card:hover{
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0,0,0,.25);
}

.work__img{
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.work__body{
    padding: 1.25rem 1.25rem 1.5rem;
}

.work__title{
    font-size: var(--h3-font-size);
    margin-bottom: .75rem;
    color: var(--title-color);
     word-spacing: 2px;
}

.work__case p{
    margin-bottom: .65rem;
    color: var(--text-color);
    line-height: 1.5;
    word-spacing: 2px;
}

.work__case span{
    color: var(--title-color);
    font-weight: var(--font-semi-bold);
     line-height: 2;
     word-spacing: 2px;
}

.work__meta{
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 1rem;
}

.work__tag{
    font-size: var(--small-font-size);
    padding: .35rem .6rem;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    color: var(--text-color);
    border: 1px solid rgba(255,255,255,.10);
}

.work__actions{
    display: flex;
    gap: .75rem;
    align-items: center;
    margin-top: 1.25rem;
}

.work__button{
    padding: .9rem 1.1rem;
    font-size: .95rem;
    border-radius: .9rem;
}

.is-disabled{
    opacity: .55;
    pointer-events: none;
    filter: grayscale(15%);
}

/*profile img */
.profile__img {
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Adds a subtle shadow */
    justify-self: center; /* Center the image in the grid */
    mask-image: linear-gradient(to bottom, hsla(var(--hue), 40%, 16%) 60%, transparent 100%);
}


/* enhance profile image design*/
.profile__img {
    width: 300px; 
    height: 300px;
    border-radius: 50%; 
    transition: transform 0.4s ease, box-shadow 0.4s ease; 
    object-fit: cover; 
}

.profile__img:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3); 
}

.info__container {
    row-gap: 3rem;
}

.info__title {
    position: relative;
    font-size: var(--small-font-size);
    color: var(--text-color);
    margin-bottom: 2rem;
}

.info__title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -.5rem;
    width: 20px;
    height: 2px;
    background-color: var(--text-color);
}

.about {
    row-gap: 3rem;
}

.about__description {
    margin-bottom: 2rem;
}

.about__description b {
    color: var(--first-color-light);
}

.about__img {
    width: 250px;
    justify-self: center; 
    mask-image: linear-gradient(to bottom, hsla(var(--hue), 40%, 16%,) 60%, transparent 100%);
}


.about__button {
    width: 100%;
}

.experiance__content {
    row-gap: 2rem;
}

.experiance__data {
    row-gap: 1rem;
}

.experiance__company {
    font-size: var(--h2-font-size);
    font-weight: var(--font-bold);
}

.experiance__profession {
    font-size: var(--h3-font-size);
    margin-bottom: .25rem;
}

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

.skills__img {
    width: 35px;
    margin-bottom: .5rem;
}

.skills__name {
    font-size: var(--small-font-size);
}

.skills__content {
    grid-template-columns: repeat(3, max-content);
    justify-content: space-around;
    align-items: flex-end;
}

.skills__box {
    display: grid;
    place-items: center;
    transition: transform .4s;
}

.skills__box:hover {
    transform: translateY(-.25rem);
}

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

.services__container {
    row-gap: 2rem;
}

.services__icon {
    display: block;
    color: var(--first-color-light);
    font-size: 2rem;
    margin-bottom: 1rem;
}

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

.contact__container {
    row-gap: 4rem;
}

.contact__group,
.contact__form {
    gap: 1rem;
}

.contact__form {
    position: relative;
}

.contact__input {
    padding: 1.25rem;
    background-color: var(--container-color);
    color: var(--title-color);
    font-weight: var(--font-semi-bold);
}

.contact__input::placeholder {
    color: var(--text-color-light);
}

.contact__area {
    height: 10rem;
    resize: none;
}

.contact__button {
    margin-top: 1rem;
    cursor: pointer;
}

.contact__social { 
    grid-template-columns: repeat(2, max-content);
    justify-content: center;
    column-gap: 3rem;
}

.contact__social-link {
    color: var(--title-color);
    display: inline-flex;
    column-gap: .25rem;
    align-items: center; 
    transition: color .4s;
}

.contact__social-link i {
    font-size: 1.5rem; 
}


.contact__social-link span {
    font-size: var(--small-font-size);
    font-weight: var(--font-semi-bold);
    line-height: 1.5;
    vertical-align: middle;
}


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

.contact__message {
    position: absolute; 
    left: 0;
    bottom: -2rem;
    font-size: var(--small-font-size); 
    font-weight: var(--font-semi-bold);
    color: var(--title-color);
}

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

.footer__container {
    padding-block: 3rem 3rem;
    row-gap: 3rem;
}

.footer__links {
    display: flex;
    justify-content: center;
    column-gap: 2.5rem;
}

.footer__link {
    color: var(--title-color);
    font-weight: var(--font-semi-bold);
    transition: color .4s;
}

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

.footer__copy {
    color: var(--title-color);
    font-size: var(--small-font-size);
    text-align: center;
}

::-webkit-scrollbar {
    width: .6rem;
    background-color: hsl(var(--hue), 20%, 20%);
}

::-webkit-scrollbar-thumb {
    background-color: hsl(var(--hue), 20%, 30%);
}

::-webkit-scrollbar-thumb:hover {
    background-color: hsl(var(--hue), 20%, 40%);
}

.scrollup {
    position: fixed;
    right: 1rem;
    bottom: -50%;
    background-color: var(--container-color);
    display: inline-flex;
    padding: 6px;
    color: var(--title-color);
    font-size: 1.25rem;
    box-shadow: 0 4px 12px hsla(var(--hue), 30%, 8%, .3);
    z-index: var(--z-tooltip);
    transition: bottom .4s, transform .4s;
}

.scrollup:hover {
    transform: translateY(-.5rem);
}

.show-scroll {
    bottom: 3rem;
}

@media screen and (max-width: 300px){
    .container {
        margin-inline: 1rem;
    }

    .skills__content {
        grid-template-columns: repeat(2, max-content);
    }
}

@media screen and (min-width: 540px){
    .home__container,
    .work__container,
    .info__container,
    .services__container,
    .contact__container {
        grid-template-columns: 350px;
        justify-content: center;   
    }    
}

@media screen and (min-width: 768px){
    .nav__menu {
        width: 50%;
    }

    .home__container {
        grid-template-columns: repeat(2, 350px);
    }
    
    .home__data {
        align-self: flex-end;
        padding-bottom: 3rem;
        order: -1;
    }

    .home__scroll {
        grid-column: 1 / 3;
    }

    .work__container {
        grid-template-columns: repeat(2, 350px);
    }

    .info__container {
        grid-template-columns: initial;
    }

    .about {
        grid-template-columns: repeat(2, 350px);
        align-items: center;
    }

    .about__content {
        order: 1;
    }

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

    .skills__content {
        grid-template-columns: repeat(5, max-content);
        justify-content: initial;
        column-gap: 4rem;
    }

    .services__container {
        grid-template-columns: repeat(2, 320px);
    }
}

@media screen and (min-width: 1150px){
    .container {
        margin-inline: auto;
    }

    .section {
        padding-block: 7rem 5rem;
    }
    
    .section__title {
        margin-bottom: 4rem;
    }
    
    .nav {
        height: calc(var(--header-height) + 2rem);
    }

    .nav__toggle,
    .nav__close {
        display: none;
    }

    .nav__menu {
        width: initial;
    }

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

    .home__container {
        grid-template-columns: 375px 350px;
        gap: 3rem 16rem;
    }

    .home__img {
        width: 350px;
    }

    .home__name {
        margin-bottom: 1.5rem;
    }

    .home__profession::after {
        bottom: -1rem;
        width: 35%;
        }

        .work__container {
            grid-template-columns: repeat(2, 540px);
            gap: 2.5rem;
        }

        .work__link {
            padding: 3rem 3rem 2rem;
        }

        .work__title {
            font-size: var(--h2-font-size);
            margin-bottom: 1rem;
        }

        .work__link i {
            font-size: 2rem;
        }

        .info__container {
            row-gap: 4rem;
        }

        .info__title {
            font-size: var(--normal-font-size);
            margin-bottom: 3.5rem;
        }

        .about{
            grid-template-columns: 320px 420px;
            column-gap: 11.5rem;
        }

        .about__img {
            width: 320px;
            border-radius: 20px; /* Adds smooth rounded corners */
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); /* Adds a subtle shadow for depth */
            object-fit: cover; /* Ensures the image covers the area nicely */
            transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out; /* Adds a smooth transition for hover effects */
        }
        
        /* Hover effect to scale and slightly blur */
        .about__img:hover {
            transform: scale(1.05); /* Slight zoom on hover */
            filter: brightness(1.1); /* Brighten the image */
        }        

        .about__description {
            margin-bottom: 3rem;
        }

        .about__button {
            width: initial;
        }

        .experiance__content {
            row-gap: 4rem;
        }

        .experiance__data {
            grid-template-columns: 320px 380px;
            column-gap: 11.5rem;
        }

        .experiance__company {
            font-size: var(--h1-font-size);

        }

        .experiance__profession {
            margin-bottom: .5rem;
        }

        .experiance__date {
            font-size: var(--normal-font-size);
            margin-bottom: 1.5rem;
        }

        .skills__content {
            grid-template-columns: repeat(6, max-content);
        }

        .services__container {
            grid-template-columns: repeat(2, 350px);
            gap: 6rem 13rem;
        }

        .services__icon {
            font-family: 2.5rem;
            margin-bottom: 1.5rem;
        }

        .contact__container {
            grid-template-columns: 580px;
        }

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

        .contact__area {
            height: 15rem;
        }

        .contact__button {
            width: max-content;
            justify-self: center;
            margin-top: 1.5rem;
        }

        .contact__message {
            bottom: 4.5rem;
        }

        .contact__social {
            grid-template-columns: repeat(4, max-content);
            column-gap: 5rem;
        }

        .footer__container {
            padding-block: 3rem;
            grid-template-columns: repeat(2, max-content);
            justify-content: space-between;
        }

        .footer__links {
            column-gap: 4rem;
            order: 1;
        }

        .scrollup {
            right: 3rem;
        }
}

/*
.game-developer {
    animation: color-change 10s infinite;
}

@keyframes color-change {
    0% {
        color: rgb(255, 0, 0); /* Red 
    }
    33% {
        color: rgb(0, 255, 0); /* Green 
    }
    66% {
        color: rgb(0, 0, 255); /* Blue 
    }
    100% {
        color: rgb(255, 0, 0); /* Red (back to start) 
    }
}
*/

/* ===== Services Section Styling ===== */
.services {
  padding: 4rem 2rem;
  background: #f9f9f9;
}

.section__title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #222;
}

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

/* Card styling */
.services__card {
  background: #fff;
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 6px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.services__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* Icons */
.services__icon {
  font-size: 2.5rem;
  color: #0078ff;
  margin-bottom: 1rem;
}

/* Titles */
.services__title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #333;
}

/* Descriptions */
.services__description {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
}

/* ===== RESPONSIVENESS ===== */

/* Tablets */
@media (max-width: 992px) {
  .section__title {
    font-size: 1.8rem;
  }
  .services__description {
    font-size: 0.95rem;
  }
}

/* Mobiles */
@media (max-width: 576px) {
  .section__title {
    font-size: 1.6rem;
  }
  .services__card {
    padding: 1.5rem;
  }
  .services__title {
    font-size: 1.2rem;
  }
  .services__description {
    font-size: 0.9rem;
  }
}

/* Extra small screens */
@media (max-width: 360px) {
  .services__description {
    font-size: 0.85rem;
  }
}

.about__img-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    padding: 50px;
    pointer-events: none; /* Allows user to click things "through" the image */
}

.animate-nyc {
    width:1150px; /* Increased size since it is now a background decoration */
    max-width: 90vw; 
    height: auto;
    border-radius: 50%;
    
    -webkit-animation: spinAndScale 15s linear infinite; /* Slower for background use */
    animation: spinAndScale 15s linear infinite;
    
    /* Cross-platform smoothness */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform; 
}

@keyframes spinAndScale {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1); }
}



/* Premium mobile polish */
@media (max-width: 576px){
    .container{
        padding-inline: 1.1rem;
    }

    .home__title{
        line-height: 1.05;
        letter-spacing: -0.02em;
    }

    .section{
        padding-block: 4.25rem 2.5rem;
    }

    .section__title{
        margin-bottom: 1.75rem;
        letter-spacing: .08em;
    }

    .work__img{
        height: 185px;
    }

    .work__body{
        padding: 1.1rem 1.05rem 1.25rem;
    }

    .work__actions{
        gap: .6rem;
    }

    .work__button{
        width: 100%;
    }

    .work__actions{
        flex-direction: column;
        align-items: stretch;
    }
}


/* ===== Work section premium interactions ===== */
.work__img{
  transition: transform .35s ease;
  will-change: transform;
}
.work__card:hover .work__img{
  transform: scale(1.03);
}

/* Buttons: make Live Demo the primary action */
.work__button{
  transition: transform .18s ease, box-shadow .25s ease, background-color .25s ease, border-color .25s ease, color .25s ease;
  -webkit-tap-highlight-color: transparent;
}
.work__button--primary{
  background: linear-gradient(135deg, rgba(56,189,248,.95), rgba(14,165,233,.95));
  color: #0b1220;
  border: none;
  box-shadow: 0 10px 22px rgba(56,189,248,.18);
}
.work__button--primary:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(56,189,248,.25);
}
.button--ghost.work__button{
  border-color: rgba(56,189,248,.75);
}
.button--ghost.work__button:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0,0,0,.18);
  background: rgba(56,189,248,.08);
}

/* Better focus for keyboard users */
.work__button:focus-visible{
  outline: 3px solid rgba(56,189,248,.55);
  outline-offset: 3px;
}

/* Tags micro-interaction */
.work__tag{
  transition: transform .18s ease, background-color .25s ease;
}
.work__tag:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.11);
}

/* Mobile polish */
@media (max-width: 576px){
  .work__img{ height: 160px; }
  .work__body{ padding: 1rem 1rem 1.1rem; }
  .work__title{ font-size: 1.15rem; line-height: 1.2; }
  .work__case p{ margin-bottom: .55rem; line-height: 1.55; }
  .work__actions{ gap: .6rem; }
  .work__button{ padding: .85rem 1rem; border-radius: .85rem; font-size: .95rem; }
}

/* iOS safe-area support */
@supports (padding: max(0px)) {
  body{
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}


/* ===== Premium micro-interactions ===== */
.work__actions{
  display:flex;
  gap:.75rem;
  flex-wrap:wrap;
}

.button{
  border-radius: .9rem;
  transition: transform .18s ease, box-shadow .18s ease, background-color .25s ease, border-color .25s ease;
  will-change: transform;
}

.button:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,.25);
}

/* Make primary CTA pop */
.work__actions .button:not(.button--ghost){
  background: linear-gradient(135deg, rgba(56,189,248,.95), rgba(14,165,233,.95));
  color:#0b1220;
}

/* Image micro hover */
.work__img{
  transition: transform .35s ease;
}
.work__card:hover .work__img{
  transform: scale(1.03);
}

/* Professional CTA line */
.pro-cta{
  margin: 1.25rem auto 0;
  max-width: 70ch;
  text-align:center;
  color: var(--title-color);
  font-weight: 600;
  opacity: .9;
}

/* Mobile premium spacing */
@media (max-width: 576px){
  .work__body{ padding: 1.1rem 1.1rem 1.35rem; }
  .work__img{ height: 180px; }
  .button{ padding: 1rem 1.25rem; }
  .work__actions{ gap: .6rem; }
}

/* iOS safe area support */
:root{
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

/* ===== Pricing Section ===== */
.pricing {
  background-color: var(--container-color);
}

.pricing__container {
  max-width: 1120px;
}

.pricing__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.pricing__card {
  position: relative;
  background-color: var(--body-color);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 1.25rem;
  padding: 2.5rem 2rem;
  transition: transform .3s ease, box-shadow .3s ease;
}

.pricing__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .3);
}

/* Popular card highlight */
.pricing__card--popular {
  border-color: var(--first-color);
  box-shadow: 0 0 30px hsla(var(--hue), 55%, 55%, .12);
}

.pricing__card--popular:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, .3), 0 0 30px hsla(var(--hue), 55%, 55%, .18);
}

.pricing__badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--first-color), var(--first-color-alt));
  color: #0b1220;
  font-size: var(--small-font-size);
  font-weight: var(--font-bold);
  padding: .35rem 1.25rem;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: .04em;
}

.pricing__header {
  text-align: center;
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.pricing__plan {
  font-size: var(--h3-font-size);
  color: var(--title-color);
  font-weight: var(--font-bold);
  margin-bottom: .75rem;
}

.pricing__price {
  font-size: var(--h2-font-size);
  color: var(--first-color-light);
  font-weight: var(--font-bold);
}

.pricing__features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pricing__feature {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  color: var(--text-color);
  font-size: var(--normal-font-size);
  line-height: 1.5;
}

.pricing__feature i {
  color: var(--first-color-light);
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: .1rem;
}

/* CTA area */
.pricing__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
}

.pricing__cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 1.25rem 2.5rem;
}

.pricing__cta-btn--whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
}

.pricing__cta-btn--whatsapp:hover {
  background: linear-gradient(135deg, #22c35e, #0f7a6e);
  box-shadow: 0 14px 34px rgba(37, 211, 102, .25);
}

.pricing__cta-btn i {
  font-size: 1.35rem;
}

/* Pricing responsive: tablets */
@media screen and (min-width: 540px) {
  .pricing__cta {
    flex-direction: row;
    justify-content: center;
  }
}

@media screen and (min-width: 768px) {
  .pricing__grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
  }

  .pricing__card--popular {
    transform: scale(1.04);
  }

  .pricing__card--popular:hover {
    transform: scale(1.04) translateY(-6px);
  }
}

/* Pricing responsive: mobile */
@media screen and (max-width: 576px) {
  .pricing__card {
    padding: 2rem 1.5rem;
  }

  .pricing__cta-btn {
    width: 100%;
    padding: 1.15rem 1.5rem;
  }
}

/* ===== Promotional Banner ===== */
.promo {
  background: linear-gradient(135deg, hsl(var(--hue), 50%, 20%) 0%, hsl(var(--hue), 60%, 12%) 100%);
  position: relative;
  overflow: hidden;
}

.promo::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, hsla(var(--hue), 55%, 55%, .12) 0%, transparent 70%);
  pointer-events: none;
}

.promo__container {
  text-align: center;
  max-width: 720px;
}

.promo__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.promo__badge {
  display: inline-block;
  background: hsla(var(--hue), 55%, 55%, .15);
  color: var(--first-color-light);
  font-size: var(--small-font-size);
  font-weight: var(--font-semi-bold);
  padding: .45rem 1.25rem;
  border-radius: 999px;
  border: 1px solid hsla(var(--hue), 55%, 55%, .3);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.promo__title {
  font-size: var(--h1-font-size);
  font-weight: var(--font-bold);
  color: var(--title-color);
  line-height: 1.2;
  max-width: 20ch;
}

.promo__description {
  color: var(--text-color);
  line-height: 1.7;
  max-width: 52ch;
}

.promo__highlights {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: .5rem;
}

.promo__highlight {
  display: flex;
  align-items: center;
  gap: .4rem;
  color: var(--title-color);
  font-size: var(--small-font-size);
  font-weight: var(--font-semi-bold);
}

.promo__highlight i {
  font-size: 1.25rem;
  color: var(--first-color-light);
}

.promo__button {
  margin-top: .75rem;
  padding: 1.25rem 2.5rem;
  background: linear-gradient(135deg, var(--first-color), var(--first-color-alt));
  box-shadow: 0 8px 24px hsla(var(--hue), 55%, 45%, .25);
}

.promo__button:hover {
  box-shadow: 0 14px 34px hsla(var(--hue), 55%, 45%, .35);
}

/* Promo responsive */
@media (max-width: 576px) {
  .promo__title {
    font-size: 1.5rem;
  }
  .promo__highlights {
    gap: 1rem;
  }
  .promo__button {
    width: 100%;
  }
}

/* ===== Clients Section ===== */
.clients {
  background: var(--body-color);
  overflow: hidden;
  padding-block: 2rem;
}

.clients__slider {
  width: 100%;
  overflow: hidden;
}

/* TRACK */
.clients__track {
  display: flex;
  gap: 4rem;
  width: max-content;
  animation: scrollClients 20s linear infinite;
}

/* SHOW ONLY 4 ITEMS PER VIEW */
.client__item {
  flex: 0 0 calc(20% - 4rem); /* 4 items visible */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ICON STYLE (FIXED VISIBILITY) */
.client__item img {
  width: 400px;
  height: auto;
  object-fit: contain;

  /* REMOVE FADE */
  filter: none;

  /* MAKE BOLD / VISIBLE */
  opacity: 1;

  transition: transform .3s ease;
}

/* HOVER EFFECT */
.client__item:hover img {
  transform: scale(1.15);
}

/* ANIMATION */
@keyframes scrollClients {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ===== MOBILE FIX (ONLY) ===== */
@media (max-width: 576px) {

  .clients__track {
    gap: 2rem;
    animation-duration: 16s; /* thoda fast for smooth feel */
  }

  .client__item {
    flex: 0 0 7%; /* EXACT 3 icons visible */
  }

  .client__item img {
    width: 150px; /* thoda optimized size */
  }

}

@media (max-width: 1024px) {

      .clients__track {
    gap: 2rem;
    animation-duration: 16s; /* thoda fast for smooth feel */
  }

  .client__item {
    flex: 0 0 15%; /* EXACT 3 icons visible */
  }

  .client__item img {
    width: 200px; /* thoda optimized size */
  }
    
}


/* ===== Testimonials ===== */
.testimonials {
  background-color: var(--container-color);
}

.testimonials__container {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.testimonial__card {
  background-color: var(--body-color);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 1.25rem;
  padding: 1.75rem;
  transition: transform .3s ease, box-shadow .3s ease;
}

.testimonial__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(0,0,0,.25);
}

.testimonial__text {
  color: var(--text-color);
  line-height: 1.6;
  margin-bottom: 1rem;
  font-style: italic;
}

.testimonial__name {
  color: var(--title-color);
  font-size: var(--small-font-size);
  font-weight: var(--font-bold);
}

/* ===== Reviews ===== */
.reviews {
  background-color: var(--body-color);
}

.reviews__container {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.review__card {
  background-color: var(--container-color);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  transition: transform .3s ease, box-shadow .3s ease;
}

.review__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0,0,0,.25);
}

.review__rating {
  font-size: 1.2rem;
  margin-bottom: .5rem;
}

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