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

html {
    scroll-behavior: smooth;
}

body {
    background-color: rgb(6, 6, 6);
    color: #39FF14;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
}

/* Navigation bar, Email, Github, LinkedIn */
#topLine {
    display: grid;
    position: sticky;
    top: 0;
    width: 100%;
    grid-template-areas: 'emailDiv nav socialIcons';
    grid-template-columns: 1fr 3fr 0.6fr;
    padding: 1.5% 3%;
    background-color: rgba(6, 6, 6, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(244, 38, 6, 0.3);
    z-index: 1000;
    align-items: center;
}

.topLineLinks {
    color: #39FF14;
    font-size: 1.1em;
    font-weight: 500;
    margin: 0 1.5%;
    padding: 0.5em 1em;
    background-color: transparent;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.topLineLinks:hover {
    background-color: rgba(57, 255, 20, 0.1);
    color: #fff;
    transform: translateY(-2px);
}

#emailDiv {
    position: relative;
    grid-area: emailDiv;
    display: flex;
    align-items: center;
    gap: 10px;
}

#email {
    font-size: 1em;
}

nav {
    grid-area: nav;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

#socialIcons {
    position: relative;
    grid-area: socialIcons;
    display: flex;
    gap: 20px;
    justify-content: flex-end;
    align-items: center;
}

.social-link {
    transition: transform 0.3s ease, filter 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
    filter: drop-shadow(0 5px 15px rgba(244, 38, 6, 0.5));
} 


li {
    display: inline;
}

/* Hero Section */
#hero {
    text-align: center;
    padding: 80px 20px 60px;
    background: linear-gradient(135deg, rgba(28, 101, 140, 0.1) 0%, rgba(6, 6, 6, 0.8) 100%);
    margin-top: 20px;
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5em;
    font-weight: 800;
    color: #fff;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(244, 38, 6, 0.5);
}

.hero-subtitle {
    font-size: 1.3em;
    color: #39FF14;
    font-weight: 500;
    margin-bottom: 0;
}

/* Section Headings */
.section-heading {
    background: linear-gradient(135deg, #1C658C 0%, #2a8cb8 100%);
    text-align: center;
    border: 3px solid #f42606;
    width: 90%;
    margin: 60px auto 30px;
    padding: 20px;
    border-radius: 15px;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 2.2em;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(244, 38, 6, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Turquoise boxes */
#about,
#project,
#certification,
#skills {
    width: 90%;
    margin: 30px auto;
    border-radius: 25px;
    position: relative;
    background-color: #1C658C;
    border: 3px solid #f42606;
    color: white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

/* Old h1 for backwards compatibility */
h1 {
    background-color: #1C658C;
    text-align: center;
    border: 5px solid #f42606;
    width: 100%;
    padding: 15px;
    color: white;
    font-family: 'Poppins', sans-serif;
}

#about {
    position: relative;
    padding: 3% 4% 3% 4%;
    margin-top: 2%;
}

#profileDivPic{
    width: 380px;
    height: 380px;
    float: left;
    margin: 0 40px 20px 0;
    shape-outside: circle(50%);
    position: relative;
    filter: drop-shadow(0 10px 30px rgba(244, 38, 6, 0.4));
}

#profileImg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    display: block;
    border-radius: 50%;
    border: 4px solid #39FF14;
    box-shadow: 
        0 0 0 2px rgba(244, 38, 6, 0.8),
        0 0 30px rgba(57, 255, 20, 0.3),
        inset 0 0 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#profileImg:hover {
    transform: scale(1.08) rotate(2deg);
    border-color: rgb(207, 25, 119);
    box-shadow: 
        0 0 0 2px rgba(244, 38, 6, 1),
        0 0 40px rgba(57, 255, 20, 0.5),
        0 15px 40px rgba(244, 38, 6, 0.6),
        inset 0 0 20px rgba(0, 0, 0, 0.1);
}

.about-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 30px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.about-highlight {
    background: rgba(0, 0, 0, 0.3);
    padding: 25px;
    border-radius: 15px;
    border-left: 4px solid #f42606;
    transition: all 0.3s ease;
}

.about-highlight:hover {
    background: rgba(0, 0, 0, 0.4);
    border-left-color: #39FF14;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(244, 38, 6, 0.2);
}

.about-highlight h3 {
    color: #39FF14;
    font-family: 'Poppins', sans-serif;
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 12px;
    margin-top: 0;
}

.about-highlight p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    font-size: 1em;
    margin: 0;
}

/* Skills Section */
#skills {
    padding: 40px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.skill-category h3 {
    color: #39FF14;
    font-family: 'Poppins', sans-serif;
    font-size: 1.4em;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-tag {
    background: linear-gradient(135deg, rgba(57, 255, 20, 0.2) 0%, rgba(57, 255, 20, 0.1) 100%);
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.95em;
    font-weight: 500;
    border: 2px solid rgba(57, 255, 20, 0.3);
    transition: all 0.3s ease;
    cursor: default;
}

.skill-tag:hover {
    background: linear-gradient(135deg, rgba(57, 255, 20, 0.3) 0%, rgba(57, 255, 20, 0.2) 100%);
    border-color: rgba(57, 255, 20, 0.6);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(57, 255, 20, 0.3);
}


                /* =============================================
   PROJECT SECTION
   ============================================= */
#project h1 {
    background-color: #1C658C;
    text-align: center;
    border: 2px solid black;
    width: 100%;
    padding: 15px;
}

#project h2 {
    color: #39FF14;
    font-family: 'Poppins', sans-serif;
    font-size: 1.8em;
    text-align: center;
    margin: 30px 0 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

#project h3 {
    color: #fff;
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Project section container */
#project {
    padding: 25px 25px;
}

/* Category sections */
.project-category {
    margin-bottom: 35px;
}

.project-category-heading {
    color: rgba(57, 255, 20, 0.85);
    font-family: 'Poppins', sans-serif;
    font-size: 1.3em;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(57, 255, 20, 0.2);
}

/* Featured section heading gets extra emphasis */
.project-category.featured .project-category-heading {
    font-size: 1.5em;
    color: #e8f4f8;
    text-shadow: none;
    border-bottom-color: rgba(100, 160, 200, 0.3);
}

/* Learning section heading is visually de-emphasised */
.project-category-heading--learning {
    font-size: 1.1em;
    color: rgba(57, 255, 20, 0.55);
    letter-spacing: 1px;
}

/* Auto-fit responsive grid — no hardcoded positions */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 16px;
}

/* Project card */
.project-card {
    background: rgba(10, 18, 30, 0.55);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: rgba(100, 160, 200, 0.35);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

/* Featured cards get a subtle accent */
.project-category.featured .project-card {
    border-color: rgba(57, 255, 20, 0.1);
}

.project-category.featured .project-card:hover {
    border-color: rgba(57, 255, 20, 0.3);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

/* Disable hover when modal is open */
.project-card.modal-open {
    pointer-events: none;
    transform: none;
    cursor: default;
}

/* Project image thumbnail */
.project-image {
    width: 100%;
    height: 130px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    flex-shrink: 0;
}

/* Gradient placeholders for professional projects without images yet */
.project-image--placeholder {
    background-color: #0d3347;
}

.project-image--saffas {
    background-color: #0d3347;
    background-image: url('../img/case-studies/saffas/saffas-ae-connect.png');
    background-size: cover;
    background-position: center;
}

.project-image--governance {
    background-color: #0d2137;
    background-image: url('../img/projects/enterprise-ai-governance-copilot.png');
    background-size: cover;
    background-position: center;
}

.project-image--guesthouse {
    background-color: #0d2b0d;
    background-image: url('../img/projects/guesthouse-accounting-system.png');
    background-size: cover;
    background-position: center;
}

.project-image--certificate {
    background-color: #2b1e07;
    background-image: url('../img/projects/certificate-generator-showcase.svg');
    background-size: cover;
    background-position: center;
}

.project-image--invoice {
    background-color: #1e0d2b;
    background-image: url('../img/projects/hospitality-invoice-generator.png');
    background-size: cover;
    background-position: center;
}

/* Click indicator — shown on hover only, no bouncing emoji */
.project-image::before {
    display: none;
}

.project-image::after {
    content: "View Details";
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(28, 101, 140, 0.88);
    color: rgba(255, 255, 255, 0.9);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
    white-space: nowrap;
    z-index: 2;
}

.project-card:hover .project-image::after {
    opacity: 1;
}

.project-card.modal-open .project-image::before,
.project-card.modal-open .project-image::after {
    display: none;
}

/* Project card content area */
.project-content {
    padding: 13px 15px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    flex: 1;
}

.project-content h3 {
    color: #ddeef5;
    font-family: 'Poppins', sans-serif;
    font-size: 0.98em;
    font-weight: 600;
    margin: 0;
}

.project-summary {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.82em;
    line-height: 1.5;
    margin: 0;
}

/* Project tags */
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.project-tag {
    background: rgba(28, 101, 140, 0.2);
    color: rgba(160, 210, 230, 0.85);
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.7em;
    font-weight: 500;
    border: 1px solid rgba(100, 160, 200, 0.18);
}

/* Project links inside modal */
.project-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    align-items: stretch;
    width: calc(100% - 80px);
    margin: 24px 40px 32px 40px;
    box-sizing: border-box;
}

.project-link-disabled {
    background: linear-gradient(135deg, rgba(28, 101, 140, 0.18) 0%, rgba(18, 70, 100, 0.14) 100%);
    color: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(100, 160, 200, 0.2);
    box-shadow: none;
    cursor: default;
    user-select: none;
    pointer-events: none;
}

.project-link-disabled:hover {
    transform: none;
    box-shadow: none;
}

/* === Shared: every action cell fills its grid column exactly === */
.project-links button,
.project-links > a,
.project-links .project-link-disabled {
    width: 100%;
    min-height: 52px;
    padding: 0 18px;
    margin: 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: normal;
    line-height: 1.2;
    border-radius: 12px;
    font-size: 0.93em;
    font-weight: 600;
}

/* Active button: keep red-gradient style but fill the cell */
.project-links button {
    box-shadow: 0 4px 14px rgba(244, 38, 6, 0.25);
}

/* Active direct links inside project-links must look identical to buttons */
.project-links > a,
.project-links .project-link {
    background: linear-gradient(135deg, #f42606 0%, #ff4520 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 14px rgba(244, 38, 6, 0.25);
    text-decoration: none;
}

.project-links > a:visited,
.project-links .project-link:visited {
    color: white;
    text-decoration: none;
}

.project-links > a:hover,
.project-links .project-link:hover {
    background: linear-gradient(135deg, #ff4520 0%, #f42606 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 38, 6, 0.5);
    color: white;
    text-decoration: none;
}

.project-links button:last-of-type {
    margin-bottom: 0;
}

/* The anchor inside a button must fill the button */
.project-links button > a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 52px;
    padding: 0 18px;
    text-decoration: none;
    color: white;
    box-sizing: border-box;
    line-height: 1.2;
    white-space: normal;
    text-align: center;
}

/* =============================================
   PROJECT PAGE — scoped overrides
   Activated by body.project-page (set in project.html)
   ============================================= */

/* Replace matrix background with subtle professional dark grid */
body.project-page {
    background-color: #09111d;
    background-image:
        radial-gradient(ellipse at 50% 0%, rgba(28, 101, 140, 0.14) 0%, transparent 55%),
        linear-gradient(rgba(255, 255, 255, 0.016) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.016) 1px, transparent 1px);
    background-size: 100% 100%, 50px 50px, 50px 50px;
}

/* Soften the heavy blue panel + red border on the projects container */
body.project-page #project {
    background-color: rgba(9, 20, 36, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

/* Compact the "My Projects" banner heading */
body.project-page .section-heading {
    margin: 18px auto 16px;
    padding: 11px 20px;
    font-size: 1.5em;
    letter-spacing: 0.5px;
    border: 1px solid rgba(100, 160, 200, 0.35);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
    background: linear-gradient(135deg, rgba(28, 101, 140, 0.75) 0%, rgba(18, 70, 100, 0.65) 100%);
}

/* Featured Case Studies accordion */
.case-studies {
    margin: 8px 0 34px;
    padding: 22px;
    background: rgba(7, 16, 29, 0.72);
    border: 1px solid rgba(100, 160, 200, 0.25);
    border-radius: 16px;
}

.case-studies-header {
    margin-bottom: 18px;
}

.case-studies-title {
    color: #e8f4f8;
    font-family: 'Poppins', sans-serif;
    font-size: 1.45em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 8px;
}

.case-studies-subtitle {
    margin: 0;
    color: rgba(225, 244, 255, 0.78);
    font-size: 0.96em;
    line-height: 1.6;
}

.case-studies-accordion {
    display: grid;
    gap: 12px;
}

.case-study-item {
    background: rgba(10, 24, 40, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.case-study-item.is-highlighted {
    border-color: rgba(57, 255, 20, 0.42);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
}

.case-study-item.is-open {
    border-color: rgba(100, 160, 200, 0.55);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

.case-study-preview {
    display: grid;
    grid-template-columns: minmax(170px, 240px) 1fr;
    gap: 16px;
    padding: 14px;
}

.case-study-image {
    width: 100%;
    min-height: 148px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.case-study-image--saffas {
    background-image: url('../img/case-studies/saffas/saffas-ae-connect.png');
    background-color: #0d3347;
}

.case-study-image--governance {
    background-image: url('../img/case-studies/enterprise-ai-governance-copilot/enterprise-ai-governance-copilot.png');
    background-color: #0d2137;
}

.case-study-image--guesthouse {
    background-image: url('../img/case-studies/guesthouse-accounting-system/guesthouse-accounting-system.png');
    background-color: #0d2b0d;
}

.case-study-preview-content {
    display: grid;
    gap: 8px;
    align-content: start;
}

.case-study-preview-content h3 {
    margin: 0;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1em;
    line-height: 1.35;
}

.case-study-short-title {
    color: rgba(180, 230, 250, 0.9);
    font-size: 0.9em;
    font-weight: 600;
    margin: 0;
}

.case-study-preview-text {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9em;
    line-height: 1.6;
}

.case-study-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.case-study-pill {
    background: rgba(28, 101, 140, 0.2);
    border: 1px solid rgba(100, 160, 200, 0.24);
    color: rgba(210, 238, 250, 0.9);
    border-radius: 999px;
    font-size: 0.72em;
    font-weight: 600;
    padding: 4px 10px;
}

.case-study-toggle {
    margin-top: 4px;
    justify-self: start;
    background: linear-gradient(135deg, #f42606 0%, #ff4520 100%);
    color: #fff;
    border: none;
    border-radius: 9px;
    padding: 10px 14px;
    font-size: 0.84em;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: auto;
}

.case-study-toggle:hover,
.case-study-toggle:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(244, 38, 6, 0.4);
}

.case-study-expanded {
    padding: 0 18px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(6, 15, 26, 0.62);
}

.case-study-expanded section {
    margin-top: 14px;
}

.case-study-expanded h4 {
    margin: 0 0 5px;
    color: #d9f4ff;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.case-study-expanded p {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.92em;
    line-height: 1.6;
}

.case-study-expanded ul {
    margin: 0;
    padding-left: 20px;
}

.case-study-expanded li {
    display: list-item;
    color: rgba(255, 255, 255, 0.86);
    margin-bottom: 4px;
    font-size: 0.9em;
    line-height: 1.55;
}

.case-study-actions {
    margin-top: 20px;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.case-study-cta {
    margin-top: 0;
    display: flex;
}

.case-study-actions .case-study-cta a,
.case-study-actions .case-study-collapse {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.88em;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    box-sizing: border-box;
    vertical-align: middle;
    margin: 0;
    border: 1px solid transparent;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.24);
    transform: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.case-study-cta a {
    color: #fff;
    background: linear-gradient(135deg, #f42606 0%, #ff4520 100%);
    border-color: rgba(255, 132, 98, 0.35);
    box-shadow: 0 7px 20px rgba(244, 56, 16, 0.32);
}

.case-study-cta a:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(244, 56, 16, 0.44);
}

.case-study-cta a:focus-visible {
    outline: none;
    border-color: rgba(255, 205, 184, 0.9);
    box-shadow: 0 0 0 2px rgba(255, 168, 132, 0.35), 0 10px 24px rgba(244, 56, 16, 0.44);
}

.case-study-cta--secondary a {
    background: rgba(16, 34, 52, 0.94);
    color: rgba(232, 246, 255, 0.97);
    border: 1px solid rgba(173, 225, 248, 0.88);
    box-shadow: inset 0 0 0 1px rgba(173, 225, 248, 0.28), 0 7px 18px rgba(12, 56, 90, 0.34), 0 0 12px rgba(112, 184, 220, 0.2);
}

.case-study-cta--secondary a:hover,
.case-study-cta--secondary a:focus-visible {
    background: rgba(12, 30, 49, 0.95);
    border-color: rgba(170, 225, 250, 0.92);
    color: rgba(242, 251, 255, 0.98);
    box-shadow: inset 0 0 0 1px rgba(170, 225, 250, 0.34), 0 9px 20px rgba(12, 74, 118, 0.34);
    transform: translateY(-1px);
}

.case-study-cta--secondary a:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(140, 205, 236, 0.34), inset 0 0 0 1px rgba(170, 225, 250, 0.34), 0 9px 20px rgba(12, 74, 118, 0.34);
}

.case-study-collapse {
    margin: 0;
    background: rgba(16, 34, 52, 0.94);
    color: rgba(232, 246, 255, 0.97);
    border: 1px solid rgba(173, 225, 248, 0.88);
    cursor: pointer;
    width: auto;
    font-family: inherit;
    font-size: 0.88em;
    font-weight: 700;
    line-height: 1;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: inset 0 0 0 1px rgba(173, 225, 248, 0.28), 0 7px 18px rgba(12, 56, 90, 0.34), 0 0 12px rgba(112, 184, 220, 0.2);
}

.case-study-collapse:hover,
.case-study-collapse:focus-visible {
    border-color: rgba(170, 225, 250, 0.92);
    color: rgba(242, 251, 255, 0.98);
    background: rgba(12, 30, 49, 0.95);
    box-shadow: inset 0 0 0 1px rgba(170, 225, 250, 0.34), 0 9px 20px rgba(12, 74, 118, 0.34);
    transform: translateY(-1px);
}

.case-study-collapse:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(140, 205, 236, 0.34), inset 0 0 0 1px rgba(170, 225, 250, 0.34), 0 9px 20px rgba(12, 74, 118, 0.34);
}

.case-study-media-section {
    margin-top: 14px;
}

.case-study-media {
    margin: 12px auto 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(180, 220, 240, 0.18);
    background: rgba(5, 12, 22, 0.75);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}

.case-study-media img {
    display: block;
    width: 100%;
    height: auto;
}

.case-study-media--screenshot {
    max-width: 860px;
}

.case-study-media--hero {
    width: min(100%, 600px);
    max-width: 600px;
}

.case-study-media--supporting {
    max-width: 620px;
}

.case-study-media--diagram {
    width: min(68%, 760px);
    max-width: 760px;
    background: #ffffff;
    border: 1px solid rgba(15, 45, 65, 0.18);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
}

.case-study-media--mobile {
    max-width: 240px;
}

.case-study-media--diagram img {
    padding: 12px;
    background: #ffffff;
}

@media only screen and (max-width: 900px) {
    .case-studies {
        padding: 18px;
    }

    .case-study-preview {
        grid-template-columns: 1fr;
    }

    .case-study-image {
        min-height: 170px;
    }

    .case-study-media--diagram {
        width: min(80%, 760px);
    }
}

@media only screen and (max-width: 700px) {
    .case-studies {
        margin: 4px 0 26px;
        padding: 14px;
    }

    .case-studies-title {
        font-size: 1.18em;
    }

    .case-studies-subtitle {
        font-size: 0.9em;
    }

    .case-study-preview {
        padding: 12px;
        gap: 12px;
    }

    .case-study-image {
        min-height: 145px;
    }

    .case-study-expanded {
        padding: 0 12px 14px;
    }

    .case-study-toggle {
        width: 100%;
    }

    .case-study-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .case-study-cta,
    .case-study-cta--secondary {
        width: 100%;
    }

    .case-study-cta a,
    .case-study-collapse {
        width: 100%;
    }

    .case-study-media--mobile {
        width: 70%;
        max-width: 240px;
    }

    .case-study-media {
        margin-top: 10px;
    }

    .case-study-media--diagram img {
        padding: 10px;
    }

    .case-study-media--diagram {
        width: 100%;
        max-width: 100%;
    }

    .case-study-collapse {
        width: 100%;
    }
}

/* Bounce animation for click indicator */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

.modal {
    position: fixed;
    top: 5vh;
    left: 50%;
    transform: translateX(-50%) scale(0);
    transition: transform 0.3s ease;
    border-radius: 20px;
    z-index: 1001;
    background-color: #fff;
    width: 700px;
    max-width: 95%;
    max-height: 90vh;
    padding: 0;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    pointer-events: none;
}

.modal.active {
    pointer-events: all;
}

.modal::-webkit-scrollbar {
    width: 8px;
}

.modal::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.modal::-webkit-scrollbar-thumb {
    background: #f42606;
    border-radius: 10px;
}

.modal::-webkit-scrollbar-thumb:hover {
    background: #d41f05;
}

.modal.active {
    transform: translateX(-50%) scale(1);
    color: #000;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: #f42606;
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 11;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.modal-close:hover {
    background: #d41f05;
    transform: rotate(90deg);
}

.modal::before {
    content: "Project Details";
    display: block;
    text-align: center;
    color: #1C658C;
    font-size: 1.1em;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 20px;
    padding: 30px 60px 15px 40px;
    border-bottom: 2px solid #f0f0f0;
    background-color: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal p {
    color: #333;
    line-height: 1.8;
    margin: 0 40px 20px 40px;
    font-size: 1em;
}

.modal ol,
.modal ul {
    color: #333;
    margin: 0 40px 20px 58px;
    padding-left: 0;
    list-style-position: outside;
    list-style-type: disc;
}

.modal li {
    display: list-item;
    margin-bottom: 6px;
    line-height: 1.5;
    color: #444;
}

.modal li::marker {
    color: rgba(100, 160, 200, 0.8);
}

.modal li:last-child {
    margin-bottom: 0;
}

.modal h3 {
    color: #1C658C;
    margin: 0 40px 15px 40px;
    font-size: 1.1em;
}

button {
    background: linear-gradient(135deg, #f42606 0%, #ff4520 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 30px 10px 10px 40px;
    box-shadow: 0 4px 15px rgba(244, 38, 6, 0.3);
    display: inline-block;
}

button:last-of-type {
    margin-bottom: 40px;
}

button:hover {
    background: linear-gradient(135deg, #ff4520 0%, #f42606 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 38, 6, 0.5);
}

button a {
    color: white;
    text-decoration: none;
    display: block;
}

.projectLinks {
    color: white !important;
}

.liIndent {
    padding-left: 20px;
}

    /* Certification Page  */

#certification {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 40px 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.cert-card {
    display: flex;
    gap: 30px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(57, 255, 20, 0.2);
    transition: all 0.3s ease;
    align-items: flex-start;
}

.cert-card:hover {
    border-color: rgba(244, 38, 6, 0.5);
    background: rgba(0, 0, 0, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(244, 38, 6, 0.2);
}

.cert-image {
    flex-shrink: 0;
    width: 280px;
    height: 200px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    cursor: pointer;
}

.cert-image:hover {
    transform: scale(1.05);
    border: 3px solid #f42606;
    box-shadow: 0 15px 40px rgba(244, 38, 6, 0.5);
}

.cert-content {
    flex: 1;
    min-width: 0;
}

#certification h2 {
    color: #39FF14;
    font-family: 'Poppins', sans-serif;
    font-size: 1.8em;
    font-weight: 600;
    margin-bottom: 15px;
    margin-top: 0;
}

#certification h3 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 15px;
    margin-top: 20px;
}

#certification ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#certification li {
    padding: 8px 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95em;
    line-height: 1.6;
}

#certification li::before {
    content: "▸ ";
    color: #f42606;
    font-weight: bold;
    margin-right: 8px;
}

/* Two-column layout for longer lists */
#certification ul.two-column {
    column-count: 2;
    column-gap: 30px;
}

#certification ul.two-column li {
    break-inside: avoid;
}

/* Certificate Image Backgrounds */
#cs50pic {
    background-image: url('../img/cs50.jpg');
}

#csPic {
    background-image: url('../img/computer_science.jpg');
}

#cssPic {
    background-image: url('../img/css.jpg');
}

#pythonPic {
    background-image: url('../img/python.jpg');
}

#eHackPic {
    background-image: url('../img/ethical_hacking.jpg');
}

#clpic {
    background-image: url('../img/command_line.jpg');
}

#stackTopic {
    grid-area: stackTopic;

}

li {
    display: block;
}

article {
    width: 100%;
}

/* Contact Section */
#contact {
    text-align: center;
    padding: 50px 40px;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-intro {
    font-size: 1.2em;
    color: #fff;
    margin-bottom: 40px;
    line-height: 1.8;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #f42606 0%, #ff4520 100%);
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(244, 38, 6, 0.3);
}

.contact-btn:hover {
    background: linear-gradient(135deg, #ff4520 0%, #f42606 100%);
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(244, 38, 6, 0.5);
}

.contact-btn i {
    font-size: 24px;
}

/* Footer */
footer {
    background-color: rgba(0, 0, 0, 0.5);
    text-align: center;
    padding: 30px 20px;
    color: rgba(57, 255, 20, 0.7);
    border-top: 2px solid rgba(244, 38, 6, 0.3);
    margin-top: 60px;
}

footer p {
    margin: 0;
    font-size: 0.95em;
}

/* =============================================
   HOME PAGE — scoped overrides
   Activated by body.home-page (set in index.html)

   CERTIFICATION PAGE — scoped overrides
   Activated by body.certification-page (set in certification.html)
   ============================================= */

/* Shared: subtle professional dark background (matches Projects page) */
body.home-page,
body.certification-page {
    background-color: #09111d;
    background-image:
        radial-gradient(ellipse at 50% 0%, rgba(28, 101, 140, 0.14) 0%, transparent 55%),
        linear-gradient(rgba(255, 255, 255, 0.016) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.016) 1px, transparent 1px);
    background-size: 100% 100%, 50px 50px, 50px 50px;
}

/* Shared: soften nav red bottom border */
body.home-page #topLine,
body.certification-page #topLine {
    border-bottom: 1px solid rgba(100, 160, 200, 0.2);
}

/* Shared: reduce section heading scale, soften border, remove red */
body.home-page .section-heading,
body.certification-page .section-heading {
    margin: 20px auto 18px;
    padding: 12px 20px;
    font-size: 1.7em;
    border: 1px solid rgba(100, 160, 200, 0.35);
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.25);
    background: linear-gradient(135deg, rgba(28, 101, 140, 0.75) 0%, rgba(18, 70, 100, 0.65) 100%);
}

/* Shared: soften footer red border */
body.home-page footer,
body.certification-page footer {
    border-top: 1px solid rgba(100, 160, 200, 0.15);
    margin-top: 30px;
}

/* Shared: soften social icon hover glow (remove red drop-shadow) */
body.home-page .social-link:hover,
body.certification-page .social-link:hover {
    filter: drop-shadow(0 5px 12px rgba(100, 160, 200, 0.4));
}

/* ==========  HOME PAGE SPECIFIC  ========== */

/* Hero title: remove red neon text-shadow, reduce size */
body.home-page .hero-title {
    display: inline-block;
    width: fit-content;
    padding: 10px 20px;
    border: 1px solid rgba(100, 160, 200, 0.38);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(20, 42, 68, 0.6) 0%, rgba(9, 20, 36, 0.5) 100%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    font-size: 2.5em;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
    margin-bottom: 10px;
}

/* Hero subtitle: muted teal — no neon green */
body.home-page .hero-subtitle {
    color: rgba(120, 195, 215, 0.8);
}

/* Hero section: reduce height, bring About Me closer */
body.home-page #hero {
    padding: 34px 20px 24px;
    margin-top: 8px;
}

/* About and Skills panels: dark transparent, thin neutral border */
body.home-page #about,
body.home-page #skills {
    background-color: rgba(9, 20, 36, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
    border-radius: 16px;
}

/* Profile photo: steel-blue ring instead of neon green + red double ring */
body.home-page #profileImg {
    border-color: rgba(100, 160, 200, 0.55);
    box-shadow:
        0 0 0 2px rgba(28, 101, 140, 0.3),
        0 0 18px rgba(28, 101, 140, 0.2);
}

body.home-page #profileImg:hover {
    border-color: rgba(100, 180, 220, 0.8);
    transform: scale(1.05);
    box-shadow:
        0 0 0 2px rgba(28, 101, 140, 0.5),
        0 0 28px rgba(28, 101, 140, 0.35),
        0 12px 30px rgba(0, 0, 0, 0.4);
}

body.home-page #profileDivPic {
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.4));
}

/* About highlight cards: steel-blue left border, softer hover */
body.home-page .about-highlight {
    border-left-color: rgba(100, 160, 200, 0.45);
    border-radius: 10px;
}

body.home-page .about-highlight:hover {
    border-left-color: rgba(100, 160, 200, 0.75);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* About highlight headings: near-white instead of neon green */
body.home-page .about-highlight h3 {
    color: #ddeef5;
}

/* Skill category headings: muted blue-grey instead of neon green */
body.home-page .skill-category h3 {
    color: rgba(100, 200, 230, 0.85);
}

/* Skill tags: blue-grey border/background instead of green neon */
body.home-page .skill-tag {
    border-color: rgba(100, 160, 200, 0.28);
    background: linear-gradient(135deg, rgba(28, 101, 140, 0.22) 0%, rgba(28, 101, 140, 0.14) 100%);
}

body.home-page .skill-tag:hover {
    border-color: rgba(100, 160, 200, 0.55);
    box-shadow: 0 4px 12px rgba(28, 101, 140, 0.28);
    background: linear-gradient(135deg, rgba(28, 101, 140, 0.32) 0%, rgba(28, 101, 140, 0.22) 100%);
    transform: translateY(-2px);
}

/* Contact buttons: steel-blue instead of red gradient */
body.home-page .contact-btn {
    background: linear-gradient(135deg, rgba(28, 101, 140, 0.9) 0%, rgba(18, 70, 105, 0.85) 100%);
    box-shadow: 0 4px 16px rgba(28, 101, 140, 0.35);
}

body.home-page .contact-btn:hover {
    background: linear-gradient(135deg, rgba(40, 120, 165, 0.95) 0%, rgba(28, 101, 140, 0.9) 100%);
    box-shadow: 0 7px 24px rgba(28, 101, 140, 0.5);
    transform: translateY(-3px);
}

/* ==========  CERTIFICATION PAGE SPECIFIC  ========== */

/* Certification panel: dark transparent, thin neutral border */
body.certification-page #certification {
    background-color: rgba(9, 20, 36, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
    border-radius: 16px;
    max-width: 1200px;
    width: 90%;
    margin: 0 auto 30px;
}

/* Cert cards: clearly distinct from dark panel — lighter bg, visible border, soft shadow */
body.certification-page .cert-card {
    background: rgba(20, 42, 68, 0.75);
    border: 1px solid rgba(100, 160, 200, 0.22);
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

body.certification-page .cert-card:hover {
    border-color: rgba(100, 160, 200, 0.35);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transform: translateY(-3px);
}

/* Cert image: steel-blue border instead of red glow on hover */
body.certification-page .cert-image:hover {
    border: 1px solid rgba(100, 160, 200, 0.5);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transform: scale(1.03);
}

/* Cert card title: near-white instead of neon green */
body.certification-page #certification h2 {
    color: #ddeef5;
}

/* Cert list bullets: steel-blue instead of red */
body.certification-page #certification li::before {
    color: rgba(100, 160, 200, 0.7);
}
