:root {
    --bg-stone: #F5F5F0;
    --text-dark: #1A1A1A;
    --muted-grey: #8C8C8C;
}

body {
    background-color: var(--bg-stone);
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
}

.serif {
    font-family: 'Playfair Display', serif;
}

.reveal-img {
    transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
    filter: grayscale(10%);
}
.bg-stone {
    background-color: #F5F5F0 !important;
}
.portfolio-card:hover .reveal-img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

/* Force specific heights for the masonry rows */
.portfolio-card img {
    width: 100%;
    object-fit: cover; /* This crops the image to fill the space without stretching */
    transition: transform 1.5s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Height for the 'Square' / Hospitality box */
.img-square {
    height: 400px; 
}

/* Height for the 'Wide' / Loft box */
.img-wide {
    height: 400px;
}

/* For the 'Tall' image in the first row to match the combined height of others if needed */
.img-tall {
    height: 824px; /* (400px * 2) + gap */
}

.tracking-widest {
    letter-spacing: 0.25rem;
}

/* Container for the image to maintain aspect ratio */
.portfolio-card .img-wrapper {
    width: 100%;
    overflow: hidden;
    background-color: #e5e5e0; /* Placeholder color while loading */
}


/* Force images in Row 1 to be exactly 500px tall */
.img-row-1 {
    height: 500px;
    width: 100%;
    object-fit: cover;
}

/* Force images in Row 2 to be exactly 400px tall */
.img-row-2 {
    height: 400px;
    width: 100%;
    object-fit: cover;
}

/* Add a smooth hover effect consistent with luxury design */
.portfolio-card .img-wrapper img {
    transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.portfolio-card:hover img {
    transform: scale(1.04);
}
/* Row 1: Residential Wide */
.img-res-wide {
    height: 500px;
    width: 100%;
    object-fit: cover;
}

/* Row 1: Study Tall - Matches Residential height + its text margin */
.img-study-tall {
    height: 500px; 
    width: 100%;
    object-fit: cover;
}

/* Materiality Section */
.texture-card img {
    height: 350px;
    width: 100%;
    object-fit: cover;
    filter: saturate(0.8);
    transition: filter 0.5s ease;
}

.texture-card:hover img {
    filter: saturate(1.2);
}

/* Journal Section */
.journal-entry img {
    height: 250px;
    width: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease;
}

.journal-entry:hover img {
    opacity: 0.8;
}

.journal-entry h5 {
    font-size: 1.25rem;
    line-height: 1.4;
}

/* Border styles for consistency */
.border-light {
    border-color: rgba(0,0,0,0.05) !important;
}

/* Palette & Typography */
.bg-stone { background-color: #F5F5F0 !important; }
.serif { font-family: 'Playfair Display', serif; }
.tracking-widest { letter-spacing: 0.3rem; }

/* Grid Alignment (The Fix) */
.img-row-1 { height: 500px; width: 100%; object-fit: cover; }
.img-row-2 { height: 400px; width: 100%; object-fit: cover; }

/* Materiality & Journal Cards */
.texture-card img { height: 350px; width: 100%; object-fit: cover; filter: saturate(0.8); }
.journal-entry img { height: 250px; width: 100%; object-fit: cover; }

/* Hover Effects */
.portfolio-card:hover img, .journal-entry:hover img {
    opacity: 0.9;
    transform: scale(1.02);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* --- LUXURY HEADER NAV ANIMATION --- */

.nav-link {
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    color: #6c757d !important; /* Muted stone */
}

.nav-link:hover {
    color: #212529 !important; /* Darker stone/black */
}

/* The Animated Line */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 50%;
    background-color: #212529;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

/* Navbar Brand Hover */
.navbar-brand {
    transition: opacity 0.3s ease;
}

.navbar-brand:hover {
    opacity: 0.7;
}

/* --- LUXURY FOOTER HOVER ANIMATION --- */

.footer-link {
    position: relative;
    display: inline-block;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-decoration: none !important;
    color: #6c757d !important; /* Muted stone/grey */
    padding-left: 0;
}

.footer-link:hover {
    color: #212529 !important; /* Darker on hover */
    letter-spacing: 1px; /* Subtle expansion */
    padding-left: 12px; /* Shifts right to make room for the dot */
}

/* The Animated Dot */
.footer-link::before {
    content: "•";
    position: absolute;
    left: 0;
    opacity: 0;
    transition: all 0.4s ease;
    color: #212529;
}

.footer-link:hover::before {
    opacity: 1;
    left: 0;
}

/* Ensure social icons rotate slightly on hover */
.social-icon {
    display: inline-block;
    transition: transform 0.4s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
}

/* Responsive adjustment for tablets/mobile */
@media (max-width: 768px) {
    .img-res-wide, .img-study-tall, .img-square {
        height: 350px;
    }
}