
/* =========================================================
   AYESHA.DEV — PERSONAL PORTFOLIO
   Theme: Deep Charcoal + Electric Violet
========================================================= */

/* -------------------- 1. Variables -------------------- */

:root {
    --bg: #0D1528;
    --bg-soft: #111D35;
    --surface: #182642;
    --surface-hover: #203252;

    --primary: #A78BFA;
    --primary-light: #C4B5FD;
    --primary-dark: #8B5CF6;
    --secondary: #22D3EE;

    --text: #F8FAFF;
    --text-muted: #B7C4DA;
    --text-soft: #8798B5;

    --border: rgba(196, 181, 253, 0.15);
    --border-hover: rgba(34, 211, 238, 0.5);

    --gradient: linear-gradient(
        135deg,
        #C4B5FD 0%,
        #8B5CF6 48%,
        #22D3EE 100%
    );

    --gradient-soft: linear-gradient(
        135deg,
        rgba(139, 92, 246, 0.16),
        rgba(34, 211, 238, 0.09)
    );

    --font-body: "DM Sans", sans-serif;
    --font-heading: "Space Grotesk", sans-serif;

    --container: 1160px;
    --header-height: 82px;

    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 26px;

    --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}
/* -------------------- 2. Reset & Base -------------------- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

body.modal-open {
    overflow: hidden;
}

::selection {
    background: rgba(139, 92, 246, 0.45);
    color: #fff;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--primary-light);
    outline-offset: 4px;
}

img {
    display: block;
    max-width: 100%;
}

ul {
    list-style: none;
}

.container {
    width: min(var(--container), calc(100% - 48px));
    margin-inline: auto;
}

.section {
    position: relative;
    padding: 115px 0;
    scroll-margin-top: 75px;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.035em;
}

p {
    color: var(--text-muted);
}

/* -------------------- 3. Background Effects -------------------- */

.ambient {
    position: fixed;
    z-index: -2;
    width: 420px;
    height: 420px;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(110px);
    opacity: 0.12;
}

.ambient-one {
    top: -160px;
    left: -180px;
    background: #7c3aed;
}

.ambient-two {
    top: 35%;
    right: -220px;
    background: #315dff;
    opacity: 0.08;
}

.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}

.gradient-text {
    color: var(--primary-light);
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.outline-text {
    color: transparent;
    -webkit-text-stroke: 1px rgba(210, 198, 255, 0.78);
}

/* -------------------- 4. Loader -------------------- */

.page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 20px;
    background: var(--bg);
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

.page-loader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader-logo {
    font: 700 60px var(--font-heading);
    animation: loaderPulse 1s ease-in-out infinite alternate;
}

.loader-logo span,
.brand span {
    color: var(--primary-light);
}

.loader-line {
    width: 100px;
    height: 3px;
    overflow: hidden;
    border-radius: 5px;
    background: #252235;
}

.loader-line::after {
    display: block;
    width: 45%;
    height: 100%;
    content: "";
    background: var(--gradient);
    animation: loaderMove 1s ease-in-out infinite;
}

@keyframes loaderPulse {
    to {
        transform: translateY(-5px);
        opacity: 0.65;
    }
}

@keyframes loaderMove {
    from {
        transform: translateX(-110%);
    }

    to {
        transform: translateX(230%);
    }
}

/* -------------------- 5. Navbar -------------------- */

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    height: var(--header-height);
    border-bottom: 1px solid transparent;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.site-header.scrolled {
    background: rgba(11, 11, 18, 0.88);
    border-color: var(--border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.navbar {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand {
    display: inline-flex;
    align-items: center;
    font: 700 35px var(--font-heading);
    letter-spacing: -3px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    position: relative;
    padding: 8px 0;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    transition: color 0.25s ease;
}

.nav-link::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    content: "";
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 17px;
    border: 1px solid rgba(167, 139, 250, 0.3);
    border-radius: var(--radius-sm);
    background: rgba(139, 92, 246, 0.1);
    font-size: 12px;
    font-weight: 700;
    transition: background 0.3s ease, transform 0.3s ease;
}

.nav-cta:hover {
    background: rgba(139, 92, 246, 0.23);
    transform: translateY(-2px);
}

.nav-cta i {
    color: var(--primary-light);
}

.menu-toggle {
    display: none;
    width: 43px;
    height: 43px;
    cursor: pointer;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 5px auto;
    border-radius: 3px;
    background: #fff;
    transition: transform 0.3s ease;
}

.menu-toggle.open span:first-child {
    transform: translateY(3.5px) rotate(45deg);
}

.menu-toggle.open span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
}

/* -------------------- 6. Buttons -------------------- */

.btn {
    position: relative;
    display: inline-flex;
    min-height: 51px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 21px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.btn i {
    transition: transform 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn:hover i {
    transform: translateX(4px);
}

.btn-primary {
    color: #fff;
    background: linear-gradient(115deg, #8b5cf6, #7042e8);
    box-shadow: 0 8px 28px rgba(109, 40, 217, 0.22);
}

.btn-primary:hover {
    box-shadow: 0 12px 35px rgba(109, 40, 217, 0.4);
}

.btn-secondary {
    border-color: var(--border);
    background: rgba(255, 255, 255, 0.025);
}

.btn-secondary:hover {
    border-color: var(--border-hover);
    background: var(--gradient-soft);
}

/* -------------------- 7. Hero -------------------- */

.hero {
    display: flex;
    min-height: 760px;
    min-height: min(850px, 100svh);
    align-items: center;
    padding-top: 140px;
    padding-bottom: 120px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    align-items: center;
    gap: 55px;
}

.availability {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 13px;
    margin-bottom: 29px;
    border: 1px solid rgba(74, 222, 128, 0.16);
    border-radius: 50px;
    background: rgba(74, 222, 128, 0.055);
    color: #b8edcc;
    font-size: 11px;
    font-weight: 600;
}

.status-dot {
    width: 7px;
    height: 7px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 12px rgba(74, 222, 128, 0.7);
}

.eyebrow {
    margin-bottom: 15px;
    color: var(--primary-light);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2.3px;
}

.hero h1 {
    max-width: 680px;
    font-size: clamp(43px, 5.2vw, 72px);
    line-height: 1.12;
    letter-spacing: -4px;
}

.hero h1 > span {
    display: block;
}

.hero-description {
    max-width: 480px;
    margin-top: 23px;
    font-size: 14px;
    line-height: 1.95;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 31px;
}

.hero-socials {
    display: flex;
    align-items: center;
    gap: 19px;
    margin-top: 45px;
}

.hero-socials > span,
.contact-socials > span {
    color: var(--text-soft);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.hero-socials a {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-muted);
    transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.hero-socials a:hover {
    color: var(--primary-light);
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.hero-visual {
    position: relative;
    display: grid;
    min-height: 440px;
    place-items: center;
    perspective: 1000px;
}

.hero-card {
    position: relative;
    z-index: 2;
    width: min(100%, 430px);
    overflow: hidden;
    border: 1px solid rgba(167, 139, 250, 0.23);
    border-radius: 19px;
    background: linear-gradient(145deg, #191725, #101019);
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.4), 0 0 60px rgba(109, 40, 217, 0.08);
    transform: rotateY(-5deg) rotateX(2deg);
    transition: transform 0.5s ease;
}

.hero-card:hover {
    transform: rotateY(0) rotateX(0) translateY(-5px);
}

.hero-card-top {
    display: flex;
    height: 55px;
    align-items: center;
    gap: 15px;
    padding: 0 19px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.018);
}

.window-dots {
    display: flex;
    gap: 6px;
}

.window-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff6b76;
}

.window-dots span:nth-child(2) {
    background: #fbbf24;
}

.window-dots span:nth-child(3) {
    background: #4ade80;
}

.code-label {
    flex: 1;
    color: var(--text-soft);
    font-size: 10px;
}

.hero-card-top > i {
    color: var(--primary-light);
    font-size: 13px;
}

.code-content {
    padding: 29px 25px 32px;
    color: #d8d5e8;
    font: 12px/2.3 "Consolas", monospace;
}

.code-indent {
    padding-left: 20px;
}

.code-indent-two {
    padding-left: 40px;
}

.code-purple {
    color: #c4a4ff;
}

.code-green {
    color: #85e6b4;
}

.code-yellow {
    color: #f8d98a;
}

.code-comment {
    margin-top: 14px;
    color: #6c6888;
}

.orbit {
    position: absolute;
    width: 410px;
    height: 410px;
    border: 1px solid rgba(139, 92, 246, 0.12);
    border-radius: 50%;
    animation: orbitSpin 35s linear infinite;
}

.orbit-one {
    width: 360px;
    height: 360px;
    border-style: dashed;
}

.orbit-two {
    width: 470px;
    height: 470px;
    border-color: rgba(91, 140, 255, 0.1);
    animation-direction: reverse;
    animation-duration: 50s;
}

@keyframes orbitSpin {
    to {
        transform: rotate(360deg);
    }
}

.floating-chip {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: rgba(23, 22, 36, 0.92);
    box-shadow: var(--shadow);
    backdrop-filter: blur(15px);
    animation: floatChip 5s ease-in-out infinite;
}

.chip-top {
    top: 30px;
    right: -7px;
}

.chip-bottom {
    bottom: 27px;
    left: -12px;
    animation-delay: -2.5s;
}

.chip-icon {
    display: grid;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    place-items: center;
    border-radius: 10px;
    background: rgba(139, 92, 246, 0.16);
    color: var(--primary-light);
}

.chip-icon-blue {
    background: rgba(91, 140, 255, 0.13);
    color: #8fb1ff;
}

.floating-chip strong,
.floating-chip small {
    display: block;
}

.floating-chip strong {
    font-size: 11px;
}

.floating-chip small {
    margin-top: 2px;
    color: var(--text-muted);
    font-size: 9px;
}

@keyframes floatChip {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.hero-orb {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 75px;
    height: 75px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 23px;
    background: linear-gradient(135deg, #9c76ff, #5426c9);
    box-shadow: 0 15px 45px rgba(109, 40, 217, 0.35);
    transform: translate(-50%, -50%) rotate(-12deg);
    opacity: 0.0;
    pointer-events: none;
}

.hero-orb span {
    color: #fff;
    font: 700 40px var(--font-heading);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    display: flex;
    align-items: center;
    gap: 13px;
    color: var(--text-soft);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.6px;
    transform: translateX(-50%);
}

.scroll-indicator i {
    color: var(--primary-light);
    animation: scrollBounce 1.5s ease-in-out infinite;
}

@keyframes scrollBounce {
    50% {
        transform: translateY(5px);
    }
}

/* -------------------- 8. Technology Strip -------------------- */

.tech-strip {
    border-block: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.015);
}

.tech-strip-inner {
    display: flex;
    min-height: 88px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.tech-strip-inner > span {
    color: var(--text-soft);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.8px;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #d4d1e5;
    font: 600 12px var(--font-heading);
    transition: color 0.25s ease, transform 0.25s ease;
}

.tech-item i {
    color: var(--primary-light);
    font-size: 19px;
}

.tech-item:hover {
    color: #fff;
    transform: translateY(-3px);
}

/* -------------------- 9. Section Headings -------------------- */

.section-heading {
    max-width: 680px;
    margin: 0 auto 55px;
    text-align: center;
}

.section-heading h2 {
    font-size: clamp(32px, 4vw, 47px);
    line-height: 1.2;
}

.section-heading > p:last-child {
    max-width: 510px;
    margin: 16px auto 0;
    font-size: 13px;
    line-height: 1.9;
}

/* -------------------- 10. About -------------------- */

.about-section {
    overflow: hidden;
}

.about-grid {
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
    align-items: center;
    gap: 85px;
}

.about-visual {
    position: relative;
    min-height: 390px;
}

.about-frame {
    position: absolute;
    inset: 15px 15px 15px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 35px;
    overflow: hidden;
    border: 1px solid rgba(167, 139, 250, 0.2);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 30% 25%, rgba(139, 92, 246, 0.2), transparent 45%),
        radial-gradient(circle at 75% 80%, rgba(91, 140, 255, 0.12), transparent 40%),
        #14131f;
}

.about-frame::before {
    position: absolute;
    inset: 0;
    content: "";
    background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(to bottom, black, transparent);
}

.about-monogram {
    position: relative;
    z-index: 1;
    color: #f5f0ff;
    font: 700 145px/1 var(--font-heading);
    letter-spacing: -15px;
    text-shadow: 0 0 65px rgba(167, 139, 250, 0.2);
}

.about-monogram span {
    color: var(--primary-light);
}

.about-frame-caption {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 15px;
    border: 1px solid var(--border);
    border-radius: 50px;
    background: rgba(11, 11, 18, 0.75);
    color: #d8d5e8;
    font-size: 10px;
}

.about-decoration {
    position: absolute;
    z-index: 2;
    border-radius: 15px;
    pointer-events: none;
}

.decoration-one {
    top: 0;
    right: 0;
    width: 75px;
    height: 75px;
    border-top: 2px solid var(--primary-light);
    border-right: 2px solid var(--primary-light);
}

.decoration-two {
    bottom: 0;
    left: -12px;
    width: 100px;
    height: 100px;
    border-bottom: 2px solid #5b8cff;
    border-left: 2px solid #5b8cff;
}

.about-content h3 {
    margin-bottom: 20px;
    font-size: clamp(25px, 3vw, 34px);
}

.about-content > p {
    margin-bottom: 15px;
    font-size: 12.5px;
    line-height: 1.95;
}

.about-highlights {
    display: grid;
    gap: 19px;
    margin: 28px 0;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.highlight-icon {
    display: grid;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    place-items: center;
    border: 1px solid rgba(167, 139, 250, 0.16);
    border-radius: 13px;
    background: rgba(139, 92, 246, 0.09);
    color: var(--primary-light);
}

.highlight-item h4 {
    margin-bottom: 4px;
    font-size: 13px;
    letter-spacing: 0;
}

.highlight-item p {
    font-size: 11px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-light);
    font-size: 12px;
    font-weight: 700;
}

.text-link i {
    transition: transform 0.25s ease;
}

.text-link:hover i {
    transform: translateX(5px);
}

.skills-area {
    margin-top: 95px;
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: linear-gradient(140deg, rgba(255,255,255,.025), rgba(139,92,246,.025));
}

.skills-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 27px;
}

.skills-heading .eyebrow {
    margin-bottom: 7px;
}

.skills-heading h3 {
    font-size: 24px;
}

.skills-note {
    color: var(--text-muted);
    font-size: 10px;
}

.skills-note i {
    margin-left: 5px;
    color: #4ade80;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 12px;
}

.skill-card {
    display: flex;
    min-height: 104px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: rgba(255,255,255,.018);
    transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.skill-card:hover {
    border-color: var(--border-hover);
    background: rgba(139,92,246,.08);
    transform: translateY(-6px);
}

.skill-card > i {
    font-size: 27px;
}

.skill-card > span {
    color: #d5d1e4;
    font-size: 10px;
    font-weight: 600;
}

.skill-html { color: #f97316; }
.skill-css { color: #60a5fa; }
.skill-js { color: #facc15; }
.skill-bootstrap { color: #b197fc; }
.skill-php { color: #a5b4fc; }
.skill-laravel { color: #fb7185; }
.skill-database { color: #67e8f9; }
.skill-git { color: #fb923c; }

/* -------------------- 11. Services -------------------- */

.services-section {
    border-block: 1px solid rgba(255,255,255,.04);
    background: linear-gradient(180deg, rgba(255,255,255,.012), transparent);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.service-card {
    position: relative;
    min-height: 315px;
    padding: 27px 23px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: linear-gradient(145deg, #151420, #101018);
    transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.service-card::before {
    position: absolute;
    top: -90px;
    right: -90px;
    width: 170px;
    height: 170px;
    content: "";
    border-radius: 50%;
    background: var(--primary);
    filter: blur(80px);
    opacity: 0;
    transition: opacity .35s ease;
}

.service-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 25px 55px rgba(0,0,0,.22);
    transform: translateY(-8px);
}

.service-card:hover::before {
    opacity: .17;
}

.service-number {
    position: absolute;
    top: 23px;
    right: 23px;
    color: #555168;
    font: 600 10px var(--font-heading);
}

.service-icon {
    display: grid;
    width: 54px;
    height: 54px;
    margin-bottom: 26px;
    place-items: center;
    border: 1px solid rgba(167,139,250,.22);
    border-radius: 16px;
    background: rgba(139,92,246,.1);
    color: var(--primary-light);
    font-size: 20px;
    transition: transform .35s ease, background .35s ease;
}

.service-card:hover .service-icon {
    background: rgba(139,92,246,.2);
    transform: rotate(-7deg) scale(1.05);
}

.service-card h3 {
    margin-bottom: 13px;
    font-size: 17px;
    letter-spacing: -.5px;
}

.service-card > p {
    font-size: 11px;
    line-height: 1.9;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 22px;
}

.service-tags span,
.project-tech span,
.modal-tech span {
    padding: 6px 9px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: rgba(255,255,255,.025);
    color: #b8b3ce;
    font-size: 9px;
    font-weight: 600;
}

.service-link {
    position: absolute;
    right: 20px;
    bottom: 20px;
    display: grid;
    width: 31px;
    height: 31px;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--text-muted);
    transition: background .25s ease, color .25s ease;
}

.service-link:hover {
    color: #fff;
    background: var(--primary-dark);
}

/* -------------------- 12. Projects -------------------- */

.projects-section {
    overflow: hidden;
}

.project-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.project-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-btn {
    padding: 10px 14px;
    cursor: pointer;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: transparent;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 600;
    transition: color .25s ease, background .25s ease, border-color .25s ease;
}

.filter-btn:hover,
.filter-btn.active {
    border-color: rgba(167,139,250,.35);
    background: rgba(139,92,246,.13);
    color: #e8deff;
}

.project-count {
    flex-shrink: 0;
    color: var(--text-soft);
    font-size: 10px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
}

.project-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: #11111a;
    transition: border-color .35s ease, transform .35s ease, box-shadow .35s ease;
}

.project-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 24px 60px rgba(0,0,0,.24);
    transform: translateY(-6px);
}

.project-card.is-hidden {
    display: none;
}

.project-preview {
    position: relative;
    display: grid;
    min-height: 290px;
    overflow: hidden;
    place-items: center;
    padding: 28px;
}

.project-preview::before {
    position: absolute;
    inset: 0;
    content: "";
    background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: .24;
}

.project-index {
    position: absolute;
    right: 20px;
    bottom: 17px;
    color: rgba(255,255,255,.62);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1.4px;
}

.preview-pixel {
    background: linear-gradient(140deg, #201547, #42249a 55%, #24215a);
}

.preview-pos {
    background: linear-gradient(140deg, #102e38, #135e65 55%, #142a45);
}

.preview-leads {
    background: linear-gradient(140deg, #2b1744, #5d2b78 60%, #29204c);
}

.preview-fashion {
    background: linear-gradient(140deg, #3b2035, #784257 60%, #34283f);
}

/* PixelConvert Preview */

.preview-window {
    position: relative;
    z-index: 1;
    width: min(100%, 365px);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.19);
    border-radius: 14px;
    background: #151324;
    box-shadow: 0 25px 45px rgba(0,0,0,.27);
    transition: transform .4s ease;
}

.project-card:hover .preview-window {
    transform: translateY(-5px) scale(1.015);
}

.preview-topbar {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 12px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.preview-topbar > span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fb7185;
}

.preview-topbar > span:nth-child(2) { background: #fbbf24; }
.preview-topbar > span:nth-child(3) { background: #4ade80; }

.preview-topbar small {
    margin-left: auto;
    color: #bcb6d5;
    font-size: 8px;
}

.pixel-preview-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 23px 12px 25px;
    text-align: center;
}

.pixel-icon {
    display: grid;
    width: 42px;
    height: 42px;
    margin-bottom: 12px;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #8b5cf6, #4f46e5);
    font-size: 19px;
}

.pixel-preview-content strong {
    font: 600 12px var(--font-heading);
}

.pixel-preview-content > span {
    margin-top: 7px;
    color: #a9a2c5;
    font-size: 8px;
}

.pixel-preview-button {
    margin-top: 16px;
    padding: 8px 15px;
    border-radius: 7px;
    background: #8b5cf6;
    font-size: 8px;
    font-weight: 700;
}

/* POS Preview */

.pos-dashboard {
    position: relative;
    z-index: 1;
    display: flex;
    width: min(100%, 370px);
    min-height: 205px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 12px;
    background: #f2f7f7;
    box-shadow: 0 25px 45px rgba(0,0,0,.22);
    transition: transform .4s ease;
}

.project-card:hover .pos-dashboard {
    transform: translateY(-5px);
}

.pos-sidebar {
    display: flex;
    width: 43px;
    flex-shrink: 0;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 15px 0;
    background: #133c43;
    color: #b8dbd8;
    font-size: 11px;
}

.pos-logo {
    color: #fff;
    font: 700 15px var(--font-heading);
}

.pos-main {
    flex: 1;
    min-width: 0;
    padding: 18px;
}

.pos-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #173c41;
    font-size: 10px;
}

.pos-heading span {
    color: #718b8b;
    font-size: 8px;
}

.pos-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin-top: 15px;
}

.pos-stats > div {
    display: grid;
    gap: 6px;
    padding: 11px;
    border: 1px solid #dfebeb;
    border-radius: 7px;
    background: #fff;
}

.pos-stats small {
    color: #718b8b;
    font-size: 8px;
}

.pos-stats strong {
    color: #164c4f;
    font-size: 10px;
}

.pos-chart {
    display: flex;
    height: 65px;
    align-items: end;
    justify-content: space-around;
    gap: 7px;
    margin-top: 13px;
    padding: 8px 12px 0;
    border-radius: 7px;
    background: #fff;
}

.pos-chart span {
    width: 10%;
    border-radius: 3px 3px 0 0;
    background: linear-gradient(to top, #278b87, #77d3bd);
}

/* Leads Preview */

.leads-window {
    position: relative;
    z-index: 1;
    width: min(100%, 360px);
    padding: 15px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 13px;
    background: #191525;
    box-shadow: 0 25px 45px rgba(0,0,0,.25);
    transition: transform .4s ease;
}

.project-card:hover .leads-window {
    transform: translateY(-5px);
}

.leads-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #e9dfff;
    font-size: 11px;
    font-weight: 700;
}

.leads-heading i {
    color: #a99cc2;
}

.leads-welcome {
    display: grid;
    gap: 4px;
    padding: 17px 0 14px;
}

.leads-welcome strong {
    font: 600 13px var(--font-heading);
}

.leads-welcome small {
    color: #aaa0c1;
    font-size: 8px;
}

.lead-row {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 0;
    border-top: 1px solid rgba(255,255,255,.07);
}

.lead-avatar {
    display: grid;
    width: 29px;
    height: 29px;
    flex-shrink: 0;
    place-items: center;
    border-radius: 9px;
    background: #543e86;
    color: #eee6ff;
    font-size: 8px;
    font-weight: 700;
}

.lead-avatar-two { background: #315d75; }
.lead-avatar-three { background: #78513f; }

.lead-person {
    display: grid;
    flex: 1;
    gap: 2px;
}

.lead-person b {
    color: #e5def5;
    font-size: 8px;
}

.lead-person small {
    color: #a49ab9;
    font-size: 7px;
}

.lead-status {
    padding: 5px 7px;
    border-radius: 5px;
    font-size: 7px;
    font-weight: 700;
}

.status-new { background: #292347; color: #c4b5fd; }
.status-progress { background: #20374a; color: #93c5fd; }
.status-done { background: #214034; color: #86efac; }

/* Fashion Preview */

.fashion-window {
    position: relative;
    z-index: 1;
    width: min(100%, 365px);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.22);
    background: #f2e9e4;
    box-shadow: 0 25px 45px rgba(0,0,0,.24);
    transition: transform .4s ease;
}

.project-card:hover .fashion-window {
    transform: translateY(-5px);
}

.fashion-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 13px;
    color: #412a33;
    border-bottom: 1px solid rgba(65,42,51,.13);
}

.fashion-nav strong {
    font: 700 12px var(--font-heading);
    letter-spacing: 2px;
}

.fashion-nav span {
    font-size: 6px;
    letter-spacing: 1px;
}

.fashion-nav i {
    font-size: 10px;
}

.fashion-content {
    display: grid;
    grid-template-columns: 1fr .8fr;
    min-height: 160px;
    overflow: hidden;
}

.fashion-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 16px;
}

.fashion-copy small {
    color: #966a70;
    font-size: 6px;
    letter-spacing: 1px;
}

.fashion-copy strong {
    margin: 10px 0 6px;
    color: #402b34;
    font: 600 21px/1.1 var(--font-heading);
    letter-spacing: -1px;
}

.fashion-copy > span {
    color: #876e75;
    font-size: 7px;
}

.fashion-button {
    margin-top: 13px;
    padding: 7px 10px;
    background: #533641;
    color: #fff;
    font-size: 7px;
    letter-spacing: .8px;
}

.fashion-art {
    position: relative;
    overflow: hidden;
    background: #d7b8b6;
}

.fashion-shape {
    position: absolute;
    border-radius: 48% 48% 10% 10%;
    transform: rotate(-8deg);
}

.shape-one {
    top: 22px;
    left: 30px;
    width: 75px;
    height: 150px;
    background: #a45f70;
}

.shape-two {
    top: 2px;
    right: 3px;
    width: 63px;
    height: 145px;
    background: #dfbcb1;
    transform: rotate(14deg);
}

.shape-three {
    bottom: -20px;
    left: 12px;
    width: 150px;
    height: 70px;
    border-radius: 50%;
    background: rgba(104,57,74,.32);
}

/* Project Text */

.project-info {
    padding: 25px 26px 27px;
}

.project-category {
    margin-bottom: 10px;
    color: var(--primary-light);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.project-info h3 {
    margin-bottom: 11px;
    font-size: 23px;
}

.project-info > p {
    min-height: 47px;
    font-size: 11px;
    line-height: 1.9;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 19px 0;
}

.project-details-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    cursor: pointer;
    border: 0;
    background: transparent;
    color: #dcd4ff;
    font-size: 11px;
    font-weight: 700;
    transition: color .25s ease;
}

.project-details-btn i {
    color: var(--primary-light);
    transition: transform .25s ease;
}

.project-details-btn:hover {
    color: var(--primary-light);
}

.project-details-btn:hover i {
    transform: translate(3px, -3px);
}

.projects-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 42px;
}

.projects-bottom > span {
    color: var(--text-muted);
    font-size: 12px;
}

/* -------------------- 13. Contact -------------------- */

.contact-section {
    overflow: hidden;
    border-top: 1px solid rgba(255,255,255,.04);
    background:
        radial-gradient(ellipse at 10% 50%, rgba(109,40,217,.08), transparent 45%),
        transparent;
}

.contact-grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 65px;
    align-items: start;
}

.contact-intro {
    margin-bottom: 32px;
}

.contact-sparkle {
    display: grid;
    width: 55px;
    height: 55px;
    margin-bottom: 22px;
    place-items: center;
    border: 1px solid rgba(167,139,250,.25);
    border-radius: 16px;
    background: rgba(139,92,246,.11);
    color: var(--primary-light);
    font-size: 20px;
}

.contact-intro h3 {
    max-width: 350px;
    margin-bottom: 14px;
    font-size: 30px;
}

.contact-intro p {
    font-size: 12px;
    line-height: 2;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 17px 0;
    border-top: 1px solid var(--border);
}

.contact-method-icon {
    display: grid;
    width: 43px;
    height: 43px;
    flex-shrink: 0;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255,255,255,.025);
    color: var(--primary-light);
}

.contact-method > span:nth-child(2) {
    display: grid;
    flex: 1;
    gap: 4px;
    min-width: 0;
}

.contact-method small {
    color: var(--text-soft);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1.4px;
}

.contact-method strong {
    overflow-wrap: anywhere;
    color: #e3dfef;
    font-size: 11px;
    font-weight: 600;
}

.contact-arrow {
    color: var(--text-soft);
    font-size: 11px;
}

.contact-socials {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 27px;
}

.contact-socials > div {
    display: flex;
    gap: 9px;
}

.contact-socials a {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-muted);
    transition: all .25s ease;
}

.contact-socials a:hover {
    border-color: var(--border-hover);
    background: rgba(139,92,246,.1);
    color: var(--primary-light);
    transform: translateY(-3px);
}

.contact-form {
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: linear-gradient(145deg, #151420, #101018);
    box-shadow: var(--shadow);
}

.form-heading {
    margin-bottom: 25px;
}

.form-heading h3 {
    margin-bottom: 8px;
    font-size: 23px;
}

.form-heading p {
    font-size: 11px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.form-group {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 19px;
}

.form-group label {
    color: #ddd8ec;
    font-size: 11px;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    outline: none;
    background: #0e0d16;
    color: #f6f5ff;
    font-size: 11px;
    transition: border-color .25s ease, box-shadow .25s ease;
}

.form-group input,
.form-group select {
    min-height: 47px;
    padding: 0 13px;
}

.form-group textarea {
    min-height: 120px;
    padding: 13px;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #68657e;
}

.form-group select {
    color-scheme: dark;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: rgba(167,139,250,.65);
    box-shadow: 0 0 0 3px rgba(139,92,246,.09);
}

.form-group.invalid input,
.form-group.invalid select,
.form-group.invalid textarea {
    border-color: #fb7185;
}

.field-error {
    display: none;
    color: #fda4af;
    font-size: 10px;
}

.form-group.invalid .field-error {
    display: block;
}

.form-submit {
    width: 100%;
    border: 0;
}

.form-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 14px;
    font-size: 9px;
}

.form-note i {
    color: #4ade80;
}

.form-feedback {
    display: none;
    margin-top: 15px;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: 11px;
    line-height: 1.7;
}

.form-feedback.show {
    display: block;
}

.form-feedback.success {
    border-color: rgba(74,222,128,.2);
    background: rgba(74,222,128,.07);
    color: #a7f3c1;
}

.form-feedback.error {
    border-color: rgba(251,113,133,.2);
    background: rgba(251,113,133,.07);
    color: #fda4af;
}

/* -------------------- 14. Final CTA -------------------- */

.final-cta {
    padding: 45px 0 85px;
}

.final-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 43px;
    overflow: hidden;
    border: 1px solid rgba(167,139,250,.2);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(ellipse at 90% 0%, rgba(139,92,246,.19), transparent 45%),
        linear-gradient(130deg, #151320, #11111b);
}

.final-cta .eyebrow {
    margin-bottom: 10px;
}

.final-cta h2 {
    max-width: 600px;
    font-size: clamp(24px, 3vw, 36px);
}

/* -------------------- 15. Footer -------------------- */

.site-footer {
    border-top: 1px solid var(--border);
    background: rgba(255,255,255,.012);
}

.footer-inner {
    display: flex;
    min-height: 95px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-brand {
    font-size: 29px;
}

.footer-inner > p {
    text-align: center;
    font-size: 10px;
}

.back-to-top {
    display: grid;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    color: var(--primary-light);
    transition: all .25s ease;
}

.back-to-top:hover {
    border-color: var(--border-hover);
    background: rgba(139,92,246,.14);
    transform: translateY(-3px);
}

/* -------------------- 16. Project Modal -------------------- */

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 22px;
    background: rgba(3,3,8,.82);
    backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.project-modal {
    position: relative;
    width: min(100%, 520px);
    padding: 37px;
    border: 1px solid rgba(167,139,250,.25);
    border-radius: 22px;
    background: #151420;
    box-shadow: 0 35px 100px rgba(0,0,0,.5);
    transform: translateY(20px) scale(.98);
    transition: transform .3s ease;
}

.modal-overlay.open .project-modal {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 17px;
    right: 17px;
    display: grid;
    width: 35px;
    height: 35px;
    cursor: pointer;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255,255,255,.03);
    color: var(--text-muted);
    transition: all .25s ease;
}

.modal-close:hover {
    background: rgba(139,92,246,.15);
    color: #fff;
}

.project-modal .eyebrow {
    display: block;
    padding-right: 35px;
}

.project-modal h3 {
    margin: 13px 0;
    font-size: 29px;
}

.project-modal > p {
    font-size: 12px;
    line-height: 2;
}

.modal-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 23px 0;
}

.modal-contact {
    width: 100%;
}

/* -------------------- 17. Scroll Progress -------------------- */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1500;
    width: 0;
    height: 3px;
    background: var(--gradient);
    box-shadow: 0 0 15px rgba(139,92,246,.5);
}

/* -------------------- 18. Scroll Reveal -------------------- */

.reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity .75s ease, transform .75s cubic-bezier(.2,.7,.2,1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* -------------------- 19. Responsive: Tablets -------------------- */

@media (max-width: 1050px) {
    :root {
        --header-height: 74px;
    }

    .hero-grid {
        gap: 30px;
    }

    .hero h1 {
        font-size: clamp(43px, 5.5vw, 60px);
        letter-spacing: -2.5px;
    }

    .hero-visual {
        min-height: 400px;
    }

    .hero-card {
        width: 100%;
    }

    .orbit-two {
        width: 390px;
        height: 390px;
    }

    .chip-top {
        right: -5px;
    }

    .chip-bottom {
        left: -5px;
    }

    .about-grid {
        gap: 50px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-card {
        min-height: 280px;
    }

    .skills-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .contact-grid {
        gap: 35px;
    }
}

/* -------------------- 20. Responsive: Mobile Navbar -------------------- */

@media (max-width: 800px) {
    .container {
        width: calc(100% - 36px);
    }

    .menu-toggle {
        display: block;
        order: 3;
    }

    .navbar {
        gap: 15px;
    }

    .nav-cta {
        margin-left: auto;
        padding: 10px 12px;
        font-size: 10px;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 9px);
        right: 18px;
        left: 18px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 3px;
        padding: 13px;
        border: 1px solid var(--border);
        border-radius: 16px;
        background: rgba(18,17,29,.98);
        box-shadow: var(--shadow);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity .25s ease, visibility .25s ease, transform .25s ease;
        backdrop-filter: blur(18px);
    }

    .nav-links.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-link {
        display: block;
        padding: 13px 12px;
        border-radius: 8px;
        font-size: 12px;
    }

    .nav-link:hover,
    .nav-link.active {
        background: rgba(139,92,246,.1);
    }

    .nav-link::after {
        display: none;
    }

    .section {
        padding: 85px 0;
    }

    .hero {
        min-height: auto;
        padding-top: 135px;
        padding-bottom: 95px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 65px;
    }

    .hero-content {
        max-width: 620px;
    }

    .hero h1 {
        max-width: 600px;
        font-size: clamp(44px, 9vw, 67px);
    }

    .hero-visual {
        width: min(100%, 520px);
        min-height: 420px;
        margin-inline: auto;
    }

    .hero-card {
        width: min(100%, 430px);
    }

    .scroll-indicator {
        bottom: 25px;
    }

    .tech-strip-inner {
        justify-content: center;
        padding-block: 22px;
    }

    .tech-strip-inner > span {
        width: 100%;
        text-align: center;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .about-visual {
        width: min(100%, 420px);
        min-height: 370px;
        margin-inline: auto;
    }

    .about-content {
        max-width: 650px;
    }

    .skills-area {
        margin-top: 65px;
        padding: 22px;
    }

    .section-heading {
        margin-bottom: 40px;
    }

    .project-preview {
        min-height: 250px;
        padding: 20px;
    }

    .project-info {
        padding: 21px;
    }

    .project-info h3 {
        font-size: 20px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .contact-content {
        max-width: 600px;
    }

    .final-cta-inner {
        align-items: flex-start;
        flex-direction: column;
        padding: 32px;
    }
}

/* -------------------- 21. Responsive: Small Phones -------------------- */

@media (max-width: 560px) {
    .container {
        width: calc(100% - 30px);
    }

    .brand {
        font-size: 31px;
    }

    .nav-cta {
        padding: 9px 10px;
        font-size: 9px;
    }

    .hero {
        padding-top: 125px;
    }

    .availability {
        font-size: 9px;
    }

    .hero h1 {
        font-size: clamp(39px, 10vw, 53px);
        letter-spacing: -2px;
    }

    .hero-description {
        font-size: 12px;
    }

    .hero-actions {
        align-items: stretch;
    }

    .hero-actions .btn {
        flex: 1;
        padding-inline: 12px;
        font-size: 11px;
    }

    .hero-visual {
        min-height: 350px;
    }

    .hero-card-top {
        height: 45px;
    }

    .code-content {
        padding: 21px 15px;
        font-size: 10px;
    }

    .orbit-one {
        width: 300px;
        height: 300px;
    }

    .orbit-two {
        width: 340px;
        height: 340px;
    }

    .floating-chip {
        padding: 9px;
        gap: 7px;
    }

    .chip-top {
        top: 0;
        right: 0;
    }

    .chip-bottom {
        bottom: 0;
        left: 0;
    }

    .chip-icon {
        width: 30px;
        height: 30px;
    }

    .floating-chip strong {
        font-size: 9px;
    }

    .floating-chip small {
        font-size: 8px;
    }

    .scroll-indicator {
        font-size: 8px;
    }

    .tech-strip-inner {
        column-gap: 17px;
        row-gap: 17px;
    }

    .tech-item {
        font-size: 10px;
    }

    .tech-item i {
        font-size: 16px;
    }

    .section-heading h2 {
        font-size: 32px;
    }

    .about-visual {
        min-height: 315px;
    }

    .about-monogram {
        font-size: 115px;
    }

    .about-frame-caption {
        font-size: 8px;
    }

    .skills-area {
        padding: 18px;
    }

    .skills-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .skills-heading h3 {
        font-size: 21px;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 9px;
    }

    .skill-card {
        min-height: 91px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: 265px;
        padding: 25px;
    }

    .project-toolbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
    }

    .project-filters {
        gap: 7px;
    }

    .filter-btn {
        padding: 9px 10px;
        font-size: 9px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-preview {
        min-height: 255px;
    }

    .project-info > p {
        min-height: 0;
    }

    .projects-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-form {
        padding: 22px 17px;
    }

    .contact-intro h3 {
        font-size: 27px;
    }

    .contact-method strong {
        font-size: 10px;
    }

    .final-cta {
        padding-bottom: 55px;
    }

    .final-cta-inner {
        padding: 25px 20px;
    }

    .final-cta h2 {
        font-size: 27px;
    }

    .footer-inner {
        min-height: 110px;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 10px;
        padding-block: 20px;
    }

    .footer-inner > p {
        order: 3;
        width: 100%;
        text-align: left;
    }

    .project-modal {
        padding: 30px 22px;
    }

    .project-modal h3 {
        font-size: 25px;
    }
}

/* -------------------- 22. Reduced Motion -------------------- */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}


/* =========================================================
   AYESHA.DEV — RESPONSIVE FIXES
   Desktop • Tablet • Mobile • Small Devices
   Add this block at the END of your existing CSS
========================================================= */

/* -------------------- Global Overflow Fix -------------------- */

html {
    width: 100%;
    overflow-x: clip;
    scroll-padding-top: 85px;
}

body {
    width: 100%;
    min-width: 320px;
    overflow-x: clip;
}

.container {
    width: min(var(--container), calc(100% - 48px));
}

.hero-grid,
.about-grid,
.contact-grid,
.projects-grid,
.services-grid,
.skills-grid,
.form-row {
    min-width: 0;
}

.hero-content,
.hero-visual,
.about-content,
.about-visual,
.contact-content,
.contact-form,
.project-card,
.service-card {
    min-width: 0;
}

p,
h1,
h2,
h3,
h4,
a,
button,
label {
    overflow-wrap: anywhere;
}

img,
video,
iframe {
    max-width: 100%;
}

/* -------------------- Large Screens -------------------- */

@media (min-width: 1400px) {
    .container {
        width: min(1240px, calc(100% - 80px));
    }

    .hero-grid {
        gap: 75px;
    }

    .hero h1 {
        font-size: clamp(64px, 5vw, 78px);
    }

    .section {
        padding-block: 130px;
    }
}

/* -------------------- Laptop & Tablet -------------------- */

@media (min-width: 801px) and (max-width: 1100px) {
    .container {
        width: calc(100% - 48px);
    }

    .navbar {
        gap: 18px;
    }

    .brand {
        flex-shrink: 0;
        font-size: 30px;
        letter-spacing: -2px;
    }

    .nav-links {
        gap: 18px;
    }

    .nav-link {
        font-size: 12px;
    }

    .nav-cta {
        flex-shrink: 0;
        padding: 10px 12px;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
        gap: 28px;
    }

    .hero h1 {
        font-size: clamp(40px, 5vw, 56px);
        letter-spacing: -2px;
    }

    .hero-visual {
        min-width: 0;
        min-height: 360px;
    }

    .orbit-two {
        width: 360px;
        height: 360px;
    }

    .orbit-one {
        width: 310px;
        height: 310px;
    }

    .floating-chip {
        max-width: 175px;
    }

    .chip-top {
        right: 0;
    }

    .chip-bottom {
        left: 0;
    }

    .about-grid {
        grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
        gap: 38px;
    }

    .about-monogram {
        font-size: clamp(95px, 12vw, 130px);
    }

    .skills-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .projects-grid {
        gap: 20px;
    }

    .project-preview {
        min-height: 245px;
        padding: 18px;
    }

    .project-info {
        padding: 22px;
    }

    .project-info h3 {
        font-size: 21px;
    }

    .contact-grid {
        grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
        gap: 30px;
    }

    .contact-form {
        padding: 24px;
    }
}

/* -------------------- Mobile Navbar -------------------- */

@media (max-width: 800px) {
    :root {
        --header-height: 72px;
    }

    .container {
        width: calc(100% - 36px);
    }

    .navbar {
        position: relative;
        gap: 10px;
    }

    .brand {
        min-width: 0;
        font-size: 29px;
        letter-spacing: -2px;
    }

    .menu-toggle {
        display: block;
        order: 3;
        flex: 0 0 42px;
        width: 42px;
        height: 42px;
    }

    .nav-cta {
        margin-left: auto;
        flex-shrink: 0;
        padding: 10px 12px;
        white-space: nowrap;
        font-size: 10px;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        left: 0;
        z-index: 1100;
        display: flex;
        max-height: calc(100dvh - var(--header-height) - 24px);
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        overflow-y: auto;
        padding: 12px;
        border: 1px solid var(--border);
        border-radius: 16px;
        background: #111D35;
        box-shadow: 0 18px 45px rgba(0, 0, 0, .35);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-8px);
        transition:
            opacity .25s ease,
            visibility .25s ease,
            transform .25s ease;
        -webkit-overflow-scrolling: touch;
    }

    .nav-links.open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-link {
        width: 100%;
        padding: 13px 14px;
        border-radius: 9px;
        font-size: 13px;
    }

    .nav-link:hover,
    .nav-link.active {
        background: rgba(167, 139, 250, .12);
    }

    .nav-link::after {
        display: none;
    }

    .site-header.scrolled {
        background: rgba(13, 21, 40, .96);
    }

    .section {
        padding-block: 80px;
        scroll-margin-top: 72px;
    }

    .hero {
        min-height: auto;
        padding-top: 125px;
        padding-bottom: 85px;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 45px;
    }

    .hero-content {
        width: 100%;
        max-width: 650px;
    }

    .hero h1 {
        max-width: 100%;
        font-size: clamp(42px, 8vw, 62px);
        letter-spacing: -2px;
    }

    .hero-description {
        max-width: 560px;
    }

    .hero-visual {
        width: 100%;
        max-width: 520px;
        min-height: 390px;
        margin-inline: auto;
    }

    .hero-card {
        width: min(100%, 430px);
        transform: none;
    }

    .hero-card:hover {
        transform: translateY(-3px);
    }

    .orbit-two {
        width: min(88vw, 400px);
        height: min(88vw, 400px);
    }

    .orbit-one {
        width: min(75vw, 340px);
        height: min(75vw, 340px);
    }

    .scroll-indicator {
        display: none;
    }

    .tech-strip-inner {
        justify-content: center;
        gap: 20px 25px;
        padding-block: 24px;
    }

    .tech-strip-inner > span {
        width: 100%;
        text-align: center;
    }

    .about-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 35px;
    }

    .about-visual {
        width: 100%;
        max-width: 430px;
        min-height: 350px;
        margin-inline: auto;
    }

    .about-frame {
        inset: 12px;
    }

    .about-content {
        width: 100%;
    }

    .skills-area {
        margin-top: 55px;
        padding: 22px;
    }

    .skills-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service-card {
        min-width: 0;
        min-height: 285px;
        padding: 24px 20px;
    }

    .project-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .project-filters {
        width: 100%;
    }

    .filter-btn {
        min-height: 38px;
    }

    .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .project-preview {
        min-height: 220px;
        padding: 16px;
    }

    .project-info {
        padding: 20px;
    }

    .project-info h3 {
        font-size: 20px;
    }

    .project-info > p {
        min-height: 0;
    }

    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 35px;
    }

    .contact-content {
        max-width: 650px;
    }

    .contact-form {
        width: 100%;
    }

    .final-cta-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 22px;
        padding: 30px;
    }
}

/* -------------------- Standard Phones -------------------- */

@media (max-width: 560px) {
    .container {
        width: calc(100% - 30px);
    }

    .section {
        padding-block: 65px;
    }

    .brand {
        font-size: 26px;
        letter-spacing: -1.8px;
    }

    .nav-cta {
        gap: 6px;
        padding: 9px 10px;
        font-size: 9px;
    }

    .menu-toggle {
        flex-basis: 39px;
        width: 39px;
        height: 39px;
    }

    .hero {
        padding-top: 115px;
        padding-bottom: 65px;
    }

    .availability {
        max-width: 100%;
        gap: 7px;
        padding: 8px 11px;
        font-size: 9px;
    }

    .hero h1 {
        font-size: clamp(36px, 9.5vw, 49px);
        line-height: 1.15;
        letter-spacing: -1.7px;
    }

    .hero-description {
        margin-top: 17px;
        font-size: 12px;
        line-height: 1.85;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-top: 24px;
    }

    .hero-actions .btn {
        width: 100%;
        min-width: 0;
        min-height: 47px;
        gap: 7px;
        padding: 11px 8px;
        font-size: 10px;
    }

    .hero-socials {
        flex-wrap: wrap;
        gap: 12px;
        margin-top: 28px;
    }

    .hero-visual {
        min-height: 315px;
    }

    .hero-card {
        border-radius: 13px;
    }

    .hero-card-top {
        height: 43px;
        gap: 10px;
        padding-inline: 12px;
    }

    .code-content {
        overflow-x: auto;
        padding: 17px 12px 20px;
        font-size: 9px;
        line-height: 2.2;
    }

    .code-indent {
        padding-left: 12px;
    }

    .code-indent-two {
        padding-left: 24px;
    }

    .orbit-one {
        width: min(78vw, 290px);
        height: min(78vw, 290px);
    }

    .orbit-two {
        width: min(90vw, 325px);
        height: min(90vw, 325px);
    }

    .floating-chip {
        max-width: 145px;
        gap: 7px;
        padding: 8px;
    }

    .chip-top {
        top: -5px;
        right: -3px;
    }

    .chip-bottom {
        bottom: -5px;
        left: -3px;
    }

    .chip-icon {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }

    .floating-chip strong {
        font-size: 9px;
    }

    .floating-chip small {
        font-size: 7px;
    }

    .tech-strip-inner {
        gap: 17px 20px;
    }

    .tech-item {
        font-size: 10px;
    }

    .section-heading {
        margin-bottom: 32px;
    }

    .section-heading h2 {
        font-size: clamp(28px, 7.5vw, 34px);
    }

    .section-heading > p:last-child {
        font-size: 12px;
    }

    .about-visual {
        min-height: 285px;
    }

    .about-monogram {
        font-size: clamp(85px, 25vw, 112px);
        letter-spacing: -10px;
    }

    .about-frame-caption {
        max-width: calc(100% - 24px);
        padding: 9px 11px;
        font-size: 8px;
    }

    .about-content h3 {
        font-size: 26px;
    }

    .about-content > p {
        font-size: 12px;
    }

    .skills-area {
        padding: 16px;
    }

    .skills-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .skills-heading h3 {
        font-size: 20px;
    }

    .skills-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .skill-card {
        min-height: 88px;
    }

    .services-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .service-card {
        min-height: 0;
        padding: 23px;
    }

    .service-icon {
        margin-bottom: 19px;
    }

    .service-link {
        right: 17px;
        bottom: 17px;
    }

    .service-tags {
        padding-right: 25px;
    }

    .project-toolbar {
        gap: 12px;
    }

    .project-filters {
        gap: 7px;
    }

    .filter-btn {
        padding: 9px 10px;
        font-size: 9px;
    }

    .projects-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .project-preview {
        min-height: 235px;
        padding: 18px;
    }

    .project-info {
        padding: 20px;
    }

    .project-info h3 {
        font-size: 21px;
    }

    .project-tech {
        gap: 6px;
    }

    .projects-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .contact-intro h3 {
        font-size: 26px;
    }

    .contact-intro p {
        font-size: 12px;
    }

    .contact-socials {
        align-items: flex-start;
        flex-direction: column;
    }

    .contact-form {
        padding: 21px 16px;
    }

    .form-heading h3 {
        font-size: 21px;
    }

    .form-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 12px;
    }

    .final-cta {
        padding-top: 15px;
        padding-bottom: 45px;
    }

    .final-cta-inner {
        gap: 20px;
        padding: 23px 18px;
    }

    .final-cta h2 {
        font-size: clamp(24px, 7vw, 29px);
    }

    .final-cta-inner .btn {
        width: 100%;
    }

    .footer-inner {
        min-height: 0;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 12px;
        padding-block: 22px;
    }

    .footer-brand {
        font-size: 25px;
    }

    .footer-inner > p {
        order: 3;
        width: 100%;
        text-align: left;
        line-height: 1.8;
    }

    .project-modal {
        width: 100%;
        max-height: 85dvh;
        overflow-y: auto;
        padding: 30px 20px 22px;
    }

    .project-modal h3 {
        font-size: 24px;
    }

    .modal-overlay {
        padding: 14px;
    }
}

/* -------------------- Extra-Small Phones -------------------- */

@media (max-width: 380px) {
    .container {
        width: calc(100% - 24px);
    }

    .navbar {
        gap: 7px;
    }

    .brand {
        font-size: 23px;
        letter-spacing: -1.5px;
    }

    .nav-cta {
        gap: 5px;
        padding: 8px;
        font-size: 8px;
    }

    .menu-toggle {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
    }

    .hero h1 {
        font-size: 35px;
    }

    .hero-actions .btn {
        gap: 5px;
        padding-inline: 5px;
        font-size: 9px;
    }

    .hero-visual {
        min-height: 285px;
    }

    .code-content {
        font-size: 8px;
    }

    .floating-chip {
        max-width: 125px;
        padding: 7px;
    }

    .chip-icon {
        width: 25px;
        height: 25px;
    }

    .floating-chip strong {
        font-size: 8px;
    }

    .floating-chip small {
        font-size: 7px;
    }

    .project-preview {
        min-height: 205px;
        padding: 12px;
    }

    .pos-main {
        padding: 12px;
    }

    .fashion-copy {
        padding: 10px;
    }

    .fashion-copy strong {
        font-size: 17px;
    }

    .contact-form {
        padding-inline: 13px;
    }

    .about-frame {
        inset: 10px 5px;
    }
}

/* -------------------- Touch Devices -------------------- */

@media (hover: none) and (pointer: coarse) {
    .btn:hover,
    .service-card:hover,
    .project-card:hover,
    .skill-card:hover {
        transform: none;
    }

    .hero-card:hover,
    .preview-window:hover,
    .pos-dashboard:hover,
    .leads-window:hover,
    .fashion-window:hover {
        transform: none;
    }

    .nav-link,
    .filter-btn,
    .menu-toggle,
    .btn,
    .back-to-top {
        -webkit-tap-highlight-color: transparent;
    }
}

/* -------------------- Reduced Motion -------------------- */

@media (prefers-reduced-motion: reduce) {
    .orbit,
    .floating-chip,
    .scroll-indicator i {
        animation: none !important;
    }
}
