html {
    scroll-behavior: smooth;
}

body {
    margin: 0px;
    padding: 0px;
    background: radial-gradient(circle at top left, #f4f7ff 0%, #e3e7ff 35%, #dde5ff 60%, #cfd8ff 100%);
    background-size: cover;
    background-attachment: fixed; 
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow-x: hidden;
    position: relative;
    width: 100%;
    min-width: 100%;
}

/*  Title part (global)  */

.title{
 background-color: black;
 color: #ffffff;
 position: relative;
 padding-bottom: 15px;
}

.title H1 {
    padding-left: 100px;
    padding-top: 40px;
    font-size: 32px;
    line-height: 1.6;
    color: #ffffff;
    font-weight: 900; 
    padding-bottom: 20px;
    margin-top: 0px;
    letter-spacing: 0.03em;
    text-shadow: 0 0 14px rgba(59, 130, 246, 0.7);
}

.title p {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.6;
    color: #38bdf8;
    position: absolute;
    right: 80px;
    top: 38px;
    max-width: 420px;
    text-align: right;
}

.next-button {
    position: absolute;
    right: 80px;
    top: 135px;
    padding: 10px 22px;
    border-radius: 999px;
    border: 1px solid rgba(56, 189, 248, 0.85);
    background: radial-gradient(circle at 0 0, rgba(56,189,248,0.2), rgba(37,99,235,0.9));
    color: #e5f6ff;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 0 0 18px rgba(59, 130, 246, 0.85);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.back-button {
    position: absolute;
    right: 190px;
    top: 135px;
    padding: 10px 22px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.8);
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 0 0 10px rgba(15, 23, 42, 0.95);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.back-button:hover {
    background: rgba(15, 23, 42, 1);
    border-color: rgba(148, 163, 184, 1);
    color: #f9fafb;
    transform: translateY(-1px);
    box-shadow: 0 0 16px rgba(15, 23, 42, 0.95);
}

.next-button:hover {
    background: radial-gradient(circle at 0 0, rgba(125,211,252,0.25), rgba(37,99,235,1));
    color: #f9fafb;
    transform: translateY(-1px) translateX(1px);
    box-shadow: 0 0 24px rgba(56, 189, 248, 0.95);
}

/* main content part global */

.mainbody{
    position: relative;
    max-width: 1100px;
    margin-top: 60px;
    margin-left: 300px;
    margin-right: 100px;
    margin-bottom: 80px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.28);
    padding: 40px 40px 50px 40px;
    box-sizing: border-box;
}

.mainbody H1{
  background: linear-gradient(to bottom, red, rgb(141, 52, 52));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
font-size:32px;
font-weight:800;   
margin-bottom: 10px; 
}

.section {
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.45);
}

.mainbody {
 line-height: 1.5;
 font-size: 20px;
 font-weight: 540;
 word-spacing: 3px;
}

.paraone, .paratwo, .parathree, .parafour {
    padding-left: 25px;
}

p {
    padding: 10px 0 4px 0;
    text-align: justify;
}

.step li{
    padding-bottom: 20px;
}

.note {
    border-left: 4px solid #0ea5e9;
    background: linear-gradient(90deg, rgba(224, 242, 254, 0.9), rgba(219, 234, 254, 0.9));
    padding: 14px 18px;
    margin: 24px 0;
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}


/* for basic of web 3 part 1 (P1) */

.tocp1 {
    position: fixed;
    margin-top: 50px;
    margin-left: 30px;
    line-height: 3;
    padding-right: 50px;
    border-right:1px solid black;
}


#paraonep1 {
    padding-right: 40%;
}

.imgap1{
    width: 350px;
    height: 250px;
    position: absolute;
    top: 500px;
    right: 30px;
}



/* for basic of web 3 part 2 (P2) */

.tocp2 {
    position: fixed;
    margin-top: 50px;
    margin-left: 25px;
    line-height: 3;
    padding-right: 50px;
    border-right:1px solid black;
}

.p2 {
    max-width: 600px;
    text-align: justify;
}


.imgap2{
    width: 350px;
    height: 230px;
    position: absolute;
    top: 500px;
    right: 30px;
}

.imgbp2{
    width: 300px;
    height: 180px;
    position: absolute;
    top: 920px;
    right: 30px;
}

.imgcp2{
    width: 300px;
    height: 200px;
    position: absolute;
    top: 1680px;
    right: 40px;
}

.imgdp2{
    width: 350px;
    height: 300px;
    position: absolute;
    bottom:470px;
    right: 40px;
}

.imgep2{
    width: 300px;
    height: 200px;
    position: absolute;
    bottom:120px;
   right: 40px;
}



/* for basic of web 3 part  3 (P3) */

.mainbody > section {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(148, 163, 184, 0.5);
}

.mainbody > section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.tocp3 {
    position: fixed;
    margin-top: 50px;
    margin-left: 25px;
    line-height: 3;
    padding-right: 50px;
    border-right:1px solid black;
}

h2 {
   font-size: 23px; 
   color: #0f172a;
   margin-top: 28px;
   margin-bottom: 12px;
}

.wallet-list a {
  margin-left: 6px;
  color: #0f172a;
  text-decoration: none;
}

.cryptowalletguide {
    width:300px;
    position: relative;
    left: 350px;
    font-size: 23px; 
    font-weight: 600;
    margin-bottom: 50px;
    border-bottom:1px solid black ;
    padding-left: 8px;
}

.CEX {
    width: 130px;
    position: relative;
    left: 350px;
    font-size: 23px; 
    font-weight: 600;
    margin-bottom: 50px;
    border-bottom:1px solid black ;
    padding-left: 8px;
}

.DEX {
    width: 130px;
    position: relative;
    left: 350px;
    font-size: 23px; 
    font-weight: 600;
    margin-bottom: 50px;
    border-bottom:1px solid black ;
    padding-left: 8px;
}


.imgap3{
  width: 400px;
    height: auto;
   margin-right: 100px;
   margin-top: 50px;
}

.imgbp3{
width: 400px;
    height: auto;
     margin-top: 50px;
}

.p3 {
    width: 500px;
}


.crypto-exchange-section {
    position: relative;
}

.crypto-exchange-section .videoap3 {
    position: absolute;
    top: 90px;
    right: 5px;
    width: 500px;
    max-width: 45%;
    height: auto;
}

.bridge{
    width: 250px;
    position: relative;
    left: 350px;
    font-size: 23px; 
    font-weight: 600;
    margin-bottom: 50px;
    border-bottom:1px solid black ;
    padding-left: 8px;
}


.wallet-list a {
    display: block;       
    padding: 10px 15px;    
    border: 1px solid rgba(148, 163, 184, 0.9); 
    border-radius: 999px;    
    text-align: center;   
    background: #ffffff;      
    box-sizing: border-box; 
    font-weight: 600;
    color: #0f172a;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
}

.wallet-list a:hover {
    background: radial-gradient(circle at 0 0, rgba(56,189,248,0.08), rgba(239,246,255,1));
    border-color: rgba(56,189,248,0.9);
    color: #0f172a;
    box-shadow: 0 14px 26px rgba(148, 163, 184, 0.45);
    transform: translateY(-1px);
}



/* for basic of web 3 part 4 (p4)  */

.tocp4 {
    position: fixed;
    margin-top: 50px;
    margin-left: 25px;
    line-height: 3;
    padding-right: 50px;
    border-right:1px solid black;
}


/* for basic of web 3 part 5 (p5)  */

.tocp5 {
    position: fixed;
    margin-top: 50px;
    margin-left: 25px;
    line-height: 3;
    padding-right: 50px;
    border-right:1px solid black;
}


/* for basic of web 3 part 6 (p6)  */

.tocp6 {
    position: fixed;
    margin-top: 50px;
    margin-left: 25px;
    line-height: 3;
    padding-right: 50px;
    border-right:1px solid black;
}

/* ========== MOBILE RESPONSIVENESS ========== */


/* Tablet (769px - 1024px) */
@media screen and (max-width: 1024px) and (min-width: 769px) {
    .mainbody {
        margin-left: 200px;
        margin-right: 50px;
    }

    .tocp1, .tocp2, .tocp3, .tocp4, .tocp5 {
        margin-left: 20px;
        padding-right: 30px;
        font-size: 14px;
        line-height: 2.5;
    }

    /* Images Part 1 */
    .imgap1 {
        width: 300px;
        height: 225px;
        right: 50px;
    }

    /* Images Part 2 */
    .imgbp2, .imgcp2, .imgdp2, .imgep2 {
        width: auto;
        max-width: 300px;
        height: auto;
        right: 50px;
    }

    /* Images Part 3 */
    .imgap3, .imgbp3 {
        width: 300px;
        height: auto;
    }

    .videoap3 {
        left: 700px;
        width: 300px;
    }
}

/* Mobile landscape and small tablets (481px - 768px) */
@media screen and (max-width: 768px) and (min-width: 481px) {
    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }

    /* Title adjustments - H1 left, P and buttons right */
    .title {
        width: 100%;
        overflow: hidden;
        padding: 20px 0 25px 0;
        box-shadow: 0 14px 30px rgba(15, 23, 42, 0.75);
        position: relative;
        min-height: 140px;
    }

    .title H1 {
        position: absolute;
        left: 20px;
        top: 20px;
        width: 45%;
        padding: 0;
        margin: 0;
        font-size: 22px;
        line-height: 1.5;
        font-weight: 900;
    }

    .title p {
        position: absolute;
        right: 20px;
        top: 20px;
        width: 45%;
        font-size: 18px;
        padding: 0;
        margin: 0;
        text-align: right;
        font-weight: 800;
    }

    .back-button {
        position: absolute;
        right: 135px;
        bottom: 20px;
        margin: 0;
        padding: 9px 20px;
        font-size: 13px;
    }

    .next-button {
        position: absolute;
        right: 20px;
        bottom: 20px;
        margin: 0;
        padding: 9px 20px;
        font-size: 13px;
    }

    /* Main body adjustments */
    .mainbody {
        margin: 20px 15px 40px 15px;
        max-width: calc(100% - 30px);
        width: calc(100% - 30px);
        font-size: 18px;
        overflow-x: hidden;
        box-sizing: border-box;
        padding: 26px 18px 28px 18px;
        border-radius: 16px;
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.35);
    }

    /* H1 - BIGGEST and BOLD */
    .mainbody H1 {
        font-size: 30px !important;
        font-weight: 900 !important;
        margin-bottom: 15px;
    }

    /* H2 - BIG and BOLD */
    h2 {
        font-size: 24px !important;
        font-weight: 800 !important;
    }

    /* Strong tags - BOLD */
    strong {
        font-weight: 700 !important;
    }

    /* List items - LIGHTER */
    li {
        font-weight: 500 !important;
    }

    /* TOC adjustments */
    .tocp1, .tocp2, .tocp3, .tocp4, .tocp5 {
        position: static;
        margin: 20px 15px 30px 15px;
        padding: 15px;
        border: 1px solid black;
        border-radius: 5px;
        background: rgba(255, 255, 255, 0.7);
        line-height: 2;
        font-size: 16px;
        width: calc(100% - 30px);
        box-sizing: border-box;
    }

    /* Section adjustments */
    .section {
        margin-bottom: 30px;
        width: 100%;
        overflow: hidden;
    }

    /* Paragraph padding */
    .paraone, .paratwo, .parathree, .parafour,
    .paraonep1, .paratwop1, .parathreep1, .parafourp1,
    .paraonep2, .paratwop2, .parathreep2,
    .paraonep3, .paratwop3, .parathreep3 {
        padding: 8px 0 8px 12px !important;
        padding-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    #paraonep1 {
        padding-right: 0 !important;
        width: 100% !important;
    }

    .p2 {
        padding-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .p3 {
        width: 100% !important;
        max-width: 100% !important;
        padding-right: 0 !important;
    }

    /* General paragraph fixes - NO JUSTIFY */
    p {
        padding: 8px 0 !important;
        font-size: 18px;
        font-weight: 500;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        text-align: left !important;
    }

    /* Images adjustments - Keep them perfect like before */
    .imgap1, .imgap2, .imgbp2, .imgcp2, .imgdp2, .imgep2,
    .imgap3, .imgbp3, .imgcp3 {
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        margin: 20px 0 !important;
        display: block;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        box-sizing: border-box;
    }

    /* Video adjustments - Full width without touching borders */
    .videoap3 {
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 20px 0 !important;
        display: block;
        left: auto !important;
        height: auto !important;
        box-sizing: border-box;
    }

    /* CEX, DEX, Bridge, Wallet Guide - CENTERED */
    .cryptowalletguide, .CEX, .DEX, .bridge {
        position: static !important;
        left: auto !important;
        width: fit-content !important;
        max-width: calc(100% - 40px) !important;
        margin-left: auto !important;
        margin-right: auto !important;
        margin-bottom: 30px !important;
        font-size: 22px !important;
        font-weight: 700 !important;
        text-align: center !important;
        border-bottom: 1px solid black;
        padding-left: 8px;
        padding-right: 8px;
    }

    /* Wallet links - Don't touch mainbody borders */
    .wallet-list {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        padding: 0;
        margin: 0;
    }

    .wallet-list li {
        margin-bottom: 10px;
    }

    .wallet-list a {
        margin-left: 0 !important;
        margin-right: 0 !important;
        display: inline-block;
        width: auto !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    /* Note boxes */
    .note {
        margin: 20px 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Parent container fixes */
    .parentap3 {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        position: static;
    }

    /* Crypto exchange section */
    .crypto-exchange-section {
        position: static;
        width: 100%;
        overflow: hidden;
    }
}

/* Mobile portrait (0 - 480px) */
@media screen and (max-width: 480px) {
    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }

    /* Title adjustments - H1 left, P and buttons right */
    .title {
        width: 100%;
        box-shadow: 0 14px 30px rgba(15, 23, 42, 0.75);
        position: relative;
        min-height: 120px;
        display:flex;
        justify-content:space-between;
        align-items:center;
        padding:20px;
        padding-right: calc(20px + env(safe-area-inset-right));
    }

    .title H1 {
        position: absolute;
        left: 5px;
        top: 15px;
        width: 45%;
        padding: 0;
        margin: 0;
        font-size: 15px;
        line-height: 1.4;
        font-weight: 900;
    }

    .title p {
        position: absolute;
        right: 40px;
        top: 60px;
        width: 45%;
        font-size: 15px;
        padding: 0;
        margin: 0;
        text-align: right;
        font-weight: 800;
   
    }

.back-button {
    position: absolute;
    right: 130px;   
    bottom: 20px;
    margin: 0;
    font-size: 8px;
}

.next-button {
    position: absolute;
    right: 50px;
    bottom: 20px;
    font-size: 8px;
}



    /* Main body adjustments */
    .mainbody {
        margin: 15px 10px;
        max-width: calc(100% - 20px);
        width: calc(100% - 20px);
        font-size: 16px;
        padding: 20px 15px 25px 15px;
    }

    /* H1 - BIGGEST and BOLD */
    .mainbody H1 {
        font-size: 26px !important;
        font-weight: 900 !important;
    }

    /* H2 - BIG and BOLD */
    h2 {
        font-size: 22px !important;
        font-weight: 800 !important;
    }

    /* Strong tags - BOLD */
    strong {
        font-weight: 700 !important;
    }

    /* List items - LIGHTER */
    li {
        font-weight: 500 !important;
    }

    /* Paragraph styling - NO JUSTIFY */
    p {
        font-size: 16px !important;
        font-weight: 500;
        padding: 8px 0 !important;
        text-align: left !important;
    }

    /* Paragraph containers */
    .paraone, .paratwo, .parathree, .parafour,
    .paraonep1, .paraonep2, .paraonep3 {
        padding: 8px 0 8px 8px !important;
    }

    /* TOC adjustments */
      .tocp1, .tocp2, .tocp3, .tocp4, .tocp5 {
        position: static;
        margin: 20px 15px 30px 15px;
        padding: 15px;
        border: 1px solid black;
        border-radius: 5px;
        background: rgba(255, 255, 255, 0.7);
        line-height: 2;
        font-size: 16px;
        width: calc(100% - 30px);
        box-sizing: border-box;
    }

    /* CEX, DEX, Bridge, Wallet Guide - CENTERED */
    .cryptowalletguide, .CEX, .DEX, .bridge {
        position: static !important;
        left: auto !important;
        width: fit-content !important;
        max-width: calc(100% - 30px) !important;
        margin-left: auto !important;
        margin-right: auto !important;
        margin-bottom: 25px !important;
        font-size: 20px !important;
        font-weight: 700 !important;
        text-align: center !important;
        border-bottom: 1px solid black;
        padding-left: 8px;
        padding-right: 8px;
    }

    /* P2 and P3 classes */
    .p2, .p3 {
        width: 100% !important;
        max-width: 100% !important;
        padding-right: 0 !important;
    }

    /* Images - Keep them perfect like before */
    .imgap1, .imgap2, .imgbp2, .imgcp2, .imgdp2, .imgep2,
    .imgap3, .imgbp3, .imgcp3 {
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        margin: 20px 0 !important;
        display: block;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        box-sizing: border-box;
    }

    /* Video adjustments - Full width without touching borders */
    .videoap3 {
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 20px 0 !important;
        display: block;
        left: auto !important;
        height: auto !important;
        box-sizing: border-box;
    }

    /* Wallet links - Don't touch mainbody borders */
    .wallet-list {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        padding: 0;
        margin: 0;
    }

    .wallet-list li {
        margin-bottom: 10px;
    }

    .wallet-list a {
        font-size: 14px;
        padding: 8px 12px;
        margin-left: 0 !important;
        margin-right: 0 !important;
        display: inline-block;
        width: auto !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }
}

/* Large screens (1025px and above) */
@media screen and (min-width: 1025px) {
    /* Desktop styles already applied */
}