/* Ultra-Premium Custom Properties - Luxury Wallpaper Theme */
:root {
    --bg-dark: #0a0a0a;
    --bg-charcoal: #141414;
    --bg-slate: #1c1c1c;
    
    /* Silver Metallic Gradients */
    --silver-light: #f5f5f5;
    --silver-mid: #b0b0b0;
    --silver-dark: #555555;
    
    --text-main: #e8e8e8;
    --text-muted: #888888;
    
    --glass-border: rgba(255, 255, 255, 0.05);
    --transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Reset & Base Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; background-color: var(--bg-dark); }
body { 
    color: var(--text-main); 
    background-color: var(--bg-dark); 
    line-height: 1.7; 
    overflow-x: hidden; 
    font-family: 'Lato', sans-serif;
    /* Subtle noise texture over everything */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
}

h1, h2, h3, h4, .logo, .fleur-de-lis, .expert-title { font-family: 'Playfair Display', serif; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

/* Preloader */
.preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background-color: var(--bg-dark); z-index: 9999;
    display: flex; justify-content: center; align-items: center; transition: opacity 1.5s ease;
}
.loader-logo { text-align: center; }
.loader-logo .lw-logo {
    font-size: 6rem; font-family: 'Playfair Display', serif;
    background: linear-gradient(to bottom, #fff, #666);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    display: block; line-height: 1; filter: drop-shadow(0 5px 10px rgba(0,0,0,0.5));
}
.loader-logo .fleur-de-lis { color: var(--silver-mid); font-size: 1.5rem; margin: 0.5rem 0; animation: pulse 3s infinite; }
.loader-logo .loader-text { font-family: 'Playfair Display', serif; letter-spacing: 4px; color: var(--silver-light); font-size: 0.9rem;}

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

.loader-bar-container {
    width: 250px; height: 1px; background: rgba(255,255,255,0.1); margin: 2.5rem auto 0; position: relative; overflow: hidden;
}
.loader-bar {
    width: 0%; height: 100%; background: var(--silver-light); position: absolute; top: 0; left: 0;
}

/* Layout & Typography */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section-padding { padding: 10rem 0; }
.text-center { text-align: center; }

/* SPA Routing Styles */
.page-section {
    opacity: 0;
    min-height: 100vh;
    animation: fade-in-section 0.5s forwards;
}
.page-section:not(.section-active) {
    display: none !important;
}
.page-section.section-active {
    display: block;
    opacity: 1;
}
/* Ensure the Hero section keeps its flexbox layout when active */
.hero.page-section.section-active {
    display: flex;
}

@keyframes fade-in-section {
    from { opacity: 0; }
    to { opacity: 1; }
}

.section-title { 
    font-size: 2.8rem; margin-bottom: 0.5rem; 
    background: linear-gradient(to bottom, #ffffff, #888888);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    letter-spacing: 3px; text-transform: uppercase;
}
.section-subtitle { font-family: 'Lato', sans-serif; font-size: 0.9rem; color: var(--silver-dark); max-width: 600px; margin: 0 auto 4rem; letter-spacing: 2px; text-transform: uppercase; }

/* Elegant Buttons */
.btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    padding: 1rem 2.5rem; font-family: 'Lato', sans-serif; font-size: 0.8rem;
    font-weight: 700; text-transform: uppercase; letter-spacing: 3px;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1); z-index: 1; overflow: hidden;
}
.btn::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 1px;
    background: var(--silver-light); transform: scaleX(0); transform-origin: right; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn:hover::after { transform: scaleX(1); transform-origin: left; }

.btn-primary { 
    background: transparent; color: var(--silver-light); 
    border: 1px solid var(--silver-dark); 
}
.btn-primary:hover { 
    border-color: var(--silver-light); background: rgba(255,255,255,0.05);
}

.btn-outline { background: transparent; color: var(--silver-mid); border: 1px solid transparent; }
.btn-outline:hover { color: #fff; }

/* Navbar */
.navbar { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; padding: 1rem 0; transition: var(--transition); border-bottom: 1px solid transparent; }
.navbar .container { max-width: 100%; padding: 0 4rem; }
.navbar.scrolled { padding: 0.5rem 0; background: rgba(10, 10, 10, 0.95); backdrop-filter: blur(20px); border-bottom: 1px solid var(--glass-border); }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 0.8rem; font-weight: 400; display: flex; flex-direction: column; align-items: flex-start; gap: 0; letter-spacing: 4px; color: var(--silver-light); transition: var(--transition); line-height: 1; position: relative; width: 160px; height: 50px;}
.logo:hover { opacity: 0.8; }

/* Logo Image Styles */
.lw-logo-img {
    position: absolute;
    top: 60%;
    left: 0;
    height: 180px; /* Much larger */
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.8));
    animation: luxury-breathe 15s ease-in-out infinite;
    transform-origin: center;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes luxury-breathe {
    0% { transform: translateY(-50%) perspective(1000px) rotateY(-8deg) scale(1); filter: drop-shadow(5px 5px 15px rgba(0,0,0,0.7)) brightness(1); }
    50% { transform: translateY(-50%) perspective(1000px) rotateY(8deg) scale(1.02); filter: drop-shadow(-5px 10px 25px rgba(0,0,0,0.9)) brightness(1.1); }
    100% { transform: translateY(-50%) perspective(1000px) rotateY(-8deg) scale(1); filter: drop-shadow(5px 5px 15px rgba(0,0,0,0.7)) brightness(1); }
}

/* Blinking Cursor for Typewriter */
.cursor {
    display: inline-block;
    width: 20px;
    color: var(--silver-light);
    animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.nav-links { display: flex; align-items: center; gap: 3rem; font-family: 'Lato', sans-serif; }
.nav-links a:not(.btn) { font-size: 0.8rem; font-weight: 400; text-transform: uppercase; letter-spacing: 2px; position: relative; color: var(--silver-mid); transition: color 0.4s ease; }
.nav-links a:not(.btn)::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 100%; height: 1px; background: var(--silver-light); transform: scaleX(0); transition: transform 0.4s ease; transform-origin: right;}
.nav-links a:not(.btn):hover { color: var(--silver-light); }
.nav-links a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left;}

/* Language Selector */
.lang-selector { position: relative; display: inline-block;}
.lang-btn { background: none; border: none; color: var(--silver-mid); font-weight: 400; cursor: pointer; font-size: 0.8rem; display: flex; align-items: center; letter-spacing: 1px; font-family: 'Lato', sans-serif; transition: color 0.4s ease;}
.lang-btn:hover { color: var(--silver-light); }
.lang-dropdown {
    position: absolute; top: 150%; right: -20px; background: rgba(20,20,20,0.95); backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border); min-width: 120px;
    opacity: 0; visibility: hidden; transform: translateY(10px); transition: var(--transition); z-index: 1000;
}
.lang-selector:hover .lang-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-dropdown a { color: var(--silver-mid); padding: 1rem 1.5rem; display: block; font-size: 0.8rem; border-bottom: 1px solid rgba(255,255,255,0.02); text-transform: uppercase; letter-spacing: 1px; transition: all 0.4s ease;}
.lang-dropdown a:hover { background: rgba(255,255,255,0.05); color: #fff; padding-left: 2rem;}

.admin-login-icon {
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--silver-mid); font-size: 1rem;
    transition: all 0.3s ease; text-decoration: none;
}
.admin-login-icon:hover {
    color: var(--accent); border-color: var(--accent);
    background: rgba(245, 158, 11, 0.1);
}

.mobile-menu-btn { display: none; color: var(--silver-light); font-size: 1.5rem; cursor: pointer;}

/* Hero Section with Split Diagonal */
.hero { position: relative; height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--bg-dark); }

/* Left slate texture */
.hero-split {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: #111;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.03) 0%, transparent 60%),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='2' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.15'/%3E%3C/svg%3E");
    z-index: 2;
    clip-path: polygon(0 0, 58% 0, 42% 100%, 0% 100%);
}

/* The silver line on the diagonal */
.hero-split-line {
    position: absolute; top: -10%; right: 42%; width: 2px; height: 120%;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.6), transparent);
    transform: rotate(18.5deg); transform-origin: top;
    z-index: 3;
}

/* Right patterned wallpaper background (menu.png) */
.hero-bg {
    position: absolute; top: 0; right: 0; width: 65%; height: 100%;
    background: url('assets/images/menu.png') center center/cover no-repeat;
    z-index: 1;
}

.hero-content { position: relative; z-index: 10; padding-top: 5rem; display: flex; flex-direction: column; align-items: center; }

/* Extremely realistic embossed metallic logo */
.hero-logo-huge {
    font-size: 11rem; line-height: 1; margin-bottom: -1rem;
    font-family: 'Playfair Display', serif;
    background: linear-gradient(to right, #666 0%, #fff 20%, #666 40%, #333 100%);
    background-size: 200% auto;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    filter: drop-shadow(2px 5px 10px rgba(0,0,0,0.9)) drop-shadow(-1px -1px 2px rgba(255,255,255,0.1));
    animation: metallic-shine 5s linear infinite;
}

.hero h1 { 
    font-size: 3.5rem; letter-spacing: 8px; margin: 1rem 0;
    background: linear-gradient(to bottom, #ffffff, #999999);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.hero-divider {
    display: flex; align-items: center; gap: 1rem; color: var(--silver-mid);
    font-family: 'Lato', sans-serif; font-size: 0.9rem; letter-spacing: 4px; margin-bottom: 2.5rem;
}
.hero-divider span { width: 60px; height: 1px; background: linear-gradient(90deg, transparent, var(--silver-dark), transparent); }

.tagline { font-family: 'Lato', sans-serif; font-size: 0.9rem; letter-spacing: 6px; color: var(--silver-dark); margin-bottom: 4rem; text-shadow: 0 2px 5px rgba(0,0,0,0.5);}
.hero-buttons { display: flex; gap: 2rem; }

/* Services Cards - Elegant Hover */
.services { background: var(--bg-charcoal); position: relative; border-top: 1px solid #222; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 3rem; }

.service-card {
    background: var(--bg-slate); padding: 0; position: relative;
    text-align: left; border: 1px solid transparent;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-card::after {
    content: ''; position: absolute; inset: 0; border: 1px solid rgba(255,255,255,0.02); transition: all 0.8s ease; pointer-events: none; z-index: 2;
}
.service-card:hover { background: #222; border-color: rgba(255,255,255,0.05); transform: translateY(-5px);}
.service-card:hover::after { inset: 15px; border-color: rgba(255,255,255,0.1); }

/* Review Thumbs */
.review-thumb {
    width: 50px;
    height: 50px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #f59e0b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin: 0 auto 1.5rem auto;
}
.review-thumb.bad {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--danger);
}

.service-img-container {
    width: 100%; height: 240px; overflow: hidden; position: relative;
}
.service-img-container img {
    width: 100%; height: 100%; object-fit: cover;
    filter: grayscale(80%) contrast(110%);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-card:hover .service-img-container img {
    filter: grayscale(0%) contrast(100%);
    transform: scale(1.05);
}

.service-content { padding: 3rem 2rem; }
.service-card h3 { font-size: 1.5rem; margin-bottom: 1rem; letter-spacing: 2px; color: var(--silver-light); }
.service-card p { font-family: 'Lato', sans-serif; color: var(--text-muted); line-height: 1.8; font-size: 0.95rem; margin-bottom: 2rem; }

.service-link {
    font-family: 'Lato', sans-serif; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--silver-mid); display: inline-flex; align-items: center; gap: 0.8rem; transition: color 0.4s ease;
}
.service-link i { transition: transform 0.4s ease; }
.service-card:hover .service-link { color: var(--silver-light); }
.service-card:hover .service-link i { transform: translateX(8px); }

/* About Section */
.about { background: var(--bg-dark); position: relative;}
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8rem; align-items: center; }
.expert-title { font-size: 1rem; letter-spacing: 5px; color: var(--silver-dark); margin-top: -0.5rem; margin-bottom: 2.5rem; }

.features-list { display: flex; flex-direction: column; gap: 1.5rem; font-family: 'Lato', sans-serif; }
.features-list li { display: flex; align-items: center; gap: 1.5rem; color: var(--silver-mid); font-size: 1rem; transition: color 0.6s ease; padding-bottom: 1rem; border-bottom: 1px solid var(--glass-border);}
.features-list li:hover { color: var(--silver-light); border-color: rgba(255,255,255,0.1);}
.features-list i { color: var(--silver-light); font-size: 1.2rem;}

/* Elegant Image Frame */
.img-frame { position: relative; padding: 2rem; border: 1px solid var(--glass-border); transition: border-color 0.8s ease; }
.img-frame::before, .img-frame::after { content: ''; position: absolute; width: 30px; height: 30px; border: 1px solid var(--silver-mid); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.img-frame::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.img-frame::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.img-frame:hover::before, .img-frame:hover::after { width: 100%; height: 100%; border-color: rgba(255,255,255,0.2);}
.img-frame img { filter: grayscale(100%) contrast(110%); transition: filter 1s ease; }
.img-frame:hover img { filter: grayscale(40%) contrast(100%); }
.large-watermark { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-family: 'Playfair Display', serif; font-size: 20rem; color: rgba(255,255,255,0.02); pointer-events: none; line-height: 1; z-index: 0; }

/* Footer / Contact */
.footer { background: var(--bg-charcoal); padding-top: 8rem; border-top: 1px solid #222; position: relative; overflow: hidden; }
.estimate-wrapper { max-width: 800px; margin: 0 auto; }
.estimate-header { margin-bottom: 3rem; }
.estimate-form-container { 
    background: rgba(30, 30, 30, 0.4); 
    backdrop-filter: blur(12px); 
    border: 1px solid rgba(255, 255, 255, 0.05); 
    padding: 4rem; 
    border-radius: 15px; 
}
.estimate-form { display: flex; flex-direction: column; gap: 2rem; font-family: 'Lato', sans-serif; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; text-align: left; }
.form-group.full-width { grid-column: 1 / -1; }
.form-group label { font-size: 0.85rem; color: var(--silver-dark); text-transform: uppercase; letter-spacing: 1px; font-weight: 700; transition: color 0.3s ease; }
.form-group input { 
    background: transparent; 
    border: none; 
    border-bottom: 1px solid var(--silver-dark); 
    padding: 0.5rem 0; 
    color: var(--silver-light); 
    font-size: 1.1rem; 
    font-family: 'Lato', sans-serif; 
    outline: none; 
    transition: border-color 0.4s ease, background 0.4s ease; 
}
.form-group input:focus { border-bottom-color: #f59e0b; }
.form-group:focus-within label { color: var(--silver-light); }

/* Intl-tel-input overrides for dark theme */
.iti { width: 100%; display: block; }
.iti__country-list { 
    background-color: #1c1c1c !important; 
    color: #e8e8e8 !important; 
    border: 1px solid rgba(255, 255, 255, 0.1) !important; 
    border-radius: 8px !important;
    font-family: 'Lato', sans-serif !important;
}
.iti__country-list .iti__country.iti__highlight { background-color: rgba(255, 255, 255, 0.05) !important; }
.iti__country-list .iti__country:hover { background-color: rgba(255, 255, 255, 0.1) !important; }
.iti__country-list .iti__divider { border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important; }
.iti__selected-dial-code { color: #e8e8e8 !important; }
.iti__arrow { border-top-color: #555555 !important; }
.iti__arrow--up { border-bottom-color: #555555 !important; }
.iti__search-input { 
    background: transparent !important; 
    color: #fff !important; 
    border: 1px solid rgba(255, 255, 255, 0.2) !important; 
    padding: 0.5rem !important; 
}

/* Modals */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8); backdrop-filter: blur(8px);
    z-index: 10000; display: flex; justify-content: center; align-items: center;
    opacity: 0; pointer-events: none; transition: opacity 0.4s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-content {
    background: var(--bg-charcoal); border: 1px solid rgba(255,255,255,0.1);
    padding: 3rem; border-radius: 15px; width: 90%; max-width: 500px;
    position: relative; transform: translateY(20px); transition: transform 0.4s ease;
}
.modal-overlay.active .modal-content { transform: translateY(0); }
.modal-close {
    position: absolute; top: 1.5rem; right: 1.5rem; background: none; border: none;
    color: var(--silver-dark); font-size: 1.5rem; cursor: pointer; transition: color 0.3s ease;
}
.modal-close:hover { color: #fff; }

.star-rating i { color: var(--silver-dark); cursor: pointer; font-size: 1.5rem; margin-right: 0.3rem; transition: color 0.2s ease; }
.star-rating i.hovered, .star-rating i.active { color: #f59e0b; }

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-charcoal);
    border: 1px solid rgba(245, 158, 11, 0.5); /* Accent color with opacity */
    color: var(--silver-light);
    padding: 1rem 2rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    z-index: 10001;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.toast-notification.show {
    bottom: 30px;
    opacity: 1;
}
.toast-icon {
    color: #f59e0b;
    font-size: 1.8rem;
}
.toast-content h4 {
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    color: #fff;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}
.toast-content p {
    font-size: 0.9rem;
    color: var(--silver-mid);
    margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-split { clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%); border:none;}
    .hero-split-line { display: none; }
    .hero h1 { font-size: 2.8rem; }
    .hero-logo-huge { font-size: 8rem; }
    .about-grid { grid-template-columns: 1fr; gap: 5rem; }
}
@media (max-width: 768px) {
    .nav-links, .lang-selector { display: none; }
    .mobile-menu-btn { display: block; }
    .hero-buttons { flex-direction: column; gap: 1rem; }
    .form-row { grid-template-columns: 1fr; gap: 2rem; }
    .estimate-form-container { padding: 3rem 2rem; }
    .hero h1 { font-size: 2rem; letter-spacing: 4px;}
    .hero-logo-huge { font-size: 6rem; }
    .hero-divider { font-size: 0.7rem; letter-spacing: 2px;}
    .tagline { font-size: 0.7rem; letter-spacing: 3px; margin-bottom: 2rem;}
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    background: linear-gradient(135deg, #444, #111);
    border: 1px solid var(--silver-dark);
    color: var(--silver-light);
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.8);
    z-index: 9999;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    animation: pulse-wa 2.5s infinite;
}

.floating-whatsapp:hover {
    background: linear-gradient(135deg, #555, #222);
    border-color: var(--silver-light);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
    color: #fff;
}

@keyframes pulse-wa {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.3); }
    70% { box-shadow: 0 0 0 20px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}
