:root {
    --bg-dark: #0a0f18;
    --bg-darker: #05080c;
    --primary-cyan: #00c3c3;
    --primary-blue: #4a90e2;
    --text-main: #f0f4f8;
    --text-muted: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(0, 230, 230, 0.15);
    
    --transition: all 0.3s ease;
}

.hover-glow {
    text-decoration: underline;
    transition: var(--transition);
}

.hover-glow:hover {
    color: var(--primary-cyan);
    text-shadow: 0 0 8px rgba(0, 230, 230, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.section-container {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

/* Typography elements */
.section-title {
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.underline {
    height: 3px;
    width: 60px;
    background: linear-gradient(90deg, var(--primary-cyan), var(--primary-blue));
    border-radius: 3px;
}

.center-line {
    margin: 0 auto;
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1.1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: transparent;
    color: var(--primary-cyan);
    border: 1px solid var(--primary-cyan);
    box-shadow: 0 0 15px rgba(0, 230, 230, 0.2);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 230, 230, 0.2), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.btn-primary:hover {
    background: rgba(0, 230, 230, 0.1);
    box-shadow: 0 0 25px rgba(0, 230, 230, 0.4);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue));
    color: var(--text-main);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    font-weight: 600;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 195, 195, 0.2);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    z-index: 100;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 15, 24, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 15px 5%;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo {
    height: 40px;
}

.nav-logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(to right, var(--primary-cyan), var(--primary-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}


.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    font-size: 1rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0; height: 2px;
    bottom: -5px; left: 0;
    background: var(--primary-cyan);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-cyan);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
    background-color: var(--bg-dark);
}

.hero-content {
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-logo-wrapper {
    margin-bottom: 20px;
    animation: fadeInDown 1s ease;
}

.hero-logo {
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 0 15px rgba(0,195,195,0.4));
    animation: floatLogo 8s ease-in-out infinite;
}

.hero-title {
    font-size: 5rem;
    font-weight: 800;
    letter-spacing: 5px;
    background: linear-gradient(to right, #ffffff, var(--primary-cyan), #ffffff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientFlow 8s linear infinite;
    text-shadow: 0 0 20px rgba(0, 195, 195, 0.1);
}

.tagline {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 3px;
    color: var(--primary-blue);
    margin-bottom: 30px;
    animation: fadeIn 1.5s ease 0.5s both;
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    animation: fadeIn 1.5s ease 0.8s both;
}

.glow-bg {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(0, 230, 230, 0.1) 0%, rgba(10, 15, 24, 0) 70%);
    z-index: 1;
    pointer-events: none;
}

/* About Section */
.about {
    background-color: var(--bg-darker);
    position: relative;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.about-features li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-features i {
    color: var(--primary-cyan);
}

.about-visual {
    flex: 1;
    min-width: 300px;
    height: 400px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glass-orb {
    width: 250px; height: 250px;
    background: linear-gradient(135deg, rgba(0, 230, 230, 0.4), rgba(102, 179, 255, 0.1));
    border-radius: 50%;
    filter: blur(30px);
    position: absolute;
    animation: pulse 4s infinite alternate;
}

.glass-layer {
    width: 280px; height: 280px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    position: absolute;
    animation: morph 8s ease-in-out infinite both alternate;
}

/* Services */
.services {
    padding: 100px 0;
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    transform-style: preserve-3d;
}

.service-card > * {
    transform: translateZ(30px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(0, 230, 230, 0.1), transparent 70%);
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 230, 230, 0.4);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.service-card:hover::before {
    opacity: 1;
}

.service-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px solid rgba(0, 230, 230, 0.2);
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    transition: var(--transition);
}

.service-card:hover .service-img {
    border-color: var(--primary-cyan);
    box-shadow: 0 5px 25px rgba(0, 230, 230, 0.3);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-cyan);
    margin-bottom: 20px;
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(0,230,230,0.5));
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-muted);
}

/* Process */
.process {
    padding: 100px 0;
    background-color: var(--bg-dark);
}

.process-steps {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 250px;
    text-align: center;
    padding: 30px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    position: relative;
    transition: var(--transition);
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 230, 230, 0.1);
}

.step-num {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: rgba(0, 230, 230, 0.2);
    margin-bottom: 20px;
}

.step h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.step p {
    color: var(--text-muted);
}

/* Pricing Table */
.pricing {
    padding: 100px 0;
    position: relative;
    background-color: var(--bg-darker);
}

.table-responsive {
    overflow-x: auto;
    margin-top: 50px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 20px;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--text-main);
}

.pricing-table th, .pricing-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.pricing-table th {
    background: rgba(0, 230, 230, 0.1);
    color: var(--primary-cyan);
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
}

.pricing-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* Contact */
.contact {
    padding: 100px 0;
    background-color: var(--bg-darker);
}

.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    padding: 50px;
    background: rgba(0, 230, 230, 0.03);
}

.contact-info h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.contact-info > p {
    color: var(--text-muted);
    margin-bottom: 40px;
}

.contact-details p {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-details i {
    color: var(--primary-cyan);
    font-size: 1.2rem;
}

.contact-form {
    flex: 1.5;
    min-width: 300px;
    padding: 50px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-cyan);
    box-shadow: 0 0 10px rgba(0, 230, 230, 0.2);
}

/* Footer */
footer {
    background: var(--bg-dark);
    padding-top: 60px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.footer-logo h3 {
    font-size: 1.8rem;
    letter-spacing: 2px;
    color: var(--text-main);
}

.footer-logo p {
    color: var(--primary-blue);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    color: var(--text-main);
    margin-left: 10px;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-cyan);
    color: var(--bg-dark);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.7; box-shadow: 0 0 15px rgba(0,195,195,0.1); }
    100% { transform: scale(1.05); opacity: 1; box-shadow: 0 0 30px rgba(0,195,195,0.3); }
}

@keyframes morph {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

@keyframes floatLogo {
    0% { transform: translateY(0px); filter: drop-shadow(0 0 10px rgba(0,195,195,0.2));}
    50% { transform: translateY(-10px); filter: drop-shadow(0 0 20px rgba(0,195,195,0.5));}
    100% { transform: translateY(0px); filter: drop-shadow(0 0 10px rgba(0,195,195,0.2));}
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, visibility;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%; left: 0; width: 100%;
        background: var(--bg-darker);
        flex-direction: column;
        text-align: center;
        padding: 20px 0;
        gap: 20px;
    }
    
    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
    }
    
    .contact-info, .contact-form {
        padding: 30px 20px;
    }
}

/* ============================================================
   MULTI-PAGE COMPONENTS
   ============================================================ */

/* Gradient text utility */
.gradient-text {
    background: linear-gradient(to right, var(--primary-cyan), var(--primary-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Section subtitle */
.section-subtitle {
    color: var(--text-muted);
    margin-top: 10px;
    font-size: 1.05rem;
}

/* Page Hero (inner pages) */
.page-hero {
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 140px 20px 80px;
    overflow: hidden;
    background-color: var(--bg-dark);
}

.page-hero-content {
    z-index: 2;
    position: relative;
}

.page-hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    animation: fadeInDown 0.8s ease;
}

.page-hero-content p {
    font-size: 1.15rem;
    color: var(--text-muted);
    animation: fadeIn 1s ease 0.3s both;
}

/* Hero dual buttons */
.hero-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 10px;
}

/* Highlights Strip */
.highlights {
    padding: 70px 0;
    background: var(--bg-darker);
    border-top: 1px solid rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.highlight-item {
    text-align: center;
    padding: 30px 20px;
    border-radius: 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.highlight-item:hover {
    transform: translateY(-5px);
    border-color: rgba(0,230,230,0.35);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.highlight-item i {
    font-size: 2rem;
    color: var(--primary-cyan);
    margin-bottom: 14px;
    display: block;
    filter: drop-shadow(0 0 8px rgba(0,230,230,0.5));
}

.highlight-item h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.highlight-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Service card "Learn More" link */
.service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    color: var(--primary-cyan);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.service-link:hover {
    gap: 10px;
    text-shadow: 0 0 8px rgba(0,230,230,0.5);
}

/* CTA Banner */
.cta-banner {
    padding: 70px 0;
    background: linear-gradient(135deg, rgba(0,195,195,0.08), rgba(74,144,226,0.08));
    border-top: 1px solid rgba(0,230,230,0.12);
    border-bottom: 1px solid rgba(0,230,230,0.12);
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.cta-text h2 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.cta-text p {
    color: var(--text-muted);
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
    margin-top: 50px;
}

.value-card {
    padding: 40px 30px;
    text-align: center;
    border-radius: 20px;
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0,230,230,0.4);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.value-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(0,195,195,0.1);
    border: 1px solid rgba(0,195,195,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    color: var(--primary-cyan);
    filter: drop-shadow(0 0 8px rgba(0,195,195,0.4));
}

.value-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.value-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Credentials Grid */
.credentials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 50px;
}

.credential-card {
    padding: 35px 24px;
    text-align: center;
    border-radius: 16px;
    transition: var(--transition);
}

.credential-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0,230,230,0.4);
}

.credential-card i {
    font-size: 2rem;
    color: var(--primary-cyan);
    display: block;
    margin-bottom: 16px;
    filter: drop-shadow(0 0 8px rgba(0,195,195,0.4));
}

.credential-card h4 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-weight: 500;
}

.credential-card p {
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
}

/* Service Detail Sections */
.service-detail {
    padding: 100px 0;
    background: var(--bg-dark);
}

.service-detail-inner {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.service-detail-inner.reverse {
    flex-direction: row-reverse;
}

.service-detail-img {
    flex: 1;
    min-width: 280px;
}

.service-detail-img img {
    width: 100%;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transition: var(--transition);
}

.service-detail-img img:hover {
    border-color: rgba(0,230,230,0.4);
    box-shadow: 0 20px 60px rgba(0,195,195,0.15);
}

.service-detail-text {
    flex: 1;
    min-width: 280px;
}

.service-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(0,195,195,0.1);
    border: 1px solid rgba(0,195,195,0.3);
    border-radius: 50px;
    color: var(--primary-cyan);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 18px;
    letter-spacing: 0.5px;
}

.service-detail-text h2 {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.service-detail-text > p {
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.8;
}

.service-features {
    list-style: none;
    margin-bottom: 30px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.service-features i {
    color: var(--primary-cyan);
    font-size: 1rem;
    flex-shrink: 0;
}

.service-detail-btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* Pricing intro */
.pricing-intro {
    text-align: center;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 1rem;
    line-height: 1.8;
}

/* Responsive — multi-page */
@media (max-width: 768px) {
    .page-hero-content h1 { font-size: 2.4rem; }
    .cta-inner { flex-direction: column; text-align: center; }
    .service-detail-inner,
    .service-detail-inner.reverse { flex-direction: column; }
    .hero-btns { flex-direction: column; align-items: center; }
}

/* ============================================================
   3D MAP CARD
   ============================================================ */

/* Outer wrapper — provides perspective for the 3D tilt effect */
.map-3d-wrapper {
    margin-top: 50px;
    perspective: 1200px;
    transform-style: preserve-3d;
    /* vanilla-tilt handles the actual rotation */
    border-radius: 24px;
}

/* Inner card — the glowing glass panel */
.map-3d-inner {
    background: var(--glass-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    padding: 0;
    transform-style: preserve-3d;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(0, 230, 230, 0.12),
        0 0 60px rgba(0, 195, 195, 0.08) inset;
    animation: mapFloat 6s ease-in-out infinite;
    position: relative;
}

/* Cyan glow accent top-edge */
.map-3d-inner::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-cyan), transparent);
    border-radius: 2px;
    z-index: 10;
    box-shadow: 0 0 20px var(--primary-cyan);
}

/* Label bar above the iframe */
.map-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 28px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--primary-cyan);
    background: rgba(0, 195, 195, 0.05);
    border-bottom: 1px solid var(--glass-border);
    letter-spacing: 0.5px;
    transform: translateZ(20px);
}

.map-label i {
    font-size: 1.1rem;
    filter: drop-shadow(0 0 6px var(--primary-cyan));
    animation: markerPulse 2s ease-in-out infinite;
}

/* Wrapper that holds the iframe + scan-line overlay */
.map-frame-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* The iframe itself — styled with cyan hue overlay via CSS filter */
#dataplex-map {
    display: block;
    width: 100%;
    height: 380px;
    border: 0;
    filter:
        hue-rotate(160deg)
        saturate(1.4)
        brightness(0.82)
        contrast(1.1);
    transition: filter 0.4s ease;
}

#dataplex-map:hover {
    filter:
        hue-rotate(160deg)
        saturate(1.6)
        brightness(0.9)
        contrast(1.1);
}

/* Scan-line animation layer on top of the map */
.map-scan-line {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 2;
    /* subtle CRT-style horizontal lines */
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 3px,
        rgba(0, 195, 195, 0.025) 3px,
        rgba(0, 195, 195, 0.025) 4px
    );
}

/* Moving scan beam */
.map-scan-line::after {
    content: '';
    position: absolute;
    top: -10%;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(
        180deg,
        transparent,
        rgba(0, 195, 195, 0.06) 50%,
        transparent
    );
    animation: scanBeam 4s linear infinite;
}

/* Get Directions button */
.map-directions-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 20px 28px;
    padding: 12px 28px;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--bg-dark);
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue));
    box-shadow: 0 4px 20px rgba(0, 195, 195, 0.35);
    transition: var(--transition);
    transform: translateZ(30px);
    letter-spacing: 0.5px;
}

.map-directions-btn:hover {
    transform: translateZ(30px) translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 195, 195, 0.5);
    filter: brightness(1.1);
}

.map-directions-btn i {
    font-size: 1rem;
}

/* Keyframes */
@keyframes mapFloat {
    0%, 100% { transform: translateY(0px);   box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 60px rgba(0,195,195,0.08) inset; }
    50%       { transform: translateY(-8px);  box-shadow: 0 40px 70px rgba(0,0,0,0.7), 0 0 80px rgba(0,195,195,0.12) inset; }
}

@keyframes scanBeam {
    0%   { top: -10%; }
    100% { top: 110%; }
}

@keyframes markerPulse {
    0%, 100% { filter: drop-shadow(0 0 4px var(--primary-cyan)); transform: scale(1); }
    50%       { filter: drop-shadow(0 0 12px var(--primary-cyan)); transform: scale(1.2); }
}

/* Responsive map */
@media (max-width: 768px) {
    #dataplex-map {
        height: 280px;
    }
    .map-label {
        padding: 14px 20px;
        font-size: 0.9rem;
    }
    .map-directions-btn {
        margin: 16px 20px;
        padding: 10px 22px;
    }
}
