/* Reset default margin and padding */
html {
    font-size: 16px; /* base for rem calculations — keeps sizing predictable when zooming */
}
html, body, div, h1, h2, p, ul, li {
    margin: 0;
    padding: 0;
}

/* Set a background color for the body */
body {
    font-family: Verdana, sans-serif;
    background-color: #f4f4f4; /* Slightly lighter than your original black to prevent overwhelming contrast */
}

/* Accessibility helpers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip link - hidden until focused */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 1001;
}
.skip-link:focus {
    left: 10px;
    top: 10px;
    width: auto;
    height: auto;
    padding: 8px 12px;
    background: #ffffff;
    color: #0F4C5C;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}



/*/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////*/
/*/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////*/
/*/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////*/




/* Style the navigation bar */
.navbar {
    position: fixed; /* Fixed navbar - scrolls with the page */
    top: 0;
    width: 100%; /* Full width */
    background-color: #0F4C5C;
    color: #ffffff;
    padding: 15px 20px;
    z-index: 1000; /* Ensure it stays on top of other content */
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Focus styles for better visibility when navigating with a keyboard */
.navbar a:focus, button:focus {
    outline: 2px solid #00aeff; /* A clear and visible color for focus indication */
    outline-offset: 5px; /* Optional: Adjusts the offset of the outline from the element's border box */
}



.nav-links a {
    color: #ffffff;
    margin: 0 1.25rem;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: bold;
    letter-spacing: 0.8px;
    font-size: 0.875rem; /* 14px */
}

.nav-links a:hover, .nav-links a:focus {
    color: #5a9ab3; /*  color on hover/focus */
}

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




/*/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////*/
/*/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////*/
/*/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////*/




/* Style the welcome section */
.welcome-section {
    background-image: url('images/IMG_3831.jpg');
    background-size: cover;
        background-position: center center; /* center horizontally, show bottom of image */
    text-align: center;
    color: rgb(255, 255, 255);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 75vh;
        padding: 6rem 1.25rem; /* scales with font-size when zooming */
    transition: height 0.5s ease; /* Smooth transition for resizing */
}
/* Media query for larger screens */
@media (min-width: 768px) {
    .welcome-section {
        min-height: 90vh; /* Adjust this value as needed */
    }
}

/* Collapsed state: fully hidden, spacer holds layout */
.welcome-section.collapsed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 0;
    min-height: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    z-index: 900;
    box-sizing: border-box;
}

.hero-collapsed .about-section {
    margin-top: calc(-95vh + 47px) !important;
    padding-top: 0 !important;
}

.welcome-section.collapsed .welcome-text p,
.welcome-section.collapsed .generated-text {
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    pointer-events: none;
}
.welcome-section.collapsed .welcome-text {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0;
    padding: 0;
}
.welcome-section.collapsed .welcome-text h1 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    margin: 0 !important;
    text-align: center !important;
}
.welcome-text h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem); /* responsive from ~40px to 72px */
    font-weight: 700;
    letter-spacing: 0.12em;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    line-height: 1.05;
    word-break: break-word;
}

.welcome-text p {
    font-size: 1.25rem; /* ~20px */
    margin: 0.9rem 0;
    font-weight: 500;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
}



/*/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////*/
/*/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////*/
/*/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////*/



.about-section {
    padding: 20px 20px !important;
    background-color: #f4f4f4;
    margin: 0 0 20px !important;   /* was 20px 0 — removes the top gap */
    scroll-margin-top: 60px;        /* nav-link jumps land below the fixed navbar */
}

.about-section h2 {
    margin: 0 0 2.5rem;
    font-size: 2.25rem; /* 36px */
    font-weight: 700;
    color: #1B4332;
    letter-spacing: 0.02em;
}
.about-section p {
    margin: 0 0 1.5rem;
    line-height: 1.8;
    font-size: 1rem; /* 16px */
    color: #333;
}
.about-section p:last-child {
    margin-bottom: 0; /* avoid extra space at section end */
    
}



/*/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////*/
/*/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////*/
/*/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////*/


/* Lightbox overlay */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}

.lightbox.open {
    display: flex;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.75rem;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    user-select: none;
}

.diploma-image-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}
.diploma-image {
    width: 100%;
    max-width: 22rem;      /* scales with zoom; ~352px at default */
    height: auto;
    border: 2px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    cursor: pointer;        /* signals it's clickable (for issue 2) */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.diploma-image:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}
.diploma-caption {
    margin-top: 1rem;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    color: #1B4332;
    letter-spacing: 0.02em;
}



/*/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////*/
/*/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////*/
/*/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////*/



.copyright {
    font-size: 12px;
    text-align: center;
    color: #777;
    padding: 30px 20px;
    letter-spacing: 0.3px;
}



/*/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////*/
/*/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////*/
/*/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////*/



/* Add consistent top margin to all main content sections */
.projects-section,
.cv-section,
.contact-section {
    padding: 40px 20px !important;
    background-color: #f4f4f4;
    margin: 20px 0 !important;
}

.projects-section h2,
.cv-section h2,
.contact-section h2 {
    margin: 0 0 40px;
    font-size: 36px;
    font-weight: bold;
    color: #1B4332;
    letter-spacing: 0.5px;
}

.projects-section p,
.cv-section p,
.contact-section p {
    margin: 0 0 24px;
    line-height: 1.8;
    font-size: 16px;
    color: #333;
}


/*/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////*/
/*/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////*/
/*/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////*/




/* Contact buttons styling */
.contact-buttons {
    display: flex;
    gap: 4.5rem; /* ~72px */
    justify-content: center;
    margin-top: 4rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 8rem; /* ~128px */
    height: 8rem;
    border-radius: 50%;
    font-size: 3.75rem; /* ~60px */
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-decoration: none;
}

.btn:hover {
    transform: scale(1.1);
}

.btn:focus {
    outline: 3px solid #00aeff;
    outline-offset: 6px;
    box-shadow: 0 0 0 4px rgba(0,174,255,0.12);
}

.btn.linkedin {
    background-color: #0077b5;
    color: white;
}

.btn.linkedin:hover {
    background-color: #005885;
}

.btn.email {
    background-color: #ea4335;
    color: white;
}

.btn.email:hover {
    background-color: #c53321;
}

.btn.email.copied {
    background-color: #34a853;
}

.btn.github {
    background-color: #24292f;
    color: white;
}

.btn.github:hover {
    background-color: #17191d;
}

/*/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////*/
/*/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////*/
/*/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////*/


