/* --- DATABASE CONSULTANCY STYLES --- */

.db-hero {
    padding: 180px 0 120px;
    background: #0f172a;
    color: #fff;
    overflow: hidden;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 30px;
}

.hero-text h1 span {
    color: #38bdf8;
}

/* 3D Stack Visual */
.db-stack-visual {
    position: relative;
    width: 300px;
    height: 400px;
    margin: 0 auto;
}

.db-layer {
    position: absolute;
    width: 100%;
    height: 80px;
    background: rgba(56, 189, 248, 0.2);
    border: 2px solid #38bdf8;
    border-radius: 20px;
    transform: perspective(1000px) rotateX(60deg);
    animation: bounce 3s infinite ease-in-out;
}

.layer-1 { top: 0; animation-delay: 0s; }
.layer-2 { top: 100px; animation-delay: 0.5s; }
.layer-3 { top: 200px; animation-delay: 1s; }

@keyframes bounce {
    0%, 100% { transform: perspective(1000px) rotateX(60deg) translateY(0); }
    50% { transform: perspective(1000px) rotateX(60deg) translateY(-20px); }
}

.db-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.1) 0%, transparent 70%);
}

/* Philosophy Metrics */
.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.metrics-row {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.m-val {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: #38bdf8;
}

.m-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #64748b;
}

/* Service Cards */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.s-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    transition: 0.3s;
}

.s-card:hover { transform: translateY(-10px); }

.s-img img { width: 100%; height: 180px; object-fit: cover; }
.s-info { padding: 30px; }
.s-info h3 { margin-bottom: 10px; font-size: 1.3rem; }
.s-info p { color: #64748b; font-size: 0.9rem; line-height: 1.6; }

/* Tech Tech Checklist */
.tech-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    background: #f8fafc;
    padding: 60px;
    border-radius: 40px;
}

.tech-checklist {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.tech-checklist li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.tech-checklist i { color: #22c55e; }

.tech-visual img { width: 100%; border-radius: 20px; }

/* CTA Box */
.cta-box {
    background: rgb(2, 94, 134);
    padding: 80px;
    border-radius: 40px;
    text-align: center;
    color: #fff;
    padding-bottom: 50px;
}

.btn-primary-white {
    display: inline-block;
    background: #fff;
    color: #38bdf8;
    padding: 18px 40px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    margin-top: 30px;
    transition: 0.2s;
}

/* --- ENHANCED DATABASE HERO VISUALS --- */

.hero-visual {
    position: relative;
    height: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.db-modern-visual {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Central Core */
.db-core {
    width: 100px;
    height: 100px;
    background: #0f172a;
    border: 2px solid #38bdf8;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    box-shadow: 0 0 50px rgba(56, 189, 248, 0.4);
}

.db-core i {
    font-size: 2.5rem;
    color: #38bdf8;
}

/* Orbital Rings */
.data-ring {
    position: absolute;
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 50%;
    transform: rotateX(70deg);
}

.ring-1 { width: 200px; height: 200px; animation: pulseRing 4s infinite; }
.ring-2 { width: 300px; height: 300px; animation: pulseRing 4s infinite 1s; }
.ring-3 { width: 400px; height: 400px; animation: pulseRing 4s infinite 2s; }

/* Moving Data Particles */
.data-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #38bdf8;
    border-radius: 50%;
    filter: blur(2px);
    box-shadow: 0 0 15px #38bdf8;
}

.p1 { animation: orbit1 5s linear infinite; }
.p2 { animation: orbit2 7s linear infinite; }
.p3 { animation: orbit3 9s linear infinite; }

/* Keyframes for Modern Vibe */
@keyframes pulseRing {
    0% { transform: rotateX(70deg) scale(0.8); opacity: 0; }
    50% { opacity: 0.5; }
    100% { transform: rotateX(70deg) scale(1.3); opacity: 0; }
}

@keyframes orbit1 {
    from { transform: rotate(0deg) translateX(100px) rotate(0deg); }
    to { transform: rotate(360deg) translateX(100px) rotate(-360deg); }
}

@keyframes orbit2 {
    from { transform: rotate(360deg) translateX(150px) rotate(-360deg); }
    to { transform: rotate(0deg) translateX(150px) rotate(0deg); }
}

@keyframes orbit3 {
    from { transform: rotate(0deg) translateX(200px) rotate(0deg); }
    to { transform: rotate(360deg) translateX(200px) rotate(-360deg); }
}

/* Ensure mobile compatibility */
@media (max-width: 992px) {
    .hero-visual { height: 350px; transform: scale(0.8); }
}
@media (max-width: 992px) {
    .hero-wrapper, .philosophy-grid, .service-grid, .tech-wrapper { grid-template-columns: 1fr; }
    .db-hero { text-align: center; }
    .metrics-row { justify-content: center; }
}