/* ===== GOOGLE FONTS — Inter ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ===== BASE ===== */

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

body {
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: #333333;

    /* Background image — code on screen (Unsplash, test version)
       A white semi-transparent overlay (91% opacity) is layered on top
       so the image acts as a subtle watermark without affecting readability.
       background-attachment: fixed keeps the image fixed while
       the content scrolls over it.
       Source: https://unsplash.com/photos/turned-on-macbook-pro-beside-gray-mug-4hbJ-eymZ0o
    */
    background-color: #f5f5f5;
    background-image:
        linear-gradient(rgba(245, 245, 245, 0.91), rgba(245, 245, 245, 0.91)),
        url('https://images.unsplash.com/photo-1461749280684-dccba630e2f6?w=1920&q=80');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

/* ===== TYPOGRAPHIE ===== */

h1, h2, h3 {
    font-family: inherit;
    color: #1a1a2e;
    margin-top: 24px;
    margin-bottom: 12px;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.3rem; }

p {
    margin-bottom: 16px;
}

a {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    color: #004499;
}

/* ===== LAYOUT ===== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ===== NAVIGATION ===== */
nav {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d4e 100%);
    border-bottom: 3px solid #d43434;
    padding: 14px 24px;
}
nav ul {
    list-style: none;
    display: flex;      
    gap: 24px;

}
nav ul li {
    color: #ffffff;
}
nav ul li a {
    color: #ffffff;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: bold;
    text-decoration: none;
}
nav ul li a:hover {
    color: #aad4f5;
}

nav ul li a.active {
    color: #ffffff;
    border-bottom: 2px solid #d43434;
    padding-bottom: 2px;
}

/* ===== LISTS ===== */
ul, ol {
    padding-left: 28px;
    margin-bottom: 16px;
}

li {
    margin-bottom: 6px;
}

/* ===== TABLEAUX ===== */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
    font-size:0.95rem
}

th {
    border: 1px solid #1a1a2e;
    background-color: #1a1a2e;
    color: #ffffff;
    padding: 10px 14px;
    text-align: left;
}   

td {
    border: 1px solid #dddddd;
    padding: 10px 14px;
}

tr:nth-child(even) {
    background-color: #f0f4f8;
}

tr:hover {
    background-color: #dceeff;
}

/* ===== FORMULAIRES ===== */
form {
    background-color: #ffffff;
    padding: 24px;
    border-radius: 8px;
    max-width: 600px;
    margin-bottom: 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

label {
    display: block;
    margin-bottom: 4px;
    font-weight: bold;
    color: #1a1a2e
}

input, textarea, select {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 16px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

input:focus, textarea:focus, select:focus {
    border-color: #0066cc;
    outline: none;
    box-shadow: 0 0 3px rgba(0, 102, 204, 0.15);
}

button, input[type="submit"] {
    background-color: #0066cc;
    color: #ffffff;
    padding: 10px 24px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
}

button:hover, input[type="submit"]:hover {
    background-color: #004499;
}

/* ===== FOOTER ===== */
footer {
    background-color: #12122a;
    color: #aaaaaa;
    padding: 56px 24px 24px;
    margin-top: 0;
    font-size: 0.92rem;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.footer-tagline {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.45);
    margin: 0 0 16px;
    line-height: 1.5;
}

.footer-brand-links {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.footer-brand-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-brand-links a:hover {
    color: #ffffff;
    text-decoration: none;
}

.footer-col-title {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    margin-bottom: 16px;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 0.2s;
}

.footer-nav a:hover {
    color: #ffffff;
    text-decoration: none;
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-social a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}

.footer-social a:hover {
    color: #d43434;
    text-decoration: none;
}

.footer-copy {
    max-width: 1100px;
    margin: 24px auto 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.25);
}

.footer-copy p {
    margin: 0;
}

/* old simple footer links — keep for fallback */
footer a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
}

footer a:hover {
    color: #ffffff;
    text-decoration: none;
}

/* ===== CLASSES SPECIFIQUES (Unit 2)===== */ 
.highlight {
    background-color: #fff3cd;
    color: #856404;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: bold;  
}

#contact-form {
    border-left: 4px solid #0066cc;
    padding-left: 20px;
    margin-top: 32px;
}   

/* ===== HERO SECTION ===== */
.hero, #hero {
    background: linear-gradient(to bottom, #1a1a2e 0%, rgba(26,26,46,0.6) 50%, transparent 100%);
    text-align: center;
    padding: 80px 20px;
}

.hero h1, #hero h1 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 16px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.hero p, #hero p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 32px;
}

.btn {
    display: inline-block;
    background-color: #d43434;
    color: #ffffff;
    padding: 14px 32px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    font-family: inherit;
}

.btn:hover {
    background-color: #b02020;
    text-decoration: none;
    color: #ffffff;
}

/* ===== SECTION ===== */
.section {
    padding: 60px 24px;
}

.section-gray {
    background-color: #f0f2f5;
}

.section-title {
    font-size: 1.6rem;
    font-weight: bold;
    display: inline-block;
    padding-bottom: 8px;
    border-bottom: 3px solid #d43434;
    margin-bottom: 32px;
    color: #1a1a2e;
}

/* ===== PROJECTS CARDS ===== */
.projects-grid-home {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.project-card {
    background-color: #ffffff;
    color: #333333;
    border-radius: 10px;
    overflow: hidden;
    min-width: 260px;
    flex: 1;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.16);
}

.card-image {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Dark overlay on image for readability of the label badge */
.card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.45) 100%);
}

.card-info {
    padding: 18px 16px 16px;
}

.card-info h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #1a1a2e;
}

.card-info p {
    font-size: 0.97rem;
    color: #555555;
    margin-bottom: 14px;
    line-height: 1.6;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-stack span {
    background-color: #f0f0f5;
    color: #1a1a2e;
    border: 1px solid #d0d0e0;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-family: inherit;
}

/* ===== ABOUT & CONTACT PREVIEW ===== */
.preview-section {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
}

.preview-section p {
    flex: 1;
    font-size: 1rem;
    color: #444444;
}

/* ===== PROJECTS PAGE ===== */
.projects-grid-full {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    padding: 32px 24px;
}

.projects-grid-full .project-card {
    flex: 1 1 280px;
    max-width: calc(33.333% - 16px);
}

/* ===== NAVBAR LOGO ===== */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: #ffffff;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 1px;
}

/* ===== PROJECTS HERO & FILTER BAR (Unit 4) ===== */
#projects-hero {
    background: linear-gradient(to bottom, #1a1a2e 0%, rgba(26,26,46,0.6) 50%, transparent 100%);
    text-align: center;
    padding: 60px 20px 40px;
}

#projects-hero h1 {
    font-size: 2.2rem;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    margin-bottom: 24px;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.filter-btn {
    padding: 10px 22px;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
}

.filter-btn.active {
    background-color: #1a1a2e;
}

/* ===== SEARCH BAR (Unit 5 — Script 2) ===== */
.search-bar-wrapper {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.search-bar {
    width: 100%;
    max-width: 480px;
    padding: 10px 16px;
    font-size: 0.95rem;
    border: 2px solid #cccccc;
    border-radius: 4px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.search-bar:focus {
    border-color: #1a1a2e;
    outline: none;
}

/* ===== NO RESULTS MESSAGE (Unit 5 — Script 2) ===== */
.no-results-msg {
    text-align: center;
    color: #888888;
    font-size: 1rem;
    padding: 40px 20px;
    font-style: italic;
}

/* ===== FEEDBACK MESSAGES (Unit 5 — Script 3) ===== */
.feedback {
    display: block;
    font-size: 0.85rem;
    margin-top: -10px;
    margin-bottom: 12px;
    min-height: 1.2em;
}

.feedback.valid   { color: #2e7d32; }
.feedback.invalid { color: #c62828; }

/* ===== CHARACTER COUNTER (Unit 5 — Script 3) ===== */
.char-counter {
    display: block;
    font-size: 0.82rem;
    color: #888888;
    margin-top: -10px;
    margin-bottom: 6px;
}

/* ===== SKILLS PAGE (Unit 5 — Script 1) ===== */
#skills-hero {
    background: linear-gradient(to bottom, #1a1a2e 0%, rgba(26,26,46,0.6) 50%, transparent 100%);
    text-align: center;
    padding: 52px 20px 12px;
}

#skills-hero h1 {
    font-size: 2.2rem;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    margin-bottom: 12px;
}

#skills-hero p {
    color: rgba(255,255,255,0.85);
    font-size: 1rem;
}

.skills-section-intro {
    max-width: 700px;
    margin: 0 auto 36px;
    color: #555;
    font-size: 1rem;
    line-height: 1.7;
}

.skills-container {
    max-width: 700px;
    margin: 0 auto;
}

.skills-group {
    margin-bottom: 32px;
}

.skills-category {
    font-size: 1.1rem;
    color: #d43434;
    border-bottom: 2px solid #d43434;
    padding-bottom: 6px;
    margin-bottom: 16px;
}

.skill-item {
    margin-bottom: 16px;
}

.skill-label {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: #1a1a2e;
}

.skill-track {
    background-color: #e0e0e0;
    border-radius: 4px;
    height: 10px;
    overflow: hidden;
}

.skill-bar {
    height: 100%;
    background-color: #1a1a2e;
    border-radius: 4px;
    width: 0%;
    transition: width 1s ease;
}

/* Currently Learning block on Skills page */
.skills-learning {
    max-width: 700px;
    margin: 48px auto 0;
    border-top: 2px solid #e8e8ec;
    padding-top: 36px;
}

.skills-learning h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 6px;
}

.skills-learning-desc {
    color: #666;
    font-size: 0.97rem;
    margin-bottom: 20px;
}

.skills-learning-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skills-learning-tags span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background-color: #f0f0f8;
    border: 1px solid #d0d0e8;
    color: #1a1a2e;
    font-size: 0.92rem;
    font-weight: 500;
    padding: 7px 14px;
    border-radius: 20px;
}

.skills-learning-tags span i {
    color: #d43434;
    font-size: 0.85rem;
}

/* ===== CONTACT PAGE (Unit 5 — Script 3) ===== */
#contact-hero {
    background: linear-gradient(to bottom, #1a1a2e 0%, rgba(26,26,46,0.6) 50%, transparent 100%);
    text-align: center;
    padding: 60px 20px 40px;
}

#contact-hero h1 {
    font-size: 2.2rem;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    margin-bottom: 12px;
}

#contact-hero p {
    color: rgba(255,255,255,0.85);
    font-size: 1rem;
}

#submit-btn:disabled {
    background-color: #aaaaaa;
    cursor: not-allowed;
}

/* ===== ABOUT PAGE ===== */
#about-hero {
    background: linear-gradient(to bottom, #1a1a2e 0%, rgba(26,26,46,0.6) 50%, transparent 100%);
    text-align: center;
    padding: 60px 20px 40px;
}

#about-hero h1 {
    font-size: 2.2rem;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    margin-bottom: 12px;
}

#about-hero p {
    color: rgba(255,255,255,0.85);
    font-size: 1rem;
}

/* Intro layout: photo left, text right */
.about-intro-layout {
    display: flex;
    gap: 48px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.about-photo {
    flex-shrink: 0;
}

/* Photo placeholder — fallback if image doesn't load */
.photo-placeholder {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background-color: #1a1a2e;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-family: inherit;
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 2px;
}

/* Profile photo — circular portrait */
.profile-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 4px solid #d43434;
    display: block;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}

/* Value card icon */
.value-icon {
    font-size: 1.6rem;
    color: #d43434;
    margin-bottom: 10px;
}

.about-text {
    flex: 1;
    min-width: 260px;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 28px;
    border-left: 3px solid #d43434;
}

.timeline-item {
    position: relative;
    margin-bottom: 36px;
}

.timeline-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #d43434;
    position: absolute;
    left: -41px;
    top: 4px;
}

.timeline-content {
    padding-left: 8px;
}

.timeline-year {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: bold;
    color: #d43434;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.timeline-content h3 {
    margin-top: 4px;
    margin-bottom: 6px;
    font-size: 1.1rem;
    color: #1a1a2e;
}

/* Values grid */
.values-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.value-card {
    flex: 1 1 220px;
    background-color: #ffffff;
    border-left: 4px solid #d43434;
    border-radius: 6px;
    padding: 20px 24px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

.value-card h3 {
    margin-top: 0;
    color: #1a1a2e;
    font-size: 1rem;
}

.value-card p {
    font-size: 0.92rem;
    color: #555555;
    margin-bottom: 0;
}

/* CTA block */
.about-cta-container {
    text-align: center;
}

.about-cta-container h2 {
    font-size: 1.6rem;
    color: #1a1a2e;
}

.about-cta-container p {
    color: #555555;
    margin-bottom: 24px;
}

.about-cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Outline button variant */
.btn-outline {
    display: inline-block;
    background-color: transparent;
    color: #d43434;
    border: 2px solid #d43434;
    padding: 14px 32px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    font-family: inherit;
}

.btn-outline:hover {
    background-color: #d43434;
    color: #ffffff;
    text-decoration: none;
}

/* ===== RESUME PAGE ===== */
#resume-hero {
    background: linear-gradient(to bottom, #1a1a2e 0%, rgba(26,26,46,0.6) 50%, transparent 100%);
    text-align: center;
    padding: 60px 20px 40px;
}

#resume-hero h1 {
    font-size: 2.2rem;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    margin-bottom: 12px;
}

#resume-hero p {
    color: rgba(255,255,255,0.85);
    font-size: 1rem;
}

/* Resume header block */
.resume-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 8px;
}

.resume-name {
    font-size: 1.8rem;
    color: #1a1a2e;
    margin-top: 0;
    margin-bottom: 4px;
    border-bottom: none;
}

.resume-tagline {
    font-size: 1rem;
    color: #d43434;
    font-weight: bold;
    margin-bottom: 0;
}

.resume-contact-block {
    text-align: right;
    font-size: 0.9rem;
    color: #555555;
    line-height: 1.8;
}

.resume-contact-block p {
    margin-bottom: 4px;
}

/* Divider */
.resume-divider {
    border: none;
    border-top: 1px solid #dddddd;
    margin: 28px 0;
}

/* Section blocks */
.resume-block {
    margin-bottom: 8px;
}

.resume-section-title {
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #1a1a2e;
    border-bottom: 2px solid #d43434;
    padding-bottom: 6px;
    margin-bottom: 20px;
}

/* Individual entries */
.resume-entry {
    margin-bottom: 36px;
    padding-bottom: 28px;
    border-bottom: 1px solid #f0f0f6;
}

.resume-entry:last-child {
    border-bottom: none;
    margin-bottom: 8px;
    padding-bottom: 0;
}

.resume-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 6px;
}

.resume-entry-title {
    font-weight: 600;
    color: #1a1a2e;
    font-size: 1.02rem;
}

.resume-entry-date {
    font-size: 0.88rem;
    color: #666666;
    white-space: nowrap;
}

.resume-entry-org {
    display: block;
    font-size: 0.93rem;
    color: #d43434;
    margin-bottom: 10px;
    font-weight: 500;
}

.resume-entry-desc {
    font-size: 0.97rem;
    color: #444444;
    line-height: 1.7;
    margin-bottom: 12px;
}

.resume-entry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* Skills table */
.resume-skills-table {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.resume-skill-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.resume-skill-label {
    min-width: 140px;
    font-weight: bold;
    color: #1a1a2e;
    font-size: 0.9rem;
    padding-top: 4px;
}

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

/* Tags */
.resume-tag {
    background-color: #eef0f8;
    color: #1a1a2e;
    border: 1px solid #c8cce0;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-family: inherit;
    font-weight: 500;
}

.resume-tag.small {
    font-size: 0.8rem;
    padding: 3px 10px;
}

/* Languages */
.resume-languages {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.resume-language-item {
    display: flex;
    flex-direction: column;
}

.resume-language-name {
    font-weight: bold;
    color: #1a1a2e;
    font-size: 0.95rem;
}

.resume-language-level {
    font-size: 0.85rem;
    color: #888888;
}

/* Projects link */
.resume-projects-link {
    font-size: 0.92rem;
    margin-top: 4px;
    color: #555555;
}

/* Resume CTA */
.resume-cta {
    text-align: center;
    padding: 24px 0 8px;
}

.resume-cta p {
    color: #555555;
    margin-bottom: 16px;
    font-size: 1rem;
}

/* ===== HOME HERO REDESIGN ===== */
#hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
    color: #ffffff;
    text-align: left;
    padding: 80px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
}

#hero h1 {
    font-size: 2.6rem;
    color: #ffffff;
    margin-bottom: 10px;
}

#hero p {
    font-size: 1.1rem;
    color: #aad4f5;
    margin-bottom: 32px;
}

.hero-inner {
    max-width: 1100px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    flex-wrap: wrap;
}

.hero-text {
    flex: 1;
    min-width: 260px;
}

.hero-tag {
    display: inline-block;
    background-color: #d43434;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 3px;
    margin-bottom: 18px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-light {
    display: inline-block;
    background-color: #ffffff;
    color: #1a1a2e;
    padding: 13px 28px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    font-family: inherit;
    font-size: 0.95rem;
}

.btn-light:hover {
    background: linear-gradient(to bottom, #1a1a2e 0%, rgba(26,26,46,0.6) 50%, transparent 100%);
    color: #1a1a2e;
    text-decoration: none;
}

.btn-ghost {
    display: inline-block;
    background-color: transparent;
    color: #ffffff;
    border: 2px solid rgba(255,255,255,0.4);
    padding: 11px 28px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s, background-color 0.2s;
}

.btn-ghost:hover {
    border-color: #ffffff;
    background-color: rgba(255,255,255,0.08);
    color: #ffffff;
    text-decoration: none;
}

/* Code card visual */
.hero-visual {
    flex-shrink: 0;
    width: 300px;
}

.code-card {
    background-color: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    padding: 22px 24px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.82rem;
    line-height: 1.9;
    color: #aad4f5;
}

.code-card .cc-comment  { color: #5a7a96; }
.code-card .cc-keyword  { color: #d43434; }
.code-card .cc-string   { color: #7ec897; }
.code-card .cc-prop     { color: #e8c47a; }
.code-card .cc-bracket  { color: #aad4f5; }

/* ===== STATS BAR ===== */
.stats-bar {
    background-color: #0f0f1f;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 22px 40px;
    border-right: 1px solid rgba(255,255,255,0.08);
}

.stat-item:last-child {
    border-right: none;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: bold;
    color: #d43434;
    font-family: inherit;
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: #888888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 6px;
}

/* ===== FEATURED PROJECTS SECTION (home) ===== */
#projects {
    padding: 60px 24px;
    background-color: #f5f5f5;
}

#projects h2 {
    font-size: 1.6rem;
    font-weight: bold;
    display: inline-block;
    padding-bottom: 8px;
    border-bottom: 3px solid #d43434;
    margin-bottom: 36px;
    color: #1a1a2e;
}

.view-all-link {
    text-align: center;
    margin-top: 36px;
}

.view-all-link a {
    font-size: 0.95rem;
    font-weight: bold;
    color: #d43434;
    text-decoration: none;
    border-bottom: 2px solid #d43434;
    padding-bottom: 2px;
    transition: color 0.2s;
}

.view-all-link a:hover {
    color: #b02020;
    border-color: #b02020;
    text-decoration: none;
}

/* ===== ABOUT & CONTACT PREVIEW SECTIONS (home) ===== */
#about, #contact {
    padding: 60px 24px;
}

#about {
    background-color: #ffffff;
}

#contact {
    background-color: #f0f2f5;
}

#about h2, #contact h2 {
    font-size: 1.6rem;
    font-weight: bold;
    display: inline-block;
    padding-bottom: 8px;
    border-bottom: 3px solid #d43434;
    margin-bottom: 28px;
    color: #1a1a2e;
}

/* ===== PROJECT CARD REDESIGN ===== */

/* Hover lift effect */
.project-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: default;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.18);
}

/* Layout for image area — label sits at the bottom via flex */
/* background-image is set via inline style; background-size/position
   come from the first .card-image rule above (line ~290) */
.card-image {
    display: flex;
    align-items: flex-end;
    padding: 12px 16px;
    /* Fallback colour shown while images load or if URL fails */
    background-color: #1a1a2e;
}

/* Tech badge — must sit above the ::after gradient overlay */
.card-image-label {
    position: relative;
    z-index: 1;
    font-size: 0.72rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #ffffff;
    background-color: rgba(0,0,0,0.55);
    border: 1px solid rgba(255,255,255,0.25);
    padding: 3px 8px;
    border-radius: 3px;
    font-family: inherit;
}

/* "View Project" button — styled for white card background */
.card-link {
    display: inline-block;
    margin-top: 14px;
    font-size: 0.85rem;
    font-weight: bold;
    color: #d43434;
    text-decoration: none;
    background-color: transparent;
    border: 1.5px solid #d43434;
    padding: 6px 16px;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
}

.card-link:hover {
    background-color: #d43434;
    color: #ffffff;
    text-decoration: none;
}


/* ============================================================
   UNIT 6 — jQuery Feature Styles
   ============================================================ */

/* ----------------------------------------------------------
   Feature 1 — Sticky Navigation Bar
   When jQuery adds .scrolled to <header>, the navbar
   shrinks and gets a shadow. CSS transition makes it smooth.
---------------------------------------------------------- */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: padding 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

header.scrolled {
    padding: 0;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
    background: linear-gradient(135deg, #12122a 0%, #1a1a2e 100%);
}

header.scrolled nav {
    padding: 8px 32px;
}

/* ----------------------------------------------------------
   Feature 4 — Back-to-Top Button
   Injected by jQuery. Hidden by default (display:none),
   shown/hidden with fadeIn/fadeOut. Fixed bottom-right.
---------------------------------------------------------- */
#back-to-top {
    display: none;
    position: fixed;
    bottom: 36px;
    right: 30px;
    z-index: 999;
    background-color: #d43434;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 46px;
    height: 46px;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

#back-to-top:hover {
    background-color: #b52b2b;
    transform: translateY(-3px);
}

/* ----------------------------------------------------------
   Feature 6 — Fade-In Sections on Scroll
   Elements with .fade-in-section start invisible and
   slightly shifted down. jQuery adds .visible to trigger
   the CSS transition when they enter the viewport.
---------------------------------------------------------- */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ----------------------------------------------------------
   Feature 5 — Resume Accordion (jQuery UI overrides)
   Overrides jQuery UI's default Smoothness theme to match
   the portfolio's dark colour scheme and typography.
---------------------------------------------------------- */
#resume-accordion .ui-accordion-header {
    background-color: #eef0f8;
    color: #1a1a2e;
    border: none;
    border-left: 4px solid transparent;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    padding: 15px 20px;
    margin-bottom: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease, border-left-color 0.2s ease;
}

/* Hover: slightly more saturated — still light, readable */
#resume-accordion .ui-accordion-header:hover {
    background-color: #dde2f2;
    color: #1a1a2e;
}

/* Active (open panel): white background, red left accent */
#resume-accordion .ui-accordion-header-active {
    background-color: #ffffff;
    color: #1a1a2e;
    border-left: 4px solid #d43434;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* Icon is dark by default (background is now light) — no invert needed */
#resume-accordion .ui-accordion-header .ui-icon {
    /* filter: invert(1) removed — dark arrow is readable on light background */
}

#resume-accordion .ui-accordion-content {
    background-color: #ffffff;
    border: 1px solid #e8e8f0;
    border-top: none;
    border-radius: 0 0 4px 4px;
    padding: 28px 28px 20px;
    margin-bottom: 6px;
}

.accordion-panel {
    padding: 0;
}

/* ----------------------------------------------------------
   Feature 7 — jQuery UI Tooltip overrides
   Styles the tooltip popup to match the portfolio palette.
---------------------------------------------------------- */
.ui-tooltip {
    background-color: #1a1a2e;
    color: #ffffff;
    border: 1px solid #d43434;
    border-radius: 4px;
    font-size: 0.82rem;
    font-family: inherit;
    padding: 6px 12px;
    max-width: 260px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* ----------------------------------------------------------
   Index page — Hero photo (replaces code card visual)
---------------------------------------------------------- */
.hero-photo {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 4px solid #d43434;
    box-shadow: 0 0 0 8px rgba(212, 52, 52, 0.15), 0 8px 32px rgba(0,0,0,0.3);
    display: block;
    margin: 0 auto;
}

/* ----------------------------------------------------------
   Index page — About Me preview section
---------------------------------------------------------- */
#about-preview-home {
    background: transparent;
}

.home-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}

.home-about-text {
    /* left column */
}

.home-about-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding-top: 8px;
}

.home-stat-card {
    background: #ffffff;
    border: 1px solid #e8eaf2;
    border-radius: 10px;
    padding: 20px 18px;
    box-shadow: 0 2px 8px rgba(26,26,46,0.05);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.home-stat-card i {
    font-size: 1.1rem;
    color: #d43434;
    margin-bottom: 2px;
}

.home-stat-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: rgba(26,26,46,0.4);
}

.home-stat-value {
    font-size: 0.97rem;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.35;
}

.home-about-facts p {
    color: #444444;
    margin-bottom: 14px;
    font-size: 1rem;
    line-height: 1.75;
}

.home-about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.home-about-tags span {
    background-color: #1a1a2e;
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 6px;
}

.home-about-tags span i {
    color: #d43434;
}

/* ============================================================
   PROJECT DETAIL PAGES
   Styles for individual project pages (project-*.html)
   ============================================================ */

/* Full-width hero with the project's image as background */
.project-page-hero {
    position: relative;
    min-height: 340px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.project-page-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-color: #1a1a2e; /* fallback */
    filter: brightness(0.45);
    z-index: 0;
}

.project-page-hero-content {
    position: relative;
    z-index: 1;
    padding: 48px 24px 40px;
    color: #ffffff;
    max-width: 860px;
    margin: 0 auto;
    width: 100%;
}

/* "← All Projects" back link */
.project-back-link {
    display: inline-block;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 0.88rem;
    font-family: inherit;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    transition: color 0.2s;
}
.project-back-link:hover {
    color: #ffffff;
    text-decoration: none;
}

/* Tech badge on hero */
.project-page-badge {
    display: inline-block;
    background-color: #d43434;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 3px;
    margin-bottom: 14px;
    font-family: inherit;
}

.project-page-hero-content h1 {
    font-size: 2.2rem;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    margin-bottom: 12px;
}

.project-page-hero-content > p {
    font-size: 1rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
    margin-bottom: 18px;
    max-width: 600px;
}

/* Tech stack shown on hero (reuses .tech-stack) */
.project-page-hero-content .tech-stack span {
    background-color: rgba(255,255,255,0.12);
    color: #ffffff;
    border-color: rgba(255,255,255,0.3);
}

/* Project body section */
.project-page-body {
    padding: 56px 24px;
}

.project-page-body .container {
    max-width: 860px;
    margin: 0 auto;
}

/* "Coming soon" notice banner */
.project-placeholder-notice {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    background-color: #fff8e1;
    border: 1.5px solid #f0c040;
    border-left: 5px solid #f0c040;
    border-radius: 6px;
    padding: 20px 24px;
    margin-bottom: 48px;
}

.placeholder-notice-icon {
    font-size: 1.8rem;
    line-height: 1;
    flex-shrink: 0;
}

.project-placeholder-notice h3 {
    font-size: 1.05rem;
    font-weight: bold;
    color: #7a5f00;
    margin-bottom: 6px;
}

.project-placeholder-notice p {
    font-size: 0.9rem;
    color: #8a6d00;
    line-height: 1.55;
    margin: 0;
}

/* Content sections grid */
.project-page-sections {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.project-page-section {
    border-bottom: 1px solid #e8e8ec;
    padding-bottom: 36px;
}

.project-page-section:last-child {
    border-bottom: none;
}

.project-page-section h2 {
    font-size: 1.25rem;
    font-weight: bold;
    color: #1a1a2e;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 3px solid #d43434;
    display: inline-block;
}

.project-page-section p,
.project-page-section li {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.7;
}

.project-page-section ul {
    padding-left: 20px;
}

/* Screenshot placeholder slots */
.screenshot-placeholder-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 12px;
}

.screenshot-slot {
    background-color: #f2f2f7;
    border: 2px dashed #c8c8d4;
    border-radius: 8px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.82rem;
    font-family: inherit;
    text-align: center;
    padding: 16px;
}

/* Project link buttons */
.project-page-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 8px;
}

/* Disabled state for future links */
.btn-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

/* ==========================================================
   UNIT 7 — GitHub Live Activity Section (projects.html)
   ========================================================== */

#github-activity {
    background: #f8f9fc;
    border-top: 1px solid #e8eaf2;
    padding: 52px 24px 56px;
    margin-top: 0;
}

#github-activity .section-title {
    text-align: center;
    margin-bottom: 6px;
}

.github-section-intro {
    text-align: center;
    color: #666;
    font-size: 0.97rem;
    max-width: 620px;
    margin: 0 auto 36px;
}

.github-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.github-card {
    background: #ffffff;
    border: 1px solid #e8eaf2;
    border-radius: 10px;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(26,26,46,0.04);
    transition: box-shadow 0.2s, transform 0.2s;
}

.github-card:hover {
    box-shadow: 0 6px 20px rgba(26,26,46,0.10);
    transform: translateY(-2px);
}

.github-card-name {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
    display: flex;
    align-items: center;
    gap: 8px;
}

.github-card-name i {
    color: #d43434;
    font-size: 0.9rem;
}

.github-card-desc {
    font-size: 0.88rem;
    color: #555;
    line-height: 1.55;
    flex: 1;
}

.github-card-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.82rem;
    color: #888;
    flex-wrap: wrap;
}

.github-lang-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.github-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #d43434;
    text-decoration: none;
    margin-top: 2px;
    transition: color 0.2s;
}

.github-card-link:hover {
    color: #b02020;
    text-decoration: none;
}

.github-loading,
.github-error {
    text-align: center;
    color: #888;
    font-size: 0.95rem;
    padding: 24px 0;
    grid-column: 1 / -1;
}

.github-error a {
    color: #d43434;
}

/* ==========================================================
   UNIT 7 — Edmonton Weather Widget (contact.html)
   ========================================================== */

#weather-widget-section {
    background: #f8f9fc;
    border-top: 1px solid #e8eaf2;
    padding: 48px 24px;
}

#weather-widget-section .section-title {
    text-align: center;
    margin-bottom: 6px;
}

.weather-section-intro {
    text-align: center;
    color: #666;
    font-size: 0.97rem;
    margin-bottom: 28px;
}

.weather-card {
    max-width: 420px;
    margin: 0 auto;
    background: #1a1a2e;
    border-radius: 14px;
    padding: 28px 32px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 24px;
    box-shadow: 0 8px 28px rgba(26,26,46,0.18);
}

.weather-icon-wrap img {
    width: 72px;
    height: 72px;
}

.weather-temp {
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
}

.weather-condition {
    font-size: 1rem;
    color: rgba(255,255,255,0.75);
    text-transform: capitalize;
    margin-bottom: 10px;
}

.weather-meta {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.45);
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.weather-loading,
.weather-error {
    text-align: center;
    color: #888;
    font-size: 0.95rem;
    padding: 16px 0;
}

.weather-credit {
    text-align: center;
    font-size: 0.78rem;
    color: #aaa;
    margin-top: 14px;
}

.weather-credit a {
    color: #aaa;
}

