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

body{
    background:#f2f2f2;
    overflow-x:hidden;
    overflow-y:auto;
    font-family:Poppins,sans-serif;
}

.luxury-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #fafafa; /* Matches your smoky white aesthetic */
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px; /* Space between text and line */
}

/* 1. The Breathing Typography */
.loader-title {
    font-family: "Cormorant Garamond", serif;
    font-size: 28px;
    font-style: italic;
    letter-spacing: 4px;
    color: #111;
    opacity: 0;
    /* Softly fades in and floats slightly */
    animation: textBreathe 1.5s ease-in-out infinite alternate;
}

/* 2. The Progress Line Track */
.loader-progress-wrap {
    width: 100px;
    height: 1px;
    background: rgba(0, 0, 0, 0.1); /* Very faint grey track */
    overflow: hidden;
    position: relative;
}

/* 3. The Sweeping Black Line */
.loader-progress {
    width: 100%;
    height: 100%;
    background: #111; /* Sharp dark ink color */
    transform: translateX(-100%);
    /* Sweeps from left to right, smoothly */
    animation: lineSweep 1.8s cubic-bezier(0.77, 0, 0.175, 1) infinite;
}

/* --- Animations --- */
@keyframes textBreathe {
    0% { 
        opacity: 0.2; 
        transform: translateY(3px); 
    }
    100% { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes lineSweep {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(0); } /* Pauses slightly in the middle */
    100% { transform: translateX(100%); }
}

/* Class to fade out the entire screen when the page loads */
.luxury-preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}


.navbar {
    position: fixed;
    top: 40px;
    right: 60px; /* Keeps it on the right side */
    z-index: 9999;
}

.navbar ul {
    display: flex;
    align-items: center;
    gap: 45px;
    list-style: none;
}

.navbar a {
    position: relative;
    text-decoration: none;
    color: #ffffff;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: .35s ease;
}

.navbar a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0%;
    height: 1px;
    background: #ffffff;
    transition: .4s ease;
}

.navbar a:hover {
    color: #d8d8d8;
}

.navbar a:hover::after {
    width: 100%;
}

/* =========================================
   Hamburger Button Base
   ========================================= */
.hamburger {
    display: none; 
    cursor: pointer;
    flex-direction: column;
    gap: 8px;
    z-index: 10000; 
}

.hamburger .bar {
    display: block;
    width: 32px;
    height: 1.5px;
    background-color: #ffffff;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hamburger .bar:nth-child(2) {
    width: 22px;
    align-self: flex-end;
}

/* =========================================
   Mobile Media Query & Floating Cylinder Menu
   ========================================= */
@media screen and (max-width: 768px) {
    /* 1. Lock Hamburger to Top-Right Corner */
    .hamburger {
        display: flex;
        position: fixed; 
        top: 30px;
        right: 30px;
        z-index: 10000; 
    }

    /* Keep the 'X' white since the menu now floats below it! */
    .hamburger.active .bar {
        background-color: #ffffff; 
    }

    /* 2. The Floating Cylinder Widget */
    .navbar ul {
        position: fixed;
        top: 80px; /* Floats nicely below the hamburger */
        right: -100%; /* Hidden off-screen to the right */
        
        /* Cylinder Dimensions */
        width: 150px; 
        height: auto; 
        padding: 40px 0;
        
        /* The Pill/Cylinder Shape */
        border-radius: 40px; 
        
        /* Clean, frosted glass look */
        background: rgba(255, 255, 255, 0.215); 
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        box-shadow: -10px 15px 40px rgba(0, 0, 0, 0.15), inset 0 0 0 1px rgba(255,255,255,0.6);
        
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px; 
        margin: 0;
        transition: right 0.7s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 9998; 
    }

    /* When Active, slide in and float 20px from the right edge */
    .navbar ul.active {
        right: 20px;
    }

    /* 3. Premium Editorial Typography (Scaled down to fit cylinder) */
    .navbar a {
        font-family: "Cormorant Garamond", serif; 
        font-size: 22px; /* Adjusted to fit the small widget beautifully */
        letter-spacing: 2px;
        text-transform: capitalize;
        font-weight: 600;
        color: #111; 
    }

    /* Hide the underline effect on mobile */
    .navbar a::after {
        display: none; 
    }

    /* 4. Staggered Cascading Animation */
    .navbar ul li {
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .navbar ul.active li {
        opacity: 1;
        transform: translateY(0);
    }

    .navbar ul.active li:nth-child(1) { transition-delay: 0.2s; }
    .navbar ul.active li:nth-child(2) { transition-delay: 0.3s; }
    .navbar ul.active li:nth-child(3) { transition-delay: 0.4s; }
    .navbar ul.active li:nth-child(4) { transition-delay: 0.5s; }

    /* 5. Hamburger 'X' Animation */
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(4.75px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(2) {
        width: 32px; 
        transform: translateY(-4.75px) rotate(-45deg);
    }
}



.galleryHero{
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #000;
}

.heroImage{

    position:absolute;
    inset:0;

    width:100%;
    height:100%;

    object-fit:cover;

    transform:scale(1);

    opacity:1;

    filter:brightness(.85);

    will-change:transform,opacity,filter;

}

.heroOverlay{

    position:absolute;
    inset:0;

    background:linear-gradient(
        to bottom,
        rgba(0,0,0,.15),
        rgba(0,0,0,.65)
    );

    opacity:.45;

    will-change:opacity;

}

.heroContent{

    position:absolute;

    top:50%;
    left:50%;

    transform:translate(-50%,-50%);

    width:90%;

    text-align:center;

    color:#fff;

    z-index:5;

    will-change:transform,opacity;

}

.heroContent span{

    text-transform:uppercase;

    letter-spacing:6px;

    opacity:.75;

}

.heroContent h1{

    font-size:110px;

    margin:20px 0;

    font-family:"Brown Sugar";

    font-weight:400;

}

.heroContent p{

    width:620px;

    max-width:90%;

    margin:auto;

    line-height:1.8;

    color:#ddd;

}

/* ========================================= */

.transition{

    position:relative;

    height:100vh;

    background: rgb(206,206,206);

    overflow:hidden;
    z-index: 10;

}

.brush{

    position:absolute;

    left:-100%;
    top:0;

    width:200%;
    height:100%;

    background:url(images/brush.png) center/cover no-repeat;

    mix-blend-mode:screen;

}

.transition h2{

    position:absolute;

    left:50%;
    top:50%;

    transform:translate(-50%,-50%);

    color:#151515;

    font-size:72px;

    letter-spacing:10px;

    opacity:0;

}

/* ================= ZIGZAG GALLERY ================= */
.paintings-gallery {
    padding: 150px 8%;
    background: #111; /* Matches the transition background for seamless flow */
    color: #fff;
    position: relative;
    z-index: 10;
}

.zigzag-gallery {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 150px; /* Big spacing between artworks for a museum feel */
}

.gallery-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    opacity: 0; /* Hidden for GSAP animation */
    transform: translateY(60px); /* Pushed down for GSAP */
}

/* THE MAGIC: This reverses the layout for every 2nd, 4th, 6th row */
.gallery-row:nth-child(even) {
    flex-direction: row-reverse;
}

.gallery-text {
    flex: 1;
    max-width: 450px;
}

.gallery-text h3 {
    font-family: "Cormorant Garamond", serif;
    font-size: 48px;
    font-weight: 400;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.gallery-text p {
    color: #aaa;
    font-size: 16px;
    line-height: 1.9;
}

.gallery-image {
    flex: 1;
    max-width: 500px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6); /* Deep shadow */
}

.gallery-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-row:hover .gallery-image img {
    transform: scale(1.05); /* Slight zoom on hover */
}

/* Mobile Responsiveness: Stacks the image on top of text on small screens */
@media (max-width: 900px) {
    .gallery-row, 
    .gallery-row:nth-child(even) {
        flex-direction: column-reverse; /* Puts text under image */
        text-align: center;
        gap: 40px;
    }
    
    .gallery-text {
        max-width: 100%;
    }
}
 

/* Base Footer Setup */
.footer {
    padding: 120px 8% 70px;
    background: #f8f9fa; /* Slightly dynamic off-white background */
    text-align: center;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* Subtle Animated Ambient Glow Background */
.footer::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0,0,0,0.03) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: -1;
    animation: ambientPulse 8s ease-in-out infinite alternate;
}

@keyframes ambientPulse {
    0% { transform: translateX(-50%) scale(0.8); opacity: 0.5; }
    100% { transform: translateX(-50%) scale(1.2); opacity: 1; }
}

/* Heading with Subtle Reveal Effect */
.footer h2 {
    font-size: 60px; 
    font-weight: 400; 
    margin-bottom: 30px; 
    font-family: "Cormorant Garamond", serif; 
    color: #111; 
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s ease;
}

.footer h2:hover {
    transform: translateY(-3px);
    color: #000;
}

/* Subtext */
.footer p {
    max-width: 650px;
    margin: 0 auto 40px;
    color: #666;
    line-height: 1.9;
    transition: color 0.3s ease;
}

/* Animated Mail Link with Sliding Underline */
.mail {
    position: relative;
    display: inline-block;
    font-size: 28px;
    text-decoration: none;
    color: #111;
    margin-bottom: 60px;
    font-weight: 500;
    transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s ease;
}

/* Animated Underline */
.mail::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #111;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mail:hover {
    transform: translateY(-2px);
    color: #000;
}

.mail:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Socials Flex Container */
.socials {
    display: flex; 
    justify-content: center; 
    gap: 40px; 
    margin-bottom: 50px;
    flex-wrap: wrap;
}

/* Modern Social Links with Hover Lift & Underline */
.socials a {
    position: relative;
    color: #555; 
    text-decoration: none; 
    font-size: 13px; 
    text-transform: uppercase; 
    letter-spacing: 2px;
    padding: 5px 0;
    transition: color 0.3s ease, transform 0.3s ease;
}

.socials a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background-color: #111;
    transition: width 0.3s ease, left 0.3s ease;
}

.socials a:hover {
    color: #111;
    transform: translateY(-3px);
}

.socials a:hover::after {
    width: 100%;
    left: 0;
}

/* Copyright Text */
.copyright {
    color: #888;
    font-size: 14px;
    line-height: 2;
    transition: color 0.3s ease;
}

.copyright:hover {
    color: #444;
}

/* =======================================================
   RESPONSIVE DESIGN (Tablets, Mobile, and Small Screens)
======================================================== */

/* TABLET LAYOUT (Max 1024px) */
@media (max-width: 1024px) {
    /* Scale down large headings */
    .heroContent h1 { font-size: 85px; }
    .transition h2 { font-size: 55px; }
    
    /* Gallery adjustments */
    .paintings-gallery { padding: 120px 6%; }
    .zigzag-gallery { gap: 100px; }
    .gallery-row { gap: 40px; }
    .gallery-text h3 { font-size: 40px; }
    
    /* Footer */
    .footer h2 { font-size: 45px; }
    .mail { font-size: 24px; }
}

/* MOBILE LAYOUT (Max 768px) */
@media (max-width: 768px) {
    /* Center the Navbar */
    .navbar {
        top: 20px;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        display: flex;
        justify-content: center;
    }
    .navbar ul { gap: 20px; }
    .navbar a { font-size: 13px; }

    /* Hero Section */
    .heroContent h1 { font-size: 60px; margin: 15px 0; }
    .heroContent p { font-size: 15px; width: 100%; }

    /* Transition Section */
    .transition h2 { 
        font-size: 38px; 
        width: 90%;
        text-align: center;
    }

    /* Zigzag Gallery - Stack to vertical */
    .paintings-gallery { padding: 80px 5%; }
    .zigzag-gallery { gap: 80px; }
    
    .gallery-row, 
    .gallery-row:nth-child(even) {
        flex-direction: column-reverse; /* Puts the image on top of the text */
        text-align: center;
        gap: 30px;
    }

    .gallery-text { max-width: 100%; }
    .gallery-text h3 { font-size: 34px; margin-bottom: 15px; }
    .gallery-text p { font-size: 15px; }
    .gallery-image { max-width: 100%; width: 100%; }

    /* Footer Section */
 
}

/* SMALL MOBILE (Max 480px) */
@media (max-width: 480px) {
    /* Final tweaks for very small screens (like iPhone SE) */
    .navbar a { font-size: 11px; }
    .heroContent span { font-size: 11px; }
    .heroContent h1 { font-size: 45px; }
    
    .transition h2 { font-size: 28px; letter-spacing: 6px; }
    
    .gallery-text h3 { font-size: 28px; }
    
    
}
/* =========================================
   Responsive Media Queries for Footer
   ========================================= */

/* Tablet & Smaller Laptops (under 768px) */
@media screen and (max-width: 768px) {
    .footer {
        padding: 90px 6% 60px; /* Reduce top and bottom padding slightly */
    }
    
    .footer h2 {
        font-size: 46px; /* Scale down the giant heading */
        margin-bottom: 25px;
    }
    
    .footer p {
        font-size: 15px; 
        line-height: 1.7;
        margin-bottom: 35px;
    }
    
    .mail {
        font-size: 22px; /* Make email link fit better */
        margin-bottom: 45px;
    }
    
    .socials {
        gap: 25px; /* Bring social links closer together */
        margin-bottom: 40px;
    }
}

/* Mobile Phones (under 480px) */
@media screen and (max-width: 480px) {
    .footer {
        padding: 60px 5% 40px; /* Compress padding for small screens */
    }
    
    .footer h2 {
        font-size: 36px; /* Further scale down the heading */
    }
    
    .mail {
        font-size: 18px;
        word-break: break-word; /* Prevent long email addresses from breaking the screen width */
        margin-bottom: 35px;
    }
    
    .socials {
        flex-direction: column; /* Stack the social links vertically on tiny screens */
        gap: 20px;
    }

    .socials a {
        font-size: 12px;
    }
}

/* Optional: Disable hover effects for touch devices to prevent "sticky" hover states */
@media (hover: none) {
    .mail:hover::after,
    .socials a:hover::after {
        transform: scaleX(0);
        width: 0;
    }
    
    .footer h2:hover,
    .mail:hover,
    .socials a:hover {
        transform: none; /* Disables the jump/lift effect when tapped */
    }
}