/* =======================================================
   Portfolio Engine
   base.css
   Reset, Variables & Global Styles
======================================================= */

/* ===========================
   GOOGLE FONT
=========================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ===========================
   CSS VARIABLES
=========================== */

:root{

    /* Colors */

    --bg:#0d1117;
    --surface:#161b22;
    --surface-hover:#1f2937;

    --primary:#58a6ff;
    --primary-hover:#79c0ff;

    --text:#f0f6fc;
    --muted:#8b949e;

    --border:#30363d;

    --success:#3fb950;
    --warning:#d29922;
    --info:#58a6ff;
    --danger:#f85149;

    /* Radius */

    --radius-sm:8px;
    --radius-md:14px;
    --radius-lg:20px;

    /* Shadow */

    --shadow-sm:0 4px 10px rgba(0,0,0,.20);
    --shadow-md:0 10px 30px rgba(0,0,0,.30);
    --shadow-lg:0 20px 50px rgba(0,0,0,.40);

    /* Layout */

    --container:1200px;

    --transition:250ms ease;

}

/* ===========================
   RESET
=========================== */

*{

    margin:0;
    padding:0;
    box-sizing:border-box;

}

html{

    scroll-behavior:smooth;

}

body{

    background:var(--bg);

    color:var(--text);

    font-family:"Poppins",sans-serif;

    line-height:1.7;

    overflow-x:hidden;

}

/* ===========================
   IMAGES
=========================== */

img{

    display:block;

    max-width:100%;

}

/* ===========================
   LINKS
=========================== */

a{

    text-decoration:none;

    color:inherit;

}

/* ===========================
   LISTS
=========================== */

ul{

    list-style:none;

}

/* ===========================
   BUTTONS
=========================== */

button{

    border:none;

    outline:none;

    background:none;

    cursor:pointer;

    font-family:inherit;

}

/* ===========================
   INPUTS
=========================== */

input,
textarea{

    font-family:inherit;

}

/* ===========================
   CONTAINER
=========================== */

.container{

    width:min(92%,var(--container));

    margin-inline:auto;

}

/* ===========================
   HEADINGS
=========================== */

h1{

    font-size:clamp(2.7rem,5vw,4.5rem);

    line-height:1.1;

    font-weight:700;

}

h2{

    font-size:clamp(2rem,4vw,3rem);

    line-height:1.2;

    font-weight:700;

}

h3{

    font-size:1.3rem;

    font-weight:600;

}

p{

    color:var(--muted);

}

/* ===========================
   SECTION
=========================== */

section{

    padding:100px 0;

}

/* ===========================
   SCROLLBAR
=========================== */

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-track{

    background:var(--bg);

}

::-webkit-scrollbar-thumb{

    background:var(--border);

    border-radius:100px;

}

::-webkit-scrollbar-thumb:hover{

    background:var(--primary);

}

/* ===========================
   TEXT SELECTION
=========================== */

::selection{

    background:var(--primary);

    color:white;

}

/* ===========================
   PROGRESS BAR
=========================== */

#progress-bar{

    position:fixed;

    top:0;

    left:0;

    width:0;

    height:4px;

    background:var(--primary);

    z-index:99999;

}

/* ===========================
   BACK TO TOP
=========================== */

#backToTop{

    position:fixed;

    right:30px;

    bottom:30px;

    width:52px;

    height:52px;

    border-radius:50%;

    background:var(--primary);

    color:white;

    font-size:22px;

    box-shadow:var(--shadow-md);

    opacity:0;

    visibility:hidden;

    transition:var(--transition);

    z-index:999;

}

#backToTop.show{

    opacity:1;

    visibility:visible;

}

#backToTop:hover{

    transform:translateY(-5px);

}