/* ===== Base ===== */
.db-page {
    background: #0b1320;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

/* ===== HERO ===== */
.db-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 120px 60px;
    gap: 60px;
}

.db-eyebrow {
    color: #1cc88a;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
    font-weight: 600;
}

.db-hero h1 {
    font-size: 3.1rem;
    margin: 20px 0;
    line-height: 1.15;
}

.db-hero p {
    max-width: 540px;
    color: rgba(255,255,255,0.75);
    margin-bottom: 30px;
}

.db-tech {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

    .db-tech span {
        padding: 8px 18px;
        border-radius: 20px;
        background: rgba(255,255,255,0.08);
        font-size: 0.85rem;
    }

/* Buttons */
.db-btn-primary {
    background: linear-gradient(135deg, #1cc88a, #17a673);
    padding: 16px 36px;
    border-radius: 50px;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 15px 40px rgba(28,200,138,0.45);
    transition: all .35s ease;
}

    .db-btn-primary:hover {
        transform: translateY(-4px);
        box-shadow: 0 25px 60px rgba(28,200,138,0.65);
    }

.db-btn-secondary {
    border: 1px solid rgba(255,255,255,0.3);
    padding: 16px 38px;
    border-radius: 50px;
    color: #fff;
    text-decoration: none;
    transition: all .3s ease;
    margin-left: 10px;
}

    /* Hero Visual (Abstract Database Network) */
  .db-hero-visual {
    position: relative;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1 / 1;
}


.db-grid {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    border-radius: 30px;
}

.db-node {
    position: absolute;
    width: 14px;
    height: 14px;
    background: #1cc88a;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(28,200,138,0.8);
    animation: pulse 2.5s infinite;
}

.n1 {
    top: 80px;
    left: 100px;
}

.n2 {
    top: 200px;
    left: 240px;
    animation-delay: 1s;
}

.n3 {
    bottom: 80px;
    right: 120px;
    animation-delay: 1.8s;
}

/* ===== SERVICES ===== */
.db-services {
    padding: 120px 60px;
    background: #0f172a;
}

    .db-services h2 {
        text-align: center;
        font-size: 2.6rem;
        margin-bottom: 70px;
    }

.db-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.db-card {
    background: rgba(255,255,255,0.05);
    padding: 35px;
    border-radius: 20px;
    transition: transform .3s ease;
}

    .db-card:hover {
        transform: translateY(-10px);
    }

/* ===== WHY US ===== */
.db-why {
    padding: 120px 60px;
}

.db-why-inner {
    max-width: 1000px;
    margin: auto;
    text-align: center;
}

.db-reasons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

/* ===== CTA ===== */
.db-cta {
    padding: 140px 40px;
    background: radial-gradient(circle at 20% 30%, rgba(28,200,138,0.35), transparent 60%), radial-gradient(circle at 80% 70%, rgba(78,115,223,0.35), transparent 60%), #0b1320;
}

.db-cta-card {
    max-width: 850px;
    margin: auto;
    text-align: center;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(16px);
    padding: 80px;
    border-radius: 30px;
}

/* ===== Animations ===== */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.6);
        opacity: 0.4;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ================= RESPONSIVE SYSTEM ================= */

/* Large tablets */
@media (max-width: 1200px) {

    .db-hero {
        padding: 100px 40px;
        gap: 40px;
    }

        .db-hero h1 {
            font-size: 2.6rem;
        }

    .db-hero-visual {
        width: 340px;
        height: 340px;
    }

    .db-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablets */
@media (max-width: 992px) {

    .db-hero {
        flex-direction: column;
        text-align: center;
        padding: 80px 30px;
    }

        .db-hero p {
            margin: 0 auto 30px auto;
        }

    .db-tech {
        justify-content: center;
        flex-wrap: wrap;
    }

    .db-actions {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    .db-btn-secondary {
        margin-left: 0;
    }

    .db-hero-visual {
        width: 300px;
        height: 300px;
        margin-top: 40px;
    }

    .db-reasons {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .db-why {
        padding: 80px 30px;
    }
}

/* Mobile */
@media (max-width: 576px) {

    .db-hero {
        padding: 60px 20px;
    }

        .db-hero h1 {
            font-size: 2rem;
            line-height: 1.2;
        }

    .db-eyebrow {
        font-size: 0.7rem;
    }

    .db-tech span {
        font-size: 0.75rem;
        padding: 6px 14px;
    }

    .db-btn-primary,
    .db-btn-secondary {
        width: 100%;
        text-align: center;
        padding: 14px 20px;
    }

    .db-services {
        padding: 80px 20px;
    }

        .db-services h2 {
            font-size: 2rem;
            margin-bottom: 40px;
        }

    .db-cards {
        grid-template-columns: 1fr;
    }

    .db-card {
        padding: 25px;
    }

    .db-why {
        padding: 60px 20px;
    }

    .db-cta {
        padding: 80px 20px;
    }

    .db-cta-card {
        padding: 40px 25px;
    }
}

/* ===== HERO VISUAL CONTAINER ===== */
.db-hero-visual {
    position: relative;
    height: 420px;
    width: 100%;
    overflow: hidden;
    border-radius: 24px;
    background: radial-gradient(circle at center, #0f2027 0%, #0a1418 100%);
}

/* ===== GRID BACKGROUND ===== */
.db-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: gridMove 12s linear infinite;
}

@keyframes gridMove {
    from { background-position: 0 0; }
    to { background-position: 40px 40px; }
}

/* ===== DATABASE NODES ===== */
.db-node {
    position: absolute;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #38bdf8, #0284c7);
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.8);
    animation: pulse 2.5s ease-in-out infinite;
}

/* Node positions */
.n1 { top: 25%; left: 20%; }
.n2 { top: 55%; left: 55%; }
.n3 { top: 15%; right: 15%; }

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* ===== CONNECTING LINES ===== */
.db-hero-visual::before,
.db-hero-visual::after {
    content: "";
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, #38bdf8, transparent);
    animation: flow 3s linear infinite;
}

.db-hero-visual::before {
    width: 60%;
    top: 35%;
    left: 20%;
    transform: rotate(20deg);
}

.db-hero-visual::after {
    width: 50%;
    top: 50%;
    left: 30%;
    transform: rotate(-15deg);
}

@keyframes flow {
    0% { opacity: 0.2; }
    50% { opacity: 1; }
    100% { opacity: 0.2; }
}

/* ===== FLOATING DATA PARTICLES ===== */
.db-hero-visual span.data-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #38bdf8;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(56,189,248,.8);
    animation: floatDot 6s linear infinite;
}

.db-hero-visual span.data-dot:nth-child(1) {
    top: 80%;
    left: 10%;
    animation-delay: 0s;
}
.db-hero-visual span.data-dot:nth-child(2) {
    top: 70%;
    left: 70%;
    animation-delay: 2s;
}
.db-hero-visual span.data-dot:nth-child(3) {
    top: 60%;
    left: 40%;
    animation-delay: 4s;
}

@keyframes floatDot {
    0% { transform: translateY(0); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(-120px); opacity: 0; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .db-hero-visual {
        height: 300px;
    }

    .db-node {
        width: 50px;
        height: 50px;
    }
}

/* ===== HERO VISUAL ===== */
.db-hero-visual {
    position: relative;
    height: 420px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Layout container */
.db-architecture {
    position: relative;
    width: 100%;
    height: 100%;
}

/* ===== DATABASE CYLINDER ===== */
.db-database {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.db-cylinder {
    width: 120px;
    height: 150px;
    background: linear-gradient(180deg, #38bdf8, #0284c7);
    border-radius: 60px / 25px;
    box-shadow: 0 20px 40px rgba(0,0,0,.4);
    position: relative;
}

    .db-cylinder::before {
        content: "";
        position: absolute;
        top: -15px;
        left: 0;
        width: 120px;
        height: 30px;
        background: #7dd3fc;
        border-radius: 50%;
    }

.db-database span {
    display: block;
    margin-top: 1rem;
    color: #cbd5f5;
    font-weight: 600;
}

/* ===== APP BLOCKS ===== */
.db-app {
    position: absolute;
    padding: 1rem 1.5rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    color: #e5f6fd;
    font-size: 0.9rem;
    box-shadow: 0 10px 30px rgba(0,0,0,.3);
    animation: floatApp 4s ease-in-out infinite;
}

.app1 {
    top: 15%;
    left: 10%;
}

.app2 {
    bottom: 15%;
    left: 15%;
}

.app3 {
    top: 20%;
    right: 15%;
}

.app4 {
    bottom: 20%;
    right: 10%;
}

@keyframes floatApp {
    0%,100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* ===== CONNECTION LINES ===== */
.db-line {
    position: absolute;
    width: 2px;
    height: 120px;
    background: linear-gradient(to bottom, #38bdf8, transparent);
    animation: dataFlow 2.5s linear infinite;
}

.l1 {
    top: 30%;
    left: 35%;
    transform: rotate(45deg);
}

.l2 {
    bottom: 30%;
    left: 35%;
    transform: rotate(-45deg);
}

.l3 {
    top: 30%;
    right: 35%;
    transform: rotate(-45deg);
}

.l4 {
    bottom: 30%;
    right: 35%;
    transform: rotate(45deg);
}

@keyframes dataFlow {
    0% {
        opacity: .2;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: .2;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .db-hero-visual {
        height: 320px;
    }

    .db-cylinder {
        width: 90px;
        height: 120px;
    }

    .db-app {
        font-size: 0.75rem;
        padding: .7rem 1rem;
    }

    .db-line {
        display: none;
    }
}



/* Footer */

.footer-names {
    color: white;
}
.p,footer {
    font-size: 1rem;
    color: white;

}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 4rem;
}

.footer-brand img {
    height: 40px;
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 320px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col li {
    margin-bottom: 0.6rem;
}

.footer-col a {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
}

.footer-col a:hover {
    color: #38bdf8;
}

.footer-cta {
    background: linear-gradient(135deg, #203a43, #2c5364);
    text-align: center;
    padding: 3rem 1rem;
}

.footer-cta h3 {
    color: lightgray;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 1rem;
    font-size: 0.85rem;
    color: #94a3b8;
}

.footer-social {
    margin-top: 1rem;
}

    .footer-social a {
        display: inline-flex;
        align-items: center;
        gap: 0.6rem;
        color: #cbd5f5;
        text-decoration: none;
        transition: 0.3s ease;
    }

        .footer-social a:hover {
            color: #0a66c2;
        }

    .footer-year {
        color: white;
        text-align: center;
        padding: 15px;
    }


.linkedin-icon {
    width: 20px;
    height: 20px;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand p {
        margin: 0 auto;
    }
}
