:root {
    --primary-color: #272729;
    --secondary-color: #fffef7;
    --third-color: #cc58a0;
    --forth-color: #148cc5;
    --fifth-color: #f0512b;
    --sixth-color: #f4d9e0;
    --font-heading: 'Averia Serif Libre', serif;
    --font-body: 'Alata', sans-serif;
}

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

body {
    background-color: var(--secondary-color);
    font-family: var(--font-body);
    color: var(--primary-color);
    overflow-x: hidden;
}

/* --- Navigation --- */
.main-header {
    padding: 2rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    /* Ensures the logo has a bit of breathing room from the edge */
    padding: 10px;
    display: flex;
    align-items: center;
}

.main-monogram {
    /* No rotation needed now that the background is gone */
    width: 120px; /* Adjust this size to your liking */
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* Optional: A subtle hover effect to make it feel interactive */
.main-monogram:hover {
    transform: scale(1.1);
}


.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none; /* This removes the dots */
    padding: 0;       /* This removes the default left-side indentation */
    margin: 0;
}

.pill-link {
    text-decoration: none;
    color: var(--primary-color);
    padding: 0.6rem 1.5rem;
    border: 2px solid var(--primary-color);
    border-radius: 50px; /* The heavy radius from Reference 1 */
    font-weight: bold;
    transition: all 0.3s ease;
}

.pill-link:hover {
    background-color: var(--fifth-color); /* Pops to your vivid orange */
    color: white;
}

/* --- Hamburger --- */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background-color: var(--primary-color);
    transition: 0.3s;
}
/* --- DESKTOP NAV --- */
.nav-links {
    display: flex;
    list-style: none;
    gap: 15px;
    align-items: center;
}

.hamburger {
    display: none; /* Hidden on Desktop */
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 2000; /* Stays above the overlay */
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: var(--primary-color); /* Change to var(--primary-color) if background is light */
    border-radius: 10px;
    transition: 0.3s ease;
}

/* --- MOBILE STATE (Triggered at 1024px) --- */
@media (max-width: 1024px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none; /* Hidden by default */
    }

    /* THE OVERLAY PAGE */
    .nav-links.mobile-active {
        display: flex !important;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #272729; /* var(--primary-color) */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 1500;
        gap: 30px;
    }

    .nav-links.mobile-active .pill-link {
        font-size: 1.5rem;
        color: white;
        border: 1px solid rgba(255,255,255,0.2);
    }
}

/* --- ANIMATION (Turns into X) --- */
.hamburger.is-active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.hamburger.is-active span:nth-child(2) {
    opacity: 0;
}
.hamburger.is-active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
}

/* Container for the letters */
.main-title span span {
    display: inline-block;
    transition: transform 0.3s ease;
    animation: beep 10s infinite; /* The "Beeping" loop */
}

/* Creating the "Staggered" effect */
/* We give each letter a slightly different start time */
.main-title span span:nth-child(1) { animation-delay: 0.1s; }
.main-title span span:nth-child(2) { animation-delay: 0.2s; }
.main-title span span:nth-child(3) { animation-delay: 0.3s; }
.main-title span span:nth-child(4) { animation-delay: 0.4s; }
.main-title span span:nth-child(5) { animation-delay: 0.5s; }
.main-title span span:nth-child(6) { animation-delay: 0.6s; }
.main-title span span:nth-child(7) { animation-delay: 0.7s; }
.main-title span span:nth-child(8) { animation-delay: 0.8s; }

@keyframes beep {
    0%, 10% {
        color: var(--primary-color);
        transform: scale(1);
        text-shadow: none;
    }
    5% {
        /* This is the "Beep" moment */
        color: var(--fifth-color); /* Your Vivid Orange */
        transform: scale(1.1);
        text-shadow: 0 0 15px var(--fifth-color);
    }
}

/* Hover Effect: When you move your mouse over, they react */
.main-title span span:hover {
    color: var(--forth-color) !important; /* Vivid Blue */
    animation: none; /* Stops the beep so you can "play" with the letter */
    transform: translateY(-10px) rotate(5deg);
}

.main-title {
    font-family: var(--font-heading);
    font-size: clamp(4rem, 15vw, 10rem);
    line-height: 0.9;
    letter-spacing: -2px;
    text-transform: uppercase;
}

.sub-label {
    margin-top: 1rem;
    letter-spacing: 4px;
    font-size: 0.9rem;
    color: var(--forth-color);
}

/* --- Serrated Border --- */
.serrated-border {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 40px;
    background-color: var(--primary-color);
    clip-path: polygon(0% 100%, 5% 0%, 10% 100%, 15% 0%, 20% 100%, 25% 0%, 30% 100%, 35% 0%, 40% 100%, 45% 0%, 50% 100%, 55% 0%, 60% 100%, 65% 0%, 70% 100%, 75% 0%, 80% 100%, 85% 0%, 90% 100%, 95% 0%, 100% 100%);
}
.serrated-border {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 40px;
    background-color: var(--primary-color);
    
    /* The Shape */
    clip-path: polygon(0% 100%, 5% 0%, 10% 100%, 15% 0%, 20% 100%, 25% 0%, 30% 100%, 35% 0%, 40% 100%, 45% 0%, 50% 100%, 55% 0%, 60% 100%, 65% 0%, 70% 100%, 75% 0%, 80% 100%, 85% 0%, 90% 100%, 95% 0%, 100% 100%);
    
    /* The Scroll Animation */
    animation: fadeOutBorder linear both;
    animation-timeline: scroll();
    animation-range: exit -20% exit 100%; /* Starts fading as it leaves the view */
}

@keyframes fadeOutBorder {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(20px); /* Slight downward drift for smoothness */
    }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }
}
.section-header {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 6rem); /* Big and bold like your references */
    color: var(--primary-color);
    text-transform: uppercase;
    margin-bottom: 3rem;
    border-bottom: 2px solid var(--primary-color); /* Adds that clean designer line */
    display: inline-block;
    padding-right: 2rem;
}


/* Adjusting bio-main for readability */
.bio-main {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 600px;
}

.about-me {
    background-color: var(--secondary-color); /* The off-white #fffef7 */
    padding: 8% 5%;
    position: relative;
    color: var(--primary-color);
}

.about-flex-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* --- The Fade-in-on-Scroll Class --- */
/* This is the base state before the trigger happens */
.fade-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out; /* The 1s slow reveal */
}

/* This is the state when the element enters the view */
.fade-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* --- Image Stack (Left) --- */
.about-images {
    flex: 1;
    position: relative;
}

.main-portrait {
    width: 100%;
    max-width: 500px;
    height: auto;
    object-fit: cover;
    border-radius: 10px; /* Sophisticated edge */
    border: 3px solid var(--primary-color);
}

/* Add the abstract floating asset look from your references */
/* .asset-1, .asset-2 {
    position: absolute;
    max-width: 150px;
    opacity: 0.8;
} */

.asset-1 {
    top: -20px;
    left: -30px;
}

.asset-2 {
    bottom: -20px;
    right: -30px;
    mix-blend-mode: multiply; /* Looks great on cream */
}

/* --- Bio Text (Right) --- */
.about-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.bio-intro {
    font-size: 0.8rem;
    letter-spacing: 3px;
    color: var(--forth-color); /* Vivid Blue */
    font-weight: 700;
}

.bio-main {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--primary-color);
}

.bio-action-block {
    margin-top: 2rem;
    text-decoration: none;
    background: var(--sixth-color); /* Soft Pink from ref 2 */
    padding: 2rem;
    border-radius: 20px;
    font-family: var(--font-heading);
    color: var(--fifth-color); /* Vivid Orange */
    font-size: 2rem;
    max-width: 450px;
}


/* Optional: Add a little "pop" when they hover over the button */
.bio-action-block {
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.bio-action-block:hover {
    transform: scale(1.02);
    background-color: var(--fifth-color); /* Swaps to vivid orange on hover */
    color: var(--secondary-color);        /* Text turns off-white */
}
.bio-action-block a {
    text-decoration: none;
    color: var(--secondary-color);
}

/* --- Section Footer --- */
.about-footer {
    border-top: 1px solid var(--primary-color);
    margin-top: 5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    color: var(--forth-color);
    font-size: 0.8rem;
    letter-spacing: 2px;
}

/* Mobile Tweak */
@media (max-width: 1024px) {
    .about-flex-container {
        flex-direction: column-reverse; /* Reverses so image shows after text on phone */
        gap: 3rem;
    }
}

/* --- Selected Works Section --- */
.selected-works {
    background-color: var(--secondary-color); /* The clean off-white */
    padding: 10% 5%;
    position: relative;
    color: var(--primary-color);
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); /* Responsive grid */
    gap: 4rem;
    max-width: 1400px;
    margin: 4rem auto;
}

/* --- The Floating Card (The "Box") --- */
.project-card {
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
    background-color: #fff; /* White base for cards */
    padding: 1rem;
    border-radius: 20px; /* Sophisticated like Reference 4 */
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05); /* Soft baseline shadow */
    will-change: transform; /* Hint for browser performance */
}

/* Base "float" setting for JS to use */
.float-card {
    transform: translateY(0) rotate(0);
}

/* Hover Interaction: The Box "Reacts" to you */
.project-card:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.15); /* Elevates the shadow */
    border: 3px solid var(--forth-color); /* Blue accent border pops on hover */
}

.project-card:hover .work-thumb {
    transform: scale(1.05); /* Image slightly "pings" */
}

/* --- Card Content --- */
.project-media {
    overflow: hidden;
    border-radius: 10px; /* Internal image radius */
}

.work-thumb {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.project-title {
    font-family: var(--font-heading); /* Averia Serif */
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.project-category {
    font-size: 0.8rem;
    letter-spacing: 3px;
    color: var(--forth-color); /* Vivid Blue accent from Reference 4 */
    font-weight: 700;
}

.project-desc {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--primary-color);
}

/* --- Section Footer & See All Button (Bottom Right) --- */
.works-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2x2 layout on desktop */
    gap: 6rem; /* Bigger gap makes the floating more obvious */
    max-width: 1200px;
    margin: 4rem auto;
}

.works-footer {
    display: flex;
    justify-content: flex-end; /* Align button to bottom right */
    margin-top: 5rem;
    padding-top: 0; /* Removed padding */
    border-top: none; /* Removed the line */
}

/* Resetting the card so it stays stable */
.project-card {
    background-color: #fff;
    padding: 1.2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    will-change: transform;
    transition: box-shadow 0.3s ease; /* Only shadow transitions on hover now */
}

.project-card:hover {
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}
.see-all-btn {
    text-decoration: none;
    color: var(--secondary-color);
    background-color: var(--forth-color); /* High contrast blue button */
    padding: 1rem 2rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: bold;
    font-size: 0.9rem;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.see-all-btn:hover {
    background-color: var(--fifth-color); /* Vivid Orange on hover */
    transform: translateX(10px); /* Subtle forward shift */
}

.arrow-icon {
    font-size: 1.2rem;
}

/* Responsive Grid adjustment for phones */
@media (max-width: 768px) {
    .works-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
/* --- Floating Animation --- */
@keyframes bobbing {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px); /* The "Up" point */
    }
    100% {
        transform: translateY(0px);
    }
}

.project-card {
    background-color: #fff;
    padding: 1.2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    
    /* Apply the float */
    animation: bobbing 4s ease-in-out infinite; 
    transition: box-shadow 0.3s ease, border 0.3s ease;
}

/* Offset the timing so they don't move in sync */
.project-card:nth-child(1) { animation-delay: 0s; }
.project-card:nth-child(2) { animation-delay: 1.5s; }
.project-card:nth-child(3) { animation-delay: 0.8s; }
.project-card:nth-child(4) { animation-delay: 2.2s; }

/* Pause the floating when you hover so the user can click easily */
.project-card:hover {
    animation-play-state: paused;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    border: 2px solid var(--forth-color);
}

/* --- Brand Dark Contact Section --- */
.section-contact.brand-theme {
    background-color: var(--primary-color); /* Your #272729 - the closest black */
    padding: 80px 5% 40px 5%;
    position: relative;
    color: var(--secondary-color); /* Off-white text */
    /* Circles removed: no ::before scalloped edge */
}

.contact-title {
    color: var(--secondary-color);
    font-family: var(--font-heading);
    margin-bottom: 4rem;
    text-align: center;
}

/* --- Unified Pink Social Squares --- */
/* get in touch */
/* --- Brand Dark Contact Section --- */
.section-contact.brand-dark {
    display: block;
    padding: 80px 20px 40px 20px;
    background-color: var(--primary-color); /* Updated to your deep brand charcoal */
    position: relative;
    /* Removed margin and top scallops for a clean, sharp transition */
}

h4 {
    text-align: center;
    font-size: 36px;
    font-family: "Averia Serif Libre", serif;
    color: var(--secondary-color); /* Set to off-white for legibility on dark */
    margin-bottom: 40px;
}

/* --- Social Group --- */
.groupsocials {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.social-square {
    display: flex;
    justify-content: center; 
    color: var(--sixth-color);
    align-items: center;  
    width: 100px; 
    height: 100px; 
    border-radius: 15px; 
    transition: transform 0.3s ease;
}

.social-square img {
    object-fit: contain;
    filter: brightness(0) invert(1); /* Makes icons white on pink squares */
}

.social-square:hover {
    transform: scale(1.1) rotate(3deg);
    background-color: var(--fifth-color); /* Flash of Vivid Orange on hover */
}

/* --- Footer Area --- */
.footer {
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

#footercopywrite {
    text-align: center;
}

#footercopywrite p {
    font-size: 12px;
    font-family: alata;
    color: var(--secondary-color);
    opacity: 0.6;
}

h5 {
    text-align: center;
    font-size: 12px;
    margin-top: 20px;
}

h5 a {
    text-decoration: none;
    color: var(--fifth-color); /* Vivid Orange for the "Back to Top" link */
    font-family: alata;
    font-weight: bold;
    letter-spacing: 1px;
    transition: color 0.3s;
}

h5 a:hover {
    color: var(--third-color); /* Switches to Pink on hover */
}