
/* =========================
   1. COLOURS AND GLOBAL STYLES
========================= */

:root {
    --navy: #10213a;
    --navy-light: #183452;
    --primary: #2d64b3;
    --primary-dark: #204c8b;
    --text: #17243a;
    --muted: #637188;
    --white: #ffffff;
    --light: #f4f7fb;
    --border: #e1e7f0;
    --success: #217449;
    --success-bg: #e8f5ed;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--white);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

p {
    color: var(--muted);
}

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

a:focus-visible {
    outline: 3px solid #8bbcff;
    outline-offset: 4px;
}

.container {
    width: min(1120px, 90%);
    margin: 0 auto;
}

.section {
    padding: 90px 0;
}

.section-light {
    background: var(--light);
}

.eyebrow {
    color: #8bbcff;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 2px;
    line-height: 1.6;
    margin-bottom: 17px;
}

.section-heading {
    max-width: 740px;
    margin-bottom: 40px;
}

.section-heading h2,
.contact-content h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 15px;
}

.section-heading > p:not(.eyebrow) {
    max-width: 650px;
    margin-top: 10px;
    font-size: 1rem;
}

/* =========================
   2. NAVIGATION
========================= */

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 3px 18px rgba(16, 33, 58, 0.035);
}

.navbar {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    white-space: nowrap;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 41px;
    height: 41px;
    flex-shrink: 0;
    border-radius: 9px;
    background: var(--navy);
    color: var(--white);
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.logo-name {
    color: var(--text);
    font-size: 1.12rem;
    font-weight: 750;
    letter-spacing: -0.4px;
}

.logo-dot,
.footer-brand span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 19px;
}

.nav-links a {
    color: #455269;
    font-size: 0.83rem;
    font-weight: 650;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links .nav-contact {
    padding: 9px 14px;
    border-radius: 6px;
    background: var(--navy);
    color: var(--white);
}

.nav-links .nav-contact:hover {
    background: var(--primary);
    color: var(--white);
}

/* =========================
   3. HERO SECTION
========================= */

.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 85% 15%,
            rgba(68, 119, 184, 0.24),
            transparent 32%
        ),
        linear-gradient(125deg, #10213a 0%, #142c49 58%, #183452 100%);
    color: var(--white);
}

.hero-grid {
    min-height: 610px;
    display: grid;
    grid-template-columns: 1.35fr 0.85fr;
    align-items: center;
    gap: 65px;
    padding-top: 78px;
    padding-bottom: 78px;
}

.hero-content {
    max-width: 700px;
}

.hero h1 {
    max-width: 720px;
    font-size: clamp(2.8rem, 5.4vw, 4.6rem);
    font-weight: 800;
    line-height: 1.09;
    letter-spacing: -2.5px;
    margin-bottom: 24px;
}

.hero h1 span {
    display: block;
    color: #91bdff;
}

.hero-description {
    max-width: 640px;
    color: #d0dbea;
    font-size: 1.03rem;
    line-height: 1.9;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 30px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 19px;
    border: 1px solid transparent;
    border-radius: 7px;
    font-size: 0.91rem;
    font-weight: 750;
    line-height: 1.5;
    transition:
        background 0.2s ease,
        transform 0.2s ease,
        border-color 0.2s ease;
}

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

.button-primary {
    background: #7eaeff;
    color: #10213a;
}

.button-primary:hover {
    background: #a4c7ff;
}

.button-outline {
    border-color: #637992;
    color: var(--white);
    background: transparent;
}

.button-outline:hover {
    border-color: #b4d0ff;
    background: rgba(255, 255, 255, 0.06);
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 28px;
}

.social-links a {
    color: #d7e4f5;
    font-size: 0.9rem;
    font-weight: 700;
    transition: color 0.2s ease;
}

.social-links a:hover {
    color: #91bdff;
}

/* Hero information card */

.hero-card {
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(8px);
}

.availability {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 11px;
    margin-bottom: 27px;
    border: 1px solid rgba(164, 224, 187, 0.22);
    border-radius: 30px;
    background: rgba(70, 150, 100, 0.12);
    color: #c4f0d2;
    font-size: 0.76rem;
    font-weight: 650;
}

.availability-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #77d69a;
}

.card-label {
    color: #91bdff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.hero-card h2 {
    color: var(--white);
    font-size: 1.7rem;
    line-height: 1.32;
    letter-spacing: -0.5px;
    margin-bottom: 13px;
}

.hero-card > p:not(.card-label) {
    color: #c4d0df;
    font-size: 0.91rem;
}

.focus-list {
    display: grid;
    gap: 19px;
    margin-top: 27px;
}

.focus-item {
    display: flex;
    align-items: center;
    gap: 13px;
}

.focus-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 37px;
    height: 37px;
    flex-shrink: 0;
    border: 1px solid rgba(145, 189, 255, 0.25);
    border-radius: 8px;
    color: #a8cbff;
    font-size: 0.72rem;
    font-weight: 800;
}

.focus-item strong,
.focus-item span:last-child {
    display: block;
}

.focus-item strong {
    color: #ffffff;
    font-size: 0.88rem;
}

.focus-item div span {
    color: #b9c9dc;
    font-size: 0.78rem;
}

.card-link {
    display: inline-block;
    margin-top: 27px;
    color: #a8cbff;
    font-size: 0.85rem;
    font-weight: 750;
}

.card-link:hover {
    color: var(--white);
}

/* =========================
   4. INTRO STRIP
========================= */

.intro-strip {
    border-bottom: 1px solid var(--border);
    background: #ffffff;
}

.intro-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
    padding-top: 28px;
    padding-bottom: 28px;
}

.intro-grid > div {
    display: flex;
    align-items: flex-start;
    gap: 13px;
}

.intro-number {
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.intro-grid strong {
    color: var(--text);
    font-size: 0.94rem;
}

.intro-grid p {
    font-size: 0.82rem;
    margin-top: 3px;
}

/* =========================
   5. ABOUT SECTION
========================= */

.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr;
    align-items: start;
    gap: 55px;
}

.about-main {
    max-width: 760px;
}

.about-main p {
    margin-bottom: 18px;
    font-size: 1rem;
}

.about-highlight {
    padding: 27px;
    border: 1px solid var(--border);
    border-top: 3px solid var(--primary);
    border-radius: 10px;
    background: var(--light);
}

.about-highlight h3 {
    font-size: 1.3rem;
    line-height: 1.4;
    margin-bottom: 12px;
}

.about-highlight > p:not(.card-label) {
    font-size: 0.91rem;
}

.text-link {
    display: inline-block;
    margin-top: 19px;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 750;
}

/* =========================
   6. SKILLS SECTION
========================= */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.skill-card {
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #ffffff;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.skill-card:hover {
    transform: translateY(-4px);
    border-color: #c8d8f0;
    box-shadow: 0 12px 28px rgba(16, 33, 58, 0.06);
}

.skill-number {
    display: inline-block;
    margin-bottom: 17px;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.skill-card h3 {
    font-size: 1.08rem;
    margin-bottom: 9px;
}

.skill-card p {
    font-size: 0.9rem;
}

.skills-note {
    margin-top: 22px;
    font-size: 0.82rem;
}

/* =========================
   7. PROJECTS SECTION
========================= */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 22px;
}

.project-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 29px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: #ffffff;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: #cbd9ee;
    box-shadow: 0 14px 32px rgba(16, 33, 58, 0.07);
}

.project-top {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.project-category {
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.project-index {
    color: #8a95a7;
    font-size: 0.69rem;
    font-weight: 750;
    letter-spacing: 0.8px;
}

.project-card h3 {
    font-size: 1.35rem;
    line-height: 1.35;
    letter-spacing: -0.3px;
    margin-bottom: 13px;
}

.project-card p {
    font-size: 0.92rem;
    margin-bottom: 12px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 19px 0;
}

.tags span {
    display: inline-block;
    padding: 5px 10px;
    border: 1px solid #dfe8f6;
    border-radius: 5px;
    background: #edf3fc;
    color: #294d7c;
    font-size: 0.75rem;
    font-weight: 650;
}

.project-link {
    display: inline-block;
    margin-top: auto;
    padding-top: 14px;
    color: var(--primary);
    font-size: 0.88rem;
    font-weight: 750;
}

.project-link:hover {
    color: var(--primary-dark);
}

.project-note {
    display: inline-block;
    margin-top: auto;
    padding-top: 13px;
    color: var(--muted);
    font-size: 0.81rem;
    font-weight: 650;
}

.status-badge {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 20px;
    background: var(--success-bg);
    color: var(--success);
    font-size: 0.71rem;
    font-weight: 800;
}

.civic-card {
    border-top: 3px solid var(--primary);
}

.project-footer-note {
    margin-top: 25px;
    font-size: 0.84rem;
}

/* =========================
   8. LEARNING SECTION
========================= */

.learning-list {
    max-width: 900px;
    display: grid;
    gap: 17px;
}

.learning-card {
    display: flex;
    align-items: flex-start;
    gap: 17px;
    padding: 27px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #ffffff;
}

.timeline-dot {
    width: 11px;
    height: 11px;
    flex-shrink: 0;
    margin-top: 8px;
    border: 3px solid #dce8fa;
    border-radius: 50%;
    background: var(--primary);
    box-sizing: content-box;
}

.learning-type {
    display: inline-block;
    margin-bottom: 7px;
    color: var(--primary);
    font-size: 0.69rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.learning-card h3 {
    font-size: 1.08rem;
    line-height: 1.45;
    margin-bottom: 6px;
}

.learning-card p {
    font-size: 0.91rem;
}

.learning-card .learning-place {
    color: var(--text);
    font-weight: 650;
    margin-bottom: 10px;
}

/* =========================
   9. WEBFORGE STUDIO
========================= */

.webforge-panel {
    display: grid;
    grid-template-columns: 1.4fr 0.7fr;
    align-items: center;
    gap: 45px;
    padding: 48px;
    border-radius: 14px;
    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(255, 255, 255, 0.12),
            transparent 38%
        ),
        linear-gradient(125deg, #3a3f46, #5a6068);
    color: #ffffff;
}

.webforge-panel .eyebrow {
    color: #d7d9dc;
}

.webforge-illustration {
    display: block;
    width: 100%;
    max-width: 320px;
    height: auto;
    margin-bottom: 22px;
}

.webforge-panel h2 {
    font-size: clamp(2rem, 4vw, 2.9rem);
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 17px;
}

.webforge-content > p:not(.eyebrow) {
    max-width: 650px;
    color: #e1e3e6;
    font-size: 0.98rem;
}

.webforge-panel .tags span {
    border-color: rgba(255, 255, 255, 0.13);
    background: rgba(255, 255, 255, 0.08);
    color: #eceef0;
}

.button-light {
    margin-top: 7px;
    background: #ffffff;
    color: var(--navy);
}

.button-light:hover {
    background: #e8f0fb;
}

.webforge-side {
    padding: 27px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.06);
}

.webforge-symbol {
    display: block;
    color: #d7d9dc;
    font-family: Consolas, monospace;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.webforge-side p {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 12px;
}

.webforge-side a {
    color: #e4e6e9;
    font-size: 0.81rem;
    overflow-wrap: anywhere;
}

/* =========================
   10. CONTACT SECTION
========================= */

.contact-section {
    background: var(--light);
}

.contact-content {
    text-align: center;
}

.contact-content .eyebrow {
    color: var(--primary);
}

.contact-content h2 {
    max-width: 760px;
    margin-right: auto;
    margin-left: auto;
}

.contact-description {
    max-width: 700px;
    margin: 0 auto;
    font-size: 0.98rem;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 30px 0;
}

.contact-links a {
    display: inline-block;
    padding: 11px 17px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: #ffffff;
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 750;
    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.contact-links a:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    color: var(--primary);
}

.contact-content .business-email {
    margin-top: 18px;
    font-size: 0.88rem;
}

.business-email a {
    color: var(--primary);
    font-weight: 750;
    overflow-wrap: anywhere;
}

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

.footer {
    padding: 24px 0;
    border-top: 1px solid var(--border);
    background: #ffffff;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-brand {
    color: var(--text);
    font-size: 0.91rem;
    font-weight: 800;
}

.footer-content p {
    font-size: 0.81rem;
}

/* =========================
   12. TABLET RESPONSIVENESS
========================= */

@media (max-width: 1000px) {
    .navbar {
        align-items: flex-start;
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .nav-links {
        gap: 12px 15px;
    }

    .nav-links a {
        font-size: 0.8rem;
    }

    .hero-grid {
        grid-template-columns: 1fr 0.82fr;
        gap: 32px;
    }

    .hero h1 {
        font-size: clamp(2.7rem, 5vw, 3.8rem);
    }

    .hero-card {
        padding: 25px;
    }

    .about-grid {
        gap: 30px;
    }

    .webforge-panel {
        gap: 25px;
        padding: 35px;
    }
}

/* =========================
   13. MOBILE RESPONSIVENESS
========================= */

@media (max-width: 760px) {
    html {
        scroll-padding-top: 130px;
    }

    .container {
        width: 90%;
    }

    .section {
        padding: 65px 0;
    }

    .navbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .nav-links {
        width: 100%;
        justify-content: flex-start;
        gap: 10px 17px;
    }

    .nav-links a {
        font-size: 0.79rem;
    }

    .nav-links .nav-contact {
        padding: 5px 9px;
    }

    .hero-grid {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 36px;
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .hero h1 {
        font-size: clamp(2.55rem, 8vw, 3.6rem);
        letter-spacing: -1.7px;
    }

    .hero-description {
        font-size: 0.97rem;
    }

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

    .intro-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding-top: 25px;
        padding-bottom: 25px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

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

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

    .webforge-panel {
        grid-template-columns: 1fr;
        padding: 30px;
    }

    .webforge-side {
        max-width: 450px;
    }

    .footer-content {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .container {
        width: 91%;
    }

    .section {
        padding: 55px 0;
    }

    .logo-name {
        font-size: 1.02rem;
    }

    .logo-mark {
        width: 37px;
        height: 37px;
    }

    .nav-links {
        gap: 9px 13px;
    }

    .nav-links a {
        font-size: 0.75rem;
    }

    .hero-grid {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .hero h1 {
        font-size: 2.55rem;
        letter-spacing: -1.5px;
    }

    .hero .eyebrow {
        font-size: 0.68rem;
        letter-spacing: 1.3px;
    }

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

    .hero-buttons .button {
        width: 100%;
    }

    .hero-card,
    .skill-card,
    .project-card,
    .learning-card,
    .about-highlight {
        padding: 22px;
    }

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

    .section-heading h2,
    .contact-content h2 {
        font-size: 2rem;
    }

    .webforge-panel {
        padding: 25px;
    }

    .contact-links {
        flex-direction: column;
    }

    .contact-links a {
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* Respect visitors who prefer less animation */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

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