/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --bg-color: #fcfcfc;
    --text-color: #2a2a2a;
    --accent-color: #bfa181; /* Muted Bronze/Gold */
    --secondary-bg: #f4f4f4;
    --dark-bg: #1a1a1a;
    --white: #ffffff;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Manrope', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, blockquote { font-family: 'Playfair Display', serif; font-weight: 500; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* =========================================
   2. NAVIGATION
   ========================================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;          /* CHANGED: Removed top/bottom padding */
    background: rgba(252, 252, 252, 0.95);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    height: 90px;           /* CHANGED: Increased height for better spacing */
}

/* Container acts as a "Frame" to crop the image */
.logo-link {
    display: block;
    height: 38px;        /* 1. Restricts height (hiding the bottom text) */
    overflow: hidden;    /* 2. Cuts off the "Interiors Pvt Ltd" part */
    position: relative;
    margin-top: 5px;     /* 3. Nudges the whole logo down to align with text */
}

/* The Image itself */
.logo-link img {
    height: 55px;        /* 4. Renders visually larger so KAPA is clear */
    width: auto;
    display: block;
    object-position: top; /* Ensures the top part (Triangles) stays visible */
}

/* Find this in section 2. NAVIGATION and replace it */
.nav-links {
    display: flex;
    gap: 2.5rem;
    padding-top: 0;      /* Reset this to 0 so we rely on the logo alignment instead */
}

.nav-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0; height: 1px;
    bottom: -5px; left: 0;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.menu-toggle { display: none; font-size: 1.8rem; cursor: pointer; color: var(--dark-bg); }

/* =========================================
   3. HERO & HEADERS
   ========================================= */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    position: relative;
    background: #111;
    color: var(--white);
    background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('https://images.unsplash.com/photo-1600210492486-724fe5c67fb0?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-content { max-width: 600px; z-index: 2; }
.hero h1 { font-size: 3.5rem; line-height: 1.2; margin-bottom: 1rem; }
.hero p { font-size: 1.1rem; margin-bottom: 2rem; opacity: 0.9; }

.page-header {
    height: 50vh;
    background-color: #1a1a1a;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1618219908412-a29a1bb7bddd?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
}

/* =========================================
   4. BUTTONS
   ========================================= */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--white);
    color: var(--text-color);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    transition: var(--transition);
    border: 1px solid var(--white);
}

.btn:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-dark {
    background-color: var(--dark-bg);
    color: var(--white);
    border: 1px solid var(--dark-bg);
}

.btn-dark:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

/* =========================================
   5. SECTIONS: ABOUT & PROCESS (NEW)
   ========================================= */
.about-section {
    padding: 6rem 5%;
    background-color: var(--white);
    text-align: center;
}

.container-narrow { max-width: 1000px; margin: 0 auto; }
.intro-text { max-width: 700px; margin: 0 auto 3rem auto; font-size: 1.1rem; color: #555; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    padding: 2rem;
    background: var(--secondary-bg);
    border-radius: 8px;
    transition: var(--transition);
    text-align: left;
}

.feature-card:hover {
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transform: translateY(-5px);
}

.feature-card ion-icon { font-size: 2rem; color: var(--accent-color); margin-bottom: 1rem; }
.feature-card h4 { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--dark-bg); }
.feature-card p { font-size: 0.9rem; color: #666; line-height: 1.5; }

/* Process Timeline */
.process-section {
    padding: 6rem 5%;
    background-color: #f9f9f9;
}

.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.section-header p { color: #666; }

.timeline-container {
    max-width: 800px; margin: 0 auto; position: relative; padding: 2rem 0;
}

.timeline-container::before {
    content: ''; position: absolute; left: 24px; top: 0;
    height: 100%; width: 2px; background: #ddd;
}

.timeline-item { display: flex; margin-bottom: 3rem; position: relative; }
.timeline-item:last-child { margin-bottom: 0; }

.timeline-number {
    width: 50px; height: 50px;
    background: var(--accent-color); color: white;
    border-radius: 50%; display: flex; justify-content: center; align-items: center;
    font-family: 'Playfair Display', serif; font-weight: bold; font-size: 1.2rem;
    flex-shrink: 0; z-index: 2; box-shadow: 0 0 0 5px #f9f9f9;
}

.timeline-content { margin-left: 2rem; padding-top: 0.5rem; }
.timeline-content h3 { font-size: 1.4rem; margin-bottom: 0.5rem; color: var(--dark-bg); }
.timeline-content p { color: #666; font-size: 1rem; }

.quote-box {
    max-width: 800px; margin: 4rem auto 0; text-align: center;
    padding: 2rem; border: 1px solid var(--accent-color); background: var(--white);
}
.quote-box blockquote { font-size: 1.2rem; font-style: italic; color: var(--dark-bg); line-height: 1.8; }

/* =========================================
   6. SERVICES GRID
   ========================================= */
.services { padding: 6rem 5%; }

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: stretch; /* Ensures equal height */
}

.service-card {
    display: block;
    background: var(--white);
    padding: 2.5rem;
    border: 1px solid #eee;
    transition: var(--transition);
    cursor: pointer;
    text-align: left;
    height: 100%;
}

.service-card ion-icon { font-size: 2rem; color: var(--accent-color); margin-bottom: 1rem; transition: transform 0.3s ease; }
.service-card h3 { margin-bottom: 0.5rem; font-size: 1.2rem; }
.service-card p { font-size: 0.9rem; color: #666; }

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: var(--accent-color);
}
.service-card:hover ion-icon { transform: scale(1.1); }

/* =========================================
   7. GALLERY & FILTERS
   ========================================= */
.gallery-section { padding: 4rem 5%; min-height: 80vh; }

.filter-container {
    display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    border: 1px solid #ddd; background: transparent;
    font-family: 'Manrope', sans-serif; cursor: pointer; transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--accent-color); color: white; border-color: var(--accent-color);
}

.gallery-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem;
}

.gallery-item {
    position: relative; height: 350px; overflow: hidden; border-radius: 4px; cursor: pointer;
}

.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }

.overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6); color: white;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    opacity: 0; transition: opacity 0.3s ease;
}

.gallery-item:hover img { transform: scale(1.1); }
.gallery-item:hover .overlay { opacity: 1; }

/* Logic for Filtering */
.gallery-item.hide { display: none; }
@keyframes popIn { 0% { opacity: 0; transform: scale(0.9); } 100% { opacity: 1; transform: scale(1); } }
.gallery-item.animate-pop { animation: popIn 0.5s ease forwards; }

/* =========================================
   8. CONTACT & FORMS
   ========================================= */
#contact {
    padding: 6rem 5%; text-align: center;
    display: flex; justify-content: center; align-items: center;
    background-color: var(--white);
}

.contact-container { max-width: 700px; width: 100%; margin: 0 auto; }
.contact-container h2 { font-size: 2.8rem; margin-bottom: 1rem; }
.contact-container p { margin-bottom: 2.5rem; font-size: 1.2rem; color: #666; }

.contact-page-section {
    display: flex; align-items: center; justify-content: center; padding: 8rem 5% 4rem;
}

.form-container {
    background: var(--white); padding: 3rem; width: 100%; max-width: 500px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05); border: 1px solid #eee; border-radius: 4px;
}
.input-group { margin-bottom: 1.5rem; text-align: left; }
.input-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.5rem; }
.input-group input, .input-group select {
    width: 100%; padding: 1rem; border: 1px solid #ddd;
    background: #fafafa; font-family: 'Manrope', sans-serif; font-size: 1rem; outline: none;
}
.full-width { width: 100%; margin-top: 1rem; }

/* =========================================
   9. FOOTER
   ========================================= */
footer {
    background-color: var(--dark-bg); color: #fff;
    padding: 4rem 5% 2rem; border-top: 5px solid var(--accent-color);
}

.footer-container {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}

.footer-info { display: flex; flex-direction: column; justify-content: center; }
.footer-logo { height: 50px; width: auto; margin-bottom: 1.5rem; object-fit: contain; align-self: flex-start; }

.footer-details p {
    margin-bottom: 1rem; color: #bbb; font-size: 0.95rem;
    display: flex; align-items: flex-start; gap: 12px; line-height: 1.6;
}
.footer-details ion-icon { font-size: 1.2rem; color: var(--accent-color); margin-top: 3px; flex-shrink: 0; }

.map-container {
    width: 100%; height: 250px; border-radius: 4px; overflow: hidden;
    border: 1px solid #333; box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.map-container iframe {
    width: 100%; height: 100%; border: 0; filter: grayscale(100%) invert(92%) contrast(83%);
}

.footer-bottom {
    text-align: center; margin-top: 3rem; padding-top: 2rem;
    border-top: 1px solid #333; font-size: 0.8rem; color: #666;
}

/* =========================================
   10. ANIMATIONS (Fade In)
   ========================================= */
.fade-in {
    opacity: 0; transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* =========================================
   11. MOBILE RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    
    .nav-links {
        position: fixed;
        right: 0;
        top: 80px; /* Matches navbar height */
        background: var(--white);
        height: 0;
        flex-direction: column;
        width: 100%;
        overflow: hidden;
        transition: height 0.3s ease;
        gap: 0;
        border-bottom: 1px solid #eee;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    }
    
    .nav-links.active { height: auto; padding-bottom: 1rem; }
    .nav-links li { text-align: center; width: 100%; }
    .nav-links a { display: block; padding: 1.5rem; color: var(--text-color); }
    
    .hero h1 { font-size: 2.5rem; }
    .footer-container { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
    .footer-info { align-items: center; }
    .footer-logo { align-self: center; }
    .footer-details p { justify-content: center; text-align: left; }
    
    .timeline-container::before { left: 24px; }
}

/* =========================================
   12. INTRO OVERLAY STYLES (PARTICLE GRID)
   ========================================= */

body.loading {
    overflow: hidden;
    height: 100vh;
}

#intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #111111; /* Deep luxury black */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    /* The transition property here is for the final fade-out */
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

#intro-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#particleCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.intro-content {
    position: relative; /* Changed from absolute to stack correctly */
    z-index: 10;
    text-align: center;
    color: #ffffff;
    /* Initial state for fade-up animation */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

/* Class added by JS to trigger the intro text appearance */
.intro-content.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Class added by JS to fade out text on click */
.intro-content.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

/* Typography from the image */
.intro-subhead {
    font-family: 'Manrope', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 6px;
    margin-bottom: 1rem;
    color: rgba(255,255,255,0.7);
    font-weight: 600;
}

/* =========================================
   UPDATED INTRO TYPOGRAPHY
   ========================================= */

#intro-headline {
    /* This tries to match the canvas text size (15% of viewport min dimension) */
    font-size: 15vmin; 
    line-height: 1;
    margin: 1rem 0;
    
    /* KEY FIX: We make it transparent so it acts as a "Spacer" */
    opacity: 0; 
    pointer-events: none; /* Let clicks pass through to the canvas */
    user-select: none;
}

.intro-tagline {
    font-family: 'Manrope', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 2px;
    
    /* UPDATED: Increased to 10rem to push it well below the KAPA text */
    margin-top: 10rem; 
    
    margin-bottom: 3rem; /* Reduced bottom margin so the button doesn't get pushed too far down */
    color: rgba(255,255,255,0.8);
    font-weight: 300;
    position: relative;
    z-index: 10;
}

.enter-btn {
    pointer-events: auto;
    display: inline-block;
    padding: 14px 40px;
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.4s ease;
    background: rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
}

.enter-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    box-shadow: 0 0 20px rgba(191, 161, 129, 0.3);
    transform: translateY(-2px);
}

/* ... keep previous intro styles ... */

.intro-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: #ffffff;
    opacity: 0; /* JS will fade this in */
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
    /* Ensure the content container doesn't block mouse events on the canvas text behind it */
    pointer-events: none; 
}

/* Allow clicking on the button specifically */
.enter-btn {
    pointer-events: auto; 
    margin-top: 2rem; /* Give space for the big Canvas text */
}

/* This hides the HTML text visually, but screen readers can still see it */
.visual-hidden {
    opacity: 0;
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

@media (max-width: 768px) {
    #intro-headline { font-size: 4rem; }
    .intro-tagline { font-size: 1rem; }
}

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
}

