/* ==========================================================================
   AL-RAHMAN INTERIOR & CONSTRUCTION - MASTER ARCHITECTURAL ENGINE
   Theme: Pure White Liquid Glass (Sleek Transparency) & High-Status Corporate Navy
   Optimization: 100% Mobile Fluid UI Sync
   ========================================================================== */

:root {
    /* Core Brand Colors */
    --navy-blue: #0A192F;      
    --navy-light: #172A45;     
    --text-black: #111111;     
    --text-muted: #444444;     
    --white-pure: #FFFFFF;
    
    /* Advanced White Liquid Glass Template */
    --glass-bg: rgba(255, 255, 255, 0.40);           
    --glass-bg-hover: rgba(255, 255, 255, 0.55);     
    --glass-border: rgba(255, 255, 255, 0.45);       
    --glass-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);  
    
    /* Social Brand Colors */
    --fb-color: #1877F2;
    --ig-gradient: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    
    /* System Timings */
    --transition-fast: 0.3s ease;
    --transition-smooth: 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- RESET & ACCELERATION ENGINE --- */
* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-black);
    background: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1920&q=80') fixed center/cover;
    overflow-x: hidden;
    width: 100%;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; color: var(--navy-blue); font-weight: 600; }
span { color: var(--navy-blue); font-weight: 700; }

/* --- CORE INTERACTIVE LIQUID GLASS --- */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(15px); 
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

/* --- GLOBAL LAYOUT INFRASTRUCTURE --- */
.section-layout { padding: 100px 0; position: relative; width: 100%; }
.container { width: 90%; max-width: 1250px; margin: 0 auto; }
.tinted-bg { background-color: rgba(255, 255, 255, 0.4); backdrop-filter: blur(10px); }
.contact-bg { background: linear-gradient(135deg, rgba(10,25,47,0.85), rgba(23,42,69,0.95)); }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.padding-large { padding: 50px; border-radius: 20px; }
.text-white { color: #ffffff !important; }

/* --- BUTTONS & CTA COMPONENT MATRIX --- */
.btn-navy, .btn-outline-navy {
    padding: 15px 35px; border-radius: 8px; text-decoration: none;
    font-weight: 600; transition: var(--transition-fast);
    display: inline-block; cursor: pointer; text-transform: uppercase;
    letter-spacing: 1.5px; font-size: 13px; text-align: center;
}
.btn-navy { background: var(--navy-blue); color: var(--white-pure); border: 1px solid var(--navy-blue); }
.btn-navy:hover { background: var(--navy-light); transform: translateY(-3px); box-shadow: 0 10px 25px rgba(10, 25, 47, 0.3); }

.btn-outline-navy { background: transparent; color: var(--navy-blue); border: 2px solid var(--navy-blue); }
.btn-outline-navy:hover { background: var(--navy-blue); color: var(--white-pure); }

.w-100 { width: 100%; }
.center-btn-wrapper { display: flex; justify-content: center; }

/* Fixed High-Visibility Nav CTA */
.nav-cta-btn {
    background: var(--navy-blue) !important;
    color: #ffffff !important;
    padding: 12px 28px !important;
    border-radius: 8px !important;
    transition: 0.3s ease !important;
}
.nav-cta-btn:hover {
    background: #172A45 !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(10, 25, 47, 0.2);
}

/* --- SYSTEM DEPLOYED WIDGETS --- */
.social-sidebar {
    position: fixed; left: 0; top: 50%; transform: translateY(-50%);
    display: flex; flex-direction: column; z-index: 1000;
    border-radius: 0 15px 15px 0; overflow: hidden; border-left: none; padding: 15px 0;
}
.social-link { font-size: 24px; padding: 15px 25px; text-align: center; transition: var(--transition-fast); text-decoration: none; color: var(--text-black); }
.social-link.fb:hover { background: var(--fb-color); color: var(--white-pure); }
.social-link.ig:hover { background: var(--ig-gradient); color: var(--white-pure); }

.floating-whatsapp {
    position: fixed; bottom: 35px; right: 35px;
    background-color: #25D366; color: var(--white-pure); width: 65px; height: 65px;
    border-radius: 50%; display: flex; justify-content: center; align-items: center;
    font-size: 32px; z-index: 1000; box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4); transition: var(--transition-smooth);
}
.floating-whatsapp:hover { transform: scale(1.1) rotate(-10deg); }

/* --- DYNAMIC SLIM NAVBAR --- */
.navbar {
    position: fixed; width: 92%; max-width: 1400px; top: 25px; left: 50%; transform: translateX(-50%);
    z-index: 999; padding: 0 40px; border-radius: 20px; transition: var(--transition-smooth);
    height: 75px; display: flex; align-items: center;
}
.nav-container { 
    display: flex; justify-content: space-between; align-items: center; width: 100%; height: 100%;
}
.logo { display: flex; align-items: center; height: 100%; flex-shrink: 0; }
.nav-logo { 
    height: 48px; max-width: 180px; object-fit: contain; 
    transform: scale(1.4); transform-origin: left center;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1)); 
}
.nav-links { 
    list-style: none; display: flex; gap: 35px; align-items: center; margin-left: auto; margin-bottom: 0; white-space: nowrap; 
}
.nav-links a { 
    color: var(--text-black); text-decoration: none; font-weight: 600; 
    transition: var(--transition-fast); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; 
}
.nav-links a:hover, .nav-links a.active { color: var(--navy-blue); }

/* --- HERO CORE VIEWPORT & CAROUSEL --- */
.hero { height: 100vh; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.carousel-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.2s ease-in-out; }
.slide.active { opacity: 1; }

.carousel-controls { position: absolute; bottom: 50px; right: 50px; display: flex; gap: 20px; z-index: 10; }
.glass-btn { 
    background: var(--glass-bg); backdrop-filter: blur(10px); border: 1px solid var(--glass-border); 
    color: var(--navy-blue); font-size: 22px; width: 55px; height: 55px; border-radius: 50%; 
    cursor: pointer; transition: var(--transition-fast); box-shadow: var(--glass-shadow);
}
.glass-btn:hover { background: var(--navy-blue); color: var(--white-pure); transform: scale(1.1); }

.hero-content {
    text-align: center; padding: 65px 60px; border-radius: 24px; width: 90%; max-width: 850px; z-index: 2; margin-top: 50px;
}
.hero-content h1 { font-size: 4rem; line-height: 1.1; margin-bottom: 25px; color: var(--navy-blue); letter-spacing: -1px; }
.hero-content p { font-size: 1.25rem; color: var(--text-black); margin-bottom: 40px; font-weight: 500; }
.hero-buttons { display: flex; gap: 20px; justify-content: center; }

/* --- SECTION CARD GRIDS & ARCHITECTURE --- */
.dual-column-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.section-heading { font-size: 3rem; margin-bottom: 20px; line-height: 1.2; }
.body-text { font-size: 1.15rem; color: var(--text-muted); font-weight: 400; }
.visual-block { border-radius: 20px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.15); }
.visual-block img { width: 100%; height: 100%; object-fit: cover; display: block; transition: 0.5s; }
.visual-block:hover img { transform: scale(1.05); }

.section-header { text-align: center; padding: 40px; border-radius: 20px; margin-bottom: 60px; }
.section-header h2 { font-size: 2.8rem; margin-bottom: 15px; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.service-card { padding: 45px 30px; border-radius: 16px; text-align: center; transition: var(--transition-smooth); }
.service-card i { font-size: 3.5rem; color: var(--navy-blue); margin-bottom: 25px; }
.service-card h3 { margin-bottom: 15px; font-size: 1.5rem; }
.service-card p { color: var(--text-muted); font-weight: 500; }
.hover-lift:hover { transform: translateY(-15px); background: var(--glass-bg-hover); border-color: var(--navy-blue); box-shadow: 0 20px 40px rgba(10,25,47,0.1); }

/* Portfolio Setup */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.portfolio-item { position: relative; border-radius: 16px; overflow: hidden; height: 420px; cursor: pointer; border: 1px solid var(--glass-border); }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition-smooth); }
.portfolio-hover {
    position: absolute; bottom: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.4) 60%, transparent 100%);
    display: flex; flex-direction: column; justify-content: flex-end; padding: 40px 30px;
    opacity: 0; transform: translateY(20px); transition: var(--transition-smooth);
}
.location-tag { font-size: 11px; font-weight: 700; color: var(--white-pure); background: var(--navy-blue); padding: 5px 15px; border-radius: 20px; align-self: flex-start; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1px; }
.portfolio-hover h3 { font-size: 1.6rem; color: var(--navy-blue); }
.portfolio-item:hover img { transform: scale(1.1); }
.portfolio-item:hover .portfolio-hover { opacity: 1; transform: translateY(0); }

/* Intake Context */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; align-items: stretch; }
.contact-info, .contact-form-box { padding: 60px; border-radius: 24px; }
.contact-info { background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(25px); }
.contact-info h2 { font-size: 2.8rem; margin-bottom: 20px; }
.contact-info p { margin-bottom: 40px; font-weight: 500; font-size: 1.1rem; }
.info-line { display: flex; align-items: center; gap: 20px; margin-bottom: 25px; font-size: 1.15rem; font-weight: 600; color: var(--navy-blue); }
.info-line i { font-size: 1.5rem; background: var(--glass-bg); padding: 15px; border-radius: 50%; border: 1px solid var(--glass-border); }

.contact-form-box { background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(25px); }
.contact-form-box input, .contact-form-box select, .contact-form-box textarea {
    width: 100%; padding: 18px 20px; margin-bottom: 25px;
    background: rgba(255, 255, 255, 0.7); border: 1px solid rgba(10,25,47,0.15); border-radius: 8px;
    color: var(--text-black); font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 500; transition: var(--transition-fast);
}
.contact-form-box input:focus, .contact-form-box select:focus, .contact-form-box textarea:focus { outline: none; border-color: var(--navy-blue); background: var(--white-pure); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }

/* Footer Node */
.footer { width: 95%; max-width: 1400px; margin: 0 auto 30px; padding: 35px; border-radius: 20px; text-align: center; }
.footer-content p { font-weight: 600; font-size: 15px; margin-bottom: 5px; color: var(--text-black); }
.agency-credit { color: var(--navy-blue); margin-top: 10px; font-size: 0.95rem; font-weight: 700; }

/* ==========================================================================
   ULTIMATE MOBILE RESPONSIVE MATRIX (PHONE & TABLET FINETUNED)
   ========================================================================== */
@media (max-width: 1024px) {
    .dual-column-layout, .contact-wrapper { grid-template-columns: 1fr; gap: 40px; }
    .hero-content h1 { font-size: 3.2rem; }
    .padding-large { padding: 35px; }
}

@media (max-width: 768px) {
    /* 1. Fluid Spatial Resets */
    body, html { overflow-x: hidden !important; width: 100% !important; }
    .container { width: 92% !important; padding: 0 !important; }
    .section-layout { padding: 60px 0 !important; }
    
    /* 2. Premium Horizontal Swipe Mobile Pill Navbar */
    .navbar { 
        width: 94% !important; padding: 8px 15px !important; height: auto !important; 
        top: 15px !important; border-radius: 16px !important;
    }
    .nav-container { 
        flex-direction: column !important; gap: 8px !important; justify-content: center !important; 
    }
    .nav-logo { 
        height: 32px !important; max-width: 130px !important; transform: scale(1) !important; margin: 0 auto !important; 
    }
    .nav-links { 
        display: flex !important; flex-direction: row !important; gap: 14px !important; 
        margin: 0 auto !important; width: 100% !important; overflow-x: auto !important; 
        justify-content: flex-start !important; padding: 5px 10px 8px !important;
        -webkit-overflow-scrolling: touch;
    }
    /* Sleek Apple-style scrollbar removal script */
    .nav-links::-webkit-scrollbar { display: none !important; }
    .nav-links { -ms-overflow-style: none !important; scrollbar-width: none !important; }
    
    .nav-links a { font-size: 11px !important; letter-spacing: 0.5px !important; white-space: nowrap !important; }
    .nav-cta-btn { padding: 6px 14px !important; font-size: 10px !important; border-radius: 6px !important; }
    
    /* 3. Re-calibrated Translucent Hero Box */
    .hero { padding-top: 120px !important; height: auto !important; min-height: 100vh !important; display: flex !important; align-items: center !important; } 
    .hero-content { 
        padding: 30px 20px !important; width: 92% !important; margin: 20px auto !important;
        background: rgba(255, 255, 255, 0.22) !important; /* Hyper transparent to unlock background image visibility */
        backdrop-filter: blur(10px) !important; -webkit-backdrop-filter: blur(10px) !important;
        border-radius: 20px !important;
    }
    .hero-content h1 { font-size: 1.9rem !important; margin-bottom: 12px !important; line-height: 1.2 !important; letter-spacing: 0px !important; }
    .hero-content p { font-size: 0.9rem !important; margin-bottom: 25px !important; line-height: 1.5 !important; color: #000000 !important; font-weight: 600; }
    
    /* Absolute Force Stacking for Action Buttons */
    .hero-buttons { 
        display: flex !important; flex-direction: column !important; gap: 12px !important; width: 100% !important;
    }
    .hero-buttons a { 
        width: 100% !important; text-align: center !important; margin: 0 !important; 
        padding: 14px 20px !important; font-size: 12px !important; border-radius: 8px !important;
    }
    
    /* Wipeout Desktop Arrows to Stop Interface Clashing */
    .carousel-controls { display: none !important; }
    
    /* 4. Fluid Typography & Card Blocks */
    .section-heading, .section-header h2, .contact-info h2 { font-size: 2.1rem !important; line-height: 1.3 !important; text-align: center; }
    .section-header { padding: 25px 15px !important; margin-bottom: 40px !important; }
    .body-text { font-size: 1rem !important; text-align: center; }
    .padding-large { padding: 30px 20px !important; }
    
    /* Grid Formations Configuration */
    .portfolio-grid, .services-grid { grid-template-columns: 1fr !important; gap: 20px !important; width: 100% !important; }
    .service-card { padding: 35px 20px !important; }
    .portfolio-item { height: 340px !important; }
    .portfolio-hover { padding: 25px 20px !important; opacity: 1 !important; transform: translateY(0) !important; background: linear-gradient(to top, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.7) 70%, transparent 100%) !important; }
    
    /* 5. Relocated Dynamic Side Socials to Bottom Floating Frame */
    .social-sidebar { 
        display: flex !important; flex-direction: row !important; 
        top: auto !important; bottom: 25px !important; left: 25px !important; 
        transform: none !important; border-radius: 30px !important; 
        padding: 6px 16px !important; background: rgba(255, 255, 255, 0.85) !important;
        border: 1px solid var(--glass-border) !important;
        box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
    }
    .social-link { padding: 6px 12px !important; font-size: 18px !important; color: var(--navy-blue) !important; }
    
    /* Adjust Floating Layout Constraints for Whatsapp */
    .floating-whatsapp { bottom: 20px !important; right: 25px !important; width: 55px !important; height: 55px !important; font-size: 26px !important; }
    
    /* 6. Form Field Fluid Adjustments */
    .contact-info, .contact-form-box { padding: 35px 20px !important; border-radius: 20px !important; }
    .info-line { font-size: 0.95rem !important; gap: 15px !important; }
    .info-line i { font-size: 1.2rem !important; padding: 12px !important; }
    .contact-form-box input, .contact-form-box select, .contact-form-box textarea { padding: 15px !important; font-size: 14px !important; margin-bottom: 18px !important; }
    
    .footer { padding: 25px 15px !important; width: 92% !important; }
    .footer-content p { font-size: 12px !important; }
}
