/* =========================================================
   LEWIS MWAZ PORTFOLIO
   Main Stylesheet
   ========================================================= */

/* =========================================================
   1. DESIGN TOKENS & RESET
   ========================================================= */

:root {
    --primary: #1769e0;
    --primary-dark: #1052b5;
    --primary-light: #eaf2ff;

    --navy: #0b1730;
    --navy-light: #142544;

    --text: #263449;
    --text-muted: #69788d;

    --white: #ffffff;
    --background: #f7f9fc;
    --border: #e6ebf2;

    --success: #16865b;

    --font-primary: 'DM Sans', sans-serif;
    --font-heading: 'Manrope', sans-serif;

    --container-width: 1200px;

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;

    --shadow-sm: 0 5px 20px rgba(11, 23, 48, 0.05);
    --shadow-md: 0 12px 35px rgba(11, 23, 48, 0.09);
    --shadow-lg: 0 20px 55px rgba(11, 23, 48, 0.13);

    --transition: 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: var(--font-primary);
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

body,
button,
input,
select,
textarea {
    font-family: var(--font-primary);
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

button {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

ul {
    padding-left: 20px;
}

::selection {
    color: var(--white);
    background: var(--primary);
}

.container {
    max-width: var(--container-width);
}

.section-padding {
    padding: 105px 0;
}

.text-gradient {
    background: linear-gradient(
        110deg,
        #1769e0,
        #4b9cff,
        #8a63e8
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.skip-link {
    position: fixed;
    top: -100px;
    left: 15px;
    z-index: 99999;
    padding: 12px 18px;
    background: var(--primary);
    color: var(--white);
    border-radius: 8px;
}

.skip-link:focus {
    top: 15px;
}


/* =========================================================
   2. SECTION HEADINGS
   ========================================================= */

.section-heading {
    max-width: 720px;
    margin: 0 auto 55px;
    text-align: center;
}

.section-eyebrow {
    display: inline-block;
    margin-bottom: 16px;
    color: var(--primary);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section-heading h2 {
    margin-bottom: 18px;
    color: var(--navy);
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
}

.section-heading p {
    max-width: 620px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 1.02rem;
}


/* =========================================================
   3. BUTTONS
   ========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 23px;
    border-radius: 9px;
    font-size: 0.92rem;
    font-weight: 700;
    transition: var(--transition);
}

.btn-primary {
    color: var(--white);
    background: var(--primary);
    border: 1px solid var(--primary);
    box-shadow: 0 8px 20px rgba(23, 105, 224, 0.18);
}

.btn-primary:hover {
    color: var(--white);
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(23, 105, 224, 0.25);
}

.btn-outline-primary {
    color: var(--primary);
    background: transparent;
    border: 1px solid var(--primary);
}

.btn-outline-primary:hover {
    color: var(--white);
    background: var(--primary);
    transform: translateY(-3px);
}


/* =========================================================
   4. NAVIGATION
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(230, 235, 242, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: var(--transition);
}

.site-header.scrolled {
    box-shadow: 0 5px 25px rgba(11, 23, 48, 0.08);
}

.navbar {
    min-height: 82px;
    padding: 10px 0;
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    margin: 0;
}

.navbar-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 10px;
}

.navbar-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.navbar-brand-text strong {
    color: var(--navy);
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
}

.navbar-brand-text small {
    color: var(--text-muted);
    font-size: 0.68rem;
}

.navbar-nav {
    gap: 4px;
}

.nav-link {
    padding: 10px 11px !important;
    color: #536176;
    font-size: 0.84rem;
    font-weight: 600;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 19px;
    color: var(--white);
    background: var(--primary);
    border-radius: 8px;
    font-size: 0.86rem;
    font-weight: 700;
}

.nav-contact-btn:hover {
    color: var(--white);
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.navbar-toggler {
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: none !important;
}

.navbar-toggler:focus {
    outline: 2px solid rgba(23, 105, 224, 0.25);
}

.navbar-toggler-icon {
    width: 1.35em;
    height: 1.35em;
}


/* =========================================================
   5. HERO SECTION
   ========================================================= */

.hero-section {
    position: relative;
    min-height: 690px;
    display: flex;
    align-items: center;
    padding: 100px 0 85px;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(23, 105, 224, 0.10),
            transparent 28%
        ),
        radial-gradient(
            circle at 5% 85%,
            rgba(138, 99, 232, 0.07),
            transparent 25%
        ),
        #f8faff;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 70px;
}

.hero-eyebrow {
    display: inline-block;
    margin-bottom: 22px;
    padding: 8px 14px;
    color: var(--primary);
    background: var(--primary-light);
    border: 1px solid rgba(23, 105, 224, 0.10);
    border-radius: 30px;
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.hero-text h1 {
    max-width: 720px;
    margin-bottom: 25px;
    color: var(--navy);
    font-family: var(--font-heading);
    font-size: clamp(2.7rem, 5.3vw, 4.3rem);
    font-weight: 800;
    line-height: 1.13;
    letter-spacing: -2px;
}

.hero-description {
    max-width: 600px;
    margin-bottom: 30px;
    color: var(--text-muted);
    font-size: 1.08rem;
    line-height: 1.9;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
}

.hero-social-links {
    display: flex;
    gap: 12px;
    margin-top: 35px;
}

.hero-social-links a {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: var(--navy);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 50%;
    font-size: 1.1rem;
}

.hero-social-links a:hover {
    color: var(--white);
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-4px);
}

.hero-visual {
    position: relative;
    min-height: 420px;
    display: grid;
    place-items: center;
}

.hero-image-wrapper {
    position: relative;
    width: 330px;
    height: 330px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(23, 105, 224, 0.12);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: var(--shadow-lg);
}

.hero-image-glow {
    position: absolute;
    inset: -25px;
    z-index: -1;
    border: 1px dashed rgba(23, 105, 224, 0.25);
    border-radius: 50%;
    animation: rotateGlow 30s linear infinite;
}

.hero-logo {
    width: 72%;
    height: 72%;
    object-fit: contain;
    border-radius: 50%;
}

.hero-floating-card {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 15px 19px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 13px;
    box-shadow: var(--shadow-md);
    animation: floatCard 5s ease-in-out infinite;
}

.hero-floating-card > i {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: var(--primary);
    background: var(--primary-light);
    border-radius: 10px;
    font-size: 1.25rem;
}

.hero-floating-card div {
    display: flex;
    flex-direction: column;
}

.hero-floating-card strong {
    color: var(--navy);
    font-size: 0.82rem;
}

.hero-floating-card span {
    color: var(--text-muted);
    font-size: 0.72rem;
}

.hero-card-top {
    top: 55px;
    right: -15px;
}

.hero-card-bottom {
    bottom: 45px;
    left: -30px;
    animation-delay: -2.5s;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
}

.hero-scroll-indicator a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.hero-scroll-indicator i {
    color: var(--primary);
    animation: scrollDown 1.5s ease-in-out infinite;
}


/* =========================================================
   6. ABOUT
   ========================================================= */

.about-section {
    background: var(--white);
}

.about-card,
.about-highlight-card {
    height: 100%;
    padding: 38px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.about-card {
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.about-card-icon {
    width: 55px;
    height: 55px;
    display: grid;
    place-items: center;
    margin-bottom: 23px;
    color: var(--primary);
    background: var(--primary-light);
    border-radius: 14px;
    font-size: 1.6rem;
}

.about-card h3 {
    margin-bottom: 18px;
    color: var(--navy);
    font-family: var(--font-heading);
    font-size: 1.55rem;
    font-weight: 800;
}

.about-card p {
    margin-bottom: 16px;
    color: var(--text-muted);
    font-size: 0.96rem;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    color: var(--primary);
    font-weight: 700;
}

.text-link:hover {
    gap: 13px;
    color: var(--primary-dark);
}

.about-highlight-card {
    background: var(--navy);
    border-color: var(--navy);
}

.highlight-label {
    display: block;
    margin-bottom: 28px;
    color: #8ebaff;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.about-highlight-item {
    display: flex;
    gap: 17px;
    padding: 17px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.about-highlight-item:last-child {
    border-bottom: 0;
}

.about-highlight-item > i {
    width: 43px;
    height: 43px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    color: #9cc4ff;
    background: rgba(255, 255, 255, 0.09);
    border-radius: 10px;
    font-size: 1.25rem;
}

.about-highlight-item h4 {
    margin-bottom: 3px;
    color: var(--white);
    font-size: 0.98rem;
    font-weight: 700;
}

.about-highlight-item p {
    margin: 0;
    color: #a9b8ce;
    font-size: 0.83rem;
}


/* =========================================================
   7. SKILLS
   ========================================================= */

.skills-section {
    background: var(--background);
}

.skill-card {
    height: 100%;
    padding: 30px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.skill-card:hover {
    transform: translateY(-7px);
    border-color: rgba(23, 105, 224, 0.3);
    box-shadow: var(--shadow-md);
}

.skill-card-icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    color: var(--primary);
    background: var(--primary-light);
    border-radius: 12px;
    font-size: 1.35rem;
}

.skill-card h3 {
    margin-bottom: 18px;
    color: var(--navy);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
}

.skill-tags,
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tags span,
.project-tags span {
    padding: 6px 11px;
    color: #536176;
    background: #f1f4f9;
    border: 1px solid #e9edf4;
    border-radius: 6px;
    font-size: 0.76rem;
    font-weight: 600;
}


/* =========================================================
   8. EXPERIENCE TIMELINE
   ========================================================= */

.experience-section {
    background: var(--white);
}

.experience-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.experience-timeline::before {
    content: "";
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: 23px;
    width: 2px;
    background: #dce8fb;
}

.experience-item {
    position: relative;
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

.experience-item:last-child {
    margin-bottom: 0;
}

.experience-marker {
    position: relative;
    z-index: 2;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    color: var(--white);
    background: var(--primary);
    border: 5px solid var(--white);
    border-radius: 50%;
    box-shadow: 0 0 0 2px #dce8fb;
}

.experience-card {
    padding: 30px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.experience-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.experience-type {
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.experience-card h3 {
    margin: 5px 0;
    color: var(--navy);
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
}

.experience-card h4 {
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 600;
}

.experience-date {
    flex-shrink: 0;
    padding: 7px 12px;
    color: var(--primary);
    background: var(--primary-light);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.experience-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.experience-card ul {
    margin: 15px 0 0;
}

.experience-card li {
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.89rem;
}


/* =========================================================
   9. FEATURED PROJECTS
   ========================================================= */

.projects-section {
    background: var(--background);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.project-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 360px;
    padding: 29px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-7px);
    border-color: rgba(23, 105, 224, 0.35);
    box-shadow: var(--shadow-md);
}

.project-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 23px;
}

.project-icon {
    width: 51px;
    height: 51px;
    display: grid;
    place-items: center;
    color: var(--primary);
    background: var(--primary-light);
    border-radius: 13px;
    font-size: 1.45rem;
}

.project-status {
    padding: 6px 10px;
    color: var(--success);
    background: #e9f8f0;
    border-radius: 30px;
    font-size: 0.68rem;
    font-weight: 800;
}

.project-card h3 {
    margin-bottom: 12px;
    color: var(--navy);
    font-family: var(--font-heading);
    font-size: 1.22rem;
    font-weight: 800;
}

.project-card > p {
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.project-tags {
    margin-top: auto;
    margin-bottom: 22px;
}

.project-tags span {
    font-size: 0.69rem;
}

.project-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 17px;
    border-top: 1px solid var(--border);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-size: 0.84rem;
    font-weight: 800;
}

.project-link:hover {
    gap: 13px;
    color: var(--primary-dark);
}

.project-github {
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    color: var(--navy);
    background: #f1f4f9;
    border-radius: 50%;
    font-size: 1rem;
}

.project-github:hover {
    color: var(--white);
    background: var(--navy);
}


/* =========================================================
   10. GITHUB SECTION
   ========================================================= */

.github-section {
    background: var(--white);
}

.github-profile-card {
    display: flex;
    align-items: center;
    gap: 25px;
    max-width: 760px;
    margin: 0 auto 45px;
    padding: 30px;
    background: var(--navy);
    border-radius: var(--radius-lg);
}

.github-profile-icon {
    width: 75px;
    height: 75px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    font-size: 2.5rem;
}

.github-profile-content h3 {
    margin-bottom: 5px;
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 800;
}

.github-profile-content p {
    margin-bottom: 18px;
    color: #b5c3d8;
    font-size: 0.9rem;
}

.github-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 25px;
}

.github-search {
    position: relative;
    flex: 1;
    max-width: 500px;
}

.github-search i {
    position: absolute;
    top: 50%;
    left: 15px;
    color: var(--text-muted);
    transform: translateY(-50%);
}

.github-search input,
.github-filter select {
    width: 100%;
    min-height: 48px;
    padding: 10px 15px;
    color: var(--text);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 9px;
    outline: none;
}

.github-search input {
    padding-left: 43px;
}

.github-search input:focus,
.github-filter select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(23, 105, 224, 0.1);
}

.github-filter {
    width: 210px;
}

.github-repositories {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.github-loading {
    grid-column: 1 / -1;
    padding: 50px;
    text-align: center;
    color: var(--text-muted);
}

.github-loading .spinner-border {
    color: var(--primary);
}

.github-loading p {
    margin-top: 15px;
}

.github-repo-card {
    display: flex;
    flex-direction: column;
    min-height: 245px;
    padding: 23px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.github-repo-card:hover {
    transform: translateY(-5px);
    background: var(--white);
    border-color: rgba(23, 105, 224, 0.35);
    box-shadow: var(--shadow-md);
}

.github-repo-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 17px;
}

.github-repo-top i {
    color: var(--primary);
    font-size: 1.3rem;
}

.github-repo-visibility {
    padding: 4px 9px;
    color: var(--text-muted);
    background: #e9edf4;
    border-radius: 20px;
    font-size: 0.67rem;
    font-weight: 700;
}

.github-repo-card h3 {
    margin-bottom: 10px;
    overflow-wrap: anywhere;
    color: var(--navy);
    font-size: 1rem;
    font-weight: 800;
}

.github-repo-card h3 a:hover {
    color: var(--primary);
}

.github-repo-card p {
    margin-bottom: 18px;
    color: var(--text-muted);
    font-size: 0.83rem;
}

.github-repo-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: auto;
    color: var(--text-muted);
    font-size: 0.73rem;
}

.github-repo-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.github-repo-language {
    width: 9px;
    height: 9px;
    display: inline-block;
    background: var(--primary);
    border-radius: 50%;
}

.github-empty,
.github-error {
    grid-column: 1 / -1;
    padding: 35px;
    color: var(--text-muted);
    background: var(--background);
    border-radius: var(--radius-md);
    text-align: center;
}

.github-footer {
    margin-top: 35px;
    text-align: center;
}


/* =========================================================
   11. WEBSITES
   ========================================================= */

.websites-section {
    background: var(--background);
}

.website-card {
    height: 100%;
    padding: 30px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.website-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(23, 105, 224, 0.3);
}

.website-card-icon {
    width: 53px;
    height: 53px;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    color: var(--primary);
    background: var(--primary-light);
    border-radius: 13px;
    font-size: 1.45rem;
}

.website-card h3 {
    margin-bottom: 12px;
    color: var(--navy);
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
}

.website-card p {
    min-height: 75px;
    margin-bottom: 18px;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.website-card > a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 800;
}

.website-card > a:hover {
    gap: 13px;
    color: var(--primary-dark);
}


/* =========================================================
   12. DOCUMENTATION
   ========================================================= */

.documentation-section {
    background: var(--white);
}

.documentation-card {
    height: 100%;
    padding: 35px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.documentation-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.documentation-card > i {
    display: inline-block;
    margin-bottom: 22px;
    color: var(--primary);
    font-size: 2.2rem;
}

.documentation-card h3 {
    margin-bottom: 12px;
    color: var(--navy);
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
}

.documentation-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}


/* =========================================================
   13. CONTACT
   ========================================================= */

.contact-section {
    background: var(--background);
}

.contact-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    min-height: 350px;
    padding: 65px;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 95% 15%,
            rgba(64, 137, 245, 0.25),
            transparent 35%
        ),
        var(--navy);
    border-radius: var(--radius-lg);
}

.contact-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.contact-content .section-eyebrow {
    color: #8ebaff;
}

.contact-content h2 {
    margin-bottom: 20px;
    color: var(--white);
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
}

.contact-content p {
    max-width: 580px;
    margin-bottom: 27px;
    color: #b5c3d8;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
}

.contact-decoration {
    position: absolute;
    right: 55px;
    bottom: -55px;
    color: rgba(255, 255, 255, 0.055);
    font-size: 19rem;
    transform: rotate(-15deg);
}


/* =========================================================
   14. FOOTER
   ========================================================= */

.site-footer {
    padding: 75px 0 0;
    color: #b5c3d8;
    background: #071226;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 55px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 10px;
}

.footer-logo span {
    display: flex;
    flex-direction: column;
    line-height: 1.4;
}

.footer-logo strong {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

.footer-logo small {
    color: #93a3ba;
    font-size: 0.7rem;
}

.footer-brand > p {
    max-width: 290px;
    color: #93a3ba;
    font-size: 0.88rem;
}

.footer-socials {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}

.footer-socials a {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: var(--white);
    background: rgba(255, 255, 255, 0.09);
    border-radius: 50%;
}

.footer-socials a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-links-column h3 {
    margin-bottom: 22px;
    color: var(--white);
    font-size: 0.98rem;
    font-weight: 800;
}

.footer-links-column ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer-links-column li {
    margin-bottom: 12px;
}

.footer-links-column a {
    color: #93a3ba;
    font-size: 0.85rem;
}

.footer-links-column a:hover {
    color: #8ebaff;
    padding-left: 4px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.footer-bottom p {
    margin: 0;
    color: #8191a9;
    font-size: 0.78rem;
}

.footer-credit i {
    color: #f16b85;
    margin: 0 3px;
}


/* =========================================================
   15. BACK TO TOP
   ========================================================= */

.back-to-top {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 999;
    width: 47px;
    height: 47px;
    display: grid;
    place-items: center;
    color: var(--white);
    background: var(--primary);
    border: 0;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(23, 105, 224, 0.25);
    font-size: 1.15rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: var(--transition);
    cursor: pointer;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-4px);
}


/* =========================================================
   16. FLIP CARD GALLERY
   =========================================================
   These styles support the interactive gallery concept.
   Gallery markup will be added in a later page update.
   ========================================================= */

.flip-gallery {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.flip-card {
    position: relative;
    min-height: 280px;
    perspective: 1200px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 280px;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.flip-card:hover .flip-card-inner,
.flip-card:focus-within .flip-card-inner,
.flip-card.is-flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    overflow: hidden;
    border-radius: var(--radius-md);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.flip-card-front {
    color: var(--white);
    background:
        linear-gradient(
            180deg,
            transparent 10%,
            rgba(7, 18, 38, 0.9) 100%
        ),
        linear-gradient(135deg, #1769e0, #0b1730);
}

.flip-card-front h3 {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
}

.flip-card-front p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

.flip-card-back {
    justify-content: center;
    color: var(--white);
    background: var(--navy);
    transform: rotateY(180deg);
}

.flip-card-back h3 {
    margin-bottom: 13px;
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 800;
}

.flip-card-back p {
    color: #b5c3d8;
    font-size: 0.87rem;
}

.flip-card-back a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    color: #8ebaff;
    font-weight: 700;
}


/* =========================================================
   17. ANIMATIONS
   ========================================================= */

@keyframes floatCard {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes rotateGlow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes scrollDown {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(6px);
    }
}


/* =========================================================
   18. RESPONSIVE: LARGE TABLETS
   ========================================================= */

@media (max-width: 1199.98px) {

    .navbar-nav {
        gap: 0;
    }

    .nav-link {
        padding: 9px 8px !important;
        font-size: 0.8rem;
    }

    .hero-content {
        gap: 35px;
    }

    .project-grid,
    .github-repositories {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-main {
        gap: 30px;
    }

}


/* =========================================================
   19. RESPONSIVE: TABLETS
   ========================================================= */

@media (max-width: 991.98px) {

    .section-padding {
        padding: 80px 0;
    }

    .navbar-collapse {
        padding: 18px 0 10px;
    }

    .navbar-nav {
        align-items: stretch !important;
        gap: 3px;
    }

    .nav-link {
        padding: 11px 8px !important;
        font-size: 0.92rem;
    }

    .nav-contact-btn {
        justify-content: center;
        margin-top: 10px;
    }

    .hero-section {
        min-height: auto;
        padding: 80px 0 90px;
    }

    .hero-content {
        grid-template-columns: 1fr 0.8fr;
        gap: 20px;
    }

    .hero-text h1 {
        font-size: clamp(2.4rem, 5vw, 3.5rem);
    }

    .hero-image-wrapper {
        width: 260px;
        height: 260px;
    }

    .hero-floating-card {
        padding: 11px;
    }

    .hero-floating-card strong {
        font-size: 0.72rem;
    }

    .hero-floating-card span {
        font-size: 0.64rem;
    }

    .hero-card-top {
        right: -10px;
    }

    .hero-card-bottom {
        left: -10px;
    }

    .footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .flip-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   20. RESPONSIVE: MOBILE
   ========================================================= */

@media (max-width: 767.98px) {

    .section-padding {
        padding: 70px 0;
    }

    .section-heading {
        margin-bottom: 38px;
    }

    .section-heading h2 {
        font-size: 2rem;
    }

    .hero-section {
        padding: 70px 0 95px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .hero-text {
        text-align: center;
    }

    .hero-eyebrow {
        font-size: 0.68rem;
    }

    .hero-text h1 {
        margin-left: auto;
        margin-right: auto;
        font-size: clamp(2.3rem, 9vw, 3.2rem);
        letter-spacing: -1.4px;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
        font-size: 0.96rem;
    }

    .hero-actions,
    .hero-social-links {
        justify-content: center;
    }

    .hero-visual {
        min-height: 330px;
    }

    .hero-image-wrapper {
        width: 230px;
        height: 230px;
    }

    .hero-floating-card {
        gap: 9px;
        padding: 9px 11px;
    }

    .hero-floating-card > i {
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }

    .hero-floating-card strong {
        font-size: 0.67rem;
    }

    .hero-floating-card span {
        font-size: 0.59rem;
    }

    .hero-card-top {
        top: 25px;
        right: 0;
    }

    .hero-card-bottom {
        bottom: 20px;
        left: 0;
    }

    .hero-scroll-indicator {
        bottom: 20px;
    }

    .about-card,
    .about-highlight-card {
        padding: 27px;
    }

    .experience-item {
        grid-template-columns: 38px 1fr;
        gap: 14px;
    }

    .experience-timeline::before {
        left: 18px;
    }

    .experience-marker {
        width: 38px;
        height: 38px;
        font-size: 0.8rem;
    }

    .experience-card {
        padding: 22px;
    }

    .experience-header {
        flex-direction: column;
        gap: 12px;
    }

    .experience-card h3 {
        font-size: 1.18rem;
    }

    .project-grid,
    .github-repositories {
        grid-template-columns: 1fr;
    }

    .project-card {
        min-height: 320px;
    }

    .github-profile-card {
        align-items: flex-start;
        padding: 23px;
    }

    .github-profile-icon {
        width: 55px;
        height: 55px;
        font-size: 1.8rem;
    }

    .github-toolbar {
        flex-direction: column;
    }

    .github-search,
    .github-filter {
        width: 100%;
        max-width: none;
    }

    .website-card p {
        min-height: auto;
    }

    .contact-card {
        min-height: auto;
        padding: 40px 28px;
    }

    .contact-decoration {
        right: -20px;
        bottom: -30px;
        font-size: 11rem;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 35px 20px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
    }

    .flip-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .flip-card,
    .flip-card-inner {
        min-height: 230px;
    }

    .flip-card-front,
    .flip-card-back {
        padding: 17px;
    }

}


/* =========================================================
   21. RESPONSIVE: SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .section-padding {
        padding: 60px 0;
    }

    .hero-text h1 {
        font-size: 2.25rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-image-wrapper {
        width: 205px;
        height: 205px;
    }

    .hero-visual {
        min-height: 295px;
    }

    .hero-floating-card {
        max-width: 190px;
    }

    .about-card,
    .about-highlight-card {
        padding: 23px;
    }

    .experience-card {
        padding: 18px;
    }

    .github-profile-card {
        flex-direction: column;
    }

    .contact-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-actions .btn {
        width: 100%;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-brand > p {
        max-width: 100%;
    }

    .flip-gallery {
        grid-template-columns: 1fr;
    }

    .flip-card,
    .flip-card-inner {
        min-height: 250px;
    }

    .back-to-top {
        right: 15px;
        bottom: 15px;
        width: 42px;
        height: 42px;
    }

}


/* =========================================================
   22. ACCESSIBILITY & MOTION
   ========================================================= */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid rgba(23, 105, 224, 0.5);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

}