@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,opsz,wght@0,18..144,300..900;1,18..144,300..900&display=swap');

:root {
    --base-color: #ffffff;
    --text-color: hsl(0, 0%, 0%);
    --primary-color: #ffc06e;
    --secondary-color: #8D8DFF;
    --color-1: #F9F6F3;
    --color-2: #F3F7F9;
    --color-3: #F6F3F9;
}

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

html {
    font-family: Poppins, 'Segoe UI', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
}

body {
    padding: 1em;
    background-color: var(--base-color);
}

h1, h2, h3 {
    font-family: Merriweather, Poppins, 'Segoe UI';
}

nav {
    margin: 1em auto 3em auto;
    width: min(1000px, 100%);
    margin-bottom: 20px;
}

nav ul {
    display: flex;
    align-items: center;
    list-style-type: none;
    gap: 3em;
}

nav > ul > li:first-child {
    margin-right: auto;
    font-weight: bold;
}

nav a {
    text-decoration:none;
    color: var(--text-color);
    font-family: Merriweather, Poppins;
}

nav a:hover {
    text-decoration: underline;
}

img:not(.footer_icon){
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    position: relative;
    z-index: 1002; 
}

.mobile-nav-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background-color: var(--base-color);
    z-index: 1;
}

.hamburger {
    display: block;
    position: relative;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.mobile-menu-toggle.active .hamburger span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active .hamburger span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--base-color);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    padding: 80px 30px 30px;
}

.mobile-nav-overlay.active {
    right: 0;
}

.mobile-nav-overlay ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-nav-overlay li {
    margin: 0;
    width: 100%;
}

.mobile-nav-overlay a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 16px;
    display: block;
    padding: 12px 24px;
    border: 2px solid black;
    border-radius: 25px;
    background-color: white;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100%;
}

.mobile-nav-overlay a:hover {
    background-color: black;
    color: white;
    transform: translateX(-5px);
}

.mobile-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-backdrop.active {
    display: block;
    opacity: 1;
}

.desktop-nav-items {
    display: flex;
    align-items: center;
    gap: 3em;
}

body.menu-open {
    overflow: hidden;
}

header, section {
    margin: 2em auto;
    width: min(75em, 100%);
    padding: min(2em, 15%);
    border-radius: 1em;
}

.flex-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 3em;
}

header img {
    max-width: 100%;
    height: auto;
    border-radius: 1em;
    object-fit: cover;
    object-position: bottom;
}

.text-container {
    flex: 0 1 34em;
}

h1 {
    font-size: 2.5rem;
}

.text-container p{
    margin: .75em 0 1em 0;
    font-size: 1.25rem;
}

.cta-button {
    display: inline-block;
    text-decoration: none;
    color: white;
    background-color: var(--primary-color);
    padding: .75em 1.25em;
    border-radius: .5em;
    font-weight: 600;
}

.pill-button {
    padding: 12px 24px;
    border: 2px solid black;
    border-radius: 25px;
    border-color: black;
    background-color: white;
    color: black;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: Merriweather, Poppins;
}

.pill-button:hover {
    background-color: black;
    color: white;
    transform: translateY(-2px);
}

.circle-image {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
}

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

section {
    padding: 3em min(2em, 15%);
    background-color: var(--color-2);
    text-align: center;
}

section#project {
    padding: 3em min(2em, 15%);
    background-color: var(--color-2);
    text-align: left !important; 
}

section#about-me {
    padding: 3em min(2em, 15%);
    background-color: var(--color-2);
    text-align: left !important;
}

h2 {
    font-size: 2rem;
}

section p {
    margin-top: 1em;
    font-size: 1.25rem;
}

.right_bullets {
    list-style: none;
    padding-left: 20px;
    font-size: 1.1rem;
    max-width: 100%;
    box-sizing: border-box;
}

.right_bullets li {
    position: relative;
    padding-left: 25px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    margin-bottom: 8px;
}

.right_bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px; 
    height: 16px; 
    background-image: url('images/angle_right.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 20px;
    padding-top: 20px;
}

.image-item {
    position: relative;
    aspect-ratio: 1.3;
    overflow: hidden;
    border-radius: 12px;
    text-decoration: none;
    display: block;
    color: inherit;
}

.image-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 16px 12px 12px;
    font-size: 14px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .image-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(6, 1fr);
    }
    .right_bullets {
        padding-left: 10px; 
        font-size: 1rem; 
    }
    
    .right_bullets li {
        padding-left: 20px; 
    }
    
    .right_bullets li::before {
        width: 14px; 
        height: 14px;
    }
    
    details ul {
        padding-left: 15px;
        padding-right: 15px;
    }

    .flex-container img {
        max-width: 150px;
        height: auto;
    }

    .mobile-menu-toggle {
        position: fixed !important;
        right: 20px !important;
        top: 25px !important;
    }
}

@media (max-width: 480px) {
    .image-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(12, 1fr);
    }
}

.indented-list {
    margin-left: 20px;
    padding-left: 20px;
}

.indented-list li {
    margin-bottom: 5px;
}

details {
    margin-top: 1em;
    background-color: var(--base-color);
    border-radius: 1em;
}

details summary {
    padding: 1em;
    font-size: 1.7rem;
    font-family: Merriweather, Poppins
}

details p {
    padding: 0 2em 2em 2em;
}

details ul {
    max-width: 100%;
    box-sizing: border-box;
}

details ul li {
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: left;
}

section {
    overflow-x: hidden;
}

section img {
    max-width: 100%;
    height: auto;
}

.right_bullets a,
details a {
    word-break: break-all;
}

footer {
    padding-bottom: 1.5em;
    text-align: center;
}

footer a {
    margin: 0 1em;
    text-decoration: none;
    color: var(--text-color);
}

footer a:hover{
    text-decoration: underline;
}

.footer_link {
    display: inline-block;
    text-decoration: none;
}

.footer_icon {
    width: 20px;
    height: 20px;
    margin-bottom: 4px;
    vertical-align: middle;
    border-radius: 0%;
    display: inline-block;
    max-width: none;
}

@media(max-width: 768px) {
    .desktop-nav-items {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .mobile-nav-overlay {
        display: block;
    }
    
    nav ul {
        justify-content: space-between;
    }
}

.resume-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    text-align: center;
}
.resume-frame {
    width: 100%;
    height: 700px;
    border: 1px solid #ddd;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

.btn:hover .btn-slide-show-text1 {
  margin-left: 65px;
} 
 
.zoom-out {
  display: inline-block;
  width: 180px;
  height: 50px;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  text-transform: uppercase;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 20px;
  text-align: center;
  transition: 0.5s;
  border: none;
} 
 
.zoom-out:hover {
  transform: scale(1.1);
} 

@media(max-width: 640px) {
    header {
        margin-top: 0;
    }

    .cta-button {
        margin-top: .5em;
        width: 100%;
    }

    .grid-container {
        display: flex;
        flex-direction: column;
    }

    .text-container p {
        font-size: 1rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    header img {
        width: 100%;
        max-width: 300px; 
        height: auto;
    }

    .right_bullets {
        padding-left: 5px;
        font-size: 0.95rem;
    }
    
    .right_bullets li {
        padding-left: 18px;
        line-height: 1.6;
    }
    
    section ul li {
        word-break: break-word;
        hyphens: auto;
    }

    .flex-container img:not(header img) {
        max-width: 120px;
    }
}

.contact-header {
    text-align: center;
    margin-bottom: 2em;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-form {
    background-color: var(--color-2);
    padding: 2rem;
    border-radius: 1em;
}

.contact-info {
    background-color: var(--color-2);
    padding: 2rem;
    border-radius: 1em;
}

/* Form styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 0.5em;
    background-color: var(--base-color);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.submit-btn {
    background-color: var(--primary-color);
    padding: 0.75em 1.25em;
    border: none;
    border-radius: 0.5em;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: transform 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
}

.contact-info .contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: var(--base-color);
    border-radius: 1em;
}

.contact-item:hover {
    transform: translateY(-2px);
}

.contact-item-icon {
    width: 24px;
    height: 24px;
    margin-right: 1rem;
}

@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s;
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 1em;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 1001;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--primary-color);
    text-decoration: none;
}

.lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    font-size: 1.2rem;
    font-family: Merriweather, Poppins;
}

.sketch-item {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.sketch-item:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.image-pair {
    display: flex;
    gap: 2em;
    justify-content: center;
    margin: 2em 0;
    flex-wrap: wrap;
}

.image-with-caption {
    flex: 1;
    max-width: 400px;
    text-align: center;
}

.image-with-caption img {
    width: 100%;
    height: auto;
    border-radius: 0.5em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.image-caption {
    margin-top: 0.5em;
    font-style: italic;
    color: #666;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .image-pair {
        flex-direction: column;
        align-items: center;
    }
}