html {
    scroll-behavior: smooth;
}

:root {
    --text-color: #efeee8;
    --background: #2a2825; 
    --accent-light: #c8d4c1;
    --accent-gray: #929292;
    --accent-green: #97ab5d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background);
    overflow-x: hidden;
}

/* NAVIGATION BAR STYLES */
.navbar {
    position: fixed;
    top: -60px; /* Hide muna */
    left: 0;
    width: 100%;
    background-color: rgba(42, 40, 37, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 3rem;
    z-index: 1000;
    transition: top 0.3s ease;
    border-bottom: 2px solid var(--accent-green);
}

.navbar:hover,
.navbar.visible {
    top: 0; /* Slides down when hovered */
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.navbar .btn-primary, 
.navbar .btn-secondary, 
.navbar .btn-tertiary, 
.navbar .btn-cv, 
.navbar .btn-fourthary {
    font-size: 0.85rem;
    padding: 0.6rem 1rem;
    width: auto;
    text-align: center;
    background-color: var(--background);
    color: var(--text-color);
    border: 2.5px solid var(--text-color);
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.navbar .btn-primary:hover, 
.navbar .btn-secondary:hover, 
.navbar .btn-tertiary:hover, 
.navbar .btn-cv:hover, 
.navbar .btn-fourthary:hover {
    background-color: var(--accent-green);
    border-color: var(--accent-green);
}

.nav-clock {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

#greeting {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-green);
}

#live-clock {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    font-family: 'Courier New', monospace;
}

.hero-section {
    display: flex;
    height: 100vh;
    width: 100%;
    position: relative;
    padding: 4rem 6rem; 
    align-items: center;
    overflow: hidden;
}

.hero-section .text {
    display: flex;
    flex-direction: column;
    z-index: 2;
    max-width: 800px;
    padding-bottom: 20rem;
    
}

.hero-section h1 {
    font-size: 8.5rem;
    font-weight: 900;
    line-height: 0.85; 
    text-transform: none;
    letter-spacing: -3px;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.hero-section .button-selections{
    display: flex;
    gap: 2rem;
    padding: 1rem 1rem;
}

.hero-section .button-selections .btn-primary, .btn-secondary, .btn-tertiary, .btn-cv, .btn-fourthary {
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    width: auto;
    text-align: center;
    background-color: var(--background);
    color: var(--text-color);
    border: 3.5px solid var(--text-color);
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.hero-section .headshot {
    position: absolute;
    right: 0;
    bottom: 0;
    height: 100%;
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    padding-right: 2rem;
}

.hero-section .headshot img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.hero-section .headshot h4 {
    position: absolute;
    top: 22.5%;
    right: 0;
    left: 10%;
    transform: translateY(-50%);
    width: auto;
    font-size: 3.5rem;
    font-weight: 600;
    line-height: 1.1;
    max-width: 350px;
    color: var(--text-color);
    text-align: left;
    margin: 0;
    padding-right: 2rem;
}

.folder-shapes {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    overflow: hidden;
    z-index: 1;
}

.oval {
    position: absolute;
    border-radius: 100px;
    bottom: 0;
}

/* Hero section oblong shapes */
.hero-section .oval-1 {
    width: 600px;
    height: 180px;
    background-color: #c8d5b9;
    left: -5%;
    bottom: -90px;
}

.hero-section .oval-2 {
    width: 600px;
    height: 170px;
    background-color: #8a8a8a;
    left: calc(-5% + 180px);
    bottom: -80px;
}

.hero-section .oval-3 {
    width: 600px;
    height: 170px;
    background-color: #a8b896;
    left: calc(-5% + 380px);
    bottom: -85px;
}

/*SECTION 2 STYLES*/
.about-me-section {
    background-color: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.about-me .about-me-img {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-top: 200px;
}

.about-me-img img {
    width: 70%;
    height: auto;
    margin-top: 90px;

}

.about-me-section .text {
    flex: 1;
    color: #302e2b;
}

.about-me-section h1{
    font-size: 4.5rem;
    margin-bottom: 1rem;
    text-align: right;
    padding-right: 20px;

}

.about-me-section p{
    font-size: 2rem;
    text-align: right;
    padding-right: 40px;
}

.about-me-img i {
    position: absolute;
    font-size: 10rem;
    color: #2a2825;
    z-index: 10;
}

.fa-python { top: 30%; left: 40%; }
.fa-html5  { top: 15%; left: 28%; }
.fa-database { bottom: 29%; left: 42%; }
.fa-hexagon-nodes { bottom: 8%; left: 35%; }
.fa-java { top: 13%; left: 2%; }

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.about-me-img i.spinning {
    animation: spin 0.6s ease-in-out;
}

.about-me-section .oval-1{
    width: 600px;
    height: 180px;
    background-color: #99aa66;
    right: -5%;
    bottom: -90px;
}

.about-me-section .oval-2{
    width: 600px;
    height: 165px;
    background-color: #9b9b9b;
    right: calc(2% + 180px);
    bottom: -80px;
}

.about-me-section .oval-3{
    width: 600px;
    height: 170px;
    background-color: #383838;
    right: calc(2% + 380px);
    bottom: -85px;
}

/* SECTION 3 STYLES */

.work-section{
    background-color: var(--accent-green);
    padding-bottom: 150px;
    position: relative;
    }

.work-section h1{
    font-size: 5rem;
    color: var(--text-color);
    padding: 2rem 5rem;
}

.work-section .four-projects-grid{
    display:flex;
    justify-content: center;
    padding: 2rem 3.5rem;
    gap: 2rem;
}

.card-container {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; 
    border-radius: 20%;
}

.work-section .four-projects-grid .project-card{
    flex: 1;
    max-width: 800px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.work-section h2{
    font-size: 1.4rem;
    margin-top: 1rem;
    color: var(--text-color);
    text-align: center;
    max-width: 220px;
}

.work-section .square-card-background{
    background-color: var(--background);
    border-radius: 20%;
    border-color: var(--accent-light);
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.work-section .project-card img{
    width: 280px;
    height: 280px;
    border-radius:20%;
    object-fit: contain;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(42, 40, 37, 0.9); 
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0; 
    z-index: 3; 
    transition: opacity 0.3s ease;
    text-align: center;
}

.overlay p {
    color: var(--text-color);
    font-size: 0.9rem !important; 
    line-height: 1.4;
}


.project-card:hover .overlay {
    opacity: 1;
}

.project-card:hover img {
    opacity: 0.2; 
}

/* work section oblong shapes */
.work-section .oval-1 {
    width: 600px;
    height: 180px;
    background-color: #2a2825;
    left: -5%;
    bottom: -90px;
}

.work-section .oval-2 {
    width: 600px;
    height: 170px;
    background-color: #8a8a8a;
    left: calc(-5% + 180px);
    bottom: -80px;
}

.work-section .oval-3 {
    width: 600px;
    height: 170px;
    background-color: #a8b896;
    left: calc(-5% + 380px);
    bottom: -85px;
}

/* SECTION 4 STYLES */
.experience-and-educ-section{
    color: var(--text-color);
    flex-wrap: wrap;
    background-color: var(--background);
    position: relative;
    overflow: hidden;
    padding-bottom: 100px;
}

.experience-and-educ-section .text{
    gap: 1rem;
    text-align: left;
}

.experience-and-educ-section .text h1{
    font-size:3.5rem;
    margin: 2rem 2rem;
}
.timeline{
    margin: 2rem 3.5rem;
}

.timeline-item{
    margin-bottom: 1.5rem;
    text-wrap: wrap;
}

.experience-and-educ-section .oval-1{
    width: 600px;
    height: 180px;
    background-color: #99aa66;
    right: -5%;
    bottom: -90px;
}

.experience-and-educ-section .oval-2{
    width: 600px;
    height: 165px;
    background-color: #9b9b9b;
    right: calc(2% + 180px);
    bottom: -80px;
}

.experience-and-educ-section .oval-3{
    width: 600px;
    height: 170px;
    background-color: #a8b896;
    right: calc(2% + 380px);
    bottom: -85px;
}

/* SECTION 5 STYLES */

.references-section{
    background-color: var(--accent-green);
    padding: 1rem 2rem;
    position: relative;
    display: flex;
}

.references-section .text{
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    width: 100%;
}

.references-section .text h1{
    font-size: 4rem;
    margin-bottom: 1rem;
}

.references-section .contacts-container{
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: center;
}

.references-section .text contact-item{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 1.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.references-section .text contact-item i{
    font-size: 2.5rem;
    color: var(--text-color);
}

.github-contact{
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
}

.contact-item h3{
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
}

/*email me section styles*/
.email-me.html{
    background-color: #302e2b;
}

.container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap: 4rem;
    margin-top: 1rem;
}

.folder-left-section{
    position: relative;
    flex: 1;
    width: 800px;
    height: 600px;
    background-color: var(--accent-green);
    border-radius: 8%;
    padding: 3.5rem;
    margin-left: 2rem;
    align-items: start;
}

.email-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: start;

}

.email-form h1 {
    font-size: 3rem;
    color: var(--background);
}

.email-form .contact-inputs {
    width: 700px;
    padding: 0.75rem;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    color: var(--text-color);
    font-weight: 500;
    background-color: #3a3734;
}

.email-form .btn-submit{
    font-size: 1.2rem;
    padding: 0.75rem 1rem;
    width: 200px;
    text-align: center;
    background-color: var(--background);
    color: var(--text-color);
    border: 3px solid var(--text-color);
    border-radius: 15px;
}

.img-right-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.img-right-section img {
    width: 80%;
    height: auto;
}


#dvd-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    cursor: pointer;
}

#dvd-overlay.active {
    display: block;
}

#dvd-clock {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    user-select: none;
}

#dvd-greeting {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

#dvd-time {
    font-family: 'Courier New', monospace;
    font-size: 4.5rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
}

#dvd-hint {
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    opacity: 0.35;
    margin-top: 0.5rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

@keyframes colorFlash {
    0%   { opacity: 0.3; }
    100% { opacity: 1; }
}

.dvd-flash {
    animation: colorFlash 0.15s ease-out;
}
