/* GENERAL */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

*{
    margin: 0;
    padding: 0;
}

body{
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    cursor: url('assets/cursor_1.png') 0 0, auto;
}

html{
    scroll-behavior: smooth;
}

p{
    color: rgb(85, 85, 85);

}

/* TRANSITION */

a, 
.btn{
    transition: all 300ms ease;
}

/* DESKTOP NAV */

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

nav{
    justify-content: space-around;
    align-items: center;
    height: 17vh;
}

.nav-links{
    gap: 2rem;
    list-style: none;
    font-size: 1.5rem;
}

a{
    color: black;
    text-decoration: none;
    text-decoration-color: white;
}

a:hover{
    color: grey;
    text-decoration: underline;
    text-underline-offset: 1rem;
    text-decoration-color: rgb(181, 181, 181);
}

.logo{
    font-size: 2rem;
}

.logo:hover{
    cursor: default;
}


/* HAMBURGER MENU */

#hamburger-nav{
    display: none;
}

.hamburger-menu{
    position: relative;
    display: inline-block;
}

.hamburger-icon{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 24px;
    width: 20px;
    cursor: pointer;
}

.hamburger-icon span{
    width: 100%;
    height: 2px;
    background-color: black;
    transition: all 0.3 ease-in-out;
}

.menu-links{
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    width: fit-content;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3 ease-in-out;
}

.menu-links a {
    display: block;
    padding: 10px;
    text-align: center;
    font-size: 1.5rem;
    color: black;
    text-decoration: none;
    transition: all 0.3 ease-in-out;
}

.menu-links li{
    list-style: none;
}

.menu-links.open{
    max-height: 300px;
}

.hamburger-icon.open span:first-child{
    transform: rotate(45deg) translate(10px, 5px);
}
.hamburger-icon.open span:nth-child(2){
    opacity: 0;
}
.hamburger-icon.open span:last-child{
    transform: rotate(-45deg) translate(10px, -5px);
}

.hamburger-icon span:first-child{
    transform: none;
}
.hamburger-icon span:first-child{
    opacity: 1;
}
.hamburger-icon span:first-child{
    transform: none;
}

/* SECTIONS */

section{
    padding-top: 4vh;
    height: 96vh;
    margin: 0 10rem;
    box-sizing: border-box;
    min-height: fit-content;
}

.section-container{
    display: flex;
}

/* PROFILE SECTION */

#profile{
    display: flex;
    justify-content: center;
    gap: 5rem;
    height: 80vh;
}

.section__pic-container{
    display: flex;
    height: 400px;
    width: 400px;
    margin: auto 0;
}

.section__text{
    align-self: center;
    text-align: center;

}

.section__text p {
    font-weight: 600;
}

.section__text__p1{
    text-align: center;
}
.section__text__p2{
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.title {
    font-size: 3rem;
    text-align: center;
}

#socials-container{
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    gap: 1rem;
}


.about-pic-profile{
    border-radius: 60%;
}

/* ICONS */

.icon{
    cursor: pointer;
    height: 2rem;
}

/* BUTTONS */

.btn-container{
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn{
    font-weight: 600;
    transition: all 300ms ease;
    padding: 1rem;
    width: 8rem;
    border-radius: 2rem;
}

.btn-color-1, .btn-color-2{
    border: rgb(53, 53, 53) 0.1rem solid;
}
.btn-color-1:hover, .btn-color-2:hover{
    cursor: pointer;
}

.btn-color-1, .btn-color-2:hover{
    background: rgb(53, 53, 53);
    color: white;
}

.btn-color-1:hover{
    background: rgb(0, 0, 0);
}

.btn-color-2{
    background: none;
}

.btn-color-2:hover{
    border: rgb(255, 255, 255) 0.1rem solid;
}

.btn-container{
    gap: 1rem;
}

/* ABOUT SECTION */

#about{
    position: relative;
}

.about-containers{
    gap: 2rem;
    margin-bottom: 2rem;
    margin-top: 2rem;
    align-items: stretch;
    height: 100%;
}

.about-details-container{
    justify-content: center;
    flex-direction: column;
}

.about-containers, .about-details-container{
    display: flex;
}

.about-pic{
    border-radius: 2rem;
}

.arrow{
    position: absolute;
    right: -5rem;
    bottom: 2.5rem;
}

.details-container{
    padding: 2.25rem;
    flex: 1 1 0;
    background: white;
    border-radius: 2rem;
    border: rgb(53, 53, 53) 0.1rem solid;
    border-color: rgb(163, 163, 163);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    min-height: 500px;
}

.section-container{
    gap: 4rem;
    height: 80%;
}

.section__pic-container{
    height: 400px;
    width: 400px;
    margin: auto 0;
}

.text-container {
    text-align: justify;
}

/*EXPERIENCE SECTION*/

#experience {
    position: relative;
}


.experience-sub-title {
    color: (85, 85, 85);
    font-weight: 600;
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

.experience-details-container {
    display: flex;
    justify-content: center;
    flex-direction: row;
    align-items: stretch;
    height: 100%;
}

.projects-grid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: 2rem;
    max-width: 68rem;
    position: relative;
}

.article-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 160px;
    margin-bottom: 1rem;
    margin-top: 0;
    text-align: center;
}

article{
    display: flex;
    width: 10rem;
    justify-content: left;
    gap: 0.5rem;
}

article.icon{
    cursor: default;
}




/* PROJECTS SECTION */

#projects {
    position: relative;
}

.color-container {
    border-color: rgb(163, 163, 163);
    background: rgb(250, 250, 250);
}

.project-img {
    border-radius: 1rem;
    width: 120px;
    height: 120px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.project-title {
    margin: 1rem;
    color: black;
}

.project-btn {
    color: black;
    border-color: rgb(163, 163, 163);
}

/* CONTACT SECTION */
#contact {
    display: flex;
    justify-content: center;
    flex-direction: column;
    height: 70vh;
    padding-top: 12rem;
}

.contact-info-upper-container {
    display: flex;
    justify-content: center;
    border-radius: 2rem;
    border: rgb(53, 53, 53) 0.1rem solid;
    border-color: rgb(163, 163, 163);
    background: (250, 250, 250);
    margin: 2 rem auto;
    padding: 0.5rem;
}

.contact-info-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem;
}

.contact-info-container p {
    font-size: larger;
}

.contact-icon {
    cursor: default;
}

.email-icon {
    height: 2.5rem;
}

/* FOOTER SECTION */

footer {
    height: 26vh;
    margin: 0 1rem;
}

footer p {
    text-align: center;
}

/* === DASHBOARD SECTION === */
.dashboard-section {
    width: 100vw;
    height: 100vh;
    background: #faf9f7;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.08) 1px, transparent 1px);
    background-size: 40px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
}



.dashboard-top-section {
    flex: 2;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    padding-bottom: 2rem;
}

.dashboard-greeting {
    font-family: 'Caveat', cursive;
    font-size: 3rem;
    color: #1a1a1a;
    text-align: center;
    margin: 0;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.dashboard-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 2;
    width: 100%;
}

.dashboard-tiles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6rem;
    width: 100%;
    max-width: 1000px;
    justify-items: center;
    align-items: center;
}

.dashboard-bottom-section {
    flex: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    position: relative;
}

.dashboard-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    text-align: center;
    width: 160px;
}

.dashboard-tile:hover {
    transform: scale(1.05) translateY(-4px);
}

.dashboard-icon-container {
    width: 120px;
    height: 120px;
    border-radius: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

/* About - No background, just the circular image */
.dashboard-tile:nth-child(1) .dashboard-icon-container {
    background: transparent;
    box-shadow: none;
}

.dashboard-tile:nth-child(1):hover .dashboard-icon-container {
    box-shadow: none;
    transform: translateY(-2px);
}

/* Experience - Yellow */
.dashboard-tile:nth-child(2) .dashboard-icon-container {
    background: linear-gradient(135deg, #ffd23f 0%, #ffb700 100%);
    box-shadow: 0 8px 32px rgba(255, 210, 63, 0.3);
}

.dashboard-tile:nth-child(2):hover .dashboard-icon-container {
    box-shadow: 0 12px 48px rgba(255, 210, 63, 0.4);
    transform: translateY(-2px);
}

/* Projects - Blue */
.dashboard-tile:nth-child(3) .dashboard-icon-container {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    box-shadow: 0 8px 32px rgba(74, 144, 226, 0.3);
}

.dashboard-tile:nth-child(3):hover .dashboard-icon-container {
    box-shadow: 0 12px 48px rgba(74, 144, 226, 0.4);
    transform: translateY(-2px);
}

/* Extras - Green */
.dashboard-tile:nth-child(4) .dashboard-icon-container {
    background: linear-gradient(135deg, #7ed321 0%, #56b000 100%);
    box-shadow: 0 8px 32px rgba(126, 211, 33, 0.3);
}

.dashboard-tile:nth-child(4):hover .dashboard-icon-container {
    box-shadow: 0 12px 48px rgba(126, 211, 33, 0.4);
    transform: translateY(-2px);
}

.dashboard-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: none;
    box-shadow: none;
    background: #e5e5e5;
    padding: 8px;
}

.dashboard-icon {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    object-fit: contain;
    background: transparent;
    padding: 0;
    filter: brightness(0) invert(1);
}

/* Extras icon - white filter like other icons */
.dashboard-tile:nth-child(4) .dashboard-icon {
    filter: brightness(0) invert(1);
    width: 72px;
    height: 72px;
}

.dashboard-tile-label {
    background: rgba(26, 26, 26, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 18px;
    padding: 10px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
    white-space: nowrap;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.01em;
    transition: all 0.3s ease;
}

.dashboard-tile:hover .dashboard-tile-label {
    background: rgba(26, 26, 26, 0.12);
    transform: translateY(-2px);
}

.dashboard-description {
    max-width: 600px;
    text-align: center;
    position: absolute;
    top: 20%;
    transform: translateY(-50%);
}

.dashboard-description p {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #4a4a4a;
    margin: 0;
    font-weight: 400;
}

.dashboard-menu {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    width: 100%;
}

.menu-dots {
    display: flex;
    gap: 8px;
    cursor: pointer;
    padding: 16px;
    border-radius: 25px;
    background: rgba(26, 26, 26, 0.08);
    transition: all 0.3s ease;
}

.menu-dots:hover {
    background: rgba(26, 26, 26, 0.12);
    transform: scale(1.15) translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.menu-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #999;
    display: block;
    transition: all 0.3s ease;
}

.menu-dots:hover span {
    background: #666;
    transform: scale(1.2);
}

.menu-options {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 16px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 16px 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-bottom: 12px;
}

.dashboard-menu:hover .menu-options {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-12px);
}

.menu-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    position: absolute;
    left: calc(50% + 60px);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.menu-hint:hover {
    opacity: 1;
}

.hint-arrow {
    font-family: 'Caveat', cursive;
    font-size: 1.5rem;
    color: #666;
    font-weight: 700;
}

.hint-text {
    font-family: 'Caveat', cursive;
    font-size: 1.2rem;
    color: #666;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.menu-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.menu-option-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    transition: all 0.3s ease;
    margin-bottom: 4px;
}

.menu-option:nth-child(1) .menu-option-icon {
    background: linear-gradient(135deg, #0077b5 0%, #005885 100%);
    box-shadow: 0 4px 15px rgba(0, 119, 181, 0.3);
}

.menu-option:nth-child(1):hover .menu-option-icon {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 119, 181, 0.4);
}

.menu-option:nth-child(2) .menu-option-icon {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.menu-option:nth-child(2):hover .menu-option-icon {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.menu-option:nth-child(3) .menu-option-icon {
    background: linear-gradient(135deg, #333 0%, #24292e 100%);
    box-shadow: 0 4px 15px rgba(51, 51, 51, 0.3);
}

.menu-option:nth-child(3):hover .menu-option-icon {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 8px 25px rgba(51, 51, 51, 0.4);
}

.menu-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.menu-option-label {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: #4a4a4a;
    white-space: nowrap;
    text-align: center;
    margin-top: 2px;
}

.dashboard-tile-title {
    display: none;
}

.dashboard-tile-desc {
    display: none;
}

@media (max-width: 1200px) {
    .dashboard-tiles {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: 4rem;
        width: 500px;
        height: 500px;
    }
    .dashboard-tile {
        width: 140px;
    }
    .dashboard-icon-container {
        width: 100px;
        height: 100px;
    }
    .dashboard-avatar {
        width: 100px;
        height: 100px;
        padding: 6px;
    }
    .dashboard-icon {
        width: 60px;
        height: 60px;
    }
    .dashboard-tile-label {
        font-size: 14px;
        padding: 8px 16px;
    }
    .dashboard-greeting {
        font-size: 2.5rem;
    }
    .dashboard-description {
        max-width: 500px;
    }
    .dashboard-description p {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .dashboard-section {
        padding: 0 0 6rem 0;
        height: 100vh;
        overflow-y: auto;
    }
    .dashboard-top-section {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        padding-top: 3rem;
    }
    .dashboard-greeting {
        font-size: 1.8rem;
        margin-top: 2rem;
    }
    .dashboard-tiles {
        gap: 3rem;
        width: 400px;
        height: 400px;
    }
    .dashboard-tile {
        width: 120px;
    }
    .dashboard-icon-container {
        width: 80px;
        height: 80px;
    }
    .dashboard-avatar {
        width: 80px;
        height: 80px;
        padding: 4px;
    }
    .dashboard-icon {
        width: 48px;
        height: 48px;
    }
    .dashboard-tile-label {
        font-size: 13px;
        padding: 6px 12px;
        max-width: 100px;
    }
    .dashboard-bottom-section {
        flex: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
        width: 100%;
        position: relative;
        padding-bottom: 4rem;
        min-height: 0;
    }
    .dashboard-description {
        max-width: 350px;
        margin-bottom: 2rem;
        margin-top: 1rem;
    }
    .dashboard-description p {
        font-size: 13px;
        line-height: 1.4;
    }
    .dashboard-menu {
        margin-bottom: 1.5rem;
        position: fixed;
        bottom: 1rem;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1000;
    }
    .menu-options {
        gap: 12px;
        padding: 12px 16px;
        border-radius: 20px;
        margin-bottom: 10px;
    }
    .menu-dots {
        padding: 12px;
        gap: 6px;
    }
    .menu-dots span {
        width: 6px;
        height: 6px;
    }
    .menu-option-icon {
        width: 36px;
        height: 36px;
    }
    .menu-icon {
        width: 20px;
        height: 20px;
    }
    .menu-option-label {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .dashboard-section {
        padding: 0 0 7rem 0;
    }
    .dashboard-top-section {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        padding-top: 4rem;
    }
    .dashboard-greeting {
        font-size: 1.5rem;
        margin-top: 2.5rem;
        margin-bottom: 1rem;
    }
    .dashboard-tiles {
        gap: 2rem;
        width: 320px;
        height: 320px;
    }
    .dashboard-tile {
        width: 100px;
    }
    .dashboard-icon-container {
        width: 60px;
        height: 60px;
    }
    .dashboard-avatar {
        width: 60px;
        height: 60px;
        padding: 3px;
    }
    .dashboard-icon {
        width: 36px;
        height: 36px;
    }
    .dashboard-tile-label {
        font-size: 12px;
        padding: 4px 8px;
        max-width: 80px;
    }
}

/* Height-based responsive design for phones */
@media (max-height: 700px) and (max-width: 480px) {
    .dashboard-section {
        padding: 0 0 4rem 0;
    }
    .dashboard-top-section {
        padding-top: 2rem;
        flex: 0.8;
    }
    .dashboard-greeting {
        font-size: 1.4rem;
        margin-top: 1rem;
        margin-bottom: 0.5rem;
    }
    .dashboard-tiles {
        gap: 1.5rem;
        width: 280px;
        height: 280px;
    }
    .dashboard-tile {
        width: 90px;
    }
    .dashboard-icon-container {
        width: 55px;
        height: 55px;
    }
    .dashboard-avatar {
        width: 55px;
        height: 55px;
        padding: 2px;
    }
    .dashboard-icon {
        width: 32px;
        height: 32px;
    }
    .dashboard-tile-label {
        font-size: 11px;
        padding: 3px 6px;
    }
}

/* Extra small height phones (landscape or very compact screens) */
@media (max-height: 600px) and (max-width: 480px) {
    .dashboard-section {
        padding: 0 0 3rem 0;
    }
    .dashboard-top-section {
        padding-top: 1rem;
        flex: 0.6;
    }
    .dashboard-greeting {
        font-size: 1.2rem;
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
    }
    .dashboard-tiles {
        gap: 1rem;
        width: 240px;
        height: 240px;
    }
    .dashboard-tile {
        width: 80px;
    }
    .dashboard-icon-container {
        width: 50px;
        height: 50px;
    }
    .dashboard-avatar {
        width: 50px;
        height: 50px;
        padding: 2px;
    }
    .dashboard-icon {
        width: 28px;
        height: 28px;
    }
    .dashboard-tile-label {
        font-size: 10px;
        padding: 2px 4px;
    }
    .dashboard-bottom-section {
        padding-bottom: 5rem;
    }
    .dashboard-description {
        max-width: 280px;
        margin-bottom: 2.5rem;
        margin-top: 1.5rem;
        padding: 0 1rem;
    }
    .dashboard-description p {
        font-size: 12px;
        line-height: 1.3;
    }
    .dashboard-menu {
        margin-bottom: 2rem;
        position: fixed;
        bottom: 1rem;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1000;
    }
    .menu-options {
        gap: 10px;
        padding: 10px 14px;
        border-radius: 18px;
        margin-bottom: 8px;
    }
    .menu-dots {
        padding: 10px;
        gap: 5px;
    }
    .menu-dots span {
        width: 5px;
        height: 5px;
    }
    .menu-option-icon {
        width: 32px;
        height: 32px;
    }
    .menu-icon {
        width: 18px;
        height: 18px;
    }
    .menu-option-label {
        font-size: 9px;
    }
}

/* === MODAL STYLES === */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #faf9f7;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    margin: 0;
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(245, 245, 245, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.2s ease;
    z-index: 1000;
}

.modal-close:hover {
    background: rgba(224, 224, 224, 0.9);
    color: #333;
    transform: scale(1.05);
}

.modal-content {
    padding: 40px 40px 40px 40px;
    box-sizing: border-box;
}

.modal-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.modal-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.modal-section {
    margin-bottom: 3rem;
}

.modal-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.modal-section p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 1rem;
}

.experience-item, .project-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 1.5rem;
    padding: 15px;
    border-radius: 12px;
    background: #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.company-logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: contain;
    padding: 6px;
    background-color: white;
    margin-right: 0.8rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.project-icon {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    margin-bottom: 0.3rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
}

.company-logo:hover, .project-icon:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}

.experience-content {
    flex: 1;
}

.project-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.experience-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.project-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0.6rem 0 0.4rem 0;
    line-height: 1.3;
}

.experience-company {
    font-size: 1rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.project-tech {
    color: #888;
    font-size: 0.8rem;
    margin-bottom: 0.6rem;
    font-weight: 500;
    line-height: 1.4;
}

.experience-period {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 1rem;
}

.experience-description {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555;
}

.project-description {
    font-size: 0.8rem;
    line-height: 1.4;
    color: #777;
    max-width: 240px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.skill-item {
    background: #f0f8ff;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.fun-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.fun-section h3 {
    color: white;
}

.modal-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    text-decoration: none;
    display: inline-block;
    transform: translateY(0);
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.1);
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15), 0 4px 8px rgba(0, 0, 0, 0.1);
}

.modal-btn-outline {
    background: linear-gradient(145deg, #f5f5f5, #e8e8e8);
    color: #555;
    border: 1px solid #ddd;
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 2px rgba(255, 255, 255, 0.8),
        inset 0 -1px 2px rgba(0, 0, 0, 0.05);
}

.modal-btn-outline:hover {
    background: linear-gradient(145deg, #e8e8e8, #ddd);
    color: #333;
    box-shadow: 
        0 6px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 2px rgba(255, 255, 255, 0.7),
        inset 0 -1px 2px rgba(0, 0, 0, 0.1);
}

.modal-btn-blue {
    background: linear-gradient(145deg, #4a90e2, #357abd);
    color: white;
    border: 1px solid #357abd;
    box-shadow: 
        0 4px 8px rgba(74, 144, 226, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.2),
        inset 0 -1px 2px rgba(0, 0, 0, 0.1);
}

.modal-btn-blue:hover {
    background: linear-gradient(145deg, #357abd, #2968a3);
    box-shadow: 
        0 6px 12px rgba(74, 144, 226, 0.4),
        inset 0 1px 2px rgba(255, 255, 255, 0.15),
        inset 0 -1px 2px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Modal Experience and Education Icon Containers */
.modal-experience-icon {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    border-radius: 12px;
    padding: 12px;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(74, 144, 226, 0.25);
    transition: all 0.3s ease;
}

.modal-experience-icon:hover {
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.35);
    transform: translateY(-1px);
}

.modal-education-icon {
    background: linear-gradient(135deg, #333 0%, #24292e 100%);
    border-radius: 12px;
    padding: 12px;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.modal-education-icon:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

/* Projects Grid Layout */
.projects-grid-modal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.project-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 15px;
    border-radius: 16px;
    background: white;
    margin-bottom: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.project-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.experience-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 1.5rem;
    padding: 15px;
    border-radius: 12px;
    background: #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .modal-overlay {
        padding: 1rem;
    }

    .modal-container {
        margin: 0;
        min-height: 100vh;
        border-radius: 0;
    }

    .modal-close {
        top: 1rem;
        right: 1rem;
    }

    .modal-content {
        padding: 1.25rem 1rem 1rem 1rem;
    }

    .modal-title {
        font-size: 1.8rem;
    }

    .experience-item, .project-item {
        flex-direction: column;
        text-align: center;
    }

    .company-logo, .project-icon {
        align-self: center;
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .projects-grid-modal {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}
/* === END MODAL STYLES === */

/* Extras Modal Styles */
.extras-content {
    max-width: 800px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Section Divider */
.section-divider {
    text-align: center;
    margin: 0.5rem 0;
}

.divider-symbol {
    font-size: 1.5rem;
    color: #999;
    opacity: 0.7;
    display: inline-block;
    transform: rotate(0deg);
    transition: all 0.3s ease;
}

.divider-symbol:hover {
    transform: rotate(90deg);
    color: #666;
    opacity: 1;
}

.extras-header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.2;
    color: #1a1a1a;
    margin-bottom: 2rem;
    text-align: left;
}

.extras-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.extras-column p {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 1.5rem;
    text-align: left;
}

.highlight {
    background: linear-gradient(120deg, #a8e6cf 0%, #dcedc8 100%);
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 500;
    color: #2e7d32;
}

.extras-contact {
    background: #e9ecef;
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    margin-top: 2rem;
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.extras-contact h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.extras-contact p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 0;
}

.btn-primary {
    background: #1a73e8;
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
}

.btn-primary:hover {
    background: #1557b0;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #e8eaed;
    color: #3c4043;
    border: none;
    padding: 16px 32px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
}

.btn-secondary:hover {
    background: #dadce0;
    transform: translateY(-1px);
}

.contact-footer {
    margin: 3rem 0 2rem 0;
    text-align: center;
}

.contact-footer p {
    font-size: 1rem;
    color: #5f6368;
    margin: 0.3rem 0;
    line-height: 1.4;
}

.signature {
    margin-top: 1rem;
    text-align: center;
    transform: rotate(-2deg);
}

.signature-text {
    font-family: 'Caveat', cursive;
    font-size: 1.8rem;
    color: rgba(0, 0, 0, 0.6);
    margin-bottom: 0.1rem;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.signature-name {
    font-family: 'Caveat', cursive;
    font-size: 1.8rem;
    color: rgba(0, 0, 0, 0.6);
    font-weight: 700;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .extras-header h1 {
        font-size: 2rem;
    }
    
    .extras-body {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .extras-contact {
        padding: 2rem 1.5rem;
    }
    
    .extras-contact h2 {
        font-size: 1.6rem;
    }
    
    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary, .btn-secondary {
        width: 200px;
    }
}

/* Services Section Styles */
.extras-section {
    margin: 3rem 0;
}

.extras-section h2 {
    font-size: 2.2rem;
    font-weight: 600;
    line-height: 1.3;
    color: #1a1a1a;
    margin-bottom: 2rem;
    text-align: left;
}

.extras-section p {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 1.5rem;
    text-align: left;
}

.services-list {
    margin: 2rem auto;
    max-width: 600px;
}

.service-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem 0;
    border-bottom: 1px solid #e5e5e5;
}

.service-item:last-child {
    border-bottom: none;
}

.service-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.service-icon-blue {
    background: #007AFF;
}

.service-icon-orange {
    background: #FF9500;
}

.service-icon-green {
    background: #34C759;
}

.service-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 0.3rem 0;
}

.service-content p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

.cta-button-container {
    text-align: center;
    margin: 2.5rem 0;
}

.cta-button {
    background: #f0f0f0;
    color: #333;
    border: none;
    padding: 16px 32px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.cta-button:hover {
    background: #e0e0e0;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .extras-section h2 {
        font-size: 1.8rem;
    }
    
    .service-item {
        gap: 0.8rem;
    }
    
    .service-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* Hero Section Styles */
.hero-section {
    text-align: center;
    padding: 3rem 0 1.5rem 0;
    background: transparent;
    border-radius: 0;
    margin-bottom: 0.5rem;
}

.hero-avatar {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.hero-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.hero-emoji {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 32px;
    height: 32px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hero-text {
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
}

.hero-text p {
    font-size: 1.6rem;
    line-height: 1.4;
    color: #1a1a1a;
    font-weight: 600;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.hero-showcase {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.showcase-image {
    width: 100%;
    max-width: 700px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.showcase-image:hover {
    transform: translateY(-8px);
}

.showcase-label {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 1rem 3rem 1rem;
        margin-bottom: 3rem;
    }
    
    .hero-image {
        width: 100px;
        height: 100px;
    }
    
    .hero-emoji {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }
    
    .hero-text p {
        font-size: 1.2rem;
        padding: 0 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: 200px;
    }
    
    .showcase-image {
        border-radius: 12px;
    }
}

/* 3D Button Effects for Hero and Contact Sections */
.hero-btn-3d {
    box-shadow: 
        0 4px 14px 0 rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    transform: translateY(0);
    transition: all 0.3s ease;
}

.hero-btn-3d:hover {
    box-shadow: 
        0 6px 20px 0 rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.hero-btn-3d:active {
    box-shadow: 
        0 2px 8px 0 rgba(0, 0, 0, 0.2),
        inset 0 1px 3px rgba(0, 0, 0, 0.2);
    transform: translateY(0);
}

.contact-btn-3d {
    box-shadow: 
        0 4px 14px 0 rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    transform: translateY(0);
    transition: all 0.3s ease;
}

.contact-btn-3d:hover {
    box-shadow: 
        0 6px 20px 0 rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.contact-btn-3d:active {
    box-shadow: 
        0 2px 8px 0 rgba(0, 0, 0, 0.2),
        inset 0 1px 3px rgba(0, 0, 0, 0.2);
    transform: translateY(0);
}

/* Enhanced primary button 3D effect */
.btn-primary.hero-btn-3d,
.btn-primary.contact-btn-3d {
    background: linear-gradient(135deg, #1a73e8 0%, #1557b0 100%);
    box-shadow: 
        0 4px 14px 0 rgba(26, 115, 232, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.btn-primary.hero-btn-3d:hover,
.btn-primary.contact-btn-3d:hover {
    background: linear-gradient(135deg, #1557b0 0%, #1142a0 100%);
    box-shadow: 
        0 6px 20px 0 rgba(26, 115, 232, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}

/* Enhanced secondary button 3D effect */
.btn-secondary.hero-btn-3d,
.btn-secondary.contact-btn-3d {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    color: #3c4043;
    box-shadow: 
        0 4px 14px 0 rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.btn-secondary.hero-btn-3d:hover,
.btn-secondary.contact-btn-3d:hover {
    background: linear-gradient(135deg, #e8e8e8 0%, #dadada 100%);
    box-shadow: 
        0 6px 20px 0 rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}

/* Bottom CTA Button for Extras Page */
.bottom-cta-container {
    text-align: center;
    margin: 3rem 0 2rem 0;
}

.bottom-cta-button {
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    color: #333;
    border: none;
    padding: 16px 32px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
    box-shadow: 
        0 4px 14px 0 rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    transform: translateY(0);
}

.bottom-cta-button:hover {
    background: linear-gradient(135deg, #e0e0e0 0%, #d0d0d0 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px 0 rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}

.bottom-cta-button:active {
    box-shadow: 
        0 2px 8px 0 rgba(0, 0, 0, 0.2),
        inset 0 1px 3px rgba(0, 0, 0, 0.2);
    transform: translateY(0);
}

/* Contact CTA Button in the gray box */
.contact-cta-container {
    text-align: center;
    margin-top: 2rem;
}

.contact-cta-button {
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    color: #333;
    border: none;
    padding: 16px 32px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
    box-shadow: 
        0 4px 14px 0 rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    transform: translateY(0);
}

.contact-cta-button:hover {
    background: linear-gradient(135deg, #e0e0e0 0%, #d0d0d0 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px 0 rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}

.contact-cta-button:active {
    box-shadow: 
        0 2px 8px 0 rgba(0, 0, 0, 0.2),
        inset 0 1px 3px rgba(0, 0, 0, 0.2);
    transform: translateY(0);
}