/* 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: fixed;
  top: 50%;
  left: 50%;
  width: 320px;
  height: 320px;
  pointer-events: none;
  display: flex;
  justify-content: center;

  transform: translate(-50%, -50%);
  will-change: transform;
}

#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;
     display: flex;            
    flex-direction: column;    
}

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

.work__img{
    width: 100%;
    height: 220px;
    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;   
    }    

    .work__card{
    flex-direction: column;
}
}

@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: 1fr;
    }

    .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);
    }

    /* ===== WORK ZIG-ZAG LAYOUT ===== */

.work__card{
    flex-direction: column;
    align-items: stretch; /* 🔥 important */
    width: 100%;
}

.work__img{
    width: 50%;
}

.work__body{
    width: 50%;
}

/* Alternate layout */
.work__card:nth-child(even){
    flex-direction: row-reverse;
}
}

@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: 1fr; 
            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;
        }

        .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;
  }

  .work__card{
    flex-direction: column; /* 🔥 ensure mobile stack */
}

.work__img{
    width: 100%;
    height: 180px;
}

.work__body{
    width: 100%;
}

}

/* 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(--container-color);
  overflow: hidden;
}

.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(--body-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);
}

/* ===== SIMPLE CAROUSEL ===== */

.testimonials__slider {
  overflow: hidden;
  position: relative;
}

.testimonials__slider .swiper-wrapper {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.testimonials__slider .swiper-slide {
  min-width: 100%;
  flex-shrink: 0;
}

/* tablet */
@media (min-width: 768px) {
  .testimonials__slider .swiper-slide {
    min-width: 30%;
  }
}

/* desktop */
@media (max-width: 1024px) {
  .testimonials__slider .swiper-slide {
    min-width: 20%;
  }
}

/* ===== Glass Apple Style ===== */
.testimonial__card {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255,255,255,0.12);
}

/* ===== Hover Premium Shadow ===== */
.testimonial__card:hover {
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}

/* Header layout */
.testimonial__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

/* Profile image */
.testimonial__img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.2);
}

/* Agar image future me remove kare to auto center ho 
.testimonial__img:empty {
  display: none;
}

/* Name alignment */
.testimonial__name {
  margin: 0;
}

/* ===== Reviews ===== */
.reviews {
  background-color: var(--container-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);
}

.section__title {
  background: linear-gradient(90deg, #ffffff, #38BDF8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== FORCE PREMIUM SECTION TITLE FIX (DO NOT REMOVE OLD CODE) ===== */

/* Default sab headings same rahenge (tumhara gradient intact) */

/* 🔹 Only specific sections ko subtle bana rahe hain */
.clients .section__title,
.reviews .section__title,
.about .section__title,
.testimonials .section__title {
    
    /* REMOVE gradient effect only here */
    background: none !important;
    -webkit-text-fill-color: rgba(255,255,255,0.8) !important;
    
    /* Add premium feel */
    letter-spacing: 3px;
    text-shadow: 0 0 8px rgba(56,189,248,0.2);
}

/* 💎 Improve spacing + presence */
.section__title {
    letter-spacing: 2px;
}

/* ===== FIX SERVICES SECTION (FORCE DARK THEME) ===== */

/* Background dark karo */
.services {
  background: var(--container-color) !important;
}

/* Heading ko dark theme ke according fix karo */
.services .section__title {
  background: linear-gradient(90deg, #ffffff, #38BDF8) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

/* Service cards ko bhi dark bana do */
.services__card {
  background: var(--body-color) !important;
  color: var(--text-color) !important;
  border: 1px solid rgba(255,255,255,0.08);
}

/* Text color fix */
.services__title {
  color: var(--title-color) !important;
}

.services__description {
  color: var(--text-color) !important;
}

/* ===== FINAL WORK CARD FULL WIDTH + PERFECT ZIGZAG FIX ===== */

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

  .work__card{
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    min-height: 320px; /* height control */
  }

  .work__img{
    width: 50%;
    height: 100%;
    object-fit: cover;
  }

  .work__body{
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  /* Zig-Zag alternate */
  .work__card:nth-child(even){
    flex-direction: row-reverse;
  }
}

/* Mobile safe fix */
@media (max-width: 767px){
  .work__card{
    flex-direction: column;
  }

  .work__img{
    width: 100%;
    height: 200px;
  }

  .work__body{
    width: 100%;
  }
}

.info__container {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* LEFT SIDE - ABOUT */
.about {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ABOUT TEXT PREMIUM LOOK */
.about__description {
    line-height: 1.8;
    font-size: var(--normal-font-size);
    opacity: 0.9;
}

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

/* BUTTON FULL WIDTH CLEAN */
.about__button {
    width: fit-content;
    padding: 0.8rem 1.5rem;
}

/* RIGHT SIDE - EXPERIENCE CARD STYLE */
.experience {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2rem;
    border-radius: 1rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* EXPERIENCE STRUCTURE FIX */
.experience__content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.experience__data {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* COMPANY NAME */
.experience__company {
    font-size: var(--h2-font-size);
    font-weight: var(--font-bold);
    color: var(--first-color-light);
}

/* ROLE */
.experience__profession {
    font-size: var(--h3-font-size);
    font-weight: 600;
}

/* DATE */
.experience__date {
    font-size: var(--small-font-size);
    opacity: 0.7;
}

/* DESCRIPTION */
.experience__description {
    font-size: var(--small-font-size);
    line-height: 1.6;
    opacity: 0.85;
}

/* SKILLS SECTION FULL WIDTH */
.skills {
    grid-column: 1 / -1;
    margin-top: 3rem;
}


/* SKILL BOX PREMIUM HOVER */
.skills__box {
    display: grid;
    place-items: center;
    padding: 1rem;
    border-radius: 0.8rem;
    transition: all 0.3s ease;
}

.skills__box:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* SKILL ICON */
.skills__img {
    width: 40px;
    margin-bottom: 0.5rem;
    filter: grayscale(10%);
    transition: 0.3s;
}

.skills__box:hover .skills__img {
    filter: grayscale(0%);
    transform: scale(1.1);
}

/* SKILL NAME */
.skills__name {
    font-size: var(--small-font-size);
    opacity: 0.8;
}

/* RESPONSIVE (MOBILE) */
@media screen and (max-width: 768px) {
    .info__container {
        grid-template-columns: 1fr;
    }

    .skills {
        grid-column: auto;
    }
}

/* continuous moving animation */
.skills__content {
    animation: scrollSkills 18s linear infinite;
}

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

/* skill boxes keep inline */
.skills__box {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    padding: 1rem;
    border-radius: 0.8rem;
    transition: 0.3s;
}

/* hover pause effect */
.skills__content:hover {
    animation-play-state: paused;
}

/* hover effect */
.skills__box:hover {
    transform: scale(1.1);
    background: rgba(255,255,255,0.05);
}

/* optional smooth icons */
.skills__img {
    width: 40px;
    margin-bottom: 0.5rem;
    transition: 0.3s;
}

.skills__box:hover .skills__img {
    transform: rotate(5deg) scale(1.1);
}

/* =========================
   FINAL SKILLS MARQUEE FIX
   (CLEAN + NO CONFLICT)
========================= */

.skills {
    overflow: hidden;
}

/* wrapper */
.skills__content {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: skillsScroll 20s linear infinite;
    align-items: center;
}

/* pause on hover */
.skills__content:hover {
    animation-play-state: paused;
}

/* item */
.skills__box {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    padding: 1rem;
    border-radius: 0.8rem;
    transition: 0.3s ease;
}

/* hover effect */
.skills__box:hover {
    transform: translateY(-6px) scale(1.05);
    background: rgba(255,255,255,0.06);
}

/* icon */
.skills__img {
    width: 40px;
    margin-bottom: 0.5rem;
    transition: 0.3s ease;
}

.skills__box:hover .skills__img {
    transform: rotate(6deg) scale(1.1);
}

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

/* mobile fix */
@media (max-width: 768px) {
    .skills__content {
        gap: 1.2rem;
        animation-duration: 14s;
    }

    .skills__img {
        width: 35px;
    }
}

/* =========================
   SECTION WRAPPER
========================= */
.detail.section{
    padding: 4rem 1.5rem;
    background: transparent;
}

/* TITLE */
.section__title{
    text-align: center;
    font-size: var(--h1-font-size);
    color: #fff;
    margin-bottom: 2.5rem;
    letter-spacing: 1px;
    position: relative;
}

.section__title::after{
    content: "";
    width: 80px;
    height: 3px;
    background: var(--first-color);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
    border-radius: 10px;
}

/* =========================
   GRID CONTAINER
========================= */
.detail__container{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: auto;
}

/* =========================
   CARD (GLASS PREMIUM UI)
========================= */
.detail__card{
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    overflow: hidden;

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    transition: 0.4s ease;
    position: relative;
}

.detail__card:hover{
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.5);
    border-color: rgba(255,255,255,0.25);
}

/* IMAGE */
.detail__img{
    width: 100%;
    object-fit: cover;
    transition: 0.4s ease;
}

.detail__card:hover .work__img{
    transform: scale(1.05);
}

/* CONTENT */
.detail__content{
    padding: 1.2rem;
}

.detail__title{
    font-size: var(--h3-font-size);
    color: #fff;
    margin-bottom: .3rem;
}

.detail__desc{
    font-size: var(--normal-font-size);
    color: var(--text-color-light);
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* BUTTON */
.detail__button{
    display: inline-block;
    padding: 10px 16px;
    border: none;
    border-radius: 12px;
    cursor: pointer;

    background: linear-gradient(135deg, var(--first-color), var(--first-color-alt));
    color: #fff;

    font-weight: 600;
    font-size: 0.9rem;

    transition: 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* glow effect */
.detail__button::before{
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.2);
    transition: 0.4s;
}

.detail__button:hover::before{
    left: 100%;
}

.detail__button:hover{
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

/* =========================
   RESPONSIVE
========================= */

/* TABLET */
@media (max-width: 992px){
    .detail__container{
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* MOBILE */
@media (max-width: 600px){
    .detail__container{
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .work__img{
        height: 200px;
    }

    .detail.section{
        padding: 3rem 1rem;
    }

    .section__title{
        font-size: 1.6rem;
    }
}

/* =========================
   MODAL BACKDROP (GLASS)
========================= */
.case-modal{
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(15px);
    z-index: 9999;
}

/* =========================
   MODAL BOX
========================= */
.modal-box{
    width: min(1100px, 95%);
    max-height: 90vh;
    overflow-y: auto;

    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 22px;

    padding: 2rem;
    color: var(--text-color);

    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
    animation: pop 0.35s ease;
}

/* CLOSE */
.close-btn{
    position: sticky;
    top: 0;
    float: right;
     z-index: 99999;

    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;

    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    cursor: pointer;
    transition: 0.3s;
}

.close-btn:hover{
    background: var(--first-color);
    transform: rotate(90deg);
}

/* HERO */
.case-hero{
    text-align: center;
    margin-bottom: 2rem;
}

.case-hero h1{
    color: white;
    font-size: var(--big-font-size);
}

.case-hero p{
    color: var(--text-color-light);
    margin: .5rem 0 1rem;
}

/* SECTION */
.case-section{
    margin-top: 1.5rem;
    padding: 1.2rem;
    border-radius: 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    transition: 0.3s;
}

.case-section:hover{
    transform: translateY(-3px);
}

/* TECH STACK */
.tech-grid{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-grid div{
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
}

/* SCREEN GRID */
.screen-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

/* CLIENT */
/* =========================
   CLIENT IMAGE FIX
========================= */

.client-img{
    width: 400;
    height: 420px;

    border-radius: 50%;

    object-fit: contain;   /* 🔥 full image visible */
    object-position: center;

    background: #000; /* optional: empty space fill */

    display: block;
    margin: 1rem auto;

    border: 2px solid rgba(255,255,255,0.2);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);

    transition: 0.3s;
}
.client-img:hover{
    transform: scale(1.08);
}

/* =========================
   ANIMATIONS
========================= */
@keyframes pop{
    from{transform: scale(0.85); opacity: 0;}
    to{transform: scale(1); opacity: 1;}
}

/* =========================
   RESPONSIVE DESIGN
========================= */

/* TABLET */
@media (max-width: 992px){
    .detail__container{
        grid-template-columns: 1fr;
    }

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

    .client-img{
        grid-template-columns: 1fr;
    }
}

/* MOBILE */
@media (max-width: 600px){
    .nav{
        flex-direction: column;
        gap: 10px;
    }

    .detail__container{
        padding: 1rem;
        gap: 1.2rem;
    }

    .modal-box{
        padding: 1.2rem;
    }

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

    .case-section{
        padding: 1rem;
    }
}

/* =========================
   GLOBAL TEXT IMPROVEMENTS
========================= */

.case-modal h1,
.case-modal h2,
.case-modal h3 {
    font-family: 'Syne', sans-serif;
    letter-spacing: 0.5px;
}

.case-modal h1 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    background: linear-gradient(90deg, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.case-modal h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: .5rem;
    position: relative;
}

.case-modal h2::after {
    content: "";
    width: 40px;
    height: 2px;
    background: var(--first-color);
    position: absolute;
    left: 0;
    bottom: -5px;
}

.case-modal p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.75);
}

/* =========================
   IMAGE STYLING
========================= */

.case-modal img {
    width: 100%;
    border-radius: 14px;
    margin-top: 1rem;
    transition: 0.4s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.case-modal img:hover {
    transform: scale(1.02);
}

/* Hero image bigger */
.case-hero img {
    margin-top: 1.5rem;
    border-radius: 18px;
}

/* Screens images */
.screen-grid img {
    border-radius: 12px;
}

/* =========================
   SECTION UPGRADE
========================= */

.case-section {
    position: relative;
    overflow: hidden;
}

/* subtle glow border */
.case-section::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.2), transparent);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

/* hover depth */
.case-section:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.case-section ul {
    margin-top: 0.5rem;
    padding-left: 1.2rem;
}

.case-section ul li {
    margin-bottom: 0.4rem;
    color: rgba(255,255,255,0.8);
    position: relative;
}

/* custom bullet */
.case-section ul li::marker {
    color: var(--first-color);
}

.tech-grid div {
    backdrop-filter: blur(10px);
    transition: 0.3s;
    font-size: 0.85rem;
}

.tech-grid div:hover {
    background: var(--first-color);
    color: #fff;
    transform: scale(1.05);
}

.detail__button {
    letter-spacing: 0.5px;
}

.detail__button:active {
    transform: scale(0.96);
}

.modal-box {
    scrollbar-width: thin;
    scrollbar-color: var(--first-color) transparent;
}

.modal-box::-webkit-scrollbar {
    width: 6px;
}

.modal-box::-webkit-scrollbar-thumb {
    background: var(--first-color);
    border-radius: 10px;
}

/* =========================
   VIDEO STYLING (PREMIUM)
========================= */

.case-section video {
    width: 100%;
    margin-top: 1rem;
    border-radius: 16px;

    background: #000;

    box-shadow: 0 15px 40px rgba(0,0,0,0.6);

    transition: 0.4s ease;
}

/* hover effect */
.case-section video:hover {
    transform: scale(1.02);
}

/* optional: glow border */
.case-section video {
    border: 1px solid rgba(255,255,255,0.1);
}

/* video container feel */
.testimonial video {
    max-height: 350px;
    object-fit: cover;
}

.testimonial {
    text-align: center;
}

.testimonial p {
    font-style: italic;
    color: rgba(255,255,255,0.85);
}

/* play button hover feel (subtle UX) */
.case-section video:hover {
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}

/* =========================
   TIMELINE BADGE (MODAL)
========================= */

.case-hero{
    position: relative;
}

/* floating card */
.case-timeline{
    position: absolute;
    bottom: -30px;
    left: 30px;

    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(20px);

    border-radius: 18px;
    padding: 14px 22px;

    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.15);

    text-align: center;

    transition: 0.3s ease;
}

/* big number */
.case-timeline h3{
    font-size: 1.6rem;
    font-weight: 700;
    color: black; /* premium blue */
    margin-bottom: 2px;
}

/* small text */
.case-timeline span{
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.5px;
}

/* hover effect */
.case-timeline:hover{
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 30px 70px rgba(0,0,0,0.7);
}

@media (max-width: 600px){
    .case-timeline{
        left: 50%;
        transform: translateX(-50%);
        bottom: -25px;
    }
}

/* =========================
   PROCESS TIMELINE
========================= */
.process{
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 2rem;
    position: relative;
}

/* LINE */
.process::before{
    content: "";
    position: absolute;
    top: 35px;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255,255,255,0.1);
    z-index: 0;
}

/* STEP */
.process__step{
    position: relative;
    z-index: 1;
    text-align: center;
    flex: 1;
}

/* NUMBER CIRCLE */
.process__step span{
    display: grid;
    place-items: center;
    width: 70px;
    height: 70px;
    margin: auto;

    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);

    color: var(--first-color);
    font-weight: bold;
    font-size: 1.1rem;

    backdrop-filter: blur(10px);
    transition: 0.4s;
}

/* TITLE */
.process__step h3{
    margin-top: 12px;
    font-size: 0.95rem;
    color: var(--text-color);
}

/* HOVER EFFECT */
.process__step:hover span{
    background: var(--first-color);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.process__step:hover h3{
    color: #fff;
}

/* =========================
   RESPONSIVE
========================= */

/* REMOVE OLD RESPONSIVE RULES */

/* TABLET & MOBILE FIX */
@media (max-width: 900px){
    .process{
        flex-wrap: nowrap;        /* ❌ wrap hata diya */
        overflow-x: auto;         /* ✅ scroll enable */
        padding-bottom: 1rem;
    }

    .process::-webkit-scrollbar{
        height: 6px;
    }

    .process::-webkit-scrollbar-thumb{
        background: rgba(255,255,255,0.2);
        border-radius: 10px;
    }

    .process__step{
        min-width: 140px;  /* har step ka fixed width */
        flex: 0 0 auto;    /* shrink hone se rokta hai */
    }

    .process::before{
        width: 100%;
        left: 0;
    }
}

/* REMOVE THIS COMPLETELY */
/*
@media (max-width: 600px){
    .process{
        flex-direction: column;
    }
}
*/