
:root{
    --primary:#6366f1;
    --secondary:#22d3ee;
    --accent:#facc15;
    --dark:#020617;
    --dark-soft:#0f172a;
    --glass:rgba(255,255,255,0.08);
    --text-main:#e5e7eb;
    --text-muted:#94a3b8;
}

    @media (max-width: 767px) {
  #piechart_3d {
    width: 365px;
    height: 400px;
  }
}


    @media (max-width: 767px) {
  #conversion {
    width: 365px;
    height: 400px;
  }
}



/* ===== GLOBAL FIX ===== */
*{
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

html,body{
    margin:0;
    padding:0;
    width:100%;
    max-width:100%;
    overflow-x:hidden;
    background:radial-gradient(circle at top,#0f172a,#020617);
    color:var(--text-main);
}

/* ===== HEADER ===== */
#coodiv-header,
.bg_overlay_header,
.bg-img-header-new-standard{
    width:100%;
    max-width:100%;
    overflow:hidden;
    background:#020617;
}

/* ===== COMMON ===== */
section{
    padding:60px 0;
}

.container{
    max-width:1400px;
    margin:0 auto;
    padding:0 15px;
}

h1,h2,h3{
    color:#f8fafc;
}

h2{
    text-align:center;
    font-size:42px;
    margin-bottom:50px;
}

p{
    color:var(--text-muted);
    line-height:1.7;
}

/* ===== HERO ===== */
.hero{
    min-height:90vh;
    display:flex;
    align-items:center;
    text-align:center;
}

.hero h1{
    font-size:56px;
    font-weight:700;
}

.hero span{
    color:var(--secondary);
}

.hero p{
    font-size:18px;
    max-width:720px;
    margin:20px auto;
}

/* ===== GRID ===== */
.grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:32px;
    width:100%;
}

/* ===== CARD ===== */
.card{
    background:linear-gradient(180deg,var(--glass),rgba(255,255,255,0.03));
    border:1px solid rgba(255,255,255,.12);
    border-radius:22px;
    padding: 20px 20px 8px 20px;
    transition:.4s ease;
    position:relative;
    overflow:hidden;
}

.cardanly{


    padding:36px;
    transition:.4s ease;
    position:relative;
    overflow:hidden;
}


.card::before{
    content:'';
    position:absolute;
    inset:0;
    background:linear-gradient(120deg,var(--primary),var(--secondary));
    opacity:0;
    transition:.4s;
}

.card:hover::before{ opacity:.12; }

.card:hover{
    transform:translateY(-8px);
    box-shadow:0 25px 70px rgba(0,0,0,.55);
}

.card h3{
    font-size:22px;
    margin-bottom:10px;
}

.card p{
    font-size:15px;
}

/* ===== METRICS ===== */
.metric h1{
    font-size:52px;
    color:var(--accent);
}

/* ===== PORTFOLIO ===== */
.portfolio img{
    width:100%;
    max-width:100%;
    border-radius:16px;
    margin-bottom:15px;
    border:1px solid rgba(255,255,255,.15);
}

/* ===== CHARTS ===== */
canvas{
    width:100% !important;
    max-width:100%;
    height:auto !important;
}

/* ===== FOOTER ===== */
footer{
    background:#020617;
    text-align:center;
    padding:30px;
    color:#94a3b8;
    border-top:1px solid rgba(255,255,255,.08);
}

/* ===== RESPONSIVE ===== */
@media(max-width:768px){
    .hero h1{ font-size:40px; }
    h2{ font-size:30px; }
}

@media(max-width:480px){
    .hero h1{ font-size:32px; }
    h2{ font-size:26px; }
    section{ padding:40px 0; }
}
