/* --- CSS Variables & Theme --- */
:root {
    --bg-main: #f4f7f6;
    --text-main: #2c3e50;
    --text-muted: #5e6d7a;
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: rgba(0, 0, 0, 0.05);
    --accent-color: #d4af37; 
    --accent-hover: #c59b27;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
    --transition: all 0.3s ease-in-out;
}

/* Dark Theme Variables */
[data-theme="dark"] {
    --bg-main: #121212;
    --text-main: #e0e0e0;
    --text-muted: #a0a0a0;
    --glass-bg: rgba(25, 25, 25, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: rgba(0, 0, 0, 0.5);
}
/* --- Base Styles --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.4s, color 0.4s;
}

h1, h2, h3, h4, .logo { font-family: var(--font-heading); }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 100px 0; }
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }

/* --- Glassmorphism Utilities --- */
.glass-nav, .glass-card, .glass-footer {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 var(--glass-shadow);
}

.glass-card {
    border-radius: 20px;
    padding: 30px;
    transition: transform var(--transition);
}
.glass-card:hover { transform: translateY(-5px); }

/* --- Buttons --- */
.btn-primary, .btn-secondary, .slider-btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
}
.btn-primary, .slider-btn { background-color: var(--accent-color); color: #fff; }
.btn-primary:hover, .slider-btn:hover { background-color: var(--accent-hover); transform: scale(1.05); }
.btn-secondary { background: transparent; border: 1px solid var(--text-main); color: var(--text-main); }
.btn-secondary:hover { background: var(--text-main); color: var(--bg-main); }

/* --- Navigation & Beautiful Toggle Switch --- */
.glass-nav {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    border-bottom-left-radius: 20px; border-bottom-right-radius: 20px; border-top: none;
}
.nav-container { display: flex; justify-content: space-between; align-items: center; padding: 15px 40px; max-width: 1400px; margin: 0 auto; }
.logo { font-size: 2rem; font-weight: 700; letter-spacing: 2px; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { font-weight: 500; position: relative; transition: color 0.3s; }
.nav-links a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -4px; left: 0; background-color: var(--accent-color); transition: width 0.3s; }
.nav-links a:hover::after { width: 100%; }

.nav-controls { display: flex; align-items: center; gap: 20px; }

/* Toggle Switch Styles */
.theme-switch { position: relative; display: inline-block; width: 60px; height: 30px; }
.theme-switch input { opacity: 0; width: 0; height: 0; }
.slider.round {
    position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
    background-color: #2c3e50; transition: .4s; border-radius: 34px;
    display: flex; align-items: center; justify-content: space-between; padding: 0 8px;
}
.slider.round .sun-icon { color: #f1c40f; font-size: 14px; z-index: 1;}
.slider.round .moon-icon { color: #f1c40f; font-size: 14px; z-index: 1;}
.slider.round:before {
    position: absolute; content: ""; height: 22px; width: 22px; left: 4px; bottom: 4px;
    background-color: white; transition: .4s; border-radius: 50%; z-index: 2;
}
input:checked + .slider.round { background-color: #4a5568; }
input:checked + .slider.round:before { transform: translateX(30px); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { width: 25px; height: 3px; background-color: var(--text-main); transition: var(--transition); }

/* --- Full Screen Animated Hero Slider --- */
.full-slider-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: #111;
    overflow: hidden;
}

.full-slider-container .slide .item {
    width: 200px;
    height: 300px;
    position: absolute;
    top: 50%;
    transform: translate(0, -50%);
    border-radius: 20px;
    box-shadow: 0 30px 50px rgba(0,0,0,0.5);
    background-position: 50% 50%;
    background-size: cover;
    display: inline-block;
    transition: 0.5s;
    z-index: 1;
    
    /* Added for Drag/Swipe Support */
    user-select: none; 
    cursor: grab;      
}

.full-slider-container .slide .item:nth-child(1),
.full-slider-container .slide .item:nth-child(2) {
    top: 0; left: 0;
    transform: translate(0, 0);
    border-radius: 0;
    width: 100%; height: 100%;
    box-shadow: none;
}

/* Dark Overlay for text readability on main slide */
.full-slider-container .slide .item:nth-child(2)::after {
    content: ''; position: absolute; top:0; left:0; right:0; bottom:0;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 100%);
    z-index: -1;
}

.full-slider-container .slide .item:nth-child(3) { left: 55%; }
.full-slider-container .slide .item:nth-child(4) { left: calc(55% + 220px); }
.full-slider-container .slide .item:nth-child(5) { left: calc(55% + 440px); opacity: 0; }

.item .content {
    position: absolute;
    top: 50%;
    left: 10%;
    width: 500px;
    text-align: left;
    color: #fff;
    transform: translate(0, -50%);
    display: none;
    z-index: 5;
}

.full-slider-container .slide .item:nth-child(2) .content { display: block; }

.content .name {
    font-size: 4rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: bold;
    opacity: 0;
    animation: animate 1s ease-in-out 1 forwards;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    color: var(--accent-color);
}

.content .des {
    margin-top: 15px; margin-bottom: 30px; font-size: 1.2rem;
    opacity: 0; animation: animate 1s ease-in-out 0.3s 1 forwards;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.8);
}

.content button {
    opacity: 0; animation: animate 1s ease-in-out 0.6s 1 forwards;
}

@keyframes animate {
    from { opacity: 0; transform: translate(0, 100px); filter: blur(33px); }
    to { opacity: 1; transform: translate(0); filter: blur(0); }
}

.slider-nav-buttons {
    position: absolute; bottom: 40px; right: 10%; z-index: 10; display: flex; gap: 15px;
}
.slider-nav-buttons button {
    width: 50px; height: 50px; border-radius: 50%; border: none; cursor: pointer;
    background: var(--glass-bg); backdrop-filter: blur(10px); color: var(--text-main);
    font-size: 1.2rem; transition: var(--transition); border: 1px solid var(--glass-border);
}
.slider-nav-buttons button:hover { background: var(--accent-color); color: #fff; }


/* --- Layouts & Grids --- */
.layout-split { display: flex; align-items: center; gap: 50px; }
.layout-split > * { flex: 1; }
.glass-image { border-radius: 20px; box-shadow: 0 10px 30px var(--glass-shadow); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 40px; }

/* --- Solid Card Styles (About Section) --- */
.solid-white-card {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 50px;
    border: 1px solid rgba(0,0,0,0.02);
}

[data-theme="dark"] .solid-white-card {
    background-color: #1e222a; 
    border: 1px solid rgba(255,255,255,0.05);
}

.rounded-image {
    border-radius: 20px;
    width: 100%;
    object-fit: cover;
}

.shadow-subtle { box-shadow: 0 15px 45px rgba(0, 0, 0, 0.04); }
[data-theme="dark"] .shadow-subtle { box-shadow: 0 15px 45px rgba(0, 0, 0, 0.3); }

.card-title {
    color: #344054;
    font-size: 2rem;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}
[data-theme="dark"] .card-title { color: #f8fafc; }

.card-text {
    color: #667085;
    line-height: 1.7;
    margin-bottom: 35px;
    font-size: 1.05rem;
}
[data-theme="dark"] .card-text { color: #94a3b8; }

.btn-outline {
    display: inline-block;
    padding: 10px 30px;
    border: 1px solid #344054;
    border-radius: 40px;
    color: #344054;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    background: transparent;
}
.btn-outline:hover { background: #344054; color: #ffffff; }

[data-theme="dark"] .btn-outline { border-color: #f8fafc; color: #f8fafc; }
[data-theme="dark"] .btn-outline:hover { background: #f8fafc; color: #1e222a; }

/* --- Icons --- */
.icon-wrapper {
    width: 75px; height: 75px; margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(212, 175, 55, 0.4); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 16px rgba(212, 175, 55, 0.1), inset 0 4px 10px rgba(255, 255, 255, 0.4);
    color: var(--accent-color); transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.icon-wrapper svg { width: 34px; height: 34px; transition: transform 0.5s ease; }
.service-card h3 { margin-bottom: 10px; }
.service-card:hover .icon-wrapper {
    transform: translateY(-8px) scale(1.05);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(255, 255, 255, 0.1));
    border-color: rgba(212, 175, 55, 0.8);
    box-shadow: 0 15px 25px rgba(212, 175, 55, 0.2), inset 0 4px 12px rgba(255, 255, 255, 0.6), 0 0 15px rgba(212, 175, 55, 0.3);
}
.service-card:hover .icon-wrapper svg { transform: scale(1.1); stroke-width: 2px; }

/* --- Overlap Testimonial Cards Layout --- */
.dark-bg-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Creates a slight parallax effect */
    padding: 100px 0 120px;
}

.bg-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(30, 35, 30, 0.85); /* Deep dark tint */
    z-index: 1;
}

.relative-z {
    position: relative;
    z-index: 2;
}

.text-white { color: #ffffff !important; }
.text-light { color: #d1d5db; margin: 0 auto; max-width: 800px; font-size: 1.05rem; }

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 100px; /* Large margin to make room for the overlapping avatars */
}

/* Individual Card Setup */
.testi-card {
    background: #ffffff;
    border-radius: 4px;
    position: relative;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
}

/* The Overlapping Avatar Bubble */
.testi-avatar {
    width: 90px;
    height: 90px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #000000;
    position: absolute;
    top: -45px; /* Pulls it exactly halfway out of the top of the card */
    left: 50%;
    transform: translateX(-50%);
}

/* Top half of the card (Light Gray) */
.testi-header {
    background-color: #f3f4f6; /* Light grayish-white */
    padding: 65px 20px 25px; /* Large top padding to push text below the avatar */
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    border-bottom: 1px solid #e5e7eb;
}

.testi-header h3 {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 5px;
}

/* --- Floating Expanding Buttons --- */
.floating-contact-btn {
    position: fixed !important;
    bottom: 40px !important;
    z-index: 2147483647 !important; /* Maximum possible z-index value */
    display: flex !important;
    align-items: center !important;
    height: 60px !important;
    width: 60px !important;
    border-radius: 50px !important;
    color: white !important;
    text-decoration: none !important;
    overflow: hidden !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
    transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    animation: heartbeat 2s infinite !important;
    
    /* Hardware acceleration to prevent disappearing on scroll */
    -webkit-transform: translateZ(0) !important;
    transform: translateZ(0) !important;
}

/* Pause heartbeat and expand on hover */
.floating-contact-btn:hover {
    width: 220px !important; /* Expands to fit the text */
    animation: none !important; /* Stops beating when mouse is over it */
    box-shadow: 0 6px 20px rgba(0,0,0,0.3) !important;
}

/* --- Left Button (Phone) --- */
.left-btn {
    left: 30px !important;
    background: linear-gradient(135deg, #42a5f5, #00d4ff) !important;
    justify-content: flex-start !important;
}

/* --- Fix the Right Button Layout --- */
.right-btn {
    right: 30px !important;
    background: linear-gradient(135deg, #43e97b, #38f9d7) !important;
    flex-direction: row !important; /* Changed to normal row */
    justify-content: flex-end !important; /* Keeps icon anchored to the right */
}

/* --- The Icons --- */
.floating-contact-btn i {
    font-size: 26px !important;
    min-width: 60px !important; /* Matches height to keep it perfectly round */
    text-align: center !important;
}

/* --- The Hidden Text --- */
.hover-text {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    white-space: nowrap !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease-in-out !important;
    transition-delay: 0.1s !important; /* Waits a split second for the button to open */
}

/* Reveal text inside left button */
.left-btn:hover .hover-text {
    opacity: 1 !important;
    padding-right: 20px !important;
}

/* Reveal text inside right button */
.right-btn:hover .hover-text {
    opacity: 1 !important;
    padding-left: 20px !important;
}

/* --- THE HEARTBEAT KEYFRAMES --- */
@keyframes heartbeat {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    }
    15% {
        transform: scale(1.1); /* First beat */
        box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    }
    30% {
        transform: scale(1);
    }
    45% {
        transform: scale(1.1); /* Second beat */
        box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    }
    60% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    }
    100% {
        transform: scale(1);
    }
}

/* --- Mobile Fixes --- */
@media (max-width: 600px) {
    .floating-contact-btn {
        bottom: 25px !important;
        height: 55px !important;
        width: 55px !important;
    }
    .floating-contact-btn i {
        min-width: 55px !important;
        font-size: 22px !important;
    }
    .left-btn { left: 15px !important; }
    .right-btn { right: 15px !important; }
    
    /* Optional: keep them slightly expanded on mobile since there is no "hover" on touchscreens */
    .floating-contact-btn:active {
        width: 200px !important;
    }
}
/* Dark Mode Adjustments */
[data-theme="dark"] .testi-card { box-shadow: 0 15px 35px rgba(0,0,0,0.5); }
[data-theme="dark"] .testi-header { background: #1f2937; border-color: #374151; }
[data-theme="dark"] .testi-header h3 { color: #f9fafb; }
[data-theme="dark"] .testi-header span { color: #9ca3af; }
[data-theme="dark"] .testi-body { background: #111827; }
[data-theme="dark"] .testi-body p { color: #d1d5db; }
[data-theme="dark"] .testi-avatar { background: #111827; color: #f9fafb; border: 2px solid #374151; }
[data-theme="dark"] .quote-icon { color: #9ca3af; }

/* Responsive Media Queries */
@media (max-width: 1024px) {
    /* Stack into 2 columns on tablets */
    .testimonial-grid { grid-template-columns: repeat(2, 1fr); gap: 70px 25px; }
}

@media (max-width: 768px) {
    /* Stack into 1 column on mobile */
    .testimonial-grid { grid-template-columns: 1fr; gap: 80px 0; }
    .dark-bg-section { padding: 60px 0 80px; }
}
/* --- Gallery & Subtitle --- */
.section-subtitle { color: var(--text-muted); font-size: 1.1rem; max-width: 600px; margin: 10px auto 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.gallery-img { border-radius: 15px; cursor: pointer; transition: transform var(--transition); object-fit: cover; aspect-ratio: 4/3; }
.gallery-img:hover { transform: scale(1.03); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }

/* --- Sliding Lightbox --- */
.lightbox {
    display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.9); backdrop-filter: blur(10px);
}
.lightbox-content {
    margin: auto; display: block; max-width: 80%; max-height: 80vh;
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); border-radius: 10px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}
.close-lightbox { position: absolute; top: 30px; right: 40px; color: #fff; font-size: 40px; font-weight: bold; cursor: pointer; z-index: 2001;}
.lightbox-prev, .lightbox-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.1); border: none; color: white; font-size: 30px;
    padding: 15px 20px; cursor: pointer; border-radius: 50%; transition: 0.3s; z-index: 2001;
}
.lightbox-prev:hover, .lightbox-next:hover { background: var(--accent-color); }
.lightbox-prev { left: 5%; }
.lightbox-next { right: 5%; }

/* --- Beautiful Premium Footer --- */
.premium-footer {
    padding: 80px 0 20px;
    border-radius: 50px 50px 0 0;
    margin-top: 50px;
    background: linear-gradient(180deg, var(--glass-bg) 0%, rgba(0,0,0,0.05) 100%);
}
[data-theme="dark"] .premium-footer { background: linear-gradient(180deg, var(--glass-bg) 0%, rgba(0,0,0,0.4) 100%); }

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.5fr; gap: 50px; margin-bottom: 50px; }
.brand-col h3 { font-size: 2.5rem; color: var(--accent-color); margin-bottom: 15px; }
.brand-col p { color: var(--text-muted); margin-bottom: 25px; max-width: 350px; }

.social-icons { display: flex; gap: 15px; }
.social-icons a {
    width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--glass-border);
    display: flex; align-items: center; justify-content: center; transition: var(--transition);
}
.social-icons a:hover { background: var(--accent-color); color: #fff; transform: translateY(-3px); }

.footer-col h4 { font-size: 1.2rem; margin-bottom: 25px; position: relative; padding-bottom: 10px; }
.footer-col h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 40px; height: 2px; background: var(--accent-color); }

.footer-links a { display: block; margin-bottom: 15px; transition: color 0.3s; color: var(--text-muted); }
.footer-links a i { font-size: 0.8rem; margin-right: 8px; color: var(--accent-color); }
.footer-links a:hover { color: var(--accent-color); transform: translateX(5px); }

.newsletter-form { display: flex; margin-top: 20px; background: var(--bg-main); border-radius: 30px; padding: 5px; border: 1px solid var(--glass-border); }
.newsletter-form input { flex: 1; border: none; background: transparent; padding: 10px 20px; color: var(--text-main); outline: none; }
.newsletter-form button { background: var(--accent-color); color: white; border: none; width: 45px; height: 45px; border-radius: 50%; cursor: pointer; transition: 0.3s; }
.newsletter-form button:hover { background: var(--accent-hover); }

.footer-copyright {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    padding-top: 30px !important; 
    padding-bottom: 20px !important; 
    margin-top: 40px !important; 
    border-top: 1px solid rgba(0,0,0,0.05) !important;
    clear: both !important;
}

.footer-copyright p {
    display: block !important;
    text-align: center !important;
    margin: 0 auto !important;
    width: 100% !important;
    color: #666 !important; 
    font-size: 14px !important;
}

/* --- Media Queries (Responsiveness) --- */
@media (max-width: 1024px) {
    .grid-4, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .content .name { font-size: 3rem; }
    .full-slider-container .slide .item:nth-child(3) { left: 40%; }
    .full-slider-container .slide .item:nth-child(4) { left: calc(40% + 220px); }
    .full-slider-container .slide .item:nth-child(5) { display: none; } /* Hide 3rd thumbnail on tablet */
}

@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-links {
        position: absolute; top: 100%; left: 0; width: 100%; flex-direction: column;
        background: var(--glass-bg); backdrop-filter: blur(16px); padding: 20px 0;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); transition: clip-path 0.4s ease-in-out; gap: 15px;
    }
    .nav-links.active { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
    
    .layout-split { flex-direction: column; }
    .grid-4, .gallery-grid, .footer-grid { grid-template-columns: 1fr; }
    .footer-grid { text-align: center; gap: 30px; }
    .footer-col h4::after { left: 50%; transform: translateX(-50%); }
    .social-icons { justify-content: center; }
    
    /* Mobile Slider Adjustments */
    .content .name { font-size: 2.2rem; }
    .item .content { width: 90%; left: 5%; text-align: center; }
    .full-slider-container .slide .item:nth-child(3),
    .full-slider-container .slide .item:nth-child(4) { 
        top: 80%; width: 100px; height: 150px; 
    }
    .full-slider-container .slide .item:nth-child(3) { left: 5%; }
    .full-slider-container .slide .item:nth-child(4) { left: calc(5% + 110px); }
    .slider-nav-buttons { bottom: 20px; right: 5%; }
    .central-image-wrapper { display: none; } /* Usually hidden on mobile to save space, but you can remove this rule to keep it */
}
/* Container Spacing */
.footer-social-info {
    margin-top: 20px;
}

.parking-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #f3efe8; /* Light beige background */
  color: #ac8e68; /* Brown/tan color for text and icon */
  padding: 8px 20px;
  border-radius: 50px; /* Gives it the pill shape */
  border: 1px solid #e7e1d6; /* Very subtle border matching the image */
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 15px;
}

.parking-badge svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}