/* --- Unified Theme Variables --- */
:root {
    --accent: #d4af37;
    --accent-hover: #b5952f;
    --box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    --blob1: transparent;
    --blob2: transparent;
}

body[data-theme="dark"] {
    --bg-main: #0a0a0a;
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --card-bg: rgba(20, 20, 20, 0.5);
    --nav-bg: rgba(10, 10, 10, 0.7);
    --border-color: rgba(212, 175, 55, 0.15); /* Gold tinted border */
    --map-filter: invert(100%) hue-rotate(180deg) brightness(80%) contrast(120%);
    --blob1: rgba(212, 175, 55, 0.08); /* Gold hint */
    --blob2: rgba(255, 255, 255, 0.03); 
}

body[data-theme="light"] {
    --bg-main: #fdfcf9; /* Very warm, luxurious off-white */
    --text-main: #1c1917;
    --text-muted: #78716c;
    --card-bg: rgba(255, 255, 255, 0.6);
    --nav-bg: rgba(255, 255, 255, 0.7);
    --border-color: rgba(212, 175, 55, 0.2); /* Gold tinted border */
    --map-filter: grayscale(20%) contrast(110%);
    --blob1: #fef3c7; /* Soft ambient gold */
    --blob2: #f0fdf4; /* Soft crisp mint/white for balance */
}

/* --- Base Resets & Animations --- */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Outfit', sans-serif; transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease; }

html, body { max-width: 100vw; overflow-x: hidden; }
body { background-color: var(--bg-main); color: var(--text-main); position: relative; z-index: 0; }
h1, h2, h3 { font-family: 'Playfair Display', serif; color: var(--text-main); }
a { text-decoration: none; color: inherit; }

.container { max-width: 1300px; margin: 0 auto; padding: 0 5%; }
.section { padding: 31px 0; }
.highlight { color: var(--accent); font-style: italic; }

/* Animated 3D Background Blobs */
body::before, body::after {
    content: ''; position: fixed; border-radius: 50%; z-index: -2;
    filter: blur(120px); opacity: 0.9;
    animation: drift 25s infinite alternate ease-in-out; pointer-events: none;
}
body::before { top: -10%; left: -10%; width: 60vw; height: 60vw; background: var(--blob1); }
body::after { bottom: -10%; right: -10%; width: 50vw; height: 50vw; background: var(--blob2); animation-direction: alternate-reverse; }
@keyframes drift { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(150px, 80px) scale(1.1); } }

/* --- Navbar --- */
header { position: fixed; top: 0; width: 100%; z-index: 1000; background: var(--nav-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--border-color); }
.navbar { display: flex; justify-content: space-between; align-items: center; height: 66px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 1.5rem; font-weight: 800; text-transform: uppercase; color: var(--text-main); }
.logo-icon { background: var(--accent); color: #fff; width: 40px; height: 40px; display: flex; justify-content: center; align-items: center; border-radius: 8px; }
.nav-links { display: flex; gap: 3rem; list-style: none; }
.nav-links a { font-weight: 500; font-size: 1.05rem; position: relative; color: var(--text-main); }
.nav-links a::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0%; height: 2px; background: var(--accent); transition: 0.3s; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 20px; }
#themeToggle { background: none; border: none; font-size: 1.5rem; color: var(--text-main); cursor: pointer; outline: none; }
.btn-nav { background: var(--text-main); color: var(--bg-main); padding: 10px 24px; border-radius: 30px; font-weight: 600; border: 1px solid transparent; transition: 0.3s; }
.btn-nav:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; color: var(--text-main); }
.btn-magnetic { /*display: inline-block;*/ transition: transform 0.1s linear; }

/* --- Hero --- */
.hero { min-height: 100vh; display: flex; align-items: center; position: relative; padding-top: 80px; }
.hero-container { display: flex; align-items: center; justify-content: space-between; gap: 50px; width: 100%; }
.hero-text { flex: 1; }
.badge { display: inline-block; padding: 8px 16px; background: rgba(212, 175, 55, 0.1); color: var(--accent); border-radius: 30px; font-weight: 600; font-size: 0.9rem; margin-bottom: 20px; text-transform: uppercase; border: 1px solid var(--border-color); }
.hero-text h1 { font-size: 4.5rem; line-height: 1.1; margin-bottom: 20px; min-height: 110px; } 
.hero-text p { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 40px; max-width: 500px; }
.hero-action { display: flex; align-items: center; gap: 40px; }
.primary-btn { background: var(--accent); color: #fff; padding: 16px 32px; border-radius: 5px; font-size: 1.1rem; font-weight: 600; display: flex; align-items: center; gap: 10px; box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3); }
.stats { display: flex; gap: 30px; }
.stat-item h3 { font-size: 2rem; color: var(--text-main); }
.stat-item p { font-size: 0.9rem; color: var(--text-muted); }
.hero-visual { flex: 1; position: relative; display: flex; justify-content: center; }
.image-wrapper { position: relative; width: 100%; max-width: 500px; height: 350px; border-radius: 20px; transform-style: preserve-3d; }
.hero-slider { width: 100%; height: 100%; position: relative; border-radius: 20px; box-shadow: 0 30px 60px rgba(0,0,0,0.15); border: 1px solid var(--border-color); transform: translateZ(20px); overflow: hidden; }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.6s ease-in-out; }
.slide.active { opacity: 1; z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-caption { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--card-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 8px 20px; border-radius: 30px; font-weight: bold; color: var(--text-main); font-size: 1rem; border: 1px solid var(--border-color); z-index: 2; box-shadow: var(--box-shadow); }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%) translateZ(30px); background: var(--card-bg); border: 1px solid var(--border-color); color: var(--text-main); width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 3; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: 0.3s; }
.slider-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.prev-btn { left: 10px; }
.next-btn { right: 10px; }
.floating-card { position: absolute; background: var(--card-bg); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); padding: 15px 25px; border-radius: 10px; font-weight: 600; box-shadow: var(--box-shadow); display: flex; align-items: center; gap: 10px; animation: float 4s ease-in-out infinite; transform: translateZ(50px); border: 1px solid var(--border-color); color: var(--text-main); }
.floating-card i { color: #28a745; font-size: 1.2rem; }
.c1 { top: 10%; left: -15%; }
.c2 { bottom: 10%; right: -15%; animation-delay: 2s; }
@keyframes float { 0%, 100% { transform: translateZ(50px) translateY(0); } 50% { transform: translateZ(50px) translateY(-15px); } }

/* --- Marquee --- */
.marquee-section { background: var(--nav-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--accent); padding: 20px 0; overflow: hidden; white-space: nowrap; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.marquee-content { display: inline-block; animation: marquee 20s linear infinite; font-size: 1.2rem; font-weight: 600; }
.marquee-content span { margin: 0 30px; }
.marquee-content i { font-size: 0.8rem; vertical-align: middle; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* --- About Us --- */
.about-container { display: flex; align-items: center; justify-content: space-between; gap: 60px; }
.about-text { flex: 1; }
.about-text h2 { font-size: 3rem; margin-bottom: 20px; line-height: 1.2; }
.about-text p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 20px; line-height: 1.7; }
.about-stats { margin-top: 30px; }
.about-visual { flex: 1; position: relative; }
.about-image-wrapper { position: relative; width: 100%; max-width: 500px; margin: 0 auto; border-radius: 20px; }
.about-image-wrapper img { width: 100%; border-radius: 20px; box-shadow: var(--box-shadow); border: 1px solid var(--border-color); }
.experience-badge { position: absolute; bottom: -30px; left: -30px; background: var(--card-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); padding: 25px 35px; border-radius: 15px; border: 1px solid var(--border-color); box-shadow: var(--box-shadow); text-align: center; }
.experience-badge h3 { font-size: 1.8rem; color: var(--accent); margin-bottom: 5px; font-family: 'Playfair Display', serif; }
.experience-badge p { color: var(--text-main); font-weight: 600; text-transform: uppercase; font-size: 0.9rem; }

/* --- Common Section Elements --- */
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 3rem; margin-bottom: 15px; }
.section-header p { font-size: 1.2rem; color: var(--text-muted); }

/* --- 3D Tour --- */
.model-container { width: 100%; height: 500px; border-radius: 20px; overflow: hidden; box-shadow: var(--box-shadow); background: var(--card-bg); border: 1px solid var(--border-color); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.model-container iframe { width: 100%; height: 100%; border: none; }

/* --- Services & Maintenance Boxes --- */
.services-grid { display: flex; gap: 30px; justify-content: center; flex-wrap: wrap; }
.service-card { background: var(--card-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-radius: 20px; overflow: hidden; width: 45%; min-width: 320px; box-shadow: var(--box-shadow); border: 1px solid var(--border-color); transform-style: preserve-3d; }
.service-img { height: 250px; background-size: cover; background-position: center; transition: 0.5s; }
.service-card:hover .service-img { transform: scale(1.1); }
.service-content { padding: 40px 30px; position: relative; z-index: 2; transform: translateZ(30px); }
.icon-box { width: 60px; height: 60px; background: var(--accent); color: #fff; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 1.5rem; position: absolute; top: -30px; }
.service-content h3 { font-size: 1.8rem; margin-bottom: 15px; margin-top: 10px; color: var(--text-main); }
.service-content p { color: var(--text-muted); line-height: 1.6; }

.feature-boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(288px, 1fr)); gap: 30px; }
.box { background: var(--card-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); padding: 50px 30px; border-radius: 20px; text-align: center; box-shadow: var(--box-shadow); border: 1px solid var(--border-color); transform-style: preserve-3d; }
.box-icon { font-size: 3rem; color: var(--accent); margin-bottom: 25px; transform: translateZ(40px); }
.box h3 { font-size: 1.5rem; margin-bottom: 15px; transform: translateZ(30px); color: var(--text-main); }
.box p { color: var(--text-muted); transform: translateZ(20px); }

/* --- Portfolio --- */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 250px; gap: 20px; }
.portfolio-item { position: relative; border-radius: 15px; overflow: hidden; cursor: pointer; border: 1px solid var(--border-color); box-shadow: var(--box-shadow); }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.7s; }
.portfolio-item:hover img { transform: scale(1.1); }
.portfolio-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); display: flex; justify-content: space-between; align-items: flex-end; padding: 30px; opacity: 0; transition: 0.4s; }
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay h3 { color: #fff; font-size: 1.5rem; }
.portfolio-overlay span { width: 45px; height: 45px; background: var(--accent); color: #fff; border-radius: 50%; display: flex; justify-content: center; align-items: center; }
.tall { grid-row: span 2; }
.wide { grid-column: span 2; }

/* --- Footer / Map --- */
.footer { background: var(--nav-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); color: var(--text-main); padding: 80px 0 20px; border-top: 1px solid var(--border-color); margin-top: 50px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 60px; }
.footer-brand h2 { font-size: 2rem; margin-bottom: 20px; color: var(--text-main); }
.footer-brand p { color: var(--text-muted); max-width: 400px; line-height: 1.6; margin-bottom: 20px; }
.contact-details p { margin-bottom: 10px; font-size: 1.1rem; color: var(--text-main); }
.contact-details i { color: var(--accent); margin-right: 10px; }
.footer-map iframe { width: 100%; height: 250px; border: 1px solid var(--border-color); border-radius: 15px; filter: var(--map-filter); transition: filter 0.4s ease; box-shadow: var(--box-shadow); }
.footer-bottom { text-align: center; border-top: 1px solid var(--border-color); padding-top: 20px; color: var(--text-muted); }

/* --- Lightbox --- */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.9); z-index: 10000; display: none; justify-content: center; align-items: center; opacity: 0; transition: opacity 0.3s ease; }
.lightbox.active { display: flex; opacity: 1; }
.lightbox-content { max-width: 90%; max-height: 90%; border-radius: 10px; box-shadow: 0 0 50px rgba(0,0,0,0.5); transform: scale(0.8); transition: transform 0.3s ease; border: 1px solid rgba(255,255,255,0.1); }
.lightbox.active .lightbox-content { transform: scale(1); }
.lightbox-close { position: absolute; top: 30px; right: 40px; color: white; font-size: 40px; font-weight: bold; cursor: pointer; transition: 0.3s; }
.lightbox-close:hover { color: var(--accent); }

/* --- Floating Buttons --- */
.floating-actions { position: fixed; bottom: 30px; right: 30px; display: flex; flex-direction: column; gap: 15px; z-index: 9999; }
.float-btn { width: 55px; height: 55px; border-radius: 50%; display: flex; justify-content: center; align-items: center; color: white; font-size: 1.5rem; box-shadow: var(--box-shadow); border: 1px solid var(--border-color); text-decoration: none; }
.float-btn.whatsapp { background-color: #25D366; border: none; }
.float-btn.call { background-color: #007bff; border: none; }
.float-btn.go-top { background: var(--card-bg); backdrop-filter: blur(10px); color: var(--text-main); opacity: 0; visibility: hidden; transform: translateY(20px); transition: 0.3s; }
.float-btn.go-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.float-btn.go-top:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* --- Loader & Cursor --- */
.page-loader { position: fixed; inset: 0; background: var(--bg-main); z-index: 100000; display: flex; justify-content: center; align-items: center; color: var(--accent); transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1); }
.page-loader.loaded { transform: translateY(-100%); }
.loader-content { text-align: center; }
.loader-icon { font-size: 4rem; margin-bottom: 20px; animation: pulse 1.5s infinite; }
.loader-content h2 { font-size: 2rem; color: var(--text-main); letter-spacing: 2px; margin-bottom: 20px; }
.loading-bar { width: 200px; height: 3px; background: var(--border-color); border-radius: 3px; overflow: hidden; margin: 0 auto; }
.loading-bar::after { content: ''; display: block; width: 0%; height: 100%; background: var(--accent); animation: loadProgress 1s ease-in-out forwards; }
@keyframes pulse { 0% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.1); opacity: 0.7; } 100% { transform: scale(1); opacity: 1; } }
@keyframes loadProgress { to { width: 100%; } }

@media (min-width: 769px) { body { cursor: none; } }
.cursor-dot { width: 8px; height: 8px; background-color: var(--accent); }
.cursor-outline { width: 40px; height: 40px; border: 2px solid var(--accent); }
.cursor-dot, .cursor-outline { position: fixed; top: 0; left: 0; transform: translate(-50%, -50%); border-radius: 50%; z-index: 99999; pointer-events: none; transition: width 0.2s, height 0.2s, background-color 0.2s; }

/* --- Mobile Responsive --- */
@media (max-width: 992px) { 
    .hero-container, .footer-grid, .about-container { flex-direction: column; text-align: center; grid-template-columns: 1fr; } 
    .hero-action, .about-stats { justify-content: center; } 
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); } 
    .wide { grid-column: span 1; } 
    .about-image-wrapper { margin-bottom: 50px; }
    .experience-badge { left: 50%; transform: translateX(-50%); bottom: -30px; width: 85%; padding: 15px 20px; white-space: nowrap; } 
}
@media (max-width: 768px) { 
    .navbar { padding: 0 10px; }
    .logo img { height: 44px !important; }
    #langToggle { padding-right: 5px !important; font-size: 1rem !important; }
    .nav-actions { gap: 10px; }
    .nav-links { position: fixed; top: 80px; left: -100%; width: 100%; height: calc(73vh - 80px); background: var(--nav-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); flex-direction: column; align-items: center; justify-content: center; transition: 0.4s; } 
    .nav-links.active { left: 0; } 
    .menu-toggle { display: block; font-size: 1.4rem; } 
    .btn-nav { display: none; } 
    .hero-text h1, .about-text h2 { font-size: 2.2rem; min-height: 80px; } 
    .hero-text p { font-size: 1rem; margin-bottom: 20px; }
    .hero-action { flex-direction: column; gap: 20px; }
    .stats { flex-wrap: wrap; justify-content: center; gap: 15px; }
    .image-wrapper { height: 250px; max-width: 95%; width:300px; margin: 0 auto;padding:15px 0px; }
    .floating-card { display: none !important; }
    .services-grid { flex-direction: column; } 
    .service-card { width: 100%; min-width: unset; } 
    .portfolio-grid { grid-template-columns: 1fr; } 
    .tall { grid-row: span 1; } 
    .cursor-dot, .cursor-outline { display: none; } 
    body { cursor: auto; } 
}
@media (max-width: 480px) {
    .hero-text h1, .about-text h2, .section-header h2 { font-size: 1.8rem; }
    .image-wrapper { height: 200px; }
}

/* --- Google Translate Fixes --- */
.VIpgJd-Zvi9od-ORHb-OEVmcd { display: none !important; }
.goog-te-banner-frame.skiptranslate { display: none !important; }
.skiptranslate iframe { display: none !important; }
body { top: 0px !important; }
html { top: 0px !important; }
#goog-gt-tt, .goog-te-balloon-frame { display: none !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
#google_translate_element, .goog-te-spinner-pos, .goog-te-spinner-animation, .goog-logo-link, .goog-te-gadget { display: none !important; opacity: 0 !important; pointer-events: none !important; }
