
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Bodoni Moda", serif;
}

body {
    background: rgb(2, 2, 45);
    display: flex;
    
    /* This is the magic line that stacks things downwards */
    flex-direction: column; 
    
    /* This centers the items horizontally */
    align-items: center; 
    
    padding-top: 0;
    color: white; /* Makes your added text visible */
}


.glass-nav {
    position: fixed;
    display: flex;
    gap: 8px;
    padding: 8px;
    margin-top: 35px;
    border-radius: 100px; /* Maximum roundness for the liquid look */
    z-index: 1000;
    
    /* THE GLASS SECRET SAUCE: */
    background: rgba(255, 255, 255, 0.03); 
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    
    /* Top border is brighter to catch "light", bottom is darker for "depth" */
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    
    /* Multi-layered shadow: one for the "float", one for the "glow" */
    box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);


    width: fit-content;
    align-items: center;
}

.nav-item {
    font-family: Arial, Helvetica, sans-serif;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 12px 28px;
    border-radius: 100px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1); /* Smooth "liquid" motion */
    mix-blend-mode: difference;
}

/* The "Dope" Hover Effect */
.nav-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    /* Subtle scale-up makes it feel interactive */
    transform: scale(1.05);
}

/* Animated accent "pill" that glows */
.nav-item::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    width: 0;
    height: 3px;
    background: #00f2ff; /* Electric Cyan */
    border-radius: 10px;
    transition: all 0.3s ease;
    transform: translateX(-50%);
    filter: blur(1px); /* Makes the highlight look like light emission */
}

.nav-item:hover::after {
    width: 15px;
    box-shadow: 0 0 12px #00f2ff, 0 0 20px rgba(0, 242, 255, 0.4);
}

#about {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px 20px; /* 30px vertical gap to give captions breathing room */
    padding: 3% 5%;
    background-color: whitesmoke;
    color: rgb(2, 2, 45);
}

/* Ensure the text and headers still span the full width */
#about h1, #about p {
    grid-column: 1 / -1;
    font-family: "Bodoni Moda", serif;
}

/* Style the container for the image + caption */
#about figure {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers caption under the photo */
}

#about img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
}

/* Style your captions */
#about figcaption {
    margin-top: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #555; /* A slightly softer color for a professional look */
    text-align: center;
}

#bigphoto {
    margin-top: -10px;
    width:100%;
    height: auto;
    /* filter: brightness(0.7); */
}

/* #contact {
    align-self: flex-start;
    padding-left:3%;
    text-align: left;
    background-color: whitesmoke;
    color:rgb(2, 2, 45);
    margin-left: 0%;
    padding-right: 100%;
    
}

#projects {
    align-self:flex-start;
    text-align: left;
    padding-left: 3%;
    margin-left: 0%;
} */

/* Unified style for all sections to ensure perfect alignment */
#about, #blog, #contact {
    width: 100%;
    padding: 20px 5%; /* Uniform top/bottom and left/right padding */
    align-self: center;
}

#blog, #contact {
    background-color: transparent; /* Or keep whitesmoke if you prefer alternating colors */
    text-align: left;
}

/* Remove the specific old blocks for these IDs to avoid conflicts */
#contact {
    background-color: whitesmoke;
    color: rgb(2, 2, 45);
    /* padding-right: 100%;  <-- REMOVED THIS: It was causing the weird width */
}

.bigphoto-container {
    position: relative; /* This is the anchor for the text */
    width: 100%;
    margin-top: -1px; /* Keeps your original positioning */
    line-height: 0;    /* Prevents tiny gaps at the bottom of the image */
}

.phototext {
    position: absolute;
    bottom: 50px;      /* Distance from the bottom */
    right: 40px;       /* Distance from the right */
    
    color: white;
    font-family: "Oranienbaum", serif;
    font-size: 6rem;   /* Adjust size as needed */
    font-weight: bold;

    /* Optional: adds a subtle glow to make it pop against the photo */
    /* text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);  */

}

#blog img {
    width: 100%;
    max-width: 600px; /* Limits size on big screens */
    display: block;
    margin-bottom: 20px;
    border-radius: 8px;
}

body {
    background: rgb(2, 2, 45);
    display: flex;
    flex-direction: column; 
    align-items: center; 
    padding-top: 0; /* Changed from 50px to 0 so bigphoto hits the top */
    color: white;
}

footer {
    width: 100%;
    text-align: center;
    padding: 20px 0;
    background-color: rgb(2, 2, 45);
    color: white;
}

/* Mobile Optimization */
@media (max-width: 768px) {
    /* Shrink the "Welcome." text so it fits the screen ratio */
    .phototext {
        font-size: 3rem; /* Reduced from 6rem */
        bottom: 20px;    /* Pull it closer to the corner */
        right: 20px;
    }

    /* Adjust the Nav Bar for thumbs/smaller screens */
    .glass-nav {
        width: 90%;      /* Let it span more of the width */
        gap: 4px;        /* Tighter spacing */
        padding: 5px;
    }

    .nav-item {
        padding: 10px 15px; /* Smaller touch targets */
        font-size: 0.8rem;
    }

    #blog img {
        width: 100%; /* Forces the screenshot to match the phone width */
        height: auto;
    }
}

#blog hr{
    width: 100%;
    text-align: center;
    color: white;
    padding: 0%;
}

#blog figcaption{
    margin-top: -16px;
    color: rgb(138, 169, 226);
}