/* =====================================================================
   PORTFOLIO - Ashish Tiwari
   Pure CSS. No frameworks.
   ===================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}
html,
body {
    margin: 0;
    padding: 0;
    background: #030621;
    color: #eaeaf5;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    scroll-behavior: smooth;
    overflow-x: hidden;
}
body {
    -webkit-font-smoothing: antialiased;
}
a {
    color: inherit;
    text-decoration: none;
}
button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}
::selection {
    background: #6d5cff;
    color: #fff;
}
/* ============ LOADER ============ */
.loader {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, #0a1550 0%, #030621 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(20px);
    transition: opacity .6s ease, visibility .6s ease;
}
.loader.hidden {
    opacity: 0;
    visibility: hidden;
}
.loader-inner {
    text-align: center;
}
.loader-logo {
    font-family: 'Comfortaa', sans-serif;
    font-weight: 700;
    font-size: 68px;
    color: #fff;
    letter-spacing: 2px;
    display: flex;
    justify-content: center;
    gap: 4px;
    animation: pulseLogo 1.4s ease-in-out infinite;
}
.loader-logo .slash {
    color: #7d6bff;
}
.loader-bar-wrap {
    margin: 28px auto 12px;
    width: 260px;
    height: 3px;
    background: rgba(255, 255, 255, .08);
    border-radius: 3px;
    overflow: hidden;
}
.loader-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #4a9eff, #a465ff);
    border-radius: 3px;
    transition: width .1s linear;
    box-shadow: 0 0 12px rgba(124, 91, 255, 0.6);
}
.loader-percent {
    color: #b7b7d6;
    font-size: 12px;
    letter-spacing: 1px;
}
.loader-text {
    color: #7d7da0;
    font-size: 11px;
    margin-top: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
}
@keyframes pulseLogo {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}
/* ============ CURSOR GLOW ============ */
.cursor-glow {
    position: fixed;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(109, 92, 255, 0.15), transparent 60%);
    transform: translate(-50%, -50%);
    z-index: 1;
    transition: opacity .3s;
    will-change: transform;
}
@media (max-width: 900px) {
    .cursor-glow {
        display: none;
    }
}
/* ============ HEADER / NAV ============ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 26px 14px 0;
    pointer-events: none; /* empty header space lets scrolled content underneath stay clickable */
}
.site-header > * {
    pointer-events: auto; /* re-enable clicks on the actual header controls */
}
.brand {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 42px;
    background: #fff;
    clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%);
    padding-right: 10px;
}
.brand-text {
    font-family: 'Comfortaa', sans-serif;
    font-weight: 700;
    color: #0a0e2a;
    font-size: 16px;
    letter-spacing: .3px;
}
.brand-text .slash {
    color: #6d5cff;
}
.nav-pill {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #fff;
    border-radius: 999px;
    padding: 6px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .35);
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.nav-pill::-webkit-scrollbar {
    display: none;
}
.nav-link {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    color: #0a0e2a;
    border-radius: 999px;
    transition: background .25s, color .25s;
    flex-shrink: 0;
    white-space: nowrap;
}
.nav-link:hover {
    color: #6d5cff;
}
.nav-link.active {
    background: #0a0e2a;
    color: #fff;
}
.cta-call {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: 999px;
    background: linear-gradient(135deg, #6d5cff 0%, #8b5cf6 100%);
    border: 1.5px solid rgba(15, 8, 48, 0.55);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 6px 20px rgba(109, 92, 255, 0.4);
    transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s cubic-bezier(.2,.8,.2,1), border-color .35s ease;
}
.cta-call:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(109, 92, 255, 0.55);
    border-color: rgba(15, 8, 48, 0.8);
}
.cta-call:active,
.mobile-cta:active {
    transform: translateY(0) scale(.97);
}
/* Phone icon shared by top Call button, mobile menu Call button, footer phone */
.call-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform-origin: 50% 50%;
    animation: phoneRing 2.8s ease-in-out infinite;
}
@keyframes phoneRing {
    0%, 8%, 100% { transform: rotate(0deg) translateX(0); }
    2% { transform: rotate(-14deg) translateX(-1px); }
    4% { transform: rotate(11deg) translateX(1px); }
    6% { transform: rotate(-7deg); }
    8.1% { transform: rotate(0deg); }
}
@media (prefers-reduced-motion: reduce) {
    .call-ico { animation: none; }
}
/* Ripple that expands out from the exact click point */
.call-ripple {
    position: absolute;
    width: 10px;
    height: 10px;
    margin: -5px 0 0 -5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .55);
    pointer-events: none;
    animation: callRippleOut .55s ease-out forwards;
}
@keyframes callRippleOut {
    to { width: 220px; height: 220px; margin: -110px 0 0 -110px; opacity: 0; }
}
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
}
.mobile-toggle span {
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform .3s ease, opacity .2s ease;
    transform-origin: center;
}
/* Hamburger -> X: same three lines rotate/fade into a cross */
.mobile-toggle.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}
.mobile-toggle.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}
.mobile-menu {
    position: fixed;
    top: 78px;
    left: 12px;
    right: 12px;
    background: rgba(10, 14, 42, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 22px;
    padding: 16px;
    display: none;
    flex-direction: column;
    gap: 6px;
    z-index: 90;
}
.mobile-menu.open {
    display: flex;
}
.mobile-link {
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 600;
}
.mobile-link:hover {
    background: rgba(255, 255, 255, .06);
}
.mobile-cta {
    position: relative;
    overflow: hidden;
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    padding: 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #6d5cff, #8b5cf6);
    border: 1.5px solid rgba(15, 8, 48, 0.55);
    font-weight: 600;
    transition: transform .3s cubic-bezier(.2,.8,.2,1), border-color .3s ease;
}
/* ============ HERO ============ */
.hero {
    position: relative;
    min-height: 100vh;
    padding: 104px 32px 30px;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .8;
    pointer-events: none;
}
.glow-a {
    width: 620px;
    height: 620px;
    top: -100px;
    left: 30%;
    background: radial-gradient(circle, #4a2a9e, transparent 60%);
}
.glow-b {
    width: 520px;
    height: 520px;
    bottom: -180px;
    left: 40%;
    background: radial-gradient(circle, #6a3af0, transparent 60%);
    opacity: .5;
}
.glow-c {
    width: 700px;
    height: 700px;
    top: 10%;
    right: -200px;
    background: radial-gradient(circle, #4a2a9e, transparent 60%);
    opacity: .5;
}
.glow-d {
    width: 800px;
    height: 800px;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, #163b8f, transparent 70%);
    opacity: .5;
}
.glow-e {
    width: 700px;
    height: 700px;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, #1e3a8a, transparent 70%);
    opacity: .5;
}
.glow-f {
    width: 650px;
    height: 650px;
    top: 5%;
    left: 15%;
    background: radial-gradient(circle, #2a1a6e, transparent 65%);
    opacity: .4;
}
.diagonal {
    position: absolute;
    background: linear-gradient(180deg, transparent, rgba(94, 130, 255, 0.6), transparent);
    transform-origin: center;
    filter: blur(1px);
    opacity: .55;
}
.diagonal-a {
    width: 2px;
    height: 140%;
    top: -20%;
    left: 8%;
    transform: rotate(-24deg);
}
.diagonal-b {
    width: 2px;
    height: 140%;
    top: -20%;
    right: 6%;
    transform: rotate(24deg);
}
.diagonal-c {
    width: 2px;
    height: 140%;
    top: -20%;
    left: 10%;
    transform: rotate(-24deg);
    opacity: .35;
}
.diagonal-d {
    width: 2px;
    height: 140%;
    top: -20%;
    left: 8%;
    transform: rotate(-22deg);
    opacity: .35;
}
.hero-grid {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 1fr 1fr;
    gap: 24px;
    align-items: center;
    min-height: 56vh;
}
.hero-left {
    padding-top: 20px;
}
.hero-title {
    font-family: 'Comfortaa', sans-serif;
    font-weight: 700;
    font-size: clamp(30px, 3.4vw, 46px);
    line-height: 1.15;
    margin: 0 0 34px;
    color: #fff;
}
.hero-title-accent {
    color: #fff;
}
.typewriter-cursor {
    display: inline-block;
    width: 3px;
    height: .82em;
    margin-left: 3px;
    background: #8b5cf6;
    vertical-align: -0.12em;
    animation: caretBlink 1s step-end infinite;
}
@keyframes caretBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .typewriter-cursor { animation: none; }
}

/* Sparse twinkling stars — kept deliberately few for a subtle effect */
.stars-field {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}
.star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    opacity: .15;
    box-shadow: 0 0 4px 1px rgba(255, 255, 255, .5);
    animation: starTwinkle 3.6s ease-in-out infinite;
}
@keyframes starTwinkle {
    0%, 100% { opacity: .12; transform: scale(.75); }
    50% { opacity: .85; transform: scale(1.25); }
}
@media (prefers-reduced-motion: reduce) {
    .star { animation: none; opacity: .35; }
}
.hero-subtitle {
    color: #cfd0ea;
    font-size: 14px;
    letter-spacing: .3px;
    margin: 0 0 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.hero-subtitle .dot {
    color: #6d5cff;
}
.hero-desc {
    color: #bcbcd6;
    font-size: 15px;
    line-height: 1.7;
    max-width: 460px;
}
.hero-center {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 440px;
}
.character-glow {
    position: absolute;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.35), transparent 65%);
    filter: blur(30px);
    bottom: 40px;
    pointer-events: none;
}
.hero-character {
    position: relative;
    max-height: 488px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .5));
    animation: floatY 6s ease-in-out infinite;
    z-index: 2;
}
@keyframes floatY {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}
.hero-right {
    padding-top: 30px;
}
.hello {
    color: #eaeaf5;
    font-size: 15px;
    margin: 0 0 20px;
}
.name-accent {
    color: #4a9eff;
    font-weight: 500;
}
.a-designer {
    color: #eaeaf5;
    font-size: 14px;
    margin: 0 0 6px;
}
.judge-wrap {
    margin-top: 4px;
    margin-bottom: 22px;
}
.judge {
    font-family: 'Comfortaa', sans-serif;
    font-weight: 700;
    color: #fff;
    font-size: clamp(24px, 2.3vw, 30px);
    margin: 0;
    line-height: 1.2;
}
.cover-wrap {
    position: relative;
    display: inline-block;
    padding: 0 6px;
}
.cover-oval {
    position: absolute;
    left: -6px;
    right: -6px;
    top: 50%;
    width: calc(100% + 12px);
    height: 42px;
    transform: translateY(-50%) rotate(-4deg);
    pointer-events: none;
}
.quote {
    color: #cfd0ea;
    font-style: italic;
    font-size: 13px;
    margin: 0;
    line-height: 1.6;
}
/* Tech row */
.tech-row {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 38px auto 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0 8px;
}
.tech-item {
    animation: floatY 5s ease-in-out infinite;
    animation-delay: var(--d, 0s);
}
.tech-inner {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #0f1230;
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .3s, box-shadow .3s;
}
.tech-inner img {
    width: 28px;
    height: 28px;
}
.tech-item:hover .tech-inner {
    transform: translateY(-6px) scale(1.08);
    box-shadow: 0 12px 30px rgba(109, 92, 255, .5);
}
.tech-dark {
    background: #1a1a2e;
    color: #9aa;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
}
.tech-dark .tiny-dot {
    color: #8b5cf6;
}
.tech-yellow {}
.tech-yellow .tech-inner {
    background: #f7df1e;
}
.tech-square .tech-inner {
    border-radius: 12px;
    background: #6d1a99;
    padding: 6px;
}
.tech-square-inner img {
    filter: brightness(1.4);
}
.tech-lift {
    transform: translateY(-30px);
}
.tech-orb-glow {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(214, 92, 246, .5), transparent 65%);
    filter: blur(18px);
    z-index: 0;
    left: -30px;
    top: -20px;
    pointer-events: none;
}
.tech-lift .tech-inner {
    position: relative;
    z-index: 1;
}
.tech-node {
    transform: translateY(40px);
}
.expr {
    color: #ddd;
    font-size: 12px;
    font-style: italic;
}
/* ============ ABOUT ============ */
.about {
    position: relative;
    padding: 68px 32px 52px;
    overflow: hidden;
    background: linear-gradient(180deg, #030621 0%, #061240 60%, #030621 100%);
}
.section-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.about-inner {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 2;
}
.about-head {
    margin-bottom: 32px;
}
.section-title {
    font-family: 'Comfortaa', sans-serif;
    font-weight: 700;
    font-size: clamp(32px, 3.4vw, 46px);
    color: #fff;
    margin: 0;
}
.section-title.center {
    text-align: center;
}
.slash-thin {
    color: #bcbcd6;
    font-weight: 300;
    font-size: .55em;
    margin-left: 12px;
}
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
    align-items: center;
}
.think-block {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 30px;
}
.think-icon svg {
    display: block;
}
.think-labels {
    display: flex;
    flex-direction: column;
    font-size: 12px;
    color: #cfd0ea;
    line-height: 1.4;
}
.turning {
    font-family: 'Comfortaa', sans-serif;
    font-weight: 700;
    color: #fff;
    font-size: clamp(20px, 2.1vw, 28px);
    margin: 0 0 0 10px;
}
.about-desc {
    color: #bcbcd6;
    font-size: 15px;
    line-height: 1.75;
    max-width: 500px;
    margin: 0 0 24px;
}
.available-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px 10px 18px;
    background: rgba(255, 255, 255, .06);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 999px;
    color: #eaeaf5;
    font-size: 13px;
    font-weight: 500;
}
.available-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #8b5cf6;
    box-shadow: 0 0 12px rgba(139, 92, 246, .6);
}
.available-text {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    letter-spacing: .2px;
    white-space: nowrap;
}
.available-text::after {
    content: '';
    display: inline-block;
    width: 2px;
    height: 1em;
    margin-left: 2px;
    background: #8b5cf6;
    vertical-align: -0.15em;
    animation: availCursorBlink .85s ease-in-out infinite;
}
@keyframes availCursorBlink {
    0%, 45% { opacity: 1; }
    50%, 95% { opacity: 0; }
    100% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .available-text::after { animation: none; }
}
.about-portrait-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 480px;
    overflow: visible;
}
.about-portrait {
    position: relative;
    max-height: 486px;   /* slightly increased for more presence */
    width: auto;
    object-fit: contain;
    transform: translate(-45px, -35px);
    /* -45 = Left
       -35 = Up */
    filter: drop-shadow(0 25px 45px rgba(0,0,0,.55));
}
.sparkle {
    position: absolute;
    color: #fff;
    font-size: 22px;
    opacity: .9;
    text-shadow: 0 0 12px rgba(255, 255, 255, .7);
}
.sparkle-a {
    position: absolute;
    top: 30px;      /* Image ke top se 30px niche */
    right: 40px;    /* Image ke left se 30px bahar */
    animation: twinkle 2s ease-in-out infinite;
}
@keyframes twinkle {
    0%,
    100% {
        opacity: .9;
        transform: scale(1);
    }
    50% {
        opacity: .4;
        transform: scale(1.2);
    }
}
/* ==========================================================
   SERVICES SECTION
========================================================== */
.services {
    position: relative;
    padding: 66px 32px 58px;
    overflow: hidden;
    background: linear-gradient(180deg, #030621 0%, #0a1030 55%, #030621 100%);
}
.services-inner {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 2;
}
.services-sub {
    text-align: center;
    color: #bcbcd6;
    font-size: 14px;
    max-width: 560px;
    margin: 14px auto 40px;
    line-height: 1.7;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.service-card {
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 18px;
    padding: 26px 24px;
    transition: transform .3s ease, border-color .3s ease, background .3s ease;
}
.service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(139, 92, 246, .4);
    background: rgba(255, 255, 255, .06);
}
.service-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8b5cf6;
    background: rgba(139, 92, 246, .12);
    margin-bottom: 16px;
}
.service-card h3 {
    font-family: 'Comfortaa', sans-serif;
    font-weight: 700;
    color: #fff;
    font-size: 16.5px;
    margin: 0 0 10px;
}
.service-card p {
    color: #bcbcd6;
    font-size: 13.5px;
    line-height: 1.7;
    margin: 0;
}
/* Details toggle button: hidden on desktop/tablet — description shows directly there */
.service-toggle {
    display: none;
}
.services-team {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 36px auto 0;
    padding: 16px 22px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 999px;
    max-width: 640px;
}
.services-team-icon {
    flex-shrink: 0;
    color: #8b5cf6;
    display: flex;
}
.services-team p {
    color: #cfd0ea;
    font-size: 13px;
    margin: 0;
    line-height: 1.6;
}
@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .services {
        padding: 48px 20px 40px;
    }
    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .services-team {
        flex-direction: column;
        text-align: center;
        border-radius: 20px;
        padding: 18px;
    }

    /* Mobile: card shows only icon + title; description is collapsed
       behind a "View Details" toggle so the page doesn't get long. */
    .service-card {
        padding: 20px 20px 16px;
    }
    .service-card h3 {
        margin-bottom: 4px;
    }
    .service-details {
        display: grid;
        grid-template-rows: 0fr;
        opacity: 0;
        transition: grid-template-rows .3s ease, opacity .25s ease, margin-top .3s ease;
    }
    .service-details p {
        overflow: hidden;
        min-height: 0;
    }
    .service-card.expanded .service-details {
        grid-template-rows: 1fr;
        opacity: 1;
        margin-top: 10px;
    }
    .service-toggle {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        margin-top: 12px;
        background: none;
        border: none;
        padding: 0;
        color: #8b5cf6;
        font-size: 12.5px;
        font-weight: 700;
        font-family: inherit;
        cursor: pointer;
    }
    .service-toggle .chevron {
        transition: transform .25s ease;
        font-size: 13px;
    }
    .service-card.expanded .service-toggle .chevron {
        transform: rotate(180deg);
    }
}
/* ==========================================================
   MY WORK SECTION
========================================================== */
.work {
    position: relative;
    padding: 80px 32px;
    background: #061240;
    overflow: hidden;
}

/* Mobile-first container width: 85% mobile / 90% tablet / 80-85% desktop */
.work-inner {
    position: relative;
    z-index: 2;
    width: 85%;
    max-width: 1200px;
    margin: 0 auto;
}
@media (min-width: 640px) and (max-width: 1023px) {
    .work-inner { width: 90%; }
}
@media (min-width: 1024px) {
    .work-inner { width: 82%; }
}

.work-sub {
    text-align: center;
    color: #cfd0ea;
    margin: 8px 0 32px;
}

/* Filters */
.work-filters {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.filter {
    position: relative;
    padding: 12px 30px;
    border-radius: 999px;
    background: rgba(29, 27, 79, 0.5);
    border: 1px solid rgba(255, 255, 255, .12);
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    transition: transform .25s, background .25s, border .25s;
}
.filter:hover {
    transform: translateY(-2px);
    background: rgba(139, 92, 246, .3);
}
.filter.active {
    background: rgba(139, 92, 246, .35);
    border: 1.5px solid #fff;
}

/* Carousel: one project previewed at a time.
   Desktop/tablet: text left, media right, arrows float on the
   outer edges vertically centered against the row.
   Mobile: media on top (90% width), text below, arrows sit in
   a centered row underneath the card. */
.work-carousel {
    position: relative;
    width: 95%; /* carousel + arrows attach at 95% width on tablets/laptops */
    margin: 0 auto 56px;
    padding: 0 84px; /* extra gutter keeps arrows well clear of content/media */
}
.carousel-track {
    min-width: 0;
}
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}
.carousel-arrow svg {
    transition: filter .25s ease;
}
.carousel-arrow.left { left: 0; }
.carousel-arrow.right { right: 0; }
/* Laptop/desktop: pull the arrows out further from the card so they sit
   closer to the screen edges. Mobile keeps its own static layout below. */
@media (min-width: 1024px) {
    .carousel-arrow.left { left: -46px; }
    .carousel-arrow.right { right: -46px; }
}
@media (min-width: 901px) and (max-width: 1023px) {
    .carousel-arrow.left { left: -28px; }
    .carousel-arrow.right { right: -28px; }
}
@media (min-width: 601px) and (max-width: 900px) {
    .carousel-arrow.left { left: -18px; }
    .carousel-arrow.right { right: -18px; }
}
.carousel-arrow:hover svg {
    filter: drop-shadow(0 0 5px rgba(139, 92, 246, .95)) drop-shadow(0 0 11px rgba(109, 92, 255, .6));
}

/* Single project card: text column + media column */
.work-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "text media";
    gap: 40px;
    align-items: center;
    opacity: 0;
    transform: translateY(18px);
    animation: cardIn .5s ease forwards;
}
@keyframes cardIn {
    to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .work-card { animation: none; opacity: 1; transform: none; }
}

/* Media viewport — fixed aspect ratio, right column on desktop/tablet */
.card-media {
    grid-area: media;
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 2;
    background: #0a0e2a;
    border-radius: 18px;
    overflow: hidden;
    cursor: zoom-in;
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 20px 45px rgba(0, 0, 0, .5);
}
.card-media img,
.card-media video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;      /* crop landscape/portrait consistently, never stretch */
    object-position: center;
    display: block;
    transition: transform .5s ease;
}
.card-media:hover img,
.card-media:hover video {
    transform: scale(1.06); /* premium hover zoom on media */
}

/* Video mute control on the card */
.card-media .mute-video {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 3;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, transform .2s;
}
.card-media .mute-video:hover {
    background: rgba(139, 92, 246, .7);
    transform: scale(1.08);
}
/* Zoom affordance icon — sits directly beside the mute button (or alone,
   at the same spot, on image cards that have no mute button) */
.card-media .zoom-icon-btn {
    position: absolute;
    right: 52px;
    bottom: 10px;
    z-index: 3;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(4px);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, transform .2s;
}
.card-media[data-type="image"] .zoom-icon-btn {
    right: 10px;
}
.card-media .zoom-icon-btn:hover {
    background: rgba(139, 92, 246, .7);
    transform: scale(1.08);
}

/* Card text — left column on desktop/tablet */
.card-info {
    grid-area: text;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.card-tag {
    color: #a465ff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
.card-title {
    font-family: 'Comfortaa', sans-serif;
    font-weight: 700;
    color: #fff;
    font-size: 38px;
    margin: 0;
}
.card-subtitle {
    color: #9d9dc4;
    font-size: 13px;
    font-weight: 500;
    margin: 0;
}
.card-desc {
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    padding: 20px;
    color: #bcbcd6;
    font-size: 14px;
    line-height: 1.75;
    margin: 4px 0 0;
    /* Long descriptions scroll internally instead of pushing the card
       taller / overflowing the layout */
    max-height: 190px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(139, 92, 246, .5) transparent;
}
.card-desc::-webkit-scrollbar { width: 6px; }
.card-desc::-webkit-scrollbar-track { background: transparent; }
.card-desc::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, .5);
    border-radius: 999px;
}
.card-btn {
    margin-top: 6px;
    align-self: flex-start;
    padding: 9px 18px;
    border-radius: 999px;
    background: rgba(139, 92, 246, .18);
    border: 1px solid rgba(139, 92, 246, .5);
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
    transition: background .2s, transform .2s;
}
.card-btn:hover {
    background: rgba(139, 92, 246, .4);
    transform: translateY(-2px);
}

/* Tablet: keep side-by-side layout, just tighten the outer arrow gutter */
@media (max-width: 900px) {
    .work-carousel { padding: 0 60px; }
    .card-title { font-size: 30px; }
}
/* Tablet: bump the image/video column ~20% bigger than the text column */
@media (min-width: 601px) and (max-width: 1023px) {
    .work-card {
        grid-template-columns: 0.85fr 1.2fr;
        gap: 28px;
    }
}

/* Phone: media on top (90% width), text below, arrows move under the card */
@media (max-width: 600px) {
    .work-carousel {
        width: 100%;
        padding: 0;
    }
    .work-card {
        grid-template-columns: 1fr;
        grid-template-areas:
            "media"
            "text";
        gap: 16px;
    }
    .card-media {
        width: 90%;
        margin: 0 auto;
    }
    .carousel-arrow {
        position: static;
        transform: none;
    }
    /* Nav row is moved (via JS) between the media and the title on mobile,
       sitting on its own line so it never overlaps either. */
    .work-nav-row {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 20px;
        margin: 4px 0 4px;
    }
    .card-title { font-size: 26px; }
}

/* Empty state */
.work-empty {
    text-align: center;
    color: #9d9dc4;
    padding: 40px 0;
}
/* Stats */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    width: 95%;
    margin: 0 auto;
}
.stat {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-radius: 16px;
    background: rgba(20, 20, 60, .5);
    border: 1px solid rgba(255, 255, 255, .08);
}
.stat-ring {
    position: relative;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}
.stat-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}
.stat-num {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}
.ring-progress {
    stroke-dasharray: 264;
    stroke-dashoffset: 264;
    transition: stroke-dashoffset 1.4s ease-out;
}
.stat-label {
    color: #cfd0ea;
    font-size: 13px;
    margin: 0;
    font-weight: 500;
}
/* ============ CONTACT ============ */
.contact {
    position: relative;
    padding: 80px 32px 40px;
    overflow: hidden;
    background: linear-gradient(180deg, #061240 0%, #030621 100%);
}
.contact-inner {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}
.contact-sub {
    text-align: center;
    color: #cfd0ea;
    margin: 10px 0 40px;
}
.contact-form {
    display: grid;
    gap: 18px;
    margin-bottom: 60px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.field input,
.field textarea {
    width: 100%;
    background: rgba(10, 20, 70, 0.5);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    padding: 14px 18px;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border .25s, background .25s;
}
.field input::placeholder,
.field textarea::placeholder {
    color: #7a7fa8;
}
.field input:focus,
.field textarea:focus {
    border-color: #8b5cf6;
    background: rgba(20, 30, 90, 0.6);
}
.field textarea {
    resize: vertical;
    min-height: 130px;
}
.field.invalid input,
.field.invalid textarea {
    border-color: #ff5c7a;
}
.form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
}
.form-status {
    flex: 1;
    color: #cfd0ea;
    font-size: 13px;
}
.form-status.error {
    color: #ff8fa1;
}
.form-status.success {
    color: #7ce0a7;
}
.submit-btn {
    padding: 14px 36px;
    background: #0a1030;
    border: 1.5px solid #150f42;
    border-radius: 999px;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: transform .25s ease, background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.submit-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(115deg, transparent 30%, rgba(139, 92, 246, .45) 50%, transparent 70%);
    transform: translateX(-130%);
    transition: transform .6s ease;
}
.submit-btn .btn-label {
    position: relative;
}
.submit-btn:hover {
    transform: translateY(-2px);
    background: #131c50;
    border-color: #6d5cff;
    box-shadow: 0 10px 26px rgba(109, 92, 246, .35);
}
.submit-btn:hover::before {
    transform: translateX(130%);
}
.submit-btn:active {
    transform: translateY(0) scale(.97);
}
.submit-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}
/* Footer */
.footer-block {
    border-top: 1px solid rgba(255, 255, 255, .06);
    padding-top: 26px;
}
.footer-note {
    color: #cfd0ea;
    font-size: 13px;
    line-height: 1.7;
    margin: 0 0 24px;
    max-width: 720px;
}
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.footer-line {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}
.footer-email {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}
.footer-phone {
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}
.socials {
    display: flex;
    gap: 14px;
}
.socials a {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #cfd0ea;
    border-radius: 6px;
    transition: color .2s, transform .2s;
}
.socials a:hover {
    color: #8b5cf6;
    transform: translateY(-2px);
}
.copyright {
    text-align: center;
    color: #7a7fa8;
    font-size: 13px;
    margin-top: 40px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .05);
}
/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(30px);
    background: rgba(20, 25, 60, .95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, .1);
    padding: 14px 22px;
    border-radius: 14px;
    color: #fff;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    pointer-events: none;
    z-index: 200;
    transition: opacity .3s, transform .3s;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .5);
}
.toast.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.toast.success {
    border-color: rgba(124, 224, 167, .4);
}
.toast.error {
    border-color: rgba(255, 143, 161, .4);
}
.toast-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.toast.success .toast-icon {
    background: #7ce0a7;
    color: #0a1030;
}
.toast.error .toast-icon {
    background: #ff8fa1;
    color: #0a1030;
}
/* Reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .8s ease, transform .8s ease;
}
.reveal.in {
    opacity: 1;
    transform: translateY(0);
}
/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
    }
    .hero-right {
        grid-column: 1 / -1;
    }
    .hero-center {
        grid-column: 2;
    }
}
@media (max-width: 820px) {
    .site-header {
        padding: 12px 16px 12px 0;
    }
    .brand {
        width: 60px;
        height: 36px;
        padding-right: 8px;
    }
    .brand-text {
        font-size: 14px;
    }
    .hero {
        padding: 92px 20px 30px;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 26px;
        text-align: left;
    }
    .hero-center {
        grid-column: 1;
        min-height: 310px;
    }
    .hero-character {
        max-height: 372px;
    }
    .hero-right {
        grid-column: 1;
        padding-top: 0;
    }
    .tech-row {
        gap: 8px;
        margin-top: 30px;
    }
    .tech-inner {
        width: 44px;
        height: 44px;
    }
    .tech-inner img {
        width: 22px;
        height: 22px;
    }
    .tech-lift,
    .tech-node {
        transform: none;
    }
    .about {
        padding: 52px 20px;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .about-portrait {
        max-height: 350px;
    }
    .work {
        padding: 60px 20px;
    }
    .stats-row {
        grid-template-columns: 1fr;
        padding: 0;
    }
    .contact {
        padding: 60px 20px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
}
@media (min-width: 601px) and (max-width: 900px) {
    /* Tablet: keep the full navbar visible, just tighten it to fit */
    .nav-pill {
        gap: 2px;
        padding: 5px;
    }
    .nav-link {
        padding: 9px 16px;
        font-size: 13px;
    }
    .cta-call {
        padding: 10px 20px;
        font-size: 13px;
    }
}
@media (max-width: 600px) {
    /* Phone only: collapse into the hamburger menu */
    .nav-pill {
        display: none;
    }
    .cta-call {
        display: none;
    }
    .mobile-toggle {
        display: flex;
    }
    /* Phone: give the hero/about illustrations a touch more width than
       height, without distorting the artwork (object-fit: contain keeps
       proportions intact inside the wider box). */
    .hero-character {
        max-height: 330px;
        width: 78vw;
        max-width: 340px;
    }
    .about-portrait {
        max-height: 310px;
        width: 76vw;
        max-width: 320px;
        transform: none;
    }
}
@media (max-width: 480px) {
    .hero-title {
        font-size: 30px;
    }
    .judge {
        font-size: 22px;
    }
    .section-title {
        font-size: 30px;
    }
}
.social-icons {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}
.social-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    text-decoration: none;
    transition: .4s;
    box-shadow: 0 0 20px rgba(0, 0, 0, .2);
}
.instagram {
    background: #E1306C;
}
.twitter {
    background: #000;
}
.whatsapp {
    background: #25D366;
}
.social-btn:hover {
    transform: translateY(-8px) scale(1.15) rotate(8deg);
    box-shadow: 0 15px 35px rgba(0, 0, 0, .35);
}
@media(max-width:768px) {
    .social-icons {
        gap: 14px;
    }
    .social-btn {
        width: 48px;
        height: 48px;
        font-size: 22px;
        position: relative;
        overflow: hidden;
    }
}
.social-btn::before {
    content: "";
    position: absolute;
    width: 120%;
    height: 120%;
    background: rgba(255, 255, 255, .25);
    transform: rotate(45deg);
    top: -150%;
    left: -150%;
    transition: .5s;
}
.social-btn:hover::before {
    top: 100%;
    left: 100%;
}
@media (min-width:1200px){
    .about-portrait{
        max-height:585px;
        transform:translate(-45px,-35px);
    }
}

/* ==========================================================
   MY WORK — MEDIA ZOOM MODAL
   Click a card's media -> it animates from the card to a
   centered, ~2x scaled view over a blurred dark overlay.
========================================================== */
.zoom-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity .35s ease, visibility .35s ease;
}
.zoom-modal.active {
    visibility: visible;
    opacity: 1;
}
.zoom-overlay {
    position: absolute;
    inset: 0;
    background: rgba(3, 6, 33, .82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.zoom-content {
    position: relative;
    z-index: 2;
    max-width: 90vw;
    max-height: 88vh;
    transform: scale(.82);
    transition: transform .4s cubic-bezier(.2, .8, .2, 1);
}
.zoom-modal.active .zoom-content {
    transform: scale(1);
}
.zoom-media {
    position: relative;
    display: flex;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 30px 80px rgba(0, 0, 0, .6), 0 0 60px rgba(139, 92, 246, .25);
}
.zoom-media img,
.zoom-media video {
    display: block;
    max-width: 90vw;
    max-height: 88vh;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
}
.zoom-media .mute-video {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 3;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .6);
    color: #fff;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, transform .2s;
}
.zoom-media .mute-video:hover {
    background: rgba(139, 92, 246, .75);
    transform: scale(1.08);
}
.zoom-close {
    position: absolute;
    top: -18px;
    right: -18px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    color: #0a0e2a;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
    z-index: 4;
    transition: transform .2s;
}
.zoom-close:hover {
    transform: scale(1.1) rotate(90deg);
}
@media (max-width: 640px) {
    .zoom-content { max-width: 94vw; max-height: 82vh; }
    .zoom-media img,
    .zoom-media video { max-width: 94vw; max-height: 82vh; }
    .zoom-close { top: -46px; right: 0; }
}
/* ==========================================================
   PUBLIC RATING BLOCK (fixed 4.5★, sits under the work stats,
   unaffected by any individual customer feedback submitted)
========================================================== */
.rating-block {
    width: 95%;
    margin: 26px auto 0;
    padding: 20px;
    border-radius: 16px;
    background: rgba(20, 20, 60, .5);
    border: 1px solid rgba(255, 255, 255, .08);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}
.rating-stars {
    display: flex;
    gap: 6px;
    font-size: 28px;
    line-height: 1;
}
.rating-stars .r-star {
    color: rgba(255, 255, 255, .15);
    position: relative;
    animation: ratingGlow 2.4s ease-in-out infinite;
    animation-delay: calc(var(--i) * .15s);
}
.rating-stars .r-star:not(.half) {
    color: #ffd24a;
    text-shadow: 0 0 10px rgba(255, 210, 74, .6);
}
.rating-stars .r-star.half {
    background: linear-gradient(90deg, #ffd24a 50%, rgba(255,255,255,.15) 50%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}
@keyframes ratingGlow {
    0%, 100% { filter: drop-shadow(0 0 2px rgba(255, 210, 74, .35)); transform: scale(1); }
    50% { filter: drop-shadow(0 0 9px rgba(255, 210, 74, .85)); transform: scale(1.12); }
}
@media (prefers-reduced-motion: reduce) {
    .rating-stars .r-star { animation: none; }
}
.rating-num {
    color: #fff;
    font-family: 'Comfortaa', sans-serif;
    font-weight: 700;
    font-size: 20px;
}
.rating-num span {
    display: block;
    color: #9d9dc4;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 12.5px;
    margin-top: 2px;
}

/* ==========================================================
   FEEDBACK TRIGGER BUTTON (Contact section, after Submit)
========================================================== */
.feedback-trigger-wrap {
    display: flex;
    justify-content: center;
    margin: 18px 0 6px;
}
.feedback-open-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 999px;
    background: rgba(139, 92, 246, .12);
    border: 1px solid rgba(139, 92, 246, .5);
    color: #eaeaf5;
    font-weight: 600;
    font-size: 13.5px;
    transition: background .2s, transform .2s, box-shadow .2s;
}
.feedback-open-btn svg { color: #ffd24a; }
.feedback-open-btn:hover {
    background: rgba(139, 92, 246, .3);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(109, 92, 255, .3);
}

/* ==========================================================
   FEEDBACK MODAL — full screen on mobile, centered card on
   tablet/desktop
========================================================== */
.feedback-modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.feedback-modal.active { display: flex; }
.feedback-overlay {
    position: absolute;
    inset: 0;
    background: rgba(4, 6, 20, .78);
    backdrop-filter: blur(6px);
}
.feedback-sheet {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: linear-gradient(180deg, #151d4e, #10163f);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 22px;
    padding: 30px 26px 26px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 60px rgba(139, 92, 246, .2);
    transform: scale(.92);
    opacity: 0;
    transition: transform .3s cubic-bezier(.2,.8,.2,1), opacity .3s ease;
}
.feedback-modal.active .feedback-sheet {
    transform: scale(1);
    opacity: 1;
}
.feedback-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s, background .2s;
}
.feedback-close:hover { background: rgba(239, 77, 107, .35); transform: rotate(90deg); }
.feedback-title {
    margin: 0 0 4px;
    font-family: 'Comfortaa', sans-serif;
    font-size: 19px;
    color: #fff;
    text-align: center;
}
.feedback-sub {
    margin: 0 0 18px;
    color: #9d9dc4;
    font-size: 13px;
    text-align: center;
}
.feedback-stars {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 34px;
    margin-bottom: 18px;
}
.fb-star {
    color: rgba(255, 255, 255, .18);
    cursor: pointer;
    transition: transform .15s ease, color .15s ease;
}
.fb-star:hover { transform: scale(1.15); }
.fb-star.active {
    color: #ffd24a;
    text-shadow: 0 0 12px rgba(255, 210, 74, .7);
}
.feedback-sheet textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .04);
    color: #fff;
    font-family: inherit;
    font-size: 13.5px;
    resize: vertical;
    min-height: 90px;
    outline: none;
    transition: border-color .2s;
}
.feedback-sheet textarea:focus { border-color: #8b5cf6; }
.feedback-sheet textarea:disabled {
    opacity: .45;
    cursor: not-allowed;
}
.feedback-actions .submit-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
    filter: grayscale(.3);
}
.feedback-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}
.feedback-status {
    font-size: 12.5px;
    min-height: 16px;
}
.feedback-status.success { color: #22c17b; }
.feedback-status.error { color: #ef4d6b; }

@media (max-width: 600px) {
    /* Full-screen sheet on mobile, as requested */
    .feedback-modal { padding: 0; }
    .feedback-sheet {
        max-width: none;
        width: 100%;
        height: 100%;
        border-radius: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 26px 22px;
    }
}

/* ==========================================================
   TABLET-ONLY: hero character & about portrait grow ~40%
   once scrolled into view (min-width:601px and max-width:1023px)
========================================================== */
@media (min-width: 601px) and (max-width: 1023px) {
    .hero-character,
    .about-portrait {
        transition: transform .6s cubic-bezier(.2,.8,.2,1);
    }
    .hero-character.tablet-grow-in {
        transform: scale(1.4);
    }
    .about-portrait.tablet-grow-in {
        transform: translate(-45px, -35px) scale(1.4);
    }
}
@media (prefers-reduced-motion: reduce) {
    .hero-character, .about-portrait { transition: none !important; }
}