/* Reset and Base Styles */
:root {
    /* Color Palette derived from Logo */
    --clr-bg: #222222; /* Logo background grey */
    --clr-bg-alt: #1a1a1a;
    --clr-surface: #2c2c2c;
    --clr-anthracite: #333333;
    --clr-red: #e3382c; /* Logo red */
    --clr-red-hover: #c42b22;
    --clr-text: #f0f0f0;
    --clr-text-muted: #aaaaaa;
    
    /* Typography */
    --font-sans: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;
    
    /* Spacing */
    --nav-height: 100px;
    --transition-fast: 0.3s ease;
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--clr-bg);
    color: var(--clr-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Luxury Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #111111; /* Very dark rich black/grey */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease, visibility 1s ease, transform 1s cubic-bezier(0.77, 0, 0.175, 1);
}

.preloader.loaded {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100%); /* Slide up elegantly as it fades */
}

.preloader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.preloader-brand {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: #ffffff;
    letter-spacing: 8px;
    margin-right: -8px; /* Offset the letter spacing for perfect center */
    text-shadow: 0 0 20px rgba(255,255,255,0.2);
    animation: breath 2s infinite alternate ease-in-out;
}

.preloader-line {
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--clr-red), transparent);
    animation: drawLine 2.5s forwards ease-in-out;
}

@keyframes breath {
    0% { opacity: 0.4; }
    100% { opacity: 1; }
}

@keyframes drawLine {
    0% { width: 0; opacity: 0; }
    50% { opacity: 1; }
    100% { width: 150px; opacity: 1; }
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

.mt-5 {
    margin-top: 3rem;
}

.bg-darker {
    background-color: var(--clr-bg-alt);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--clr-red);
}

.text-center.section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    color: var(--clr-text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

.highlight {
    color: var(--clr-red);
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 600;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-weight: 500;
    border-radius: 4px;
    transition: all var(--transition-fast);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--clr-red);
    color: white;
}

.btn-primary:hover {
    background-color: var(--clr-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(211, 47, 47, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    border-color: white;
    background-color: rgba(255, 255, 255, 0.05);
}

.btn-outline {
    background-color: transparent;
    color: var(--clr-red);
    border: 1px solid var(--clr-red);
}

.btn-outline:hover {
    background-color: var(--clr-red);
    color: white;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: rgba(34, 34, 34, 0.7); /* More transparent initially */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-slow);
}

.navbar.scrolled {
    height: 80px; /* Shrink on scroll */
    background-color: rgba(34, 34, 34, 0.98);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1400px; /* Wider container for premium feel */
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
    width: 160px; /* Allocated space for the logo container */
    height: 160px; /* Make it a square for the ring to sit nicely */
    transform: translateY(35px); /* Push the whole container down so the top of the ring doesn't clip */
    transition: all var(--transition-slow);
}

.navbar.scrolled .logo {
    transform: translateY(0); /* Reset on scroll */
    width: 70px;
    height: 70px;
}

/* The subtle glowing aura */
.logo::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 130px;
    height: 130px;
    background: radial-gradient(circle, rgba(227, 56, 44, 0.5) 0%, rgba(227, 56, 44, 0) 70%);
    z-index: -2;
    border-radius: 50%;
    pointer-events: none;
    transition: all var(--transition-slow);
}

/* Premium Glowing Geometric Ring */
.logo::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centered exactly inside .logo */
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: transparent;
    border: 3px solid rgba(227, 56, 44, 0.9); /* Thicker frame to clip the image edges */
    z-index: 2; /* ABOVE the image */
    pointer-events: none;
    transition: all var(--transition-slow);
    box-shadow: 0 0 25px rgba(227, 56, 44, 0.6), inset 0 0 10px rgba(227, 56, 44, 0.5); /* Outer and inner glow */
}

.navbar.scrolled .logo::after {
    opacity: 0;
}

.navbar.scrolled .logo::before {
    width: 70px;
    height: 70px;
    border: 2px solid rgba(227, 56, 44, 0.9); /* Maintain strong border */
    box-shadow: 0 0 15px rgba(227, 56, 44, 0.6), inset 0 0 5px rgba(227, 56, 44, 0.5); /* Maintain glow */
}

.logo-img {
    height: 160px; /* Matched the 160px width/height of the ring exactly */
    width: 160px; /* Force width to match the ring perfectly */
    object-fit: cover; /* Ensure the image fills the circle without stretching */
    display: block;
    border-radius: 50%; /* Perfect circle */
    transform: translateY(0); /* Keep centered in the parent */
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.9)); /* Strong shadow on the logo itself */
    transition: all var(--transition-slow);
    z-index: 1; /* BELOW the red ring */
}

.navbar.scrolled .logo-img {
    height: 70px; /* Match scrolled ring size */
    width: 70px;
    transform: translateY(0);
    filter: none;
}

.logo:hover .logo-img {
    transform: translateY(0) scale(1.05); /* keep centered on hover */
}

.footer-brand .logo {
    width: 120px;
    height: 120px;
    margin-bottom: 2rem;
    transform: none; /* remove hang effect */
}

/* Remove hover scale for footer */
.footer-brand .logo:hover .logo-img {
    transform: none;
}

/* Red ring and glow for the footer logo */
.footer-brand .logo::after {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(227, 56, 44, 0.4) 0%, rgba(227, 56, 44, 0) 70%);
}

.footer-brand .logo::before {
    width: 120px;
    height: 120px;
    border: 3px solid rgba(227, 56, 44, 0.9);
    box-shadow: 0 0 20px rgba(227, 56, 44, 0.5), inset 0 0 10px rgba(227, 56, 44, 0.4);
}

.footer-brand .logo-img {
    height: 120px; 
    width: 120px; /* Ensure proportion */
    border-radius: 50%; 
    margin-bottom: 0; /* Margin handled by parent (.logo) to prevent double margin and text overlap */
    transform: none; /* Keep it inside the box */
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.8));
}

.nav-links {
    display: flex;
    gap: 3rem; 
    flex: 1;
    justify-content: flex-end; /* Move back to right since phone btn is gone */
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: none; /* Revert back to classic casing */
    letter-spacing: normal;
    position: relative;
    padding: 8px 16px; /* Added padding so the red background has room to glow */
    color: rgba(255, 255, 255, 0.85); 
    transition: all var(--transition-fast);
    display: inline-block;
    z-index: 1; /* Keep text above the background glow */
    border-radius: 6px; /* Smooth corners for the hover effect */
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffffff; /* Make text pure white on top of red */
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4); /* Slight crisp text glow */
}

/* Red glowing background effect hidden by default */
.nav-links a::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centered behind text */
    width: 80%; /* Starts slightly smaller */
    height: 80%;
    background-color: var(--clr-red);
    border-radius: 6px;
    z-index: -1; /* Goes behind the text */
    opacity: 0;
    transition: all var(--transition-fast);
    /* Very strong, sensual red glowing aura */
    box-shadow: 0 0 15px rgba(227, 56, 44, 0.7), 0 0 30px rgba(227, 56, 44, 0.3);
}

/* Expands and glows on hover */
.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
    height: 100%;
    opacity: 1;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Mobile Menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--clr-bg);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right var(--transition-slow);
}

.mobile-menu-overlay.active {
    right: 0;
}

.close-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--clr-text-muted);
}

.close-btn:hover {
    color: var(--clr-text);
}

.mobile-nav-links {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mobile-nav-links a {
    font-size: 1.5rem;
    font-weight: 500;
}

.mobile-nav-links a:hover {
    color: var(--clr-red);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--nav-height);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Layer a sleek gradient over the specific template image requested by user */
    background: linear-gradient(to bottom, rgba(34, 34, 34, 0.75), rgba(34, 34, 34, 0.95)), url('assets/%C5%9Fablon.jpg') center/cover no-repeat;
    z-index: -2;
    animation: slowZoom 30s infinite alternate linear;
    transform-origin: center center;
}

@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
}

/* Add a very subtle modern glowing orb to the background for depth */
.hero::before {
    content: '';
    position: absolute;
    top: 25%;
    right: 15%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(227, 56, 44, 0.12) 0%, rgba(227, 56, 44, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
    animation: floatOrb 10s infinite alternate ease-in-out;
}

@keyframes floatOrb {
    0% { transform: translateY(0) scale(1); opacity: 0.8; }
    100% { transform: translateY(-30px) scale(1.1); opacity: 1; }
}

.hero::after {
    /* Overlay for texture and subtle darkening */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noiseFilter)"/></svg>') opacity(0.04);
    z-index: -1;
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    padding: 0 2rem;
    z-index: 1;
}

.hero .subtitle {
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--clr-text-muted);
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero .description {
    font-size: 1.1rem;
    color: var(--clr-text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-10px) translateX(-50%);
    }
    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text .lead {
    font-size: 1.25rem;
    color: var(--clr-red);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.about-text p {
    color: var(--clr-text-muted);
    margin-bottom: 1.2rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item h3 {
    font-size: 2rem;
    color: var(--clr-red);
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 0.9rem;
    margin: 0;
}

.image-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 120%; /* Aspect ratio */
}

.texture-box {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--clr-anthracite), var(--clr-bg-alt));
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.texture-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 2px, transparent 2px, transparent 10px);
}

.texture-box h2 {
    position: relative;
    z-index: 1;
    font-family: 'Cinzel', serif; /* Classic, highly elegant, luxury font that's unmistakable and highly readable */
    font-weight: 600; /* Medium-bold for clarity without being clunky */
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 2px; /* Perfect balance of luxury spacing */
    font-size: 2.8rem;
    color: #ffffff;
    -webkit-text-stroke: 0px; /* Removed stroke for pure clean edges */
    opacity: 1;
    line-height: 1.3;
    /* Deep dark contrast shadows for absolute crisp readability, faint warm glow */
    text-shadow: 
        0px 2px 8px rgba(0, 0, 0, 1), 
        0px 5px 15px rgba(0, 0, 0, 0.8),
        0px 0px 20px rgba(255, 255, 255, 0.2);
}

/* Manifesto / Philosophy Section */
.philosophy {
    background-color: var(--clr-bg);
    position: relative;
    padding: 8rem 0; /* Extra padding for airy luxury feel */
}

/* Elegant vertical dividing lines */
.philosophy::before, .philosophy::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, rgba(227, 56, 44, 0.4), transparent);
}
.philosophy::before { top: 0; }
.philosophy::after { bottom: 0; }

.philosophy-icon {
    font-size: 3rem;
    color: rgba(227, 56, 44, 0.15); /* Faint ambient red quote mark */
    margin-bottom: 2.5rem;
}

.philosophy-text {
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    font-weight: 500;
    line-height: 1.6;
    color: #ffffff;
    max-width: 900px;
    margin: 0 auto;
    text-shadow: 0 5px 15px rgba(0,0,0,0.5);
    text-transform: none; /* Keep it sentence-case to read beautifully like a quote */
}

.philosophy-author {
    margin-top: 3rem;
    font-family: var(--font-sans);
    color: var(--clr-text-muted);
    letter-spacing: 4px;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Gallery Section - Masonry Grid */
.projects-masonry {
    column-count: 3;
    column-gap: 1.5rem;
}

.masonry-item.hidden-item {
    display: none;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background-color: var(--clr-surface);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-slow), filter var(--transition-fast);
}

.item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(227, 56, 44, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.item-overlay i {
    font-size: 2rem;
    color: white;
    transform: scale(0.5);
    transition: transform var(--transition-fast);
}

.masonry-item:hover img {
    transform: scale(1.05);
    filter: brightness(0.7);
}

.masonry-item:hover .item-overlay {
    opacity: 1;
}

.masonry-item:hover .item-overlay i {
    transform: scale(1);
}

/* Modal / Lightbox */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    overflow: auto;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content-wrapper {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
}

.modal-img {
    margin: auto;
    display: block;
    max-width: 100%;
    max-height: 90vh;
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    object-fit: contain;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 2001;
}

.close-modal:hover {
    color: var(--clr-red);
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-desc {
    color: var(--clr-text-muted);
    margin-bottom: 2rem;
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.icon-box {
    width: 50px;
    height: 50px;
    background-color: rgba(211, 47, 47, 0.1);
    color: var(--clr-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.info-text h4 {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.info-text p, .info-text a {
    color: var(--clr-text-muted);
    transition: color var(--transition-fast);
}

.info-text a:hover {
    color: var(--clr-red);
}

.contact-map {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background-color: var(--clr-surface);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    background-image: radial-gradient(circle at 50% 50%, rgba(211, 47, 47, 0.05) 0%, transparent 50%);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.map-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.map-icon {
    font-size: 3rem;
    color: var(--clr-red);
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

/* Footer */
.footer {
    background-color: var(--clr-bg-alt);
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-brand p {
    color: var(--clr-text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.footer-links p {
    color: var(--clr-text-muted);
    font-size: 0.9rem;
}

/* Animations */
.animate-up, .scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-up.active, .scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* Responsive */
@media screen and (max-width: 992px) {
    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .image-wrapper {
        padding-bottom: 60%;
    }
    
    .projects-masonry {
        column-count: 2; /* 2 columns on tablet */
    }
}

@media screen and (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .projects-masonry {
        column-count: 2; /* 2 columns on mobile to save vertical scrolling */
        column-gap: 10px; /* Tighter gap for small screens */
    }
    
    .hero h1 {
        font-size: 2.2rem; /* Scaled down slightly more to fit nicely */
    }
    
    .hero-btns {
        flex-direction: column;
    }
    
    .stats {
        gap: 1rem;
    }
    
    .stat-item h3 {
        font-size: 1.5rem;
    }

    /* Mobile Typography & Spacing Optimizations */
    .philosophy {
        padding: 4rem 1rem; /* Reduce huge padding on mobile */
    }
    
    .philosophy-text {
        font-size: 1.4rem; /* Scale down the manifesto for mobile */
    }
    
    .texture-box h2 {
        font-size: 1.8rem; /* Fit text perfectly into the image on phones */
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Luxury Floating WhatsApp Button */
.floating-wa {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background: linear-gradient(135deg, #111111, #222222);
    color: #ffffff;
    width: 60px;
    height: 60px;
    border-radius: 30px; /* Perfect circle initially */
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    z-index: 1000;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05); /* Slight glassy edge */
    white-space: nowrap; /* Keep text on one line */
}

/* The actual icon styling */
.floating-wa i {
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.4s ease;
    z-index: 2;
}

/* Green ambient glow behind the black button instead of making the button fully green */
.floating-wa::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(37, 211, 102, 0.15) 0%, transparent 80%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* The expanding text */
.wa-text {
    opacity: 0;
    font-family: var(--font-sans);
    font-weight: 500;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.9);
    text-transform: uppercase;
    
    /* Hide perfectly so it takes 0 space and icon is dead center */
    max-width: 0;
    overflow: hidden;
    margin-left: 0;
    font-size: 0.85rem;
    transition: all 0.4s ease;
}
/* Hover State - Expanding into a pill shape */
.floating-wa:hover {
    width: 250px; /* Expand to show text */
    padding: 0 20px; /* Internal padding */
    justify-content: center; /* KEEP IT PERFECTLY CENTERED */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    transform: translateY(-5px); /* Gentle float up */
}

.floating-wa:hover::before {
    opacity: 1; /* Show subtle green ambient glow on hover */
}

.floating-wa:hover i {
    color: #25D366; /* Light up WhatsApp green only on the icon */
    transform: scale(1.1);
}

.floating-wa:hover .wa-text {
    max-width: 200px; /* Expand width so text displays */
    opacity: 1;
    margin-left: 15px; /* Push text away from icon */
}

/* Mobile Adjustments */
@media screen and (max-width: 768px) {
    .floating-wa {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .floating-wa i {
        font-size: 1.5rem;
    }
    
    /* Disable expand effect on touch screens as it relies on hover */
    .floating-wa:hover {
        width: 50px;
        padding: 0;
        justify-content: center;
        transform: translateY(-2px);
    }
    
    .floating-wa:hover .wa-text {
        font-size: 0;
        opacity: 0;
        margin-left: 0;
    }
}
