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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

html {
    scroll-behavior: smooth;
}

/* NAV */
header {
    background: #fff;
    padding: 2rem 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    border-bottom: 1px solid #ddd;
}

nav .logo {
    font-size: 1.5rem;
    font-weight: bold;
}

nav .logo a{
    text-decoration: none;
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 1rem;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    position: relative;
    transition: color 0.3s ease;
}

nav ul li a::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #fd5c63;
    left: 0;
    bottom: -5px;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

nav ul li a:hover {
    color: #fd5c63;
    transform: translateY(-5px);
}

nav ul li a:hover::after {
    transform: scaleX(1);
}

.intro {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem 6rem 2rem;
}

/* NAV DROPDOWN */
.nav-menu .dropdown {
    position: relative; 
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%; 
    left: 50;
    right: 0;
    background-color: white;
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    z-index: 1000;
    padding: 0;
    list-style: none;
    min-width: 180px;
}

.dropdown-menu li {
    border-bottom: 1px solid #eee;
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    color: #333;
    text-decoration: none;
    display: block;
    padding: 0.8rem 1rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* DROPDOWN HOVER EFFECTS */
.dropdown-menu a:hover {
    background-color: #fd5c63;
    color: #fff;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.nav-menu .dropdown > a:hover {
    color: #fd5c63;
    transform: translateY(0);
}

/* blog blink effect */
.blinking-blog {
    animation: blink-red 1.5s ease-in-out 6;
    color: #fd5c63; 
    font-weight: bold;
}

@keyframes blink-red {
    0% {
        color: #fd5c63;
    }
    50% {
        color: #fff; 
        background-color: #fd5c63; 
        padding: 0.2rem 0.5rem;
        border-radius: 5px;
    }
    100% {
        color: #fd5c63;
    }
}

/* INDEX.HTML */
.intro-text {
    flex: 1;
    text-align: left;
    max-width: 600px;
    margin-right: 2rem;
}

.intro-text h1 {
    font-size: 2.5rem;
    margin-bottom: 0.05rem;
    text-align: left;
}

.intro-text p {
    margin: 0.1rem 0;
    text-align: left;
}

.intro-text a {
    color: inherit;
    text-decoration: none;
}

.intro-image {
    flex: 1;
    text-align: right;
}

.intro-image img {
    max-width: 40%;
    height: auto;
    border-radius: 8px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Introduction */
.introduction {
    padding: 4rem 2rem 6rem 2rem;
    margin: 1rem 0;
    background: #f8f8ff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.intro-content {
    display: flex;
    align-items: flex-start;
}

.intro-img {
    flex: 1;
    text-align: left;
}

.intro-img img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.intro-text-content {
    flex: 2;
    padding-left: 2rem;
}
.intro-text-content a {
    color: inherit;
    text-decoration: none;
}

/* Tabs */
.tabs {
    overflow: hidden;
    background-color: inherit;
    margin-top: 20px;
    border: none;
}

.tabs button {
    background-color: inherit;
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    transition: 0.3s;
    font-size: 17px;
    color: black;
}

.tabs button:hover {
    background-color: inherit;
    color: red;
}

.tabs button.active {
    color: red;
    border-bottom: 2px solid red;
}

.tabcontent-container {
    max-height: none;
    overflow-y: visible;
}

.tabcontent {
    display: none;
    padding: 20px;
}

.tabcontent.active {
    display: block;
}

.tabcontent h3 {
    margin-top: 0;
}


/* FOOTER */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
}

footer a {
    color: #fff;
    text-decoration: none;
}

footer p{
    margin: 0.5rem 0;
}

.company-logo {
    width: 30px;
    height: 30px;
    vertical-align: middle;
    margin-right: 10px;
}

.company-name {
    vertical-align: middle;
    text-decoration: none;
}

/* PERSONAL LIFE */
.personal-life {
    padding: 4rem 2rem;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.1);
}

/* IMAGES EXPANDABLE */
.expandable {
    cursor: pointer;
    transition: transform 0.3s ease, z-index 0.3s ease;
}

.expandable:active {
    transform: scale(1.5);
    z-index: 10;
}

/* Style for the overlay text */
.gallery-item {
    position: relative;
}

.overlay-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 66%;
    color: white;
    background: rgba(0, 0, 0, 0.7); 
    padding: 20px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 1.25rem; 
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box; 
    overflow: hidden; 
}

.gallery-item img {
    transition: transform 0.3s ease, z-index 0.3s ease;
}

.gallery-item img.expanded {
    transform: scale(1.5);
    z-index: 10;
}

.gallery-item img.expanded + .overlay-text {
    opacity: 1;
}

/* PROJECTS */
.projects {
    padding: 2rem 0;
    background-color: #f4f4f4;
    text-align: center;
}

.projects-text h2 {
    margin: 0;
    font-size: 1.5rem;
}

.featured-project {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    background-color: #ffffff;
    padding: 1.5rem 3rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.featured-project-image {
    width: 30%;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.featured-project-content {
    width: 65%;
    text-align: left;
    color: #333;
}

.featured-project h3 {
    margin: 0 0 0.5rem;
    font-size: 1.8rem;
    color: #333;
}

.featured-project p {
    font-size: 1rem;
    line-height: 1.5;
    margin: 0 0 1rem;
    color: #555;
}

.featured-project-link {
    font-size: 1rem;
    color: #fd5c63;
    text-decoration: none; 
    font-weight: bold; 
    border-bottom: 2px solid transparent;
    transition: color 0.3s ease, border-bottom 0.3s ease; 
}

.featured-project-link:hover {
    color: #333;
    border-bottom: 2px solid #333;
}


.see-more-container {
    text-align: center;
    margin-top: 2rem;
}

.see-more-button {
    background-color: #333;
    color: #fff;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.see-more-button:hover {
    background-color: #fd5c63;
}

/* LINKS */
.links {
    padding: 4rem 2rem;
    background-color: #f4f4f4;
    text-align: center;
}

.link-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.link-button {
    background-color: #f0f0f0;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    padding: 2rem;
    width: 300px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.link-button:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.github {
    background-color: #A9A9A9;
}

.linkedin {
    background-color: #0099FF;
}

.resume {
    background-color: #fd5c63;
}

.link-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.link-logo {
    width: 50px;
    height: 50px;
    margin-bottom: 1rem;
}

.link-text h3 {
    margin: 0;
    font-size: 1.5rem;
}

.link-text p {
    margin: 1rem 0;
    font-size: 1rem;
}

.link-text span {
    font-size: 0.875rem;
    color: #666;
}

/* BLOG.HTML */
.blog-posts {
    padding: 2rem 2rem;
    background-color: #f8f8ff;
    text-align: center;
}

.blog-posts h1{
    margin-bottom: 2rem; 
    text-align: center; 
}

.blog-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.blog-post {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 300px;
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 1.5rem;
}

.blog-content h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #333;
}

.blog-content p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.read-more {
    text-decoration: none;
    color: #fd5c63;
    font-weight: bold;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #333;
}

/* next, previous page (NOT IN USE YET) */
.pagination {
    margin-top: 2rem;
}

.pagination a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

.pagination a:hover {
    color: #fd5c63;
}

/* POST PAGE */
.post-page {
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.post-content h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.post-date {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.share-icons {
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

/* blog images */
.centered-image {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1.5rem 0;
}

.centered-image img {
    max-width: 80%;
    max-height: 300px;
    height: auto;
    width: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.centered-image img:hover {
    transform: scale(1.05); 
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    display: block;
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.lightbox .close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.lightbox .close:hover {
    color: #fd5c63; 
}

 /* COMMENT FORM, NOT IN USE YET */
.comments-section {
    margin-top: 2rem;
}

.comment-form label {
    font-weight: bold;
}

.comment-form input, .comment-form textarea {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
}

/* Responsive Styles */
@media (min-width: 1440px){
    .blog-posts {
        padding: 3.1rem 2rem;
    }
}

@media (max-width: 1024px) {
    nav {
        flex-direction: column;
        align-items: center;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .nav-menu .dropdown-menu {
        position: relative;
        box-shadow: none;
        min-width: auto;
    }

    .intro {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1rem;
    }

    .intro-text, .intro-image {
        margin: 0;
        max-width: 100%;
    }

    .intro-text h1 {
        font-size: 2rem;
    }

    .intro-image img {
        max-width: 60%;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .project-container, .link-container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .project-button, .link-button {
        width: 90%;
        margin: 0 auto;
    }

    .blog-container {
        gap: 1rem;
    }

    .blog-post {
        max-width: 80%;
        margin: 0 auto;
        padding: 3.1rem 2rem;
    }
}

@media (max-width: 768px) {

    nav {
        flex-direction: column;
    }

    .nav-menu li {
        position: relative;
        margin: 0.5rem 0;
    }

    nav .logo {
        margin-bottom: 1rem;
    }

    nav ul {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .nav-menu .dropdown-menu {
        position: static;
        text-align: center;
        padding: 0;
    }

    .intro {
        padding: 2rem 1rem;
    }

    .intro-text h1 {
        font-size: 1.0rem;
    }
    
    .intro-text p {
        font-size: 0.8rem; 
        margin: 0.5rem 0; 
    }

    .intro-image img {
        max-width: 80%;
    }

    .intro-text-content p{
        font-size: 0.8rem;
    }

    .gallery {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .project-container, .link-container {
        flex-direction: column;
    }


    .blog-post {
        max-width: 90%;
    }

    footer {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    nav {
        flex-direction: column;
        align-items: center;
        padding: 1rem;
    }

    nav .logo {
        margin-bottom: 1rem;
        text-align: center;
    }

    nav ul {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 0;
    }

    nav ul li {
        margin: 0.5rem 0;
    }

    .intro {
        flex-direction: column;
        align-items: center;
        padding: 1.5rem 1rem;
        text-align: center;
    }

    .intro-text {
        margin: 0;
    }

    .intro-text h1 {
        font-size: 1.5rem;
    }

    .intro-text p {
        font-size: 1.5rem;
        margin: 0.5rem 0;
    }

    .intro-image img {
        max-width: 90%;
    }

    .gallery {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .project-container, .link-container {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .project-button, .link-button {
        width: 100%;
        margin: 0;
    }

    .blog-container {
        flex-direction: column;
        gap: 1rem;
    }

    .blog-post {
        max-width: 100%;
        margin: 0 auto;
        padding: 1.5rem 1rem;
    }

    footer {
        text-align: center;
        font-size: 0.75rem;
        padding: 1rem;
    }
}
