:root {
    --primary: #059669;
    --primary-light: #10b981;
    --accent: #34d399;
    --dark: #0f172a;
    --light: #f8fafc;
    --text-white: #f1f5f9;
    --text-gray: #94a3b8;
    --glass: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --container-width: 1200px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
#three-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
    width: 100%;
}
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}
h1, h2, h3, .brand {
    font-family: 'Outfit', sans-serif;
}
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}
.highlight {
    color: var(--primary-light);
}
ul {
    list-style: none;
}
a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
}
.btn-outline-alt {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-gray);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}
.btn-outline-alt:hover {
    border-color: var(--primary);
    color: white;
    background: rgba(16, 185, 129, 0.05);
}
.primary-btn {
    background: var(--primary);
    color: white;
}
.primary-btn:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(46, 125, 50, 0.3);
}
.secondary-btn {
    background: transparent;
    border: 2px solid white;
    color: white;
}
.secondary-btn:hover {
    background: white;
    color: var(--dark);
    transform: translateY(-3px);
}
/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}
header.scrolled {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.logo img {
    height: 60px; /* Increased size */
    border-radius: 5px;
}
.logo-text {
    display: flex;
    flex-direction: column;
}
.logo-text .brand {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1;
}
.logo-text .sub {
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: #ffffff;
}
.nav-links {
    display: flex;
    gap: 2rem;
}
.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    opacity: 0.8;
}
.nav-links a:hover {
    opacity: 1;
    color: var(--primary-light);
}
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}
.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: white;
    transition: var(--transition);
}
/* Global Glassy Backgrounds */
.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.2;
}
.bg-glow-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -100px;
    right: -100px;
}
.bg-glow-2 {
    width: 500px;
    height: 500px;
    background: #059669;
    bottom: -150px;
    left: -150px;
}
/* Hero Section Redesign */
.modern-hero {
    min-height: 100vh;
    height: auto;
    width: 100%;
    position: relative;
    overflow-x: hidden;
    overflow-y: visible;
    background: transparent;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15rem;
}
.hero-content-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 10;
}
.modern-hero h1 {
    font-size: clamp(3rem, 8vw, 7rem);
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -2px;
}
.glow-text {
    background: linear-gradient(135deg, #34d399 0%, #059669 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 30px rgba(16, 185, 129, 0.4));
}
.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto 3rem auto;
}
.hero-center-media {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 3rem;
}
.glow-orb {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.3) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    filter: blur(40px);
    z-index: 1;
    animation: pulseOrb 4s infinite alternate;
}
@keyframes pulseOrb {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.5); opacity: 0.8; }
}
.hero-coverflow {
    position: relative;
    width: 100vw;
    height: 600px;
    max-width: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
    z-index: 2;
}
.hero-cover-img {
    position: absolute;
    width: 100%;
    max-width: 550px;
    object-fit: contain;
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: drop-shadow(0 30px 40px rgba(0,0,0,0.8));
    pointer-events: none;
    transform-origin: center bottom;
}
/* Coverflow Classes */
.hero-cover-img.active {
    opacity: 1;
    transform: translateX(0) translateZ(100px) scale(1.1);
    z-index: 10;
    pointer-events: auto;
    filter: drop-shadow(0 40px 50px rgba(0,0,0,0.9));
}
.hero-cover-img.prev {
    opacity: 0.4;
    transform: translateX(-350px) translateZ(-150px) rotateY(25deg);
    z-index: 5;
    cursor: pointer;
    pointer-events: auto;
}
.hero-cover-img.next {
    opacity: 0.4;
    transform: translateX(350px) translateZ(-150px) rotateY(-25deg);
    z-index: 5;
    cursor: pointer;
    pointer-events: auto;
}
.hero-cover-img.hidden {
    opacity: 0;
    transform: translateX(0) translateZ(-400px);
    z-index: 1;
}
@keyframes floatScooter {
    0% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}
.floating-scooter {
    width: 100%;
    max-width: 700px;
    object-fit: contain;
    z-index: 2;
    filter: drop-shadow(0 30px 40px rgba(0,0,0,0.8));
    animation: floatScooter 6s ease-in-out infinite;
}
@keyframes floatScooter {
    0% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}
.hero-btns {
    display: flex;
    gap: 1.5rem;
}
.btn-lg {
    padding: 1rem 3rem;
    font-size: 1.1rem;
}
/* Logos Strip */
#logos-strip {
    padding: 2rem 0;
    background: rgba(255,255,255,0.02);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}
.strip-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}
.partner-row {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}
.kinetic-logo-bg {
    background: white;
    padding: 10px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.kinetic-logo-strip {
    height: 45px;
    object-fit: contain;
}
/* Models Section - Detailed List */
#models {
    padding: 8rem 0;
    background: linear-gradient(to bottom, #121212, #1a1a1a);
}
/* Massive Product Cards Section */
.massive-models {
    display: flex;
    flex-direction: column;
    gap: 8rem;
}
.model-row-v4 {
    display: flex;
    align-items: center;
    gap: 4rem;
    background: transparent;
    padding: 0;
}
.model-row-v4.reversed {
    flex-direction: row-reverse;
}
.model-media-v4 {
    flex: 1.2;
    display: flex;
    justify-content: center;
    align-items: center;
}
.model-media-v4 img {
    width: 120%;
    max-width: 800px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 30px 60px rgba(0,0,0,0.7));
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.model-row-v4:hover .model-media-v4 img {
    transform: scale(1.05) translateY(-10px);
}
.luxury-glass-backdrop {
    background-image: linear-gradient(rgba(10, 15, 20, 0.75), rgba(10, 15, 20, 0.75)), url('./uploads/showroom_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--dark);
    border: 1px solid rgba(255,255,255,0.12);
    border-top: 1px solid rgba(255,255,255,0.25);
    border-left: 1px solid rgba(255,255,255,0.25);
    border-radius: 32px;
    width: 100%;
    max-width: 650px;
    height: auto;
    min-height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    box-shadow: 0 40px 60px rgba(0,0,0,0.4), inset 0 0 40px rgba(255,255,255,0.03);
    position: relative;
    overflow: hidden;
}
.luxury-glass-backdrop::before {
    display: none;
}
.luxury-glass-backdrop::after {
    display: none;
}
.luxury-glass-backdrop img {
    position: relative;
    z-index: 10;
}
.model-details-v4 {
    flex: 1;
}
.model-details-v4 h3 {
    font-size: 3.5rem;
    line-height: 1.1;
    color: white;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-weight: 800;
}
.model-details-v4 .description {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 3rem;
    line-height: 1.6;
}
.specs-grid-v4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}
.spec-item-v4 {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}
.spec-item-v4:hover {
    border-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.1);
}
.spec-item-v4 .label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}
.spec-item-v4 .value {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
}
.model-actions {
    display: flex;
}
/* 360 Showroom Styling */
#showroom-360 {
    padding: 8rem 0;
    background: #121212;
}
.showroom-controls {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}
.btn-outline {
    background: transparent;
    border: 2px solid var(--glass-border);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}
.btn-outline.active, .btn-outline:hover {
    background: var(--primary);
    border-color: var(--primary);
}
#panorama-container {
    height: 600px;
    width: 100%;
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    pointer-events: none; /* Disable touch to let page scroll */
}
#panorama {
    width: 100%;
    height: 100%;
}
/* About Section */
#about {
    padding: 6rem 0;
}
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 6rem;
}
.small-title {
    color: var(--primary-light);
    font-weight: 700;
    letter-spacing: 3px;
    display: block;
    margin-bottom: 1rem;
}
.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}
.about-text p {
    color: var(--text-gray);
    margin-bottom: 2rem;
}
.stats-grid {
    display: flex;
    gap: 3rem;
}
.stat-item {
    display: flex;
    flex-direction: column;
}
.stat-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-light);
    font-family: 'Outfit';
}
.stat-label {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
}
.image-stack {
    position: relative;
}
.main-img {
    width: 100%;
    border-radius: 20px;
}
.experience-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--primary);
    padding: 2rem;
    border-radius: 50%;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: rotate 20s linear infinite;
}
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
/* Contact Section */
#contact {
    padding: 8rem 0;
    position: relative;
    z-index: 10;
    background: var(--dark);
}
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}
.contact-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}
.contact-item i {
    width: 60px;
    height: 60px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-light);
}
.contact-item h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}
.phone-link:hover {
    color: var(--primary-light);
}
.social-btns {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}
.social-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.social-circle:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-5px);
}
.map-container {
    height: 400px;
    background: var(--glass);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--glass-border);
}
.map-overlay {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.map-overlay img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    display: block; /* Ensure visibility */
}
.map-overlay .btn {
    position: relative;
    z-index: 2;
}
.map-overlay .btn {
    position: relative;
    z-index: 1;
}
/* Footer */
footer {
    background: #0a0a0a;
    padding: 5rem 0 120px; /* Added large bottom padding to clear nav bar */
    border-top: 1px solid var(--glass-border);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 4rem;
}
.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}
.brand-col p {
    color: var(--text-gray);
    margin-top: 1.5rem;
    max-width: 300px;
}
.links-col ul li {
    margin-bottom: 0.8rem;
}
.links-col ul li a {
    color: var(--text-gray);
}
.links-col ul li a:hover {
    color: var(--primary-light);
}
.hours-col p {
    color: var(--text-gray);
}
.floating-socials {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: row;
    gap: 20px;
    padding: 10px 30px;
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.social-fab {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.6rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    transition: var(--transition);
}
.social-fab:hover {
    transform: scale(1.1) rotate(5deg);
}
.social-fab.whatsapp { background: #25D366; }
.social-fab.location { background: #EA4335; }
.social-fab.instagram { background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); }
.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-gray);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.designer-credit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}
.designer-credit img {
    height: 25px;
    transition: var(--transition);
}
.designer-credit a:hover img {
    transform: scale(1.1);
}
/* Modal Styling — Compact & Mobile-First */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.80);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    opacity: 0;
    visibility: hidden;
    overflow: hidden; /* Never let overlay cause scroll */
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}
@media (min-width: 769px) {
    .modal-overlay {
        align-items: center;
    }
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.modal-container {
    width: 100%;
    max-width: 860px;
    max-height: 90vh;
    background: #0f172a;
    border: 1px solid var(--glass-border);
    border-radius: 24px 24px 0 0;
    position: relative;
    transform: translateY(60px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.2);
    overflow-x: hidden;   /* Kill horizontal scroll */
    overflow-y: hidden;   /* Children handle their own y scroll */
    box-shadow: 0 -20px 60px rgba(0,0,0,0.7);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}
@media (min-width: 769px) {
    .modal-container {
        border-radius: 24px;
        max-height: 88vh;
        transform: translateY(30px) scale(0.97);
    }
}
.modal-overlay.active .modal-container {
    transform: translateY(0) scale(1);
}
/* Drag handle for mobile */
.modal-container::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    margin: 10px auto 0;
    flex-shrink: 0;
}
@media (min-width: 769px) {
    .modal-container::before { display: none; }
}
.modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: rgba(255,255,255,0.07);
    border: 1px solid var(--glass-border);
    color: white;
    font-size: 1.5rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    line-height: 1;
}
.modal-close:hover {
    background: var(--primary);
    transform: rotate(90deg);
}
/* Header row inside modal: image + name side by side */
.modal-header-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1rem 0.8rem;
    padding-right: 3rem; /* Space for close button */
    border-bottom: 1px solid var(--glass-border);
    background: rgba(255,255,255,0.02);
    flex-shrink: 0;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden; /* Contain children */
}
.modal-header-text {
    min-width: 0; /* Allow text to shrink and wrap */
    flex: 1;
    overflow: hidden;
}
.modal-header-img {
    width: 90px;
    height: 70px;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.5));
    flex-shrink: 0;
}
.modal-header-text h2 {
    font-size: 1.3rem;
    font-weight: 800;
    color: white;
    line-height: 1.1;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    font-family: 'Outfit', sans-serif;
    word-break: break-word;
    overflow: hidden;
}
.modal-header-text p {
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.7rem;
    font-weight: 600;
}
@media (min-width: 769px) {
    .modal-header-row {
        padding: 1.2rem 1.8rem;
        gap: 1.5rem;
    }
    .modal-header-img { width: 120px; height: 90px; }
    .modal-header-text h2 { font-size: 1.8rem; }
}
/* Scrollable body */
.modal-content {
    overflow-y: auto;
    overflow-x: hidden;  /* No sideways scroll inside body */
    padding: 1rem 1rem 1.5rem;
    flex: 1;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    box-sizing: border-box;
}
@media (min-width: 769px) {
    .modal-content {
        padding: 1.5rem 2rem 2rem;
    }
}
/* Hide old left/right split — replaced by header row + single scroll body */
.modal-left, .modal-right { display: none !important; }
#modal-specs-body {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}
.modal-spec-section h4 {
    font-size: 0.72rem;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.6rem;
    border-left: 3px solid var(--primary);
    padding-left: 0.7rem;
}
.modal-spec-grid {
    display: flex;
    flex-direction: column; /* Single column on mobile — no overflow risk */
    width: 100%;
}
@media (min-width: 600px) {
    .modal-spec-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 900px) {
    .modal-spec-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
.modal-spec-item {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.55rem 0.2rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    gap: 0.8rem;
    width: 100%;
    box-sizing: border-box;
    min-width: 0; /* Prevent flex children from overflowing grid cells */
}
.modal-spec-item:last-child {
    border-bottom: none;
}
.modal-spec-item .s-label {
    font-size: 0.78rem;
    color: var(--text-gray);
    flex: 1;
    line-height: 1.4;
    min-width: 0;      /* Allow shrink */
    word-break: break-word;
}
.modal-spec-item .s-value {
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    text-align: right;
    max-width: 55%;     /* Cap at 55% so label always has room */
    word-break: break-word;
    white-space: normal; /* Allow wrapping, not overflow */
}
/* Old modal-img-container unused, hidden safely */
.modal-img-container { display: none; }
/* AOS Replacements/Custom Animations */
[data-aos] {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
[data-aos="fade-up"] { transform: translateY(50px); }
[data-aos="fade-right"] { transform: translateX(-50px); }
[data-aos="fade-left"] { transform: translateX(50px); }
[data-aos="zoom-in"] { transform: scale(0.9); }
[data-aos].aos-animate {
    opacity: 1;
    transform: translate(0) scale(1);
}
/* Responsive Fixes */
@media (max-width: 1024px) {
    .container { padding: 0 1.5rem; }
    .model-row { gap: 2rem; padding: 2rem; }
    .model-details h3 { font-size: 2rem; }
    #panorama-container { height: 500px; }
}
@media (max-width: 768px) {
    .container { padding: 0 1rem; }
    
    .modern-hero h1 { font-size: 3.5rem; }
    .hero-center-media { height: 300px; }
    
    /* Mobile Coverflow Taming */
    .hero-coverflow { height: 350px; }
    .hero-cover-img { max-width: 90%; }
    .hero-cover-img.prev {
        transform: translateX(-160px) translateZ(-200px) rotateY(30deg) !important;
        opacity: 0.2;
    }
    .hero-cover-img.next {
        transform: translateX(160px) translateZ(-200px) rotateY(-30deg) !important;
        opacity: 0.2;
    }
    .glow-orb { width: 200px; height: 200px; }
    .massive-models { gap: 4rem; margin-top: -3rem; }
    .model-row-v4, .model-row-v4.reversed {
        flex-direction: column !important;
        align-items: center;
        text-align: center;
        gap: 2rem;
    }
    .model-media-v4 { order: -1; width: 100vw; position: relative; padding: 0 1rem; }
    .model-media-v4 img { width: 100%; max-width: 400px; margin-bottom: -1rem; }
    
    .luxury-glass-backdrop {
        padding: 2rem;
        border-radius: 20px;
        min-height: 250px;
    }
    .model-details-v4 h3 { font-size: 2.2rem; }
    
    .specs-grid-v4 { 
        display: flex;
        flex-direction: column;
        gap: 0;
        margin-bottom: 2.5rem;
    }
    .spec-item-v4 {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        background: transparent;
        padding: 0.8rem 0;
        border: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        border-radius: 0;
    }
    .spec-item-v4:hover {
        transform: none;
        box-shadow: none;
    }
    .spec-item-v4:last-child {
        border-bottom: none;
    }
    .spec-item-v4 .label {
        margin-bottom: 0;
        font-size: 0.85rem;
    }
    .spec-item-v4 .value {
        font-size: 1rem;
    }
    .model-actions { justify-content: center; }
    .map-container {
        height: 300px;
    }
    
    .map-overlay img {
        object-position: center;
    }
}
/* Testimonials Styling */
#testimonials {
    padding: 8rem 0;
    background: #0a0a0a;
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.testimonial-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 20px;
    position: relative;
    transition: 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-10px);
    background: rgba(255,255,255,0.05);
}
.quote-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    opacity: 0.5;
}
.card-btn {
    display: inline-block;
    padding: 0.8rem 2.2rem;
    background: var(--primary);
    color: white !important;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(46, 125, 50, 0.2);
}
.card-btn:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(46, 125, 50, 0.3);
}
.testimonial-card p {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-gray);
    margin-bottom: 2rem;
    line-height: 1.6;
}
.customer-info {
    display: flex;
    flex-direction: column;
}
.customer-info strong {
    color: white;
    font-size: 1.1rem;
}
.customer-info span {
    color: var(--primary-light);
    font-size: 0.9rem;
}
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: -110%;
        top: 0;
        height: 100vh;
        width: 100%;
        background: rgba(18,18,18,0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s ease;
        z-index: 1001;
    }
    .nav-links.active { right: 0; }
    .mobile-menu-btn { display: flex; z-index: 1002; }
    
    #hero {
        height: auto;
        min-height: 500px;
        padding-top: 80px;
        padding-bottom: 40px;
        overflow: hidden;
    }
    .carousel-container {
        height: 400px;
        margin-top: 1rem;
    }
    .carousel-slide {
        display: none !important;
        flex-direction: column !important; /* Vertical on mobile */
        align-items: center;
        padding: 0 1rem;
        gap: 1.5rem;
        justify-content: flex-start;
        position: relative;
        top: auto;
        left: auto;
        transform: none;
    }
    .carousel-slide.active {
        display: flex !important;
    }
    .carousel-slide .hero-content {
        order: 2 !important; /* Content below */
        flex: none;
        width: 100%;
        text-align: center;
        padding: 0;
    }
    .carousel-slide h1 { 
        font-size: 1.8rem;
        margin-bottom: 0.5rem; 
    }
    
    .carousel-slide p { 
        font-size: 0.9rem; 
        margin-bottom: 1.5rem;
        max-width: 100%;
    }
    
    .hero-btns {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
        width: 100%;
    }
    .hero-btns .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.8rem;
        width: auto;
        flex: 1;
    }
    .carousel-slide img {
        order: 1 !important; /* Image on top */
        flex: none;
        width: 100% !important;
        height: 250px !important;
        max-height: 250px;
        position: relative !important;
        margin: 0 !important;
        object-fit: contain !important;
        filter: drop-shadow(0 15px 30px rgba(0,0,0,0.6)) !important;
    }
    .carousel-prev, .carousel-next { 
        display: none; /* Hide arrows on mobile for cleaner look, use dots or auto */
    }
    
    .carousel-dots { bottom: -20px; }
/* Existing responsive adjustments */
    .address-col, .contact-col, .hours-col {
        text-align: center;
        margin-bottom: 2rem;
    }
    .footer-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 3rem;
    }
    
    .footer-col {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .links-col ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .map-container {
        height: 300px;
        margin-top: 2rem;
        display: block !important;
        visibility: visible !important;
    }
    
    .map-overlay img {
        display: block !important;
        opacity: 1 !important;
    }
}
@media (max-width: 480px) {
    .carousel-slide h1 { font-size: 2rem; }
    .specs-grid { flex-wrap: wrap; justify-content: center; }
    .footer-grid { text-align: center; }
    .floating-socials { bottom: 10px; gap: 10px; padding: 8px 20px; }
    .social-fab { width: 45px; height: 45px; font-size: 1.3rem; }
}
