:root {
    /* Color Palette */
    --charcoal-noir: #2B2B2B;
    --ironclad-grey: #565656;
    --urban-fog: #848484;
    --moonlit-silver: #B3B3B3;
    --cloud-veil: #E0E0E0;
    --white: #FFFFFF;

    --bg-color: var(--cloud-veil);
    --text-primary: var(--charcoal-noir);
    --text-secondary: var(--ironclad-grey);
    --card-bg: var(--white);
    /* White cards for contrast against grey bg */
    --accent-color: var(--urban-fog);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    padding: 2rem 4rem 4rem 4rem;
    /* Reduced top padding to move header higher */
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0 1rem;
}
/* Header 
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0 1rem;
    background-color: #FFFFFF;
    
    width: 1392px;
    height: 101px;
    margin-top: 0px;
    border-radius: 20px;
}
*/
.logo {
    font-weight: 500;
    font-size: 1.2rem;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}

nav a {
    text-decoration: none;
    color: var(--text-secondary);
    margin-left: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--text-primary);
}

/* Main Flex Layout (Masonry-like) */
.bento-grid {
    display: flex;
    gap: 1.25rem;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    min-height: 0;
}

.column {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-height: 0;
    /* Prevent overflow issues */
}

/* Column Widths */
.col-1 {
    flex: 1.5;
    /* Slightly wider */
}

.col-2 {
    flex: 1;
    /* Slightly narrower */
}

.col-3 {
    width: 447px;
    /* Fixed width */
    flex: none;
}

/* Cards */
.card {
    background-color: var(--card-bg);
    border-radius: 1.5rem;
    padding: 1.75rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        filter 0.4s ease,
        opacity 0.4s ease,
        box-shadow 0.4s ease;
    cursor: pointer;
    /* Interaction cue */
}

/* Hover Effects (Desktop/Mouse) */
@media (hover: hover) {

    /* When grid is hovered, blur all cards and reduce opacity slightly */
    .bento-grid:hover .card {
        filter: blur(2px) grayscale(20%);
        opacity: 0.8;
        transform: scale(0.98);
    }

    /* Exception: The specific card being hovered stays sharp, full color, and grows */
    .bento-grid .card:hover {
        filter: none;
        opacity: 1;
        transform: scale(1.03);
        z-index: 10;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    }
}

/* Touch/Click Effects (Mobile/Class-based) */
.bento-grid.has-focus .card {
    filter: blur(2px) grayscale(20%);
    opacity: 0.8;
    transform: scale(0.98);
}

.bento-grid .card.is-active {
    filter: none;
    opacity: 1;
    transform: scale(1.03);
    z-index: 10;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Specific Cards & Vertical Sizing */

.hero-text {
    background-color: #EEE;
    justify-content: center;
    flex: 1.7;
    /* Taller (approx 63% of column) */
}

.flower-icon svg {
    width: 80px;
    height: 80px;
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: var(--urban-fog);
    opacity: 0.5;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.hero-text h1 {
    font-size: clamp(2rem, 3.5vw, 3.5rem);
    line-height: 1.1;
    font-weight: 600;
    color: var(--text-primary);
    z-index: 1;
}

.hero-text i {
    font-family: 'Outfit', serif;
    font-style: italic;
    font-weight: 300;
}

.hero-image {
    padding: 0;
    flex: 2;
    /* Portrait dominates Col 2 */
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-showcase {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    background-color: #EEE;
    /* Explicit dimensions requested */
    width: 447px;
    height: 726px;
}

.project-img-container {
    flex: 1;
    border-radius: 1rem;
    overflow: hidden;
    margin: 1rem 0;
    min-height: 0;
    position: relative;
    /* Anchor for overlay */
}

.project-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(8px) brightness(0.8);
    /* Blur and darken for text contrast */
    transform: scale(1.1);
    /* Scale up to hide blur edges */
}

.overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #FFF;
    font-size: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    text-align: center;
    pointer-events: none;
    /* Let clicks pass through if needed */
}

.card-header {
    display: flex;
    justify-content: space-between;
    font-weight: 500;
    font-size: 1.1rem;
}

.project-list {
    list-style: none;
    margin-top: 1rem;
}

.project-list li {
    padding: 1rem 0;
    border-top: 1px solid var(--moonlit-silver);
    color: var(--text-primary);
    font-weight: 500;
}

/* Bottom elements */
.bio {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    flex: 1;
}

.dots-icon {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 24px;
    gap: 4px;
    margin-bottom: 2rem;
}

.dot {
    width: 4px;
    height: 4px;
    background-color: var(--accent-color);
    /* Pink in original, Grey here */
    border-radius: 50%;
}

.bio p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.contact-cta {
    background-color: #EEE;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    /* Result: Contact is taller (45%) compared to Bio (37%) because Col 2 total flex is smaller (2.2 vs 2.7) */
}

.contact-cta h2 {
    font-size: 2rem;
    font-weight: 400;
    margin-top: auto;
}

.arrow-lg {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 1.5rem;
}

.social-links {
    background-color: #EEE;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    height: 101px;
    /* Fixed height */
}

.social-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
}

/* Entrance Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        translate: -100px 0;
    }

    to {
        opacity: 1;
        translate: 0 0;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        translate: 100px 0;
    }

    to {
        opacity: 1;
        translate: 0 0;
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        translate: 0 -100px;
    }

    to {
        opacity: 1;
        translate: 0 0;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        translate: 0 100px;
    }

    to {
        opacity: 1;
        translate: 0 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Assign Animations */
/* Assign Animations */
/* Initial State: Hidden */
header,
.col-1 .card,
.col-2 .hero-image,
.col-2 .contact-cta,
.col-3 .card {
    opacity: 0;
}

/* Animations Trigger on Load */
/* Header fades in last */
body.loaded header {
    animation: fadeIn 2s ease forwards;
    animation-delay: 1.6s;
}

/* Left Column: From Left */
body.loaded .col-1 .card {
    animation: slideInLeft 1.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

body.loaded .col-1 .card:nth-child(2) {
    animation-delay: 0.2s;
}

/* Middle Column: Top one Down, Bottom one Up */
body.loaded .col-2 .hero-image {
    animation: slideInDown 1.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: 0.1s;
}

body.loaded .col-2 .contact-cta {
    animation: slideInUp 1.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: 0.1s;
}

/* Right Column: From Right */
body.loaded .col-3 .card {
    animation: slideInRight 1.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

body.loaded .col-3 .card:nth-child(2) {
    animation-delay: 0.2s;
}

/* Responsive */
@media (max-width: 1024px) {
    body {
        padding: 2rem;
        /* Reduce padding on tablet */
    }

    .bento-grid {
        flex-wrap: wrap;
        /* Allow wrapping */
    }

    .col-1,
    .col-2 {
        flex: 1 1 45%;
        /* Two columns on tablet */
    }

    .col-3 {
        flex: 1 1 100%;
        /* Full width on tablet */
        width: 100%;
        /* Reset fixed width */
        flex-direction: row;
        /* Horizontal layout for last col elements if room permits */
        gap: 1.25rem;
    }

    .project-showcase {
        width: 100%;
        /* Fluid width */
        height: auto;
        /* Fluid height */
        flex: 1;
    }

    .social-links {
        width: 100%;
        flex: 1;
    }
}

@media (max-width: 768px) {
    body {
        padding: 1rem;
        height: auto;
        /* Allow scrolling */
    }

    header {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 2rem;
    }

    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    nav a {
        margin: 0;
    }

    .bento-grid {
        flex-direction: column;
        /* Stack vertically */
    }

    .col-1,
    .col-2,
    .col-3 {
        width: 100%;
        flex: none;
    }

    .col-3 {
        flex-direction: column;
        /* Stack vertically inside col-3 too */
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .project-showcase {
        width: 100%;
        height: auto;
        min-height: 400px;
    }

    .social-links {
        height: auto;
        padding: 2rem;
    }
}

/* Social Icons (Uiverse.io) */
.social-links {
    overflow: visible;
    /* Allow tooltips to pop out */
    padding: 0;
    /* Wrapper handles padding */
}

/* From Uiverse.io by escannord */
.wrapper {
    display: inline-flex;
    list-style: none;
    height: 100%;
    /* Fit parent */
    width: 100%;
    padding-top: 0;
    /* Centering handled by flex in parent */
    font-family: "Poppins", sans-serif;
    justify-content: center;
    align-items: center;
    /* Center icons vertically */
}

.wrapper .icon {
    position: relative;
    background: #fff;
    z-index: 0;
    border-radius: 50%;
    margin: 10px;
    width: 50px;
    height: 50px;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.wrapper .icon::after {
    content: "";
    position: absolute;
    display: inline-block;
    height: 100%;
    width: 100%;
    background-color: transparent;
    z-index: -1;
    border-radius: 50%;
    top: 100%;
}

.wrapper .icon:hover:after {
    animation: bg-pos 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55) 1 both;
    animation-timing-function: ease-in-out;
}

.wrapper .icon:hover {
    color: #fff;
    overflow: unset;
    transition: color 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    animation: overflow-toggle 0.7s;
}

.wrapper .tooltip {
    position: absolute;
    top: 0;
    font-size: 14px;
    background: #fff;
    color: #fff;
    padding: 5px 8px;
    border-radius: 5px;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
}

.wrapper .tooltip::before {
    position: absolute;
    content: "";
    height: 8px;
    width: 8px;
    background: #fff;
    bottom: -3px;
    left: 50%;
    transform: translate(-50%) rotate(45deg);
    transition: all 0.3s 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.wrapper .icon:hover .tooltip {
    top: -45px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.wrapper .icon:hover span,
.wrapper .icon:hover .tooltip {
    text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.1);
}

.wrapper .whatsapp::after {
    background-color: #25D366;
}

.wrapper .twitter::after {
    background-color: #1da1f2;
}

.wrapper .instagram::after {
    background-color: #e4405f;
}

.wrapper .whatsapp:hover .tooltip,
.wrapper .whatsapp:hover .tooltip::before {
    background: #25D366;
    color: #fff;
}

.wrapper .twitter:hover .tooltip,
.wrapper .twitter:hover .tooltip::before {
    background: #1da1f2;
    color: #fff;
}

.wrapper .instagram:hover .tooltip,
.wrapper .instagram:hover .tooltip::before {
    background: #e4405f;
    color: #fff;
}

@keyframes bg-pos {
    0% {
        top: 100%;
    }

    100% {
        top: 0;
    }
}

@keyframes overflow-toggle {
    0% {
        overflow: hidden;
    }

    100% {
        overflow: visible;
    }
}

/* Loading Screen */