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

html, body {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    background-color: #0e0e0e;
    background-image: url("https://www.transparenttextures.com/patterns/45-degree-fabric-dark.png");
    background-repeat: repeat;
    background-size: auto;
    color: white;
    font-family: 'Times New Roman', Times, serif;
    font-size: 1rem; /* base font size for scaling */
}

/* Radial glow effect */
body::after {
    content: "";
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.01) 40%,
    transparent 70%);
    z-index: 0;
    pointer-events: none;
}

/* Decorative gold circles */
.gold-circles {
    position: absolute;
    right: -5vw;
    top: 9vh;
    transform: translateY(-10%);
    z-index: 0;
    pointer-events: none;
    opacity: 0.2;
}

/*fine-tune for very small screens */
@media screen and (max-width: 500px) {
    body {
        font-size: 0.95rem;
    }

    body::after {
        width: 80vw;
        height: 80vw;
    }

    .gold-circles {
        top: -9vh;
        transform: scale(0.6) translateY(-10%);
        opacity: 0.15;
        right: -40vw;
    }
}

/* Nav Bar wrapper including all children */
.navbar-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3.5rem;
    z-index: 1000;
}

.navbar {
    position: relative;
    top: -3.75rem; /* hides it above the viewport */
    left: 0;
    width: 100%;
    height: 3.5rem;
    background-color: rgba(0, 0, 0, 0.23);
    backdrop-filter: blur(10px);
    font-family: 'Inter', sans-serif;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: top 0.6s ease;
}

.navbar.visible {
    top: 0;
}

.nav-container {
    width: 100%;
    max-width: 62.5rem;
    display: flex;
    align-items: center;
}

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

.nav-links a {
    flex: 1;
    text-align: center;
    text-decoration: none;
    color: #ccc;
    font-size: 0.9375rem;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 3.5rem;
    height: 100%;
    border-left: 1px solid transparent;
    border-right: 1px solid transparent;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: white;
    border-left: 1px solid rgba(255, 255, 0, 0.33);
    border-right: 1px solid rgba(255, 255, 0, 0.33);
}

.nav-links a.active {
    color: white;
}

/* Logo image */
.logo img {
    height: 4.375rem;
    width: auto;
    object-fit: contain;
    padding-left: 10%;
}

/* Fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(1.25rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hamburger menu toggle - only for small screen*/
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    margin-left: auto;
    margin-right: 5%;
    z-index: 2;
}

/* Responsive behavior */
@media screen and (max-width: 700px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 3.5rem;
        right: 0;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.23);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        z-index: 1;
    }

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

    .nav-links a {
        flex: none;
        width: 100%;
        text-align: center;
        line-height: 2.8125rem; /* 45px */
        font-size: 0.875rem;
        border-top: 1px solid rgba(255, 255, 0, 0.1);
        border-bottom: 1px solid rgba(255, 255, 0, 0.1);
    }

    .logo img {
        height: 3.5rem;
        padding-left: 5%;
    }
}

/*css for intro section*/
.intro-section {
    animation: fadeIn 1.5s ease-out;
}

.header {
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 2.5rem; /* ~40px */
}

.hello-world {
    font-size: 1.5625rem; /* 25px */
    font-weight: 500;
    color: #d5b546;
    margin-bottom: 1.25rem; /* 20px */
    letter-spacing: 0.0625rem; /* 1px */
}

.intro-wrapper {
    text-align: left;
    position: absolute;
    padding-top: 3%;
    margin-top: 3rem;
    top: 40%;
    left: 5vw;
    transform: translateY(-50%);
    max-width: 37.5rem; /* 600px */
    color: white;

}

.intro-text {
    text-align: left;

    font-size: 2.5rem; /* 40px */
    line-height: 1.6;
    font-weight: 400;
    color: #fff;
}

/* Mobile optimization */
@media screen and (max-width: 600px) {
    .header {
        padding: 1.5rem;
        height: calc(var(--vh, 1vh) * 100); /* this raises an error but it works and its essential - will fix later*/
        align-items: flex-start;
        text-align: left;
    }

    .hello-world {
        font-size: 1rem;
        margin-bottom: 0.75rem;
        text-align: left;
    }

    .intro-wrapper {
        text-align: left;
        position: relative;
        top: 30%;
        left: auto;
        transform: none;
        max-width: 100%;
        padding-top: 0;
        width: 100%;
    }

    .intro-text {
        font-size: 1.25rem;
        line-height: 1.5;
        text-align: left !important; /*important is to override anything from before*/
    }
}

/*This section is for suggestion button using an email-like format*/
.email-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0);
    justify-content: center;
    align-items: center;
    padding: 2rem;
    box-sizing: border-box;
}

.email-modal-content {
    background-color: #111;
    color: #fff;
    padding: 1rem;
    border-radius: 0.75rem;
    width: 100%;
    max-width: 20rem; /* ~400px */
    font-family: 'Segoe UI', sans-serif;
    border: 0.1rem solid #d4af37;
    box-sizing: border-box;
    position: relative;
    margin: auto;
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    font-size: 1.5rem;
    color: #d4af37;
    cursor: pointer;
}

.email-trigger {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #d4af37;
    color: #000;
    border-radius: 0.5rem;
    font-weight: bold;
    cursor: pointer;
    font-family: 'Segoe UI', sans-serif;
    margin: 1rem;
    font-size: 1rem;
}

.email-trigger {
    opacity: 0;
    animation: fadeIn 1.5s ease-out forwards;
    animation-delay: 0.1s;
}

form label {
    font-weight: 500;
    color: #d4af37;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

form input[type="text"],
form input[type="email"],
form textarea {
    width: 100%;
    padding: 0.6rem;
    margin-bottom: 1.2rem;
    background-color: #222;
    color: #fff;
    border: 0.1rem solid #444;
    border-radius: 0.4rem;
    font-size: 0.85rem;
    box-sizing: border-box;
}

form textarea {
    resize: vertical;
}

form button[type="submit"] {
    background-color: #d4af37;
    color: #000;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    border: none;
    border-radius: 0.4rem;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 480px) {
    .email-modal-content {
        max-width: 90vw;
        padding: 1rem;
        border-radius: 0.5rem;
    }

    form input[type="text"],
    form input[type="email"],
    form textarea {
        font-size: 0.8rem;
        padding: 0.4rem;
    }

    form button[type="submit"] {
        font-size: 0.85rem;
        padding: 0.5rem 0.8rem;
    }

    .close-btn {
        font-size: 1.2rem;
        top: 0.8rem;
        right: 1rem;
    }

    .email-trigger {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }

    form label {
        font-size: 0.85rem;
    }

    .email-modal-content {
        max-width: 90vw;
        padding: 1.5rem;
        border-radius: 0.5rem;
    }

}


/* Arrow */
.scroll-arrow {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    cursor: pointer;
    color: #ffffff;
    animation: bounce 1.5s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(0.625rem);
    }
}

/* General css for Sections */
.section-block {
    width: 100vw;
    margin: 0 auto;
    border: 0.125rem solid transparent;
    border-radius: 0.75rem;
    transition: border-color 0.5s ease, box-shadow 0.5s ease;
}

.section-block:hover {
    border-color: rgba(255, 255, 255, 0.34);
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.05);
}

.section-header {
    background-color: transparent;
    padding: 5rem;
    font-size: 1.6rem;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.5s ease;
}

.section-header:hover {
    background-color: rgba(255, 255, 255, 0);
}

.section-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 0 1.25rem;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.5s ease;
}

.section-content.open {
    max-height: 62.5rem;
    opacity: 1;
    overflow: visible;
}

.section-content.collapsed {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

/* Mobile Optimization */
@media screen and (max-width: 600px) {
    .scroll-arrow {
        bottom: 1.5rem;
        font-size: 1.5rem;
    }

    .section-header {
        padding: 2.5rem;
        font-size: 1.25rem;
        align-items: center;

    }

    .section-content {
        padding: 0 1rem;
        align-items: center;

    }

    .section-content.open {
        max-height: 100vh; /* allow full screen expansion */
    }
}


/*About Me Section*/
.about-text {
    text-align: center;
    padding: 0 40px 20px;
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.3rem;
}

/* projects*/
.projects-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    padding: 40px;
}

.project-card {
    text-decoration: none;
}

.fade-out {
    opacity: 0;
    transition: opacity 0.7s ease;
}

.project-image {
    position: relative;
    width: 220px;
    height: 140px;
    border-radius: 50% / 40%;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(2px) brightness(0.8);
    opacity: 0.8;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.project-image:hover img {
    filter: blur(1px) brightness(1);
    opacity: 1;
}

.project-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgb(255, 255, 255);
    font-weight: bold;
    font-size: 1rem;
    text-align: center;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0);
    pointer-events: none;
    background-color: rgba(34, 34, 34, 0);
}


/*skills section */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 40px;
}

.skill {
    background-color: rgba(213, 181, 70, 0.51);
    padding: 15px 25px;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0);
    font-weight: bold;
    transition: transform 0.3s ease;
}

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

@media (max-width: 768px) {


    .projects-container {
        flex-direction: column;
        align-items: center;
    !important;
    }

    .skills-container {
        flex-direction: column;
        align-items: center;
    !important;
    }

    .skill {
        padding: 0.2rem !important;
    }


}

/* honors and awards section*/
.honors-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 40px;
}

.honors-list {
    font-size: 140%;
}

/*floating contact button css*/
.floating-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.dena-floating-button {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #d5b546;
    color: white;
    font-size: 28px;
    text-align: center;
    line-height: 55px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
    align-items: center;

}


.floating-icons {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.floating-icons.show {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    pointer-events: auto;
}

.dena-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #333;
    color: white;
    font-size: 18px;
    text-align: center;
    line-height: 40px;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    animation: bounce-nds 0.3s ease forwards;
}

.dena-icon.linkedin {
    background: #0077b5;
    animation-delay: 0.1s;
}

.dena-icon.github {
    background: #000000;
    animation-delay: 0.2s;
}

.dena-icon.email {
    background: #6095da;
    animation-delay: 0.3s;
}

.dena-icon:hover {
    background: #d5b546;

}

.plus-icon {
    position: relative;
    top: 10%;

    width: 1.5em;
    height: 1.5em;
}

/* Bounce animation */
@keyframes bounce-nds {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}







