/* =========================================================
   MUHAMMAD WAQAS — AI AUTOMATION PORTFOLIO
   Main stylesheet

   Structure:
   1. Design tokens
   2. Reset and base styles
   3. Layout helpers
   4. Header and navigation
   5. Typography
   6. Buttons and links
   7. Hero sections
   8. Cards and grids
   9. Demo components
   10. Forms
   11. Footer
   12. Accessibility
   13. Responsive breakpoints
   ========================================================= */


/* =========================================================
   1. DESIGN TOKENS
   ========================================================= */

:root {
    --color-background: #07111f;
    --color-background-soft: #0d192b;
    --color-surface: #101d31;
    --color-surface-light: #15243a;

    --color-text: #f8fafc;
    --color-text-muted: #9fb0c5;

    --color-primary: #75a8ff;
    --color-secondary: #43e0cd;
    --color-success: #47e3b0;
    --color-danger: #ff8b8b;

    --color-border: rgba(148, 163, 184, 0.18);
    --color-focus: rgba(117, 168, 255, 0.32);

    --shadow-card: 0 24px 70px rgba(0, 0, 0, 0.24);

    --radius-small: 12px;
    --radius-medium: 18px;
    --radius-large: 24px;

    --container-width: 1180px;
    --transition-fast: 180ms ease;
}


/* =========================================================
   2. RESET AND BASE STYLES
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;

    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: var(--color-text);

    background:
        radial-gradient(
            circle at 15% 0%,
            rgba(79, 140, 255, 0.18),
            transparent 28%
        ),
        radial-gradient(
            circle at 90% 10%,
            rgba(67, 224, 205, 0.11),
            transparent 26%
        ),
        var(--color-background);

    line-height: 1.65;
}

img,
svg {
    display: block;
    max-width: 100%;
}

button,
input,
textarea,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
    text-decoration: none;
}

p,
h1,
h2,
h3 {
    margin-top: 0;
}


/* =========================================================
   3. LAYOUT HELPERS
   ========================================================= */

.container {
    width:
        min(
            calc(100% - 40px),
            var(--container-width)
        );

    margin-inline: auto;
}

.narrow-container {
    max-width: 820px;
}

.section {
    padding-block: 76px;
}

.section-soft {
    background: rgba(255, 255, 255, 0.018);

    border-top:
        1px solid var(--color-border);

    border-bottom:
        1px solid var(--color-border);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 34px;
}

.three-column-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 22px;
}

.two-column-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 22px;
}


/* =========================================================
   4. HEADER AND NAVIGATION
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(7, 17, 31, 0.88);

    border-bottom:
        1px solid var(--color-border);

    backdrop-filter: blur(18px);
}

.header-inner {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 76px;

    gap: 30px;
}

.site-logo {
    display: inline-flex;
    flex-direction: column;

    line-height: 1.2;
}

.site-logo-name {
    font-size: 1rem;
    font-weight: 800;

    letter-spacing: -0.02em;
}

.site-logo-role {
    margin-top: 4px;

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

    color: var(--color-text-muted);
}

.main-navigation {
    display: flex;
    align-items: center;

    gap: 24px;
}

.main-navigation a {
    font-size: 0.94rem;
    font-weight: 650;

    color: var(--color-text-muted);

    transition:
        color var(--transition-fast),
        background var(--transition-fast);
}

.main-navigation a:hover,
.main-navigation a:focus-visible {
    color: var(--color-text);
}

.main-navigation .nav-cta {
    padding: 10px 15px;

    color: var(--color-text);

    background: rgba(255, 255, 255, 0.045);

    border:
        1px solid var(--color-border);

    border-radius: var(--radius-small);
}

.menu-button {
    display: none;

    width: 44px;
    height: 44px;

    padding: 10px;

    cursor: pointer;

    background:
        rgba(255, 255, 255, 0.04);

    border:
        1px solid var(--color-border);

    border-radius: var(--radius-small);
}

.menu-button-line {
    display: block;

    width: 100%;
    height: 2px;

    margin-block: 4px;

    background: var(--color-text);

    border-radius: 999px;
}


/* =========================================================
   5. TYPOGRAPHY
   ========================================================= */

.eyebrow,
.card-label {
    display: inline-block;

    margin-bottom: 13px;

    font-size: 0.75rem;
    font-weight: 800;

    color: #91c9ff;

    letter-spacing: 0.14em;
    text-transform: uppercase;
}

h1 {
    max-width: 980px;

    margin-bottom: 24px;

    font-size:
        clamp(2.7rem, 7vw, 5.5rem);

    line-height: 0.99;

    letter-spacing: -0.055em;
}

h2 {
    margin-bottom: 16px;

    font-size:
        clamp(1.65rem, 3vw, 2.55rem);

    line-height: 1.14;

    letter-spacing: -0.035em;
}

h3 {
    margin-bottom: 12px;

    font-size: 1.25rem;
    line-height: 1.3;
}

.hero-description,
.page-hero p,
.section-heading p,
.info-card p,
.product-card p,
.content-card p,
.demo-panel p,
.footer-copy {
    color: var(--color-text-muted);
}


/* =========================================================
   6. BUTTONS AND LINKS
   ========================================================= */

.button-group {
    display: flex;
    flex-wrap: wrap;

    gap: 14px;

    margin-top: 30px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;

    padding-inline: 20px;

    font-weight: 800;

    border:
        1px solid transparent;

    border-radius: 13px;

    transition:
        transform var(--transition-fast),
        border-color var(--transition-fast),
        background var(--transition-fast);
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    color: #06101d;

    background:
        linear-gradient(
            135deg,
            var(--color-primary),
            var(--color-secondary)
        );
}

.button-secondary {
    color: var(--color-text);

    background:
        rgba(255, 255, 255, 0.04);

    border-color:
        var(--color-border);
}

.button-small {
    min-height: 42px;

    padding-inline: 16px;

    font-size: 0.9rem;
}

.text-link {
    display: inline-flex;

    margin-top: 8px;

    color: #91c9ff;

    font-weight: 750;
}

.text-link:hover {
    text-decoration: underline;
}


/* =========================================================
   7. HERO SECTIONS
   ========================================================= */

.hero-section {
    padding-block: 96px 70px;
}

.hero-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1.35fr)
        minmax(300px, 0.72fr);

    align-items: center;

    gap: 50px;
}

.hero-description {
    max-width: 760px;

    font-size: 1.08rem;
}

.hero-card {
    padding: 30px;

    background:
        linear-gradient(
            180deg,
            rgba(17, 32, 53, 0.9),
            rgba(11, 24, 42, 0.82)
        );

    border:
        1px solid var(--color-border);

    border-radius: var(--radius-large);

    box-shadow: var(--shadow-card);
}

.hero-card p {
    color: var(--color-text-muted);
}

.status-badge {
    display: inline-flex;
    align-items: center;

    gap: 10px;

    margin-bottom: 26px;

    font-size: 0.82rem;
    font-weight: 700;

    color: var(--color-text-muted);
}

.status-dot {
    width: 9px;
    height: 9px;

    background: var(--color-success);

    border-radius: 50%;

    box-shadow:
        0 0 0 7px
        rgba(71, 227, 176, 0.08);
}

.feature-list {
    margin: 22px 0 0;

    padding-left: 20px;

    color: var(--color-text-muted);
}

.feature-list li + li {
    margin-top: 8px;
}

.page-hero {
    padding-block: 92px 58px;
}

.page-hero h1 {
    font-size:
        clamp(2.5rem, 6vw, 4.7rem);
}

.page-hero p {
    font-size: 1.08rem;
}


/* =========================================================
   8. CARDS AND GRIDS
   ========================================================= */

.info-card,
.product-card,
.content-card,
.demo-card,
.demo-panel,
.project-form,
.callout {
    background:
        linear-gradient(
            180deg,
            rgba(17, 32, 53, 0.88),
            rgba(11, 24, 42, 0.8)
        );

    border:
        1px solid var(--color-border);

    border-radius: var(--radius-large);

    box-shadow: var(--shadow-card);
}

.info-card,
.product-card,
.content-card,
.demo-panel {
    padding: 28px;
}

.card-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    margin-bottom: 22px;

    color: #b9d8ff;

    font-size: 0.85rem;
    font-weight: 800;

    background:
        rgba(117, 168, 255, 0.08);

    border:
        1px solid
        rgba(117, 168, 255, 0.2);

    border-radius: 13px;
}

.tag {
    display: inline-flex;

    padding: 6px 10px;

    font-size: 0.74rem;
    font-weight: 750;

    color: #aad1ff;

    background:
        rgba(117, 168, 255, 0.08);

    border:
        1px solid
        rgba(117, 168, 255, 0.16);

    border-radius: 999px;
}

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

    gap: 30px;

    padding: 32px;
}

.callout p {
    max-width: 720px;

    color: var(--color-text-muted);
}


/* =========================================================
   9. DEMO COMPONENTS
   ========================================================= */

.demo-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 22px;
}

.demo-card {
    padding: 28px;
}

.demo-status {
    margin-bottom: 12px;

    font-size: 0.76rem;
    font-weight: 800;

    color: var(--color-success);

    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.demo-description {
    color: var(--color-text-muted);
}

.demo-tags {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;

    margin-block: 20px;
}

.demo-tag {
    display: inline-flex;

    padding: 5px 9px;

    color: var(--color-text-muted);

    font-size: 0.74rem;

    background:
        rgba(255, 255, 255, 0.035);

    border:
        1px solid var(--color-border);

    border-radius: 999px;
}

.demo-workspace {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 22px;
}

.timeline-list {
    margin: 20px 0 0;

    padding-left: 22px;

    color: var(--color-text-muted);
}

.timeline-list li + li {
    margin-top: 10px;
}


/* =========================================================
   10. FORMS
   ========================================================= */

.project-form {
    padding: 30px;
}

.form-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 20px;
}

.form-field {
    margin-bottom: 20px;
}

.form-field label {
    display: block;

    margin-bottom: 8px;

    font-size: 0.9rem;
    font-weight: 750;
}

.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;

    padding: 13px 14px;

    color: var(--color-text);

    background: #091525;

    border:
        1px solid var(--color-border);

    border-radius: var(--radius-small);

    outline: none;
}

.form-field textarea {
    min-height: 170px;

    resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    border-color:
        var(--color-primary);

    box-shadow:
        0 0 0 4px
        var(--color-focus);
}

.field-error {
    min-height: 20px;

    margin: 7px 0 0;

    color: var(--color-danger);

    font-size: 0.8rem;
}

.form-message {
    margin-top: 16px;

    color: var(--color-success);
}


/* =========================================================
   11. FOOTER
   ========================================================= */

.site-footer {
    padding-block: 48px 26px;

    background:
        rgba(3, 9, 17, 0.45);

    border-top:
        1px solid var(--color-border);
}

.footer-grid {
    display: grid;

    grid-template-columns:
        1.5fr 0.7fr 0.7fr;

    gap: 36px;
}

.footer-brand,
.footer-title {
    margin-bottom: 10px;

    font-weight: 800;
}

.footer-copy {
    max-width: 520px;
}

.footer-links {
    display: grid;

    gap: 9px;

    color: var(--color-text-muted);
}

.footer-links a:hover {
    color: var(--color-text);
}

.footer-bottom {
    margin-top: 32px;

    padding-top: 22px;

    color: var(--color-text-muted);

    font-size: 0.86rem;

    border-top:
        1px solid var(--color-border);
}

.footer-bottom p {
    margin: 0;
}


/* =========================================================
   12. ACCESSIBILITY
   ========================================================= */

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 9999;

    padding: 10px 14px;

    color: #06101d;

    background: var(--color-secondary);

    border-radius: 10px;

    transform: translateY(-160%);

    transition:
        transform var(--transition-fast);
}

.skip-link:focus {
    transform: translateY(0);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline:
        3px solid var(--color-primary);

    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* =========================================================
   13. RESPONSIVE BREAKPOINTS
   ========================================================= */

@media (max-width: 980px) {
    .hero-layout,
    .three-column-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-layout {
        gap: 34px;
    }

    .hero-card {
        max-width: 680px;
    }

    .footer-grid {
        gap: 26px;
    }
}

@media (max-width: 820px) {
    .menu-button {
        display: block;
    }

    .main-navigation {
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;

        display: none;

        padding: 18px;

        background: #0b1728;

        border:
            1px solid var(--color-border);

        border-radius: var(--radius-medium);

        box-shadow: var(--shadow-card);
    }

    .main-navigation.is-open {
        display: grid;
        gap: 8px;
    }

    .main-navigation a {
        display: block;

        padding: 11px 12px;

        border-radius: 10px;
    }

    .main-navigation a:hover {
        background:
            rgba(255, 255, 255, 0.04);
    }

    .two-column-grid,
    .demo-grid,
    .demo-workspace {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 620px) {
    .container {
        width:
            min(
                calc(100% - 28px),
                var(--container-width)
            );
    }

    .hero-section {
        padding-block: 72px 52px;
    }

    .page-hero {
        padding-block: 68px 44px;
    }

    .section {
        padding-block: 56px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .info-card,
    .product-card,
    .content-card,
    .demo-card,
    .demo-panel,
    .project-form,
    .hero-card,
    .callout {
        padding: 22px;
    }

    h1 {
        font-size:
            clamp(2.45rem, 13vw, 3.7rem);
    }

    .button-group {
        display: grid;
    }

    .button-group .button {
        width: 100%;
    }
}

@media (max-width: 390px) {
    .site-logo-role {
        display: none;
    }

    .header-inner {
        min-height: 68px;
    }

    .button {
        width: 100%;
    }
}


/* =========================================================
   14. ANALYTICS CONSENT
   ========================================================= */

.analytics-consent {
    position: fixed;
    right: 18px;
    bottom: 18px;
    left: 18px;
    z-index: 2000;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.analytics-consent-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(100%, 900px);
    gap: 24px;
    padding: 22px;
    background: rgba(8, 19, 34, 0.98);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-card);
    pointer-events: auto;
}

.analytics-consent-title {
    margin-bottom: 8px;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}

.analytics-consent-content p {
    max-width: 620px;
    margin-bottom: 8px;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.analytics-consent-actions {
    display: flex;
    flex-shrink: 0;
    gap: 10px;
}

.privacy-content h2:not(:first-child) {
    margin-top: 34px;
}

@media (max-width: 720px) {
    .analytics-consent {
        right: 12px;
        bottom: 12px;
        left: 12px;
    }

    .analytics-consent-content {
        align-items: stretch;
        flex-direction: column;
        gap: 16px;
        padding: 18px;
    }

    .analytics-consent-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 420px) {
    .analytics-consent-actions {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   15. PERSONAL HOMEPAGE
   ========================================================= */

.personal-hero {
    padding-block:
        100px 76px;
}

.personal-hero-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1.28fr)
        minmax(320px, 0.72fr);

    align-items: center;

    gap: 54px;
}

.personal-hero-content {
    max-width: 820px;
}

.personal-hero-lead {
    max-width: 760px;

    margin-bottom: 24px;

    color:
        var(--color-text-muted);

    font-size: 1.1rem;
}

.personal-title-list {
    display: flex;
    flex-wrap: wrap;

    gap: 9px;

    margin-top: 22px;
}

.personal-title-list span {
    display: inline-flex;

    padding: 7px 11px;

    color: #c9d7e8;

    font-size: 0.78rem;
    font-weight: 700;

    background:
        rgba(
            255,
            255,
            255,
            0.035
        );

    border:
        1px solid
        var(--color-border);

    border-radius: 999px;
}

.hero-skill-strip {
    display: flex;
    flex-wrap: wrap;

    gap: 10px;

    margin-top: 30px;
}

.hero-skill-strip span {
    position: relative;

    padding-right: 12px;

    color:
        var(--color-text-muted);

    font-size: 0.8rem;
    font-weight: 700;
}

.hero-skill-strip span:not(:last-child)::after {
    position: absolute;
    top: 50%;
    right: 0;

    width: 3px;
    height: 3px;

    content: "";

    background:
        var(--color-secondary);

    border-radius: 50%;

    transform:
        translateY(-50%);
}

.personal-profile-card {
    overflow: hidden;

    background:
        linear-gradient(
            180deg,
            rgba(
                20,
                37,
                61,
                0.96
            ),
            rgba(
                10,
                24,
                42,
                0.92
            )
        );

    border:
        1px solid
        var(--color-border);

    border-radius:
        var(--radius-large);

    box-shadow:
        var(--shadow-card);
}

.profile-avatar {
    display: grid;
    place-items: center;

    min-height: 250px;

    color: #06101d;

    font-size:
        clamp(
            4rem,
            10vw,
            6.5rem
        );

    font-weight: 900;

    letter-spacing:
        -0.07em;

    background:
        linear-gradient(
            135deg,
            var(--color-primary),
            var(--color-secondary)
        );
}

.profile-card-content {
    padding: 28px;
}

.profile-kicker {
    margin-bottom: 10px;

    color: #9bcfff;

    font-size: 0.72rem;
    font-weight: 800;

    letter-spacing:
        0.12em;

    text-transform: uppercase;
}

.profile-card-content p {
    color:
        var(--color-text-muted);
}

.profile-status {
    display: flex;
    align-items: center;

    gap: 10px;

    margin-block: 20px;

    color: #c7f7e6;

    font-size: 0.88rem;
    font-weight: 700;
}


/* =========================================================
   PRODUCT SHOWCASE
   ========================================================= */

.product-showcase-card {
    padding: 30px;

    background:
        linear-gradient(
            180deg,
            rgba(
                17,
                32,
                53,
                0.92
            ),
            rgba(
                11,
                24,
                42,
                0.84
            )
        );

    border:
        1px solid
        var(--color-border);

    border-radius:
        var(--radius-large);

    box-shadow:
        var(--shadow-card);
}

.product-showcase-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 18px;

    margin-bottom: 14px;
}

.product-showcase-top .card-label {
    margin-bottom: 0;
}

.product-badge {
    display: inline-flex;

    padding: 6px 10px;

    color: #bcf5e4;

    font-size: 0.7rem;
    font-weight: 800;

    background:
        rgba(
            71,
            227,
            176,
            0.08
        );

    border:
        1px solid
        rgba(
            71,
            227,
            176,
            0.18
        );

    border-radius: 999px;
}

.product-showcase-card > p {
    color:
        var(--color-text-muted);
}

.card-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 16px;

    margin-top: 24px;
}


/* =========================================================
   FEATURED DEMOS
   ========================================================= */

.featured-demo-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(
                0,
                1fr
            )
        );

    gap: 22px;
}

.featured-demo-card {
    padding: 28px;

    background:
        linear-gradient(
            180deg,
            rgba(
                17,
                32,
                53,
                0.88
            ),
            rgba(
                11,
                24,
                42,
                0.8
            )
        );

    border:
        1px solid
        var(--color-border);

    border-radius:
        var(--radius-large);
}

.featured-demo-card > p:not(.demo-status) {
    color:
        var(--color-text-muted);
}

.section-action {
    margin-top: 30px;
}


/* =========================================================
   EXPERTISE
   ========================================================= */

.expertise-grid {
    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(
                0,
                1fr
            )
        );

    gap: 18px;
}

.expertise-card {
    padding: 24px;

    background:
        rgba(
            255,
            255,
            255,
            0.025
        );

    border:
        1px solid
        var(--color-border);

    border-radius:
        var(--radius-medium);
}

.clean-skill-list {
    display: grid;

    gap: 8px;

    margin: 0;

    padding: 0;

    list-style: none;
}

.clean-skill-list li {
    position: relative;

    padding-left: 16px;

    color:
        var(--color-text-muted);

    font-size: 0.9rem;
}

.clean-skill-list li::before {
    position: absolute;
    top: 0.68em;
    left: 0;

    width: 5px;
    height: 5px;

    content: "";

    background:
        var(--color-secondary);

    border-radius: 50%;
}


/* =========================================================
   EXPERIENCE TIMELINE
   ========================================================= */

.timeline {
    position: relative;

    display: grid;

    gap: 0;

    max-width: 900px;
}

.timeline::before {
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 82px;

    width: 1px;

    content: "";

    background:
        var(--color-border);
}

.timeline-item {
    position: relative;

    display: grid;

    grid-template-columns:
        110px
        minmax(
            0,
            1fr
        );

    gap: 26px;

    padding-block: 22px;
}

.timeline-year {
    position: relative;
    z-index: 2;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;

    padding-inline: 10px;

    color: #bcd8ff;

    font-size: 0.78rem;
    font-weight: 800;

    background:
        var(--color-background);

    border:
        1px solid
        rgba(
            117,
            168,
            255,
            0.2
        );

    border-radius: 12px;
}

.timeline-content p {
    max-width: 700px;

    margin-bottom: 0;

    color:
        var(--color-text-muted);
}


/* =========================================================
   CERTIFICATIONS
   ========================================================= */

.certification-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(
                0,
                1fr
            )
        );

    gap: 22px;
}

.certification-card {
    padding: 26px;

    background:
        rgba(
            255,
            255,
            255,
            0.025
        );

    border:
        1px solid
        var(--color-border);

    border-radius:
        var(--radius-medium);
}

.certification-card p:last-child {
    margin-bottom: 0;

    color:
        var(--color-text-muted);
}

.section-note {
    margin-top: 22px;

    color:
        var(--color-text-muted);

    font-size: 0.88rem;
}


/* =========================================================
   PROCESS
   ========================================================= */

.process-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(
                0,
                1fr
            )
        );

    gap: 18px;
}

.process-step {
    padding: 24px;

    background:
        rgba(
            255,
            255,
            255,
            0.025
        );

    border:
        1px solid
        var(--color-border);

    border-radius:
        var(--radius-medium);
}

.process-step > span {
    display: inline-flex;

    margin-bottom: 18px;

    color: #98cfff;

    font-size: 0.76rem;
    font-weight: 900;

    letter-spacing:
        0.1em;
}

.process-step p {
    margin-bottom: 0;

    color:
        var(--color-text-muted);
}


/* =========================================================
   FINAL CTA
   ========================================================= */

.personal-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 40px;

    padding: 34px;

    background:
        linear-gradient(
            135deg,
            rgba(
                79,
                140,
                255,
                0.12
            ),
            rgba(
                67,
                224,
                205,
                0.06
            )
        );

    border:
        1px solid
        rgba(
            117,
            168,
            255,
            0.22
        );

    border-radius:
        var(--radius-large);
}

.personal-cta > div:first-child {
    max-width: 760px;
}

.personal-cta p {
    margin-bottom: 0;

    color:
        var(--color-text-muted);
}

.personal-cta-actions {
    display: flex;
    flex-shrink: 0;
    flex-direction: column;

    gap: 10px;

    min-width: 240px;
}


/* =========================================================
   PERSONAL HOMEPAGE — RESPONSIVE
   ========================================================= */

@media (max-width: 1050px) {
    .personal-hero-layout {
        grid-template-columns: 1fr;

        gap: 36px;
    }

    .personal-profile-card {
        display: grid;

        grid-template-columns:
            260px
            minmax(
                0,
                1fr
            );

        max-width: 820px;
    }

    .profile-avatar {
        min-height: 100%;
    }

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

@media (max-width: 900px) {
    .featured-demo-grid,
    .certification-grid {
        grid-template-columns: 1fr;
    }

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

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

    .personal-cta-actions {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 700px) {
    .personal-hero {
        padding-block:
            72px 54px;
    }

    .personal-profile-card {
        grid-template-columns: 1fr;
    }

    .profile-avatar {
        min-height: 220px;
    }

    .expertise-grid,
    .process-grid {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        display: none;
    }

    .timeline-item {
        grid-template-columns: 1fr;

        gap: 14px;
    }

    .timeline-year {
        justify-self: start;

        width: auto;
    }

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

@media (max-width: 430px) {
    .personal-title-list span {
        width: 100%;

        justify-content: center;
    }

    .hero-skill-strip {
        gap: 8px 10px;
    }

    .personal-cta {
        padding: 24px;
    }
}

/* =========================================================
   16. DESIGN SYSTEM V2
   Site-wide readability, responsive scale, and micro-motion
   ========================================================= */


/* ---------------------------------------------------------
   GLOBAL TYPOGRAPHY BALANCE
   --------------------------------------------------------- */

:root {
    --content-wide:
        1180px;

    --content-reading:
        760px;

    --section-space:
        clamp(
            58px,
            6vw,
            88px
        );
}

body {
    font-size:
        clamp(
            15.5px,
            0.25vw + 14.5px,
            17px
        );
}

.container {
    width:
        min(
            calc(
                100% - 40px
            ),
            var(--content-wide)
        );
}

.section {
    padding-block:
        var(--section-space);
}

.section-heading {
    max-width:
        var(--content-reading);

    margin-bottom:
        clamp(
            28px,
            3vw,
            38px
        );
}

.eyebrow,
.card-label {
    margin-bottom: 14px;

    font-size:
        clamp(
            0.84rem,
            0.18vw + 0.8rem,
            0.96rem
        );

    line-height: 1.4;

    letter-spacing:
        0.11em;
}

.section-heading > p:not(.eyebrow),
.page-hero > .container > p,
.personal-hero-lead {
    font-size:
        clamp(
            1rem,
            0.35vw + 0.92rem,
            1.12rem
        );

    line-height: 1.75;
}

h1 {
    font-size:
        clamp(
            2.55rem,
            3.45vw,
            4rem
        );

    line-height: 1.04;

    letter-spacing:
        -0.045em;
}

h2 {
    font-size:
        clamp(
            1.8rem,
            2.2vw,
            2.65rem
        );
}

h3 {
    font-size:
        clamp(
            1.08rem,
            0.55vw + 0.98rem,
            1.32rem
        );
}


/* ---------------------------------------------------------
   HEADER — COMPACT AND RESPONSIVE
   --------------------------------------------------------- */

.site-header {
    min-height: 0;
}

.header-inner {
    min-height:
        clamp(
            62px,
            4.4vw,
            70px
        );
}

.site-logo-name {
    font-size:
        clamp(
            0.98rem,
            0.3vw + 0.93rem,
            1.1rem
        );
}

.site-logo-role {
    margin-top: 2px;

    font-size: 0.7rem;
}

.main-navigation {
    gap:
        clamp(
            15px,
            1.7vw,
            24px
        );
}

.main-navigation a {
    font-size:
        clamp(
            0.88rem,
            0.12vw + 0.86rem,
            0.95rem
        );
}


/* ---------------------------------------------------------
   PERSONAL HERO — CONTROLLED SCALE
   --------------------------------------------------------- */

.personal-hero {
    padding-block:
        clamp(
            54px,
            5.2vw,
            76px
        )
        clamp(
            58px,
            5vw,
            78px
        );
}

.personal-hero-layout {
    grid-template-columns:
        minmax(
            0,
            1.2fr
        )
        minmax(
            300px,
            0.68fr
        );

    gap:
        clamp(
            34px,
            4vw,
            54px
        );
}

.personal-hero-content h1 {
    max-width: 790px;

    margin-bottom: 22px;
}

.personal-hero-lead {
    max-width: 720px;

    color:
        #b1c1d5;
}

.personal-title-list {
    gap: 10px;

    margin-top: 24px;
}

.personal-title-list span {
    min-height: 36px;

    align-items: center;

    padding:
        8px 12px;

    font-size:
        clamp(
            0.78rem,
            0.14vw + 0.76rem,
            0.86rem
        );
}

.hero-skill-strip {
    gap:
        10px 14px;

    margin-top: 28px;
}

.hero-skill-strip span {
    padding-right: 14px;

    font-size:
        clamp(
            0.88rem,
            0.16vw + 0.86rem,
            0.98rem
        );

    font-weight: 750;

    color: #bdd0e5;
}

.hero-skill-strip span:not(:last-child)::after {
    width: 4px;
    height: 4px;
}

.profile-avatar {
    min-height:
        clamp(
            190px,
            15vw,
            230px
        );

    font-size:
        clamp(
            3.7rem,
            6vw,
            5.4rem
        );
}

.profile-card-content {
    padding:
        clamp(
            22px,
            2vw,
            28px
        );
}

.profile-card-content h2 {
    font-size:
        clamp(
            1.7rem,
            2vw,
            2.25rem
        );
}


/* ---------------------------------------------------------
   FEATURE ICONS
   --------------------------------------------------------- */

.feature-icon {
    display: grid;
    place-items: center;

    width: 48px;
    height: 48px;

    margin-bottom: 22px;

    color:
        #8ec7ff;

    background:
        linear-gradient(
            145deg,
            rgba(
                117,
                168,
                255,
                0.13
            ),
            rgba(
                67,
                224,
                205,
                0.05
            )
        );

    border:
        1px solid
        rgba(
            117,
            168,
            255,
            0.22
        );

    border-radius: 14px;

    transition:
        transform 220ms ease,
        border-color 220ms ease,
        background 220ms ease;
}

.feature-icon img {
    width: 25px;
    height: 25px;
}


/* ---------------------------------------------------------
   CARDS — BETTER LARGE-SCREEN PROPORTIONS
   --------------------------------------------------------- */

.info-card,
.product-showcase-card,
.featured-demo-card,
.expertise-card,
.certification-card,
.process-step {
    transition:
        transform 220ms ease,
        border-color 220ms ease,
        box-shadow 220ms ease,
        background 220ms ease;
}

.info-card:hover,
.product-showcase-card:hover,
.featured-demo-card:hover,
.expertise-card:hover,
.certification-card:hover,
.process-step:hover {
    transform:
        translateY(-4px);

    border-color:
        rgba(
            117,
            168,
            255,
            0.34
        );

    box-shadow:
        0 22px 55px
        rgba(
            0,
            0,
            0,
            0.18
        );
}

.info-card:hover .feature-icon {
    transform:
        translateY(-2px)
        scale(1.04);

    border-color:
        rgba(
            67,
            224,
            205,
            0.35
        );

    background:
        linear-gradient(
            145deg,
            rgba(
                117,
                168,
                255,
                0.17
            ),
            rgba(
                67,
                224,
                205,
                0.09
            )
        );
}

.info-card p,
.product-showcase-card > p,
.featured-demo-card > p:not(.demo-status),
.expertise-card li,
.certification-card p:last-child,
.process-step p {
    line-height: 1.7;
}


/* ---------------------------------------------------------
   SECTION LABELS / DEMO LABELS
   --------------------------------------------------------- */

.demo-status {
    font-size:
        clamp(
            0.78rem,
            0.12vw + 0.76rem,
            0.86rem
        );

    letter-spacing:
        0.085em;
}

.product-showcase-top .card-label {
    font-size:
        clamp(
            0.78rem,
            0.12vw + 0.76rem,
            0.86rem
        );
}


/* ---------------------------------------------------------
   BUTTONS / LINKS
   --------------------------------------------------------- */

.button {
    min-height: 46px;

    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease,
        background 180ms ease;
}

.button-primary:hover {
    box-shadow:
        0 12px 30px
        rgba(
            67,
            224,
            205,
            0.13
        );
}

.text-link {
    position: relative;

    font-size:
        clamp(
            0.9rem,
            0.12vw + 0.88rem,
            0.97rem
        );
}


/* ---------------------------------------------------------
   SUBTLE REVEAL MOTION
   --------------------------------------------------------- */

.js [data-reveal] {
    opacity: 0;

    transition:
        opacity 520ms ease,
        transform 520ms
        cubic-bezier(
            0.2,
            0.7,
            0.2,
            1
        );
}

.js [data-reveal="up"] {
    transform:
        translateY(18px);
}

.js [data-reveal="right"] {
    transform:
        translateX(20px);
}

.js [data-reveal].is-visible {
    opacity: 1;

    transform:
        translate(
            0,
            0
        );
}


/* ---------------------------------------------------------
   LARGE DESKTOP / FULL-HD / 2K
   Do not scale typography endlessly with viewport width.
   --------------------------------------------------------- */

@media (min-width: 1440px) {
    :root {
        --content-wide:
            1200px;
    }

    .personal-hero-layout {
        gap: 58px;
    }

    .personal-hero-content h1 {
        max-width: 760px;
    }

    .section {
        padding-block: 80px;
    }
}

@media (min-width: 1920px) {
    :root {
        --content-wide:
            1220px;
    }

    .personal-hero {
        padding-block:
            68px 80px;
    }

    .personal-hero-content h1 {
        font-size: 4rem;
    }

    .section {
        padding-block: 84px;
    }
}

@media (min-width: 2400px) {
    :root {
        --content-wide:
            1260px;
    }

    .section {
        padding-block: 88px;
    }
}


/* ---------------------------------------------------------
   TABLET / MOBILE
   --------------------------------------------------------- */

@media (max-width: 1050px) {
    .personal-hero-layout {
        grid-template-columns:
            1fr;
    }

    .personal-profile-card {
        grid-template-columns:
            230px
            minmax(
                0,
                1fr
            );
    }

    .profile-avatar {
        min-height: 100%;
    }
}

@media (max-width: 820px) {
    .header-inner {
        min-height: 62px;
    }

    .personal-hero {
        padding-block:
            50px 58px;
    }

    .personal-hero-content h1 {
        max-width: 680px;
    }

    .hero-skill-strip span {
        font-size: 0.92rem;
    }
}

@media (max-width: 700px) {
    .personal-profile-card {
        grid-template-columns:
            1fr;
    }

    .profile-avatar {
        min-height: 180px;
    }

    .personal-hero-content h1 {
        font-size:
            clamp(
                2.35rem,
                10.8vw,
                3.25rem
            );
    }

    .eyebrow,
    .card-label {
        font-size: 0.84rem;
    }

    .hero-skill-strip {
        margin-top: 24px;
    }
}

@media (max-width: 430px) {
    .container {
        width:
            min(
                calc(
                    100% - 28px
                ),
                var(--content-wide)
            );
    }

    .personal-hero {
        padding-block:
            42px 50px;
    }

    .personal-title-list span {
        width: auto;

        justify-content:
            flex-start;
    }

    .hero-skill-strip span {
        font-size: 0.88rem;
    }
}


/* ---------------------------------------------------------
   REDUCED MOTION
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    .js [data-reveal] {
        opacity: 1;

        transform: none;

        transition: none;
    }

    .info-card:hover,
    .product-showcase-card:hover,
    .featured-demo-card:hover,
    .expertise-card:hover,
    .certification-card:hover,
    .process-step:hover,
    .button:hover,
    .feature-icon {
        transform: none;
    }
}

/* =========================================================
   17. DESIGN SYSTEM V3
   Social profiles, profile visual, case-study polish,
   expertise polish, and process refinement.
   ========================================================= */


/* ---------------------------------------------------------
   PROFILE VISUAL
   --------------------------------------------------------- */

.profile-visual {
    position: relative;

    display: grid;
    place-items: center;

    min-height:
        clamp(
            180px,
            14vw,
            220px
        );

    overflow: hidden;

    color:
        #06101d;

    background:
        linear-gradient(
            135deg,
            #75a8ff 0%,
            #5bbce9 48%,
            #43e0cd 100%
        );
}

.profile-initials {
    position: relative;
    z-index: 4;

    font-size:
        clamp(
            3.5rem,
            5.8vw,
            5.1rem
        );

    font-weight: 900;

    line-height: 1;

    letter-spacing:
        -0.065em;
}

.profile-visual-label {
    position: absolute;
    right: 18px;
    bottom: 16px;
    left: 18px;
    z-index: 4;

    color:
        rgba(
            6,
            16,
            29,
            0.76
        );

    font-size: 0.72rem;
    font-weight: 800;

    letter-spacing: 0.06em;
    text-align: center;
    text-transform: uppercase;
}

.profile-orbit {
    position: absolute;

    border:
        1px solid
        rgba(
            6,
            16,
            29,
            0.15
        );

    border-radius: 50%;

    animation:
        profileOrbit 16s linear infinite;
}

.profile-orbit-one {
    width: 180px;
    height: 180px;
}

.profile-orbit-two {
    width: 250px;
    height: 250px;

    animation-duration: 22s;
    animation-direction: reverse;
}

.profile-node {
    position: absolute;
    z-index: 3;

    width: 8px;
    height: 8px;

    background:
        rgba(
            6,
            16,
            29,
            0.76
        );

    border-radius: 50%;

    box-shadow:
        0 0 0 7px
        rgba(
            6,
            16,
            29,
            0.06
        );

    animation:
        profileNodeFloat
        4.8s ease-in-out
        infinite;
}

.profile-node-one {
    top: 28%;
    left: 21%;
}

.profile-node-two {
    top: 24%;
    right: 18%;

    animation-delay:
        -1.4s;
}

.profile-node-three {
    right: 26%;
    bottom: 28%;

    animation-delay:
        -2.7s;
}

@keyframes profileOrbit {
    from {
        transform:
            rotate(0deg);
    }

    to {
        transform:
            rotate(360deg);
    }
}

@keyframes profileNodeFloat {
    0%,
    100% {
        transform:
            translateY(0);
    }

    50% {
        transform:
            translateY(-5px);
    }
}


/* ---------------------------------------------------------
   PROFESSIONAL LINKS
   --------------------------------------------------------- */

.professional-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 10px;

    margin-top: 24px;
}

.professional-links-label {
    margin-right: 3px;

    color:
        var(--color-text-muted);

    font-size: 0.82rem;
    font-weight: 800;

    letter-spacing:
        0.06em;

    text-transform: uppercase;
}

.professional-link {
    display: inline-flex;
    align-items: center;

    min-height: 38px;

    gap: 8px;

    padding:
        7px 11px;

    color:
        #d7e5f4;

    font-size: 0.84rem;
    font-weight: 750;

    background:
        rgba(
            255,
            255,
            255,
            0.035
        );

    border:
        1px solid
        var(--color-border);

    border-radius: 11px;

    transition:
        transform 180ms ease,
        border-color 180ms ease,
        background 180ms ease,
        color 180ms ease;
}

.professional-link img {
    width: 18px;
    height: 18px;
}

.professional-link:hover {
    color:
        var(--color-text);

    background:
        rgba(
            117,
            168,
            255,
            0.07
        );

    border-color:
        rgba(
            117,
            168,
            255,
            0.3
        );

    transform:
        translateY(-2px);
}


/* ---------------------------------------------------------
   CASE STUDY CARDS
   --------------------------------------------------------- */

.case-study-card {
    position: relative;

    min-height: 100%;
}

.case-study-card-top {
    display: flex;
    align-items: center;

    gap: 12px;

    margin-bottom: 20px;
}

.case-study-card-top .card-label {
    margin-bottom: 0;
}

.case-study-icon {
    display: grid;
    place-items: center;

    width: 42px;
    height: 42px;

    flex-shrink: 0;

    color:
        #8ec7ff;

    background:
        rgba(
            117,
            168,
            255,
            0.08
        );

    border:
        1px solid
        rgba(
            117,
            168,
            255,
            0.18
        );

    border-radius: 12px;
}

.case-study-icon img {
    width: 22px;
    height: 22px;
}


/* ---------------------------------------------------------
   EXPERTISE CARDS
   --------------------------------------------------------- */

.expertise-card {
    position: relative;

    min-height: 100%;
}

.expertise-icon {
    display: grid;
    place-items: center;

    width: 44px;
    height: 44px;

    margin-bottom: 18px;

    color:
        #8ec7ff;

    background:
        rgba(
            117,
            168,
            255,
            0.08
        );

    border:
        1px solid
        rgba(
            117,
            168,
            255,
            0.18
        );

    border-radius: 12px;
}

.expertise-icon img {
    width: 23px;
    height: 23px;
}

.expertise-card h3 {
    margin-bottom: 16px;
}

.clean-skill-list {
    gap: 10px;
}

.clean-skill-list li {
    font-size:
        clamp(
            0.92rem,
            0.1vw + 0.9rem,
            0.98rem
        );
}


/* ---------------------------------------------------------
   HOW I WORK
   --------------------------------------------------------- */

.process-step {
    position: relative;

    overflow: hidden;
}

.process-step > span {
    margin-bottom: 16px;

    color:
        #8ec7ff;

    font-size: 0.78rem;
}

.process-step-title {
    display: flex;
    align-items: center;

    gap: 10px;

    margin-bottom: 10px;
}

.process-step-title img {
    width: 23px;
    height: 23px;

    color:
        #90caff;
}

.process-step-title h3 {
    margin-bottom: 0;
}

.process-step::after {
    position: absolute;
    right: -36px;
    bottom: -36px;

    width: 100px;
    height: 100px;

    content: "";

    background:
        radial-gradient(
            circle,
            rgba(
                67,
                224,
                205,
                0.06
            ),
            transparent 68%
        );

    pointer-events: none;
}


/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 1050px) {
    .profile-visual {
        min-height: 100%;
    }
}

@media (max-width: 820px) {
    .professional-links {
        margin-top: 22px;
    }
}

@media (max-width: 700px) {
    .profile-visual {
        min-height: 180px;
    }

    .professional-links-label {
        width: 100%;

        margin-bottom: 2px;
    }
}

@media (max-width: 430px) {
    .professional-links {
        display: grid;

        grid-template-columns:
            repeat(
                3,
                minmax(
                    0,
                    1fr
                )
            );
    }

    .professional-links-label {
        grid-column:
            1 / -1;
    }

    .professional-link {
        justify-content: center;

        padding-inline: 8px;
    }

    .professional-link span {
        font-size: 0.78rem;
    }

    .case-study-card-top {
        align-items:
            flex-start;
    }
}


/* ---------------------------------------------------------
   REDUCED MOTION
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    .profile-orbit,
    .profile-node {
        animation: none;
    }

    .professional-link:hover {
        transform: none;
    }
}

/* =========================================================
   18. DESIGN SYSTEM V4
   Icon contrast + professional footer links
   ========================================================= */

.feature-icon,
.case-study-icon,
.expertise-icon {
    background:
        linear-gradient(
            145deg,
            rgba(117, 168, 255, 0.14),
            rgba(67, 224, 205, 0.06)
        );

    border-color:
        rgba(117, 168, 255, 0.30);
}

.feature-icon img,
.case-study-icon img,
.expertise-icon img,
.process-step-title img,
.professional-link img,
.footer-professional-links img {
    opacity: 1;

    filter:
        drop-shadow(
            0 0 7px
            rgba(117, 168, 255, 0.20)
        );
}

.process-step-title img {
    width: 26px;
    height: 26px;

    padding: 4px;

    background:
        rgba(117, 168, 255, 0.09);

    border:
        1px solid
        rgba(117, 168, 255, 0.24);

    border-radius: 8px;
}

.professional-link img {
    width: 19px;
    height: 19px;

    flex-shrink: 0;
}

.footer-professional-links {
    gap: 6px;
}

.footer-professional-links a {
    display: flex;
    align-items: center;

    width: fit-content;
    min-height: 34px;

    gap: 9px;

    padding:
        5px 7px;

    border-radius: 8px;

    transition:
        color 180ms ease,
        background 180ms ease,
        transform 180ms ease;
}

.footer-professional-links a:hover {
    color: var(--color-text);

    background:
        rgba(117, 168, 255, 0.06);

    transform:
        translateX(2px);
}

.footer-professional-links img {
    width: 18px;
    height: 18px;

    flex-shrink: 0;
}

.footer-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 18px;
    height: 18px;

    flex-shrink: 0;
}

.footer-link-icon-text {
    color: #8ec7ff;

    font-size: 0.9rem;
    font-weight: 800;
}

@media (max-width: 700px) {
    .footer-professional-links a {
        min-height: 38px;

        padding:
            7px 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .footer-professional-links a:hover {
        transform: none;
    }
}

/* =========================================================
   COMPLETE WEBSITE EXTENSIONS
   About, Demo Lab, Case Studies, Products, Contact
   ========================================================= */


/* ---------------------------------------------------------
   SHARED UTILITY BUTTONS
   --------------------------------------------------------- */

.button-full {
    width: 100%;
}

.button-card {
    align-self: flex-start;

    margin-top: auto;
}

.product-page-actions,
.demo-page-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 12px;

    margin-top: 30px;
}


/* ---------------------------------------------------------
   ABOUT
   --------------------------------------------------------- */

.about-grid {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 22px;
}

.platform-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 18px;
}

.platform-card {
    display: flex;
    align-items: center;

    gap: 14px;

    padding: 22px;

    background:
        rgba(
            255,
            255,
            255,
            0.025
        );

    border:
        1px solid
        var(--color-border);

    border-radius:
        var(--radius-medium);

    transition:
        transform 180ms ease,
        border-color 180ms ease,
        background 180ms ease;
}

.platform-card:hover {
    transform:
        translateY(-3px);

    border-color:
        rgba(
            117,
            168,
            255,
            0.32
        );

    background:
        rgba(
            117,
            168,
            255,
            0.04
        );
}

.platform-card img {
    width: 38px;
    height: 38px;

    flex-shrink: 0;
}

.platform-card strong,
.platform-card span {
    display: block;
}

.platform-card span {
    margin-top: 3px;

    color:
        var(--color-text-muted);

    font-size: 0.84rem;
}


/* ---------------------------------------------------------
   DEMO LAB INDEX
   --------------------------------------------------------- */

.demo-grid {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(
                0,
                1fr
            )
        );

    gap: 20px;
}

.demo-card {
    display: flex;
    flex-direction: column;

    min-height: 100%;

    padding: 26px;

    background:
        linear-gradient(
            180deg,
            rgba(
                17,
                32,
                53,
                0.9
            ),
            rgba(
                11,
                24,
                42,
                0.82
            )
        );

    border:
        1px solid
        var(--color-border);

    border-radius:
        var(--radius-large);

    transition:
        transform 220ms ease,
        border-color 220ms ease,
        box-shadow 220ms ease;
}

.demo-card:hover {
    transform:
        translateY(-4px);

    border-color:
        rgba(
            117,
            168,
            255,
            0.32
        );

    box-shadow:
        0 22px 55px
        rgba(
            0,
            0,
            0,
            0.16
        );
}

.demo-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 14px;
}

.demo-number {
    color:
        #7994b3;

    font-size: 0.78rem;
    font-weight: 850;
}

.demo-description {
    color:
        var(--color-text-muted);

    line-height: 1.7;
}


/* ---------------------------------------------------------
   CASE STUDIES
   --------------------------------------------------------- */

.case-grid {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(
                0,
                1fr
            )
        );

    gap: 20px;
}

.case-card {
    display: flex;
    flex-direction: column;

    min-height: 100%;

    padding: 27px;

    background:
        linear-gradient(
            180deg,
            rgba(
                17,
                32,
                53,
                0.9
            ),
            rgba(
                11,
                24,
                42,
                0.82
            )
        );

    border:
        1px solid
        var(--color-border);

    border-radius:
        var(--radius-large);

    transition:
        transform 220ms ease,
        border-color 220ms ease;
}

.case-card:hover {
    transform:
        translateY(-4px);

    border-color:
        rgba(
            117,
            168,
            255,
            0.32
        );
}

.case-card p:not(.card-label) {
    color:
        var(--color-text-muted);

    line-height: 1.75;
}

.case-study-layout {
    display: grid;

    grid-template-columns:
        minmax(
            0,
            1fr
        )
        310px;

    align-items: start;

    gap: 30px;
}

.case-study-main {
    display: grid;

    gap: 0;
}

.case-section {
    padding:
        0 0 32px;

    margin-bottom: 32px;

    border-bottom:
        1px solid
        var(--color-border);
}

.case-section p:last-child {
    max-width: 810px;

    margin-bottom: 0;

    color:
        var(--color-text-muted);

    line-height: 1.8;
}

.case-study-sidebar {
    position: sticky;

    top: 92px;

    display: grid;

    gap: 14px;
}


/* ---------------------------------------------------------
   PRODUCTS
   --------------------------------------------------------- */

.product-detail-card {
    padding: 28px;

    background:
        linear-gradient(
            180deg,
            rgba(
                17,
                32,
                53,
                0.9
            ),
            rgba(
                11,
                24,
                42,
                0.82
            )
        );

    border:
        1px solid
        var(--color-border);

    border-radius:
        var(--radius-large);

    transition:
        transform 220ms ease,
        border-color 220ms ease;
}

.product-detail-card:hover {
    transform:
        translateY(-4px);

    border-color:
        rgba(
            117,
            168,
            255,
            0.32
        );
}

.product-detail-card > p:not(.card-label) {
    color:
        var(--color-text-muted);

    line-height: 1.75;
}


/* ---------------------------------------------------------
   CONTACT
   --------------------------------------------------------- */

.contact-layout {
    display: grid;

    grid-template-columns:
        minmax(
            0,
            1fr
        )
        330px;

    align-items: start;

    gap: 22px;
}

.contact-sidebar {
    display: grid;

    gap: 14px;
}

.contact-direct-link {
    color:
        #9ed3ff;

    font-weight: 800;

    word-break:
        break-word;
}

.contact-platforms {
    display: grid;

    gap: 9px;
}

.contact-platforms a {
    color:
        var(--color-text-muted);
}

.contact-platforms a:hover {
    color:
        var(--color-text);
}


/* ---------------------------------------------------------
   RESPONSIVE EXTENSIONS
   --------------------------------------------------------- */

@media (max-width: 1050px) {
    .case-study-layout,
    .contact-layout {
        grid-template-columns:
            1fr;
    }

    .case-study-sidebar {
        position: static;

        grid-template-columns:
            repeat(
                3,
                minmax(
                    0,
                    1fr
                )
            );
    }
}

@media (max-width: 900px) {
    .platform-grid {
        grid-template-columns:
            1fr;
    }
}

@media (max-width: 820px) {
    .about-grid,
    .demo-grid,
    .case-grid {
        grid-template-columns:
            1fr;
    }
}

@media (max-width: 700px) {
    .case-study-sidebar {
        grid-template-columns:
            1fr;
    }
}

@media (max-width: 620px) {
    .product-page-actions,
    .demo-page-actions {
        display: grid;
    }

    .product-page-actions .button,
    .demo-page-actions .button {
        width: 100%;
    }
}

/* =========================================================
   FINAL SITE-WIDE QA REFINEMENTS
   Accessibility, active navigation, resilient responsive UI
   ========================================================= */

.main-navigation a[aria-current="page"] {
    color: var(--color-text);
}

.main-navigation a[aria-current="page"]:not(.nav-cta) {
    position: relative;
}

.main-navigation a[aria-current="page"]:not(.nav-cta)::after {
    position: absolute;
    right: 0;
    bottom: -9px;
    left: 0;
    height: 2px;
    content: "";
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    border-radius: 999px;
}

.main-navigation .nav-cta[aria-current="page"] {
    border-color: rgba(117, 168, 255, 0.42);
    background: rgba(117, 168, 255, 0.10);
}

.card-heading {
    margin-bottom: 12px;
    font-size: 1.25rem;
    line-height: 1.3;
    letter-spacing: normal;
}

img {
    height: auto;
}

input,
textarea,
select {
    max-width: 100%;
}

textarea {
    resize: vertical;
}

:target {
    scroll-margin-top: 96px;
}

@media (max-width: 820px) {
    .main-navigation a[aria-current="page"]:not(.nav-cta)::after {
        display: none;
    }

    .main-navigation a[aria-current="page"] {
        background: rgba(117, 168, 255, 0.09);
    }

    .main-navigation {
        max-height: calc(100vh - 92px);
        overflow-y: auto;
        overscroll-behavior: contain;
    }
}

@media (max-width: 430px) {
    .site-logo-name {
        font-size: 0.96rem;
    }

    .main-navigation {
        left: 0;
        right: 0;
    }

    .footer-bottom {
        gap: 10px;
    }
}

/* Resilient grid sizing and long-content wrapping. */
.personal-hero-content,
.personal-profile-card,
.info-card,
.product-card,
.content-card,
.demo-card,
.case-study-main,
.case-study-sidebar,
.contact-layout > *,
.live-demo-workspace > * {
    min-width: 0;
}

.content-card,
.info-card,
.sidebar-card,
.case-section,
.demo-result-value,
.footer-copy {
    overflow-wrap: anywhere;
}


/* =========================================================
   HOMEPAGE REAL PROFILE PHOTO
   ========================================================= */
.profile-photo-visual {
    min-height: 0;
    aspect-ratio: 1 / 1;
    background: #0c2036;
    isolation: isolate;
}

.profile-photo-visual::before {
    display: none;
}

.profile-photo {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    filter: none;
}

.profile-photo-shade {
    display: none;
}

.profile-photo-visual .profile-visual-label {
    z-index: 3;
    color: rgba(240, 248, 255, 0.96);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.72);
}


/* =========================================================
   FINAL PORTFOLIO RESPONSIVE HARDENING
   Site-wide mobile, tablet, accessibility and overflow pass.
   ========================================================= */

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: clip;
}

body {
    max-width: 100%;
    overflow-x: clip;
}

.container,
.narrow-container,
.header-inner,
.footer-grid,
.personal-hero-layout,
.personal-hero-content,
.personal-profile-card,
.case-study-layout,
.contact-layout,
.about-grid,
.platform-grid,
.demo-grid,
.case-grid,
.product-grid,
.two-column-grid,
.three-column-grid {
    min-width: 0;
}

.site-logo,
.main-navigation,
.footer-links,
.professional-links,
.personal-title-list,
.hero-skill-strip,
.button-group,
.personal-cta-actions {
    min-width: 0;
}

h1,
h2,
h3,
p,
a,
span,
strong,
small,
li {
    overflow-wrap: anywhere;
}

.button,
.menu-button,
input,
select,
textarea {
    touch-action: manipulation;
}

.button,
.menu-button {
    min-height: 44px;
}

.site-logo {
    flex: 0 1 auto;
}

.main-navigation {
    min-width: 0;
}

.profile-photo,
.product-card img,
.content-card img,
.case-card img {
    max-width: 100%;
}

@supports (padding: max(0px)) {
    .site-header .header-inner {
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
    }
}

@media (max-width: 1080px) {
    .three-column-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .header-inner {
        gap: 18px;
    }
}

@media (max-width: 900px) {
    .personal-hero-layout,
    .case-study-layout,
    .contact-layout,
    .about-grid,
    .two-column-grid {
        grid-template-columns: 1fr;
    }

    .personal-profile-card {
        width: 100%;
        max-width: 720px;
    }
}

@media (max-width: 820px) {
    .site-header {
        backdrop-filter: blur(14px);
    }

    .header-inner {
        min-height: 70px;
    }

    .main-navigation {
        top: calc(100% + 8px);
        max-height: calc(100dvh - 86px);
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .main-navigation a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .section {
        padding-block: 58px;
    }

    .page-hero {
        padding-block: 58px 40px;
    }

    .personal-hero {
        padding-block: 54px 46px;
    }

    .three-column-grid,
    .platform-grid,
    .demo-grid,
    .case-grid,
    .product-grid {
        grid-template-columns: 1fr;
    }

    .personal-title-list,
    .hero-skill-strip,
    .professional-links {
        max-width: 100%;
    }
}

@media (max-width: 620px) {
    .container {
        width: min(calc(100% - 28px), var(--container-width));
    }

    .site-logo-name {
        font-size: 0.98rem;
    }

    .site-logo-role {
        font-size: 0.72rem;
    }

    .personal-hero-content h1,
    .page-hero h1,
    .hero-section h1 {
        font-size: clamp(2rem, 10vw, 3rem);
        line-height: 1.08;
    }

    .section-heading h2,
    .personal-cta h2 {
        font-size: clamp(1.65rem, 7.5vw, 2.3rem);
        line-height: 1.15;
    }

    .info-card,
    .product-card,
    .content-card,
    .demo-card,
    .project-form,
    .hero-card,
    .callout,
    .sidebar-card,
    .case-section {
        padding: 18px;
    }

    .button-group,
    .personal-cta-actions,
    .product-page-actions,
    .demo-page-actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .button-group .button,
    .personal-cta-actions .button,
    .product-page-actions .button,
    .demo-page-actions .button {
        width: 100%;
    }

    .footer-grid {
        gap: 28px;
    }

    .footer-links a,
    .professional-link {
        min-height: 42px;
    }

    input,
    select,
    textarea {
        font-size: 16px;
    }
}

@media (max-width: 430px) {
    .container {
        width: min(calc(100% - 22px), var(--container-width));
    }

    .header-inner {
        min-height: 66px;
    }

    .site-logo-role {
        display: block;
        max-width: 170px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .menu-button {
        flex: 0 0 44px;
        width: 44px;
        padding-inline: 10px;
    }

    .personal-hero {
        padding-block: 42px 36px;
    }

    .section {
        padding-block: 48px;
    }

    .professional-links {
        display: grid;
        grid-template-columns: 1fr;
    }

    .professional-links-label {
        grid-column: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* =========================================================
   FINAL HEADER WIDTH HARDENING
   Keeps the primary navigation comfortable on laptops/tablets
   before switching to the mobile menu.
   ========================================================= */
@media (max-width: 1180px) and (min-width: 981px) {
    .header-inner {
        gap: 16px;
    }

    .main-navigation {
        gap: 14px;
    }

    .main-navigation a {
        font-size: 0.89rem;
    }

    .main-navigation .nav-cta {
        padding-inline: 12px;
    }
}

@media (max-width: 980px) {
    .menu-button {
        display: block;
        flex: 0 0 auto;
    }

    .site-logo {
        min-width: 0;
    }

    .main-navigation {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        display: none;
        max-height: calc(100dvh - 86px);
        padding: 18px;
        overflow-y: auto;
        overscroll-behavior: contain;
        background: #0b1728;
        border: 1px solid var(--color-border);
        border-radius: var(--radius-medium);
        box-shadow: var(--shadow-card);
    }

    .main-navigation.is-open {
        display: grid;
        gap: 8px;
    }

    .main-navigation a {
        display: flex;
        min-height: 44px;
        align-items: center;
        padding: 11px 12px;
        border-radius: 10px;
    }

    .main-navigation a:hover,
    .main-navigation a:focus-visible {
        background: rgba(255, 255, 255, 0.04);
    }
}
