
/* =========================================
   JOEL KAYZ PROFESSIONAL PORTFOLIO
   Main Stylesheet
========================================= */

/* 1. COLOUR SYSTEM */
:root {
    --primary: #123b66;
    --secondary: #2563eb;
    --dark: #101827;
    --light: #f5f7fb;
    --white: #ffffff;
    --text: #172033;
    --muted: #64748b;
    --border: #e2e8f0;
}

/* 2. GLOBAL SETTINGS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

.container {
    width: 90%;
    max-width: 1150px;
    margin: auto;
}

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

ul {
    list-style: none;
}

/* 3. NAVIGATION */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 30px;
    font-weight: 800;
    color: var(--primary);
}

.logo span {
    color: var(--secondary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    transition: 0.3s;
}

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

.nav-button {
    background: var(--primary);
    color: var(--white);
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s;
}

.nav-button:hover {
    background: var(--secondary);
}

/* 4. HERO SECTION */
.hero {
    background: linear-gradient(135deg, #f5f8ff, #eaf1fc);
    padding: 110px 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    align-items: center;
    gap: 70px;
}

.eyebrow,
.section-label {
    color: var(--secondary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.hero h1 {
    font-size: clamp(38px, 5vw, 60px);
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--dark);
}

.hero h1 span {
    color: var(--secondary);
}

.hero h2 {
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 20px;
}

.hero-description {
    color: var(--muted);
    max-width: 620px;
    margin-bottom: 28px;
}

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

.btn,
.secondary-btn {
    display: inline-block;
    padding: 13px 22px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    transition: 0.3s;
}

.btn {
    background: var(--secondary);
    color: var(--white);
}

.btn:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.secondary-btn {
    border: 1px solid var(--primary);
    color: var(--primary);
}

.secondary-btn:hover {
    background: var(--primary);
    color: var(--white);
}

.hero-links {
    display: flex;
    gap: 22px;
    margin-top: 28px;
}

.hero-links a {
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
}

.hero-links a:hover {
    color: var(--secondary);
}

/* 5. PROFILE CARD */
.hero-card {
    background: var(--white);
    padding: 45px 30px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 15px 45px rgba(18, 59, 102, 0.10);
    border: 1px solid var(--border);
}

.profile-placeholder {
    width: 145px;
    height: 145px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 45px;
    font-weight: 800;
    margin: 0 auto 25px;
}

.hero-card h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

.hero-card p {
    color: var(--muted);
    font-size: 14px;
}

/* 6. GENERAL SECTIONS */
.section {
    padding: 90px 0;
}

.section-title {
    font-size: 36px;
    color: var(--dark);
    margin-bottom: 25px;
}

.section-intro {
    color: var(--muted);
    margin-bottom: 35px;
}

/* 7. ABOUT SECTION */
.about-section {
    background: var(--white);
}

.about-content {
    max-width: 850px;
}

.about-content p {
    color: var(--muted);
    margin-bottom: 18px;
}

/* 8. SKILLS SECTION */
.skills-section {
    background: var(--light);
}

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

.skill-card {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 28px;
    border-radius: 10px;
    transition: 0.3s;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(18, 59, 102, 0.08);
}

.skill-card h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

.skill-card p {
    color: var(--muted);
    font-size: 14px;
}

/* 9. PROJECT SECTION */
.projects-section {
    background: var(--white);
}

.project-card {
    max-width: 850px;
    background: var(--light);
    border: 1px solid var(--border);
    border-left: 5px solid var(--secondary);
    border-radius: 10px;
    padding: 40px;
}

.project-category {
    color: var(--secondary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.project-content h3 {
    color: var(--primary);
    font-size: 27px;
    margin-bottom: 15px;
}

.project-content > p:not(.project-category) {
    color: var(--muted);
    margin-bottom: 22px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.project-tags span {
    background: #dceafe;
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

/* 10. EDUCATION SECTION */
.education-section {
    background: var(--light);
}

.education-card {
    max-width: 700px;
    padding: 30px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.education-card h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

.education-card p {
    color: var(--muted);
}

.education-card .education-status {
    color: var(--secondary);
    font-weight: 700;
    margin-top: 10px;
}

/* 11. CONTACT SECTION */
.contact-section {
    background: var(--primary);
    color: var(--white);
    text-align: center;
}

.contact-section .section-title {
    color: var(--white);
}

.contact-section .section-label {
    color: #bfdbfe;
}

.contact-description {
    max-width: 650px;
    margin: 0 auto 30px;
    color: #dbeafe;
}

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

.contact-links a {
    display: inline-block;
    background: var(--white);
    color: var(--primary);
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 700;
    transition: 0.3s;
}

.contact-links a:hover {
    background: #dbeafe;
    transform: translateY(-3px);
}

/* 12. FOOTER */
.footer {
    background: var(--dark);
    color: #cbd5e1;
    text-align: center;
    padding: 28px 0;
    font-size: 13px;
}

.footer p + p {
    margin-top: 7px;
}

/* 13. TABLET RESPONSIVENESS */
@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .hero-card {
        max-width: 450px;
        margin: auto;
        width: 100%;
    }

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

/* 14. MOBILE RESPONSIVENESS */
@media (max-width: 650px) {
    .navbar {
        flex-wrap: wrap;
        justify-content: center;
        padding: 15px 0;
    }

    .nav-links {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px 18px;
    }

    .nav-links a {
        font-size: 12px;
    }

    .nav-button {
        font-size: 12px;
    }

    .hero {
        padding: 75px 0;
    }

    .hero h2 {
        font-size: 19px;
    }

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

    .section {
        padding: 65px 0;
    }

    .section-title {
        font-size: 29px;
    }

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

    .project-card {
        padding: 25px;
    }

    .project-content h3 {
        font-size: 23px;
    }
}


/* =================================
   MOBILE NAVIGATION MENU
================================= */

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

/* Mobile menu layout */
@media (max-width: 650px) {

    .navbar {
        position: relative;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 18px;
        padding: 20px 0;
        order: 4;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-button {
        order: 2;
    }

}


/* MOBILE HEADER ALIGNMENT FIX */
@media (max-width: 650px) {

    .nav-button {
        order: 2;
    }

    .menu-toggle {
        order: 3;
    }

    .nav-links {
        order: 4;
    }

}



/* =================================
   PORTFOLIO ENTRANCE ANIMATIONS
================================= */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero entrance */
.hero-text {
    animation: fadeInUp 0.8s ease both;
}

.hero-card {
    animation: fadeInUp 1s ease both;
}

/* Respect visitors who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}


/* =================================
   HOSPITAL PROJECT SCREENSHOT GALLERY
================================= */

.project-gallery {
    margin-top: 65px;
}

.project-gallery > h3 {
    color: var(--primary);
    font-size: 26px;
    margin-bottom: 8px;
}

.gallery-description {
    color: var(--muted);
    margin-bottom: 30px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.gallery-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 18px rgba(18, 59, 102, 0.06);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    background: #edf1f7;
}

.gallery-item h4 {
    color: var(--primary);
    padding: 15px;
    font-size: 15px;
}

/* Mobile gallery */
@media (max-width: 650px) {

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

    .gallery-item img {
        height: 220px;
    }

}

/* IMAGE LIGHTBOX */

.image-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(8, 15, 30, 0.94);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 30px;
}

.image-lightbox.active {
    display: flex;
}

.image-lightbox img {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}

.image-lightbox p {
    color: white;
    margin-top: 15px;
    font-size: 16px;
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: transparent;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

@media (max-width: 650px) {
    .image-lightbox {
        padding: 15px;
    }

    .image-lightbox img {
        max-width: 100%;
        max-height: 75vh;
    }

    .lightbox-close {
        top: 10px;
        right: 18px;
    }
}
