/* ========================= */
/*          VARIABLES        */
/* ========================= */

:root {
    --charcoal: #0e0906;
    --forest: #29524a;
    --sage: #94a187;
    --stone: #8c8c88;
    --midnight: #102542;
    --evergreen: #051f20;
    --shadow-pine: #0b2b26;
    --forest-teal: #163832;
    --twilight-moss: #235347;
    --sagebrush: #8eb69b;
    --misty-meadow: #daf1de;
    --off-white: #faf3e0;
}

/* ========================= */
/*        GLOBAL STYLES      */
/* ========================= */

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

body {
    font-family: 'Poppins', sans-serif;
    background: radial-gradient(circle, var(--shadow-pine), var(--evergreen));
    color: var(--off-white);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h2 {
  font-family: 'Poppins', sans-serif;
  color: var(--off-white);
  font-size: 30pt;
  text-align: center;
}

h3 {
  font-family: 'Poppins', sans-serif;
  color: var(--off-white);
  font-size: 25pt;
}

p { font-family: 'Poppins', sans-serif;
  color: var(--off-white);
  font-size: 16pt;
  text-align: center; 
}
ul, li{ font-family: 'Poppins', sans-serif;
  color: var(--off-white);
  font-size: 16pt;
  text-align: left; 
}


/* ========================= */
/*        NAVIGATION         */
/* ========================= */
/* Mobile menu inspired by:
   "Only CSS is needed to create this mobile navmenu" by Narges Sadeghi
   https://medium.com/@nargessmi87/only-css-is-needed-to-create-this-mobile-navmenu-b4f49c834c06 */
header {
    padding-top: 30px;
}

.nav-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background: linear-gradient(to right, var(--evergreen), var(--shadow-pine));
    padding: 25px 30px;
    position: relative;
    height: 80px;
}

.menu-toggler {
    position: absolute;
    top: 40px;
    right: 15px;
    width: 40px;
    height: 40px;
    opacity: 0;
    cursor: pointer;
    z-index: 3;
}

.show-menu {
    width: 32px;
    height: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 40px;
    z-index: 2;
}

.show-menu span,
.show-menu::before,
.show-menu::after {
    content: "";
    width: 100%;
    height: 4px;
    background: var(--off-white);
    border-radius: 3px;
    transition: 0.3s;
    position: absolute;
}

.show-menu::before {
    top: 0px;
}

.show-menu::after {
    bottom: 0px;
}

.menu-toggler:checked + .show-menu span {
    background: transparent;
}

.menu-toggler:checked + .show-menu::before {
    transform: rotate(45deg);
    top: 9px;
}

.menu-toggler:checked + .show-menu::after {
    transform: rotate(-45deg);
    bottom: 9px;
}

.nav {
    display: none; /* Hidden by default on mobile */
    position: absolute;
    top: 90px; /* Positions it below the nav-bar */
    right: 0px;
    background: var(--shadow-pine);
    width: 100%;
    text-align: right;
    padding: 20px 0px;
    flex-direction: column;
    z-index: 1;
}

.menu-toggler:checked ~ .nav {
    display: flex; /* Shown when the menu toggler is checked */
}

.nav__menu {
    list-style: none;
    padding: 0px 30px 0px 0px;
    margin: 0px;
    display: flex;
    flex-direction: column; /* Stacked vertically on mobile */
    align-items: flex-end;
}

.nav__item {
    margin: 10px 0px;
}

.nav__link {
    text-decoration: none;
    color: var(--off-white);
    font-weight: 600;
    text-transform: lowercase;
    padding: 10px 15px;
    display: block;
    transition: background 0.3s ease-in-out, color 0.3s ease-in-out;
}

.nav__link:hover {
    background: var(--sagebrush);
    color: var(--charcoal);
}

.nav__link.active {
    background: var(--sagebrush);
    color: var(--charcoal);
    font-weight: bold;
    border-radius: 5px;
    padding: 10px 15px;
}

/* Media query for larger screens */
@media screen and (min-width: 768px) {
    .show-menu {
        display: none; /* Hide mobile toggle */
    }
    .menu-toggler {
        display: none; /* Hide mobile toggler */
    }
    .nav {
        position: static; /* Reset positioning */
        background: none;
        width: auto;
        padding: 0px;
        flex-direction: row; /* Horizontal layout */
        justify-content: flex-end;
        display: flex !important; /* Ensure it's always visible on desktop */
    }
    .nav__menu {
        display: flex;
        gap: 20px;
        flex-direction: row; /* Horizontal layout */
        justify-content: flex-end;
    }
    .nav__item {
        margin: 0px;
    }
}

/* ========================= */
/*       HERO SECTION        */
/* ========================= */

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: radial-gradient(circle, rgba(10, 25, 20, 0.9) 0%, rgba(5, 15, 10, 1) 100%);
    color: var(--off-white);
    padding: 40px;
    min-height: 350px;
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    padding-right: 5%;
}

.hero-image img {
    width: 100%; 
    max-width: 600px; 
    height: auto; 
    border-radius: 15px;
}

.hero-content h1 {
    font-size: 70pt;
    font-weight: 600;
}

.hero-content p {
    font-size: 35pt;
    font-weight: 300;
}
/* Initially hidden text */
#fade-in-text {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}


/* Hero Buttons */
.hero-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    width: 60%;
    margin-top: 15px;
}

.hero-buttons a.btn {
    text-decoration: none;
}

/* Button styles */
.hero-buttons .btn {
    font-size: 14pt;
    padding: 15px 30px;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}

.hero-buttons .btn.show {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Image */
.hero-image {
    flex: 0 0 auto;
    margin: 4px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.hero-image img {
    height: 600px;
    width: auto;
    display: block;
    border-radius: 20px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.5);
}

/* ========================= */
/*     TEXT ANIMATIONS       */
/* ========================= */

/* Initially hidden text */
#fade-in-text {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}

/* ========================= */
/*   Animations  */
/* ========================= */

  @keyframes dramatic-drop-bounce {
      0% { transform: translateY(-200px) scale(0.8); opacity: 0; }  /* Start way above navbar */
      15% { transform: translateY(20px) scale(1.4); opacity: 1; }  /* Falls past target position */
      35% { transform: translateY(-35px) scale(1.1); }  /* BIG bounce up */
      50% { transform: translateY(15px) scale(1.2); }  /* Falls down again */
      65% { transform: translateY(-20px) scale(1.05); }  /* Medium bounce up */
      80% { transform: translateY(10px) scale(1.1); }  /* Tiny bounce */
      90% { transform: translateY(-5px) scale(1); }  /* Final little bounce */
      100% { transform: translateY(0) scale(1); }  /* Settles in place */
  }

  /* Apply the animation to the period */
  #bouncing-period.bounce {
      display: inline-block;
      animation: dramatic-drop-bounce 1.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  }
/* ========================= */
/*     CONTENT SECTION       */
/* ========================= */

.full-width-image img {
    width: 90%;
    max-width: 1200px;
    max-height: 400px;
    border-radius: 15px;
    filter: brightness(90%) contrast(95%);
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease-in-out;
    display: block;
    margin: 20px auto;
  }

.full-width-image img:hover {
    filter: brightness(100%) contrast(100%);
    transform: scale(1.02);
  }
.about-me {
    width: 90%; 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 40px 0;
    box-sizing: border-box;
    text-align: left;
    display: block; 
}

.about-me * {
    flex: none !important;
    align-self: stretch !important;
}

.two-columns {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.two-columns .text-content {
    flex: 1;
    max-width: 50%;
}

.two-columns .image-content {
    flex: 1;
    text-align: center;
}

.two-columns .image-content img {
    width: 100%; 
    max-width: 400px; 
    height: auto; 
    border-radius: 15px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.5); 
    display: block;
    margin: 0 auto; 
    filter: brightness(90%) contrast(95%); 
    transition: all 0.3s ease-in-out; 
}

.two-columns .image-content img:hover {
    filter: brightness(100%) contrast(100%);
    transform: scale(1.02); 
}


.content {
    display: flex;
    justify-content: center; /* Centers content horizontally */
    align-items: center; /* Aligns items vertically */
    gap: 40px; /* Adjust space between image and text */
    max-width: 90%; /* Keeps content from being too wide */
    margin: 0 auto; /* Centers the section */
    padding: 20px;
    flex-wrap: wrap; /* Allows items to stack on smaller screens */
}

.text-content {
    flex: 1;
    text-align: left;
    font-size: 1.25rem; 
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 600px; 
}


.content img {
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    filter: brightness(90%) contrast(95%);
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease-in-out;
}

.content img:hover {
    filter: brightness(100%) contrast(100%);
    transform: scale(1.02);
}


.content-btn {
    margin-top: 20px;
    display: flex;
    justify-content: center;
  	gap: 10px
}

/* ========================= */
/*        BUTTON STYLES      */
/* ========================= */

.btn {
    background: var(--sage);
    color: var(--evergreen);
    padding: 12px 24px;
  	text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 14pt;
    font-weight: 600;
    border-radius: 5px;
    transition: background 0.3s ease-in-out, transform 0.2s ease, box-shadow 0.3s ease-in-out, color 0.3s ease-in-out;
}

.btn:hover {
    background: var(--midnight);
    color: var(--off-white);
    transform: scale(1.05);
  	text-decoration: none;
    box-shadow: 0px 6px 15px var(--twilight-moss);
}

.btn a.btn {
    text-decoration: none;
}

/* ========================= */
/*         FOOTER            */
/* ========================= */

footer {
    text-align: center;
    padding: 20px;
    background: var(--midnight);
    color: var(--off-white);
    margin-top: auto;
    font-size: 12pt;
}

/* ========================= */
/*     MOBILE ADJUSTMENTS    */
/* ========================= */

@media screen and (min-width: 768px) {
    .show-menu {
        display: none;
    }
    .menu-toggler {
        display: none;
    }
    .nav {
        display: flex !important;
        position: static;
        background: none;
        width: auto;
        padding: 0;
        flex-direction: row;
        justify-content: flex-end;
    }
    .nav__menu {
        display: flex;
        gap: 20px;
        flex-direction: row;
        justify-content: flex-end;
    }
    .nav__item {
        margin: 0;
    }
}

@media screen and (max-width: 768px) {
    .two-columns {
        flex-direction: column; 
        align-items: center;
        text-align: center;
        gap: 30px;
    }

    .two-columns .text-content,
    .two-columns .image-content {
        max-width: 100%;
    }

    .two-columns .text-content h3 {
        font-size: 1.7rem; 
        font-weight: bold;
        margin-bottom: 15px;
        text-align: center;
    }

    .two-columns .text-content ul {
        text-align: left !important;
        padding-left: 25px;
        font-size: 1.4rem; 
        line-height: 1.6;
    }

    .two-columns .text-content li {
        font-size: 1.4rem;
        line-height: 1.6;
        text-align: left !important;
        margin-bottom: 8px;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        align-items: center;
        padding: 30px 20px;
        min-height: auto;
    }

    .hero-content {
        align-items: center;
        text-align: center;
        padding: 0;
    }

    .hero-content h1 {
        font-size: 2.2rem;
        font-weight: bold;
        margin-bottom: 10px;
    }

    .hero-content p {
        font-size: 1.4rem;
        font-weight: 500;
        margin-bottom: 20px;
    }

    .hero-buttons {
        display: flex;
        justify-content: center;
        gap: 15px;
        flex-wrap: wrap;
        width: 100%;
    }

    .hero-buttons .btn {
        font-size: 1rem;
        padding: 12px 24px;
        background: var(--sagebrush);
        color: var(--evergreen);
        border-radius: 8px;
        font-weight: 600;
        min-width: 100px;
        text-align: center;
    }

    .hero-buttons .btn:hover {
        background: var(--midnight);
        color: var(--off-white);
    }

    .hero-image img {
        width: 100%;
        max-width: 400px;
        height: auto;
    }

    .content {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 20px;
    }

    .text-content p {
        text-align: center;
        font-size: 1.4rem; 
        line-height: 1.6;
        padding: 0 15px;
    }

    .text-content ul, 
    .text-content li {
        text-align: left !important; 
        font-size: 1.4rem;
        padding-left: 20px;
    }

    .text-content h2 {
        font-size: 1.9rem;
        font-weight: bold;
        margin-bottom: 20px;
    }

    .text-content h3 {
        font-size: 1.7rem; 
        font-weight: bold;
        margin-bottom: 10px;
        text-align: center;
    }

    .content img {
        width: 100%;
        max-width: 400px;
    }

    .content-btn {
        justify-content: center;
    }
}

/* ========================= */
/*     CERTIFICATIONS PAGE   */
/* ========================= */

/* Intro Section */
.certifications-intro {
    text-align: center;
    max-width: 800px;
    margin: 20px auto;
    font-size: 16px;
    line-height: 1.6;
    padding: 0 15px;
}

/* Certificates Grid */
.certificates-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: auto;
}

/* Certificate Item */
.certificate {
    background: var(--midnight, #102542);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    color: var(--off-white);
}

.certificate p {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.5;
}

.certificate img {
    width: 100%;
    max-height: 200px;
    object-fit: contain;
    border-radius: 5px;
    background: #ffffff;
}

/* ========================= */
/*  RESPONSIVE STYLES       */
/* ========================= */

@media screen and (max-width: 768px) {
    /* Stack certificates in one column */
    .certificates-container {
        grid-template-columns: 1fr;
        padding: 10px;
    }

    .certificate {
        padding: 15px;
    }

    .certificate p {
        font-size: 13px;
    }

    .certifications-intro {
        font-size: 14px;
        padding: 0 10px;
    }
}


/* ========================= */
/*  CONTACT FORMS STYLES     */
/* ========================= */
.contact-form {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
}

.contact-form .form-group {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.contact-form label {
    font-size: 16px;
    font-weight: 600;
    color: var(--off-white);
    margin-bottom: 5px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid var(--sagebrush);
    background: rgba(255, 255, 255, 0.2);
    color: var(--off-white);
    border-radius: 5px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--misty-meadow);
    background: rgba(255, 255, 255, 0.3);
}

.contact-form textarea {
    height: 120px;
    resize: none;
}

.contact-form .content-btn {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

/* ========================= */
/*  WRITING SAMPLE STYLES    */
/* ========================= */
/* Intro Section */
.writing-intro {
    text-align: center;
    max-width: 800px;
    margin: 20px auto;
    font-size: 16px;
    line-height: 1.6;
    padding: 0 15px;
}

.writing-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.writing {
    width: 45%; 
    text-align: center;
    padding: 20px;
    border-radius: 8px;
	background: var(--midnight, #102542);}
    color: var(--off-white);
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);


.writing iframe {
    border: none;
    width: 100%;
}

.writing p {
    margin-top: 10px;
}

.writing a {
    text-decoration: none;
    color: #8eb69b;
    font-weight: bold;
}

.writing a:hover {
    color: #6e997d; /
    text-decoration: underline; 
}

.writing a:active {
    color: #5a8068;
}

/* Responsive Design: One per row on small screens */
@media (max-width: 768px) {
    .writing {
        width: 90%; 
    }
}


/* PDF Embed */
.pdf-embed {
    width: 100%;
    height: 300px;
    border-radius: 5px;
    background: #ffffff;
}

/* Text Styling */
.writing p {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.5;
}

/* Hover Effect */
.writing:hover {
    transform: translateY(-5px);
    transition: 0.3s ease-in-out;
}


.projects-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 20px;
}

.project {
    width: 45%; 
    text-align: center;
    background-color: #faf3e0;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.project video {
    width: 100%;
    border-radius: 8px;
}

.project h2 {
    margin-top: 10px;
    font-size: 1.7em;
  	color: #163832;
}

.project p {
    font-size: 1.2em;
    color: #051f20;
}

/* Responsive Design */
@media (max-width: 768px) {
    .project {
        width: 90%; 
    }
}


/* Code Block Styling */
.code-explanation {
    max-width: 800px;
    margin: 0 auto 40px auto;
    text-align: left;
}

.code-explanation h3 {
    margin-top: 25px;
    color: var(--sage);
}

pre {
    background-color: #2d2d2d;
    border-radius: 5px;
    padding: 15px;
    overflow-x: auto;
    margin: 15px 0;
}

code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    color: #e6e6e6;
    white-space: pre;
}
/*
     FILE ARCHIVED ON 12:40:04 Jul 16, 2025 AND RETRIEVED FROM THE
     INTERNET ARCHIVE ON 17:29:21 Aug 15, 2025.
     JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE.

     ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C.
     SECTION 108(a)(3)).
*/
/*
playback timings (ms):
  captures_list: 0.635
  exclusion.robots: 0.024
  exclusion.robots.policy: 0.011
  esindex: 0.013
  cdx.remote: 16.255
  LoadShardBlock: 299.007 (3)
  PetaboxLoader3.datanode: 169.693 (5)
  PetaboxLoader3.resolve: 392.447 (2)
  load_resource: 354.427
  loaddict: 133.297
*/