:root {
    --bg-dark: #020408;
    --bg-card-3d: linear-gradient(145deg, rgba(14, 22, 40, 0.85), rgba(6, 11, 22, 0.92));
    --neon-cyan: #06b6d4;
    --neon-blue: #3b82f6;
    --neon-sky: #38bdf8;
    --neon-purple: #a855f7;
    --neon-green: #10b981;
    --border-3d: rgba(56, 189, 248, 0.3);
    --border-highlight: rgba(255, 255, 255, 0.2);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --radius-xl: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;
    --shadow-3d: 0 25px 60px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -2px 10px rgba(0, 0, 0, 0.7);
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    perspective: 1200px;
}

/* 3D WebGL Background Layer */
#webgl3d {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

.ambient-space {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: 
        radial-gradient(circle at 15% 20%, rgba(56, 189, 248, 0.18) 0%, transparent 50%),
        radial-gradient(circle at 85% 50%, rgba(168, 85, 247, 0.15) 0%, transparent 55%),
        radial-gradient(circle at 50% 85%, rgba(6, 182, 212, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 7rem 0;
}

/* 3D BADGES WITH GLOSS & SHADOW */
.badge-3d {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 24px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(168, 85, 247, 0.25));
    border: 1px solid var(--neon-sky);
    border-radius: 100px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--neon-sky);
    letter-spacing: 2px;
    text-transform: uppercase;
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.4);
    margin-bottom: 1.5rem;
    transform-style: preserve-3d;
    transform: translateZ(20px);
}

.badge-icon-3d {
    width: 20px;
    height: 20px;
    background: radial-gradient(circle at 30% 30%, #38bdf8, #0284c7);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--neon-sky), inset 0 2px 4px rgba(255,255,255,0.6);
    display: inline-block;
}

.title-3d {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.4rem, 5.2vw, 4.2rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 1.2rem;
    text-shadow: 0 10px 25px rgba(0,0,0,0.9);
    background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.title-3d span {
    background: linear-gradient(135deg, var(--neon-sky) 0%, var(--neon-cyan) 50%, var(--neon-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 25px rgba(56, 189, 248, 0.5));
}

.desc-3d {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 760px;
    margin: 0 auto 3.5rem auto;
}

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

/* 3D ELEVATED HEADER BAR */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(4, 8, 18, 0.94) 0%, rgba(2, 4, 9, 0.9) 100%);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(56, 189, 248, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.9), inset 0 -1px 0 rgba(255, 255, 255, 0.1);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 85px;
    gap: 30px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-emblem-img {
    height: 48px;
    width: auto;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 0 15px rgba(56, 189, 248, 0.5));
}

.brand:hover .brand-emblem-img {
    transform: translateY(-2px) scale(1.08) rotate(3deg);
    filter: drop-shadow(0 0 25px rgba(56, 189, 248, 0.8));
}

.brand-text-group { display: flex; flex-direction: column; }

.brand-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    background: linear-gradient(180deg, #ffffff 0%, var(--neon-sky) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

.brand-sub {
    font-size: 0.72rem;
    color: var(--neon-cyan);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item { white-space: nowrap; }

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.25s ease;
}

.nav-link:hover {
    color: var(--neon-sky);
    text-shadow: 0 0 15px rgba(56, 189, 248, 0.8);
}

/* HERO SECTION - LEFT TEXT & RIGHT 3D SHAPE (NO DARK BACKDROP) */
.hero {
    padding-top: 185px;
    padding-bottom: 110px;
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 50px;
    align-items: center;
}

.hero-text-left {
    text-align: left;
    background: transparent;
    padding: 0;
    border-radius: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.hero-headline {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.6rem, 5.5vw, 4.3rem);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -1.5px;
    margin-bottom: 1.6rem;
    text-shadow: 0 10px 25px rgba(0, 0, 0, 0.9);
    background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: left;
}

.hero-headline span {
    background: linear-gradient(135deg, var(--neon-sky) 0%, var(--neon-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.65;
    text-align: left;
    max-width: 620px;
}

.hero-3d-space {
    min-height: 380px;
    position: relative;
    pointer-events: none;
}

/* HYPER-3D GLASS CARDS WITH DEEP ELEVATION */
.card-3d {
    background: var(--bg-card-3d);
    border: 1px solid var(--border-3d);
    border-radius: var(--radius-xl);
    padding: 2.4rem;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    box-shadow: var(--shadow-3d);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

.card-3d::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), var(--neon-sky), transparent);
}

.card-3d:hover {
    border-color: var(--neon-sky);
    box-shadow: 
        0 35px 80px rgba(0, 0, 0, 0.95),
        0 0 60px rgba(56, 189, 248, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.card-3d-img-wrapper {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1.5px solid rgba(56, 189, 248, 0.4);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7), inset 0 1px 2px rgba(255, 255, 255, 0.3);
    transform-style: preserve-3d;
    transform: translateZ(25px);
}

.card-3d-img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-3d:hover .card-3d-img-wrapper img {
    transform: scale(1.06);
}

/* 3D SERVICE CARDS WITH VOLUMETRIC GLOWING ICONS */
.service-3d-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
}

.service-3d-card {
    background: var(--bg-card-3d);
    border: 1px solid var(--border-3d);
    border-radius: var(--radius-md);
    padding: 2.4rem 1.8rem;
    transform-style: preserve-3d;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    box-shadow: var(--shadow-3d);
}

.service-3d-card:hover {
    border-color: var(--neon-purple);
    transform: translateY(-12px) translateZ(30px);
    box-shadow: 
        0 30px 70px rgba(0, 0, 0, 0.9),
        0 0 50px rgba(168, 85, 247, 0.35),
        inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.icon-3d-block {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.3), rgba(6, 182, 212, 0.2));
    border: 1.5px solid var(--neon-cyan);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.6rem;
    color: #ffffff;
    box-shadow: 
        0 12px 25px rgba(6, 182, 212, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.6),
        inset 0 -3px 8px rgba(0, 0, 0, 0.5);
    transform-style: preserve-3d;
    transform: translateZ(35px);
    position: relative;
}

.icon-3d-block svg {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
}

.service-3d-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    color: #ffffff;
    transform: translateZ(25px);
    text-shadow: 0 4px 10px rgba(0,0,0,0.6);
}

.service-3d-card p {
    color: var(--text-muted);
    font-size: 0.94rem;
    line-height: 1.6;
    transform: translateZ(15px);
}

/* INTERACTIVE 3D MODEL TAB EXPLORER */
.explorer-3d-box {
    background: var(--bg-card-3d);
    border: 1px solid var(--border-3d);
    border-radius: var(--radius-xl);
    padding: 3.2rem;
    margin-top: 3rem;
    box-shadow: var(--shadow-3d);
}

.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 2.8rem;
    flex-wrap: wrap;
}

.tab-btn-3d {
    padding: 14px 28px;
    background: linear-gradient(145deg, rgba(14, 22, 40, 0.9), rgba(6, 11, 22, 0.9));
    border: 1px solid var(--border-3d);
    border-radius: 100px;
    color: var(--text-muted);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.6), inset 0 1px 1px rgba(255,255,255,0.2);
}

.tab-btn-3d.active, .tab-btn-3d:hover {
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-cyan));
    color: #ffffff;
    border-color: var(--neon-sky);
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.5), inset 0 2px 4px rgba(255,255,255,0.6);
    transform: translateY(-3px);
}

.explorer-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 45px;
    align-items: center;
}

/* REDESIGNED 3D INTERCONNECT DATACENTER HUBS SECTION */
.hubs-3d-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 3.5rem;
}

.hub-3d-card {
    background: var(--bg-card-3d);
    border: 1px solid var(--border-3d);
    border-radius: var(--radius-md);
    padding: 2.2rem;
    transform-style: preserve-3d;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-3d);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hub-3d-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--neon-green), var(--neon-cyan), transparent);
}

.hub-3d-card:hover {
    border-color: var(--neon-green);
    transform: translateY(-10px) translateZ(25px);
    box-shadow: 
        0 30px 70px rgba(0, 0, 0, 0.9),
        0 0 50px rgba(16, 185, 129, 0.35),
        inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.hub-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.hub-orb {
    width: 48px;
    height: 48px;
    background: radial-gradient(circle at 35% 35%, #34d399, #059669 60%, #064e3b 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 
        0 8px 20px rgba(16, 185, 129, 0.5),
        inset 0 3px 6px rgba(255, 255, 255, 0.7),
        inset 0 -3px 8px rgba(0, 0, 0, 0.6);
    transform: translateZ(30px);
}

.hub-orb svg {
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6));
}

.hub-ping-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--neon-green);
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    padding: 6px 14px;
    border-radius: 100px;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

.hub-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.6rem;
    transform: translateZ(20px);
}

.hub-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    transform: translateZ(15px);
}

.hub-metrics {
    display: flex;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* 3D ELEVATED FOOTER */
.footer {
    background: linear-gradient(180deg, #020408 0%, #010204 100%);
    border-top: 1px solid rgba(56, 189, 248, 0.3);
    padding: 4.5rem 0 2.5rem 0;
    box-shadow: inset 0 10px 30px rgba(0,0,0,0.9);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
}

.footer-copy {
    font-size: 0.92rem;
    color: var(--text-muted);
}

@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-3d-space { min-height: 250px; }
    .explorer-grid { grid-template-columns: 1fr; }
    .service-3d-grid { grid-template-columns: repeat(2, 1fr); }
    .hubs-3d-container { grid-template-columns: repeat(2, 1fr); }
    .nav-menu { display: none; }
}

@media (max-width: 640px) {
    .service-3d-grid, .hubs-3d-container { grid-template-columns: 1fr; }
}
