/* ----------------------------------------
   CORE VARIABLES & RESET
   ----------------------------------------
*/
:root {
    /* Colors */
    --bg-dark: #030712;
    --bg-surface: #111827;
    --text-primary: #f9fafb;
    --text-secondary: #9ca3af;
    --accent-primary: #0ea5e9;
    --accent-secondary: #3b82f6;
    --accent-cyan: #7dd3fc;

    /* Backgrounds & Borders (Dark Mode Default) */
    --nav-bg: rgba(3, 7, 18, 0.85);
    --nav-border: rgba(255, 255, 255, 0.05);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.05);
    --card-hover-bg: rgba(255, 255, 255, 0.08);
    --project-card-bg: rgba(17, 24, 39, 0.6);
    --project-card-border: rgba(255, 255, 255, 0.05);
    --btn-secondary-border: rgba(255, 255, 255, 0.1);
    --tag-bg: rgba(255, 255, 255, 0.05);
    --footer-border: rgba(255, 255, 255, 0.05);
    --mobile-nav-bg: rgba(3, 7, 18, 0.98);

    /* Project Overlays (Dark Mode) */
    --project-overlay-start: rgba(17, 24, 39, 0.5);
    --project-overlay-end: rgba(17, 24, 39, 0.7);
    --project-overlay-blur: 0px;
    --project-title-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    --project-text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);

    /* Gradients */
    --gradient-main: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    --gradient-text: linear-gradient(to right, #7dd3fc, #0ea5e9, #2563eb);

    /* Fonts & Transitions */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease-in-out;
}

[data-theme="light"] {
    --bg-dark: #f3f4f6;
    --bg-surface: #ffffff;
    --text-primary: #111827;
    --text-secondary: #4b5563;

    --nav-bg: rgba(255, 255, 255, 0.85);
    --nav-border: rgba(0, 0, 0, 0.05);

    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(0, 0, 0, 0.05);

    --card-bg: #ffffff;
    --card-border: rgba(0, 0, 0, 0.05);
    --card-hover-bg: #e5e7eb;

    --project-card-bg: #ffffff;
    --project-card-border: rgba(0, 0, 0, 0.05);

    --btn-secondary-border: rgba(0, 0, 0, 0.1);

    --tag-bg: rgba(0, 0, 0, 0.05);
    --footer-border: rgba(0, 0, 0, 0.05);
    --mobile-nav-bg: rgba(255, 255, 255, 0.98);

    /* Project Overlays (Light Mode) */
    --project-overlay-start: rgba(255, 255, 255, 0.85);
    --project-overlay-end: rgba(255, 255, 255, 0.95);
    --project-overlay-blur: 5px;
    --project-title-shadow: none;
    --project-text-shadow: none;

    /* Darker accents for better contrast on light bg */
    --accent-primary: #0284c7;
    /* Sky 600 */
    --accent-cyan: #0ea5e9;
    /* Sky 500 */
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

/* ----------------------------------------
   UTILITIES
   ----------------------------------------
*/
/* Accessibility */
button:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.project-btn:focus-visible,
.social-links a:focus-visible,
.theme-toggle:focus-visible,
.view-all-card:focus-visible,
.logo a:focus-visible,
.scroll-down a:focus-visible,
a.skill-card:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 4px;
    transition: outline-offset 0.1s ease;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--accent-primary);
    color: white;
    padding: 0.5rem 1rem;
    z-index: 2000;
    text-decoration: none;
    font-weight: 600;
    transition: top var(--transition-fast);
    border-radius: 0 0 10px 0;
}

.skip-link:focus {
    top: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--accent-primary);
    color: white;
    padding: 0.5rem 1rem;
    z-index: 2000;
    text-decoration: none;
    font-weight: 600;
    transition: top var(--transition-fast);
    border-radius: 0 0 10px 0;
}

.skip-link:focus {
    top: 0;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    background: var(--gradient-main);
    color: white;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
    transition: var(--transition-medium);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(14, 165, 233, 0.5);
}

.btn-secondary {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border: 2px solid var(--btn-secondary-border);
    color: var(--text-primary);
    font-weight: 600;
    border-radius: 50px;
    margin-left: 1rem;
    backdrop-filter: blur(5px);
    transition: var(--transition-medium);
}

.btn-secondary:hover {
    border-color: var(--accent-primary);
    background: rgba(14, 165, 233, 0.1);
}

/* ----------------------------------------
   NAVIGATION
   ----------------------------------------
*/
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition-medium);
}

.navbar.scrolled {
    padding: 1rem 5%;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--nav-border);
}

.logo a {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-fast);
    padding: 0.5rem;
    margin-right: 1rem;

    /* Ensure the icon center-aligns for rotation */
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle i {
    /* Smooth rotation transition */
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
    color: var(--accent-primary);
    transform: scale(1.1);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a:not(.btn-primary) {
    font-weight: 500;
    color: var(--text-secondary);
    display: inline-block;
    padding: 0.5rem 0.5rem;
    border: 1px solid transparent;
    border-radius: 100px;
    transition: var(--transition-medium);
}

.nav-links a:not(.btn-primary):hover,
.nav-links a:not(.btn-primary):focus-visible,
.nav-links a:not(.btn-primary).active {
    color: var(--text-primary);
    background: var(--gradient-main);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 25px rgba(14, 165, 233, 0.5);
    outline: none;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    padding: 0;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    transition: 0.3s;
}

/* ----------------------------------------
   HERO SECTION
   ----------------------------------------
*/
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 100px 10% 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
}

.greeting {
    color: var(--accent-cyan);
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.name {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--text-primary), #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.title {
    font-size: 2rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

#typewriter {
    color: var(--accent-primary);
    position: relative;
}

#typewriter::after {
    content: '|';
    animation: blink 1s infinite;
    color: var(--text-primary);
}

/* Pause blink animation when off-screen */
.paused-cursor::after {
    animation-play-state: paused;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.bio {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-btns .btn-secondary {
    margin-left: 0;
}

/* Visuals */
.hero-visual {
    position: relative;
    width: 400px;
    height: 400px;
    z-index: 1;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 10s infinite alternate;
}

.blob-1 {
    width: 300px;
    height: 300px;
    background: var(--accent-primary);
    top: -50px;
    left: -50px;
}

.blob-2 {
    width: 250px;
    height: 250px;
    background: var(--accent-secondary);
    bottom: -50px;
    right: -50px;
    animation-delay: -5s;
}

.glass-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    width: 180px;
    height: 180px;
    z-index: 10;
}

.glass-card i {
    font-size: 3rem;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.glass-card span {
    font-weight: 600;
    font-family: var(--font-heading);
}

/* Profile Card */
.glass-card.profile-card {
    width: 500px;
    height: 500px;
    padding: 0;
    /* Changed overflow to visible so the hover shadow isn't cut off */
    overflow: visible;
    background: transparent;
    backdrop-filter: none;
    border: none;
    box-shadow: none;
    animation: none;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* This creates the circle */
    border-radius: 50%;
    transition: var(--transition-medium);
    /* Optional: ensures no image corners peek out */
    border: 2px solid transparent;
}

.profile-image:hover {
    /* Adjusted shadow to glow uniformly around the circle */
    box-shadow: 0 0 15px 5px var(--accent-primary), 0 0 30px rgba(14, 165, 233, 0.4);
    transform: scale(1.02);
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(30px, 50px);
    }
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-down a {
    color: var(--text-secondary);
    font-size: 1.5rem;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

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

/* ----------------------------------------
   SECTIONS & UTILITIES
   ----------------------------------------
*/
.section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    margin-bottom: 4rem;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
}

.line {
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gradient-main);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* About */
.about-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-text {
    max-width: 800px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-cyan);
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.skill-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 2rem 1rem;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition-medium);
    display: block;
    /* Ensures anchor tags behave like blocks */
    cursor: default;
    /* Default for non-linked items */
}

/* Only make linked cards clickable */
a.skill-card {
    cursor: pointer;
}

a.skill-card:hover,
a.skill-card:focus-visible {
    border-color: var(--accent-primary);
}

a.skill-card:hover,
a.skill-card:focus-visible {
    background: var(--card-hover-bg);
    transform: translateY(-5px);
}

.skill-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

a.skill-card:hover i,
a.skill-card:focus-visible i {
    color: var(--accent-primary);
    transform: scale(1.1);
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--project-card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--project-card-border);
    transition: var(--transition-medium);
    backdrop-filter: blur(10px);
}

@media (hover: hover) {
    .project-card:hover {
        transform: translateY(-10px);
        border-color: rgba(14, 165, 233, 0.3);
        box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
    }
}

.project-card:focus-within {
    transform: translateY(-10px) !important;
    border-color: rgba(14, 165, 233, 0.3);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
}

@media (hover: none) {
    .project-card.active {
        transform: translateY(-10px);
        border-color: rgba(14, 165, 233, 0.3);
        box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
    }
}

.project-content {
    padding: 2rem;
}

.project-icon {
    width: 50px;
    height: 50px;
    background: rgba(14, 165, 233, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--accent-primary);
    font-size: 1.5rem;
}

.project-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.project-desc {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.project-tags span {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    background: var(--tag-bg);
    border-radius: 20px;
    color: var(--accent-cyan);
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.project-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition-fast);
    min-height: 44px;
}

.btn-demo {
    background: var(--gradient-main);
    color: white;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.btn-demo:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.4);
    color: white;
}

.btn-code {
    border: 1px solid var(--accent-primary);
    color: var(--text-primary);
    background: transparent;
}

.btn-code:hover {
    background: rgba(14, 165, 233, 0.1);
    transform: translateY(-2px);
    color: var(--text-primary);
}

.view-all-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.02);
}

.view-all-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.view-all-card:hover,
.view-all-card:focus-visible {
    color: var(--accent-primary);
}

/* Contact & Footer */
.contact-container {
    text-align: center;
    max-width: 600px;
}

.contact-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.email-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.email-link {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-cyan);
}

.copy-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-fast);
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.copy-btn:hover {
    color: var(--accent-primary);
    background: var(--card-hover-bg);
    transform: translateY(-2px);
}

.copy-btn:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 4px;
}

.phone-number {
    display: inline-block;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.phone-number:hover {
    color: var(--accent-primary);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-links a {
    font-size: 1.5rem;
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-medium);
}

.social-links a:hover,
.social-links a:focus-visible {
    color: white;
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: translateY(-3px);
}

/* LinkedIn Badge */
.LI-profile-badge {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.footer {
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid var(--footer-border);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* ----------------------------------------
   BACK TO TOP BUTTON
   ----------------------------------------
*/
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--accent-primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: var(--transition-medium);
    z-index: 999;
}

#back-to-top.visible {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

#back-to-top:hover {
    background: var(--accent-secondary);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

#back-to-top:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 4px;
}

/* Mobile */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
    }

    .hero-content {
        margin-bottom: 3rem;
    }

    .name {
        font-size: 3rem;
    }

    .hero-visual {
        width: 300px;
        height: 300px;
    }

    .glass-card.profile-card {
        width: 280px;
        height: 280px;
        margin: 0 auto;
        /* Centers the circle on Ubuntu/Linux mobile views */
    }

    .hero-btns {
        justify-content: center;
    }

    .btn-secondary {
        margin-left: 0;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--mobile-nav-bg);
        flex-direction: column;
        justify-content: center;
        transition: right 0.3s ease, visibility 0s linear 0.3s;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
        visibility: hidden;
    }

    .nav-links.active {
        right: 0;
        visibility: visible;
        transition: right 0.3s ease, visibility 0s linear 0s;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}
/* ----------------------------------------
   ACCESSIBILITY: REDUCED MOTION
   ----------------------------------------
*/
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    /* Force smooth scroll off on html */
    html {
        scroll-behavior: auto !important;
    }

    .fade-in {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .blob,
    .scroll-down,
    #typewriter::after {
        animation: none !important;
    }

    .theme-toggle i {
        transition: none !important;
        transform: none !important;
    }
}

/* ----------------------------------------
   PROJECT CARD BACKGROUNDS
   ----------------------------------------
*/
#project-sky-namibia,
#project-hotel-ui {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Pseudo-element for the blurred image background */
#project-sky-namibia::before,
#project-hotel-ui::before {
    content: '';
    position: absolute;
    top: 0;
    left: auto;
    right: 0;
    width: 50%;
    height: 150px;
    background-size: cover;
    background-position: top center;
    z-index: -1;
    transition: filter 0.3s ease;
    border-radius: 16px;
}

#project-sky-namibia::before {
    background-image: url('images/skynamibia.png');
}

#project-hotel-ui::before {
    background-image: url('images/hotel-website.png');
}

/* Pseudo-element for the gradient overlay and blur */
#project-sky-namibia::after,
#project-hotel-ui::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(var(--project-overlay-start), var(--project-overlay-end));
    backdrop-filter: blur(var(--project-overlay-blur));
    -webkit-backdrop-filter: blur(var(--project-overlay-blur));
    z-index: -2;
}

/* Text shadows for readability on dark mode overlay */
#project-sky-namibia .project-title,
#project-hotel-ui .project-title {
    text-shadow: var(--project-title-shadow);
}

#project-sky-namibia .project-desc,
#project-hotel-ui .project-desc {
    text-shadow: var(--project-text-shadow);
}

/* ----------------------------------------
   PRINT STYLES
   ----------------------------------------
*/
@media print {
    /* Hide non-essential elements */
    .navbar,
    .hamburger,
    .theme-toggle,
    .scroll-down,
    #back-to-top,
    .blob,
    .skip-link,
    .project-links,
    .social-links,
    .copy-btn,
    .hero-btns {
        display: none !important;
    }

    /* Reset Layout & Colors */
    body {
        background-color: white !important;
        color: black !important;
    }

    * {
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    .hero,
    .section {
        min-height: auto !important;
        padding: 1rem 0 !important;
        display: block !important;
    }

    .container {
        width: 100% !important;
        max-width: none !important;
        padding: 0 !important;
    }

    /* Cards */
    .project-card,
    .skill-card {
        background: transparent !important;
        border: 1px solid #ccc !important;
        break-inside: avoid;
        margin-bottom: 1.5rem;
    }

    /* Project Card Background Images */
    #project-sky-namibia::before,
    #project-hotel-ui::before,
    #project-sky-namibia::after,
    #project-hotel-ui::after {
        display: none !important;
    }

    /* Profile Image Cleanup */
    .hero-visual {
        width: 200px !important;
        height: 200px !important;
        margin: 0 auto 2rem;
    }

    .glass-card.profile-card {
        width: 100% !important;
        height: 100% !important;
        background: none !important;
        border: none !important;
        position: static !important;
        transform: none !important;
    }

    .profile-image {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }

    /* Text Adjustments */
    .name {
        font-size: 2.5rem !important;
        background: none !important;
        -webkit-text-fill-color: black !important;
    }

    a {
        text-decoration: underline;
    }

    /* Ensure Contact Info is visible/clean */
    .email-link,
    .phone-number {
        display: block;
        margin-bottom: 0.5rem;
    }

    /* Remove Fades */
    .fade-in {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    #typewriter::after {
        display: none !important;
    }
}
