*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    background:#0f172a;
    color:white;
    font-family:Segoe UI,sans-serif;
}

nav{
    position:fixed;
    top:0;
    width:100%;
    display:flex;
    justify-content:space-between;
    padding:20px 40px;

    backdrop-filter:blur(15px);
    background:rgba(0,0,0,.2);

    z-index:1000;
}

.logo{
    font-weight:bold;
    letter-spacing:2px;
}

nav ul{
    display:flex;
    gap:20px;
    list-style:none;
}

nav a{
    color:white;
    text-decoration:none;
}

header{
    min-height:100vh;

    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;

    text-align:center;

    padding:20px;
}

.profile{
    width:180px;
    height:180px;

    object-fit:cover;

    border-radius:50%;

    border:4px solid #38bdf8;
}

h1{
    margin-top:20px;
    font-size:3rem;
    
}

#typing{
    color:#38bdf8;
    margin-top:10px;
    height:40px;
}

.btn{
    margin-top:25px;

    padding:12px 24px;

    border-radius:10px;

    background:#38bdf8;
    color:black;

    text-decoration:none;

    font-weight:bold;
}

section{
    max-width:1100px;

    margin:auto;

    padding:80px 20px;
}

section h2{
    margin-bottom:30px;
}

.grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:20px;
}

.card{
    background:rgba(255,255,255,.05);

    backdrop-filter:blur(10px);

    border:1px solid rgba(255,255,255,.1);

    border-radius:20px;

    padding:25px;

    transition:.3s;
}

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

.skill{
    margin-bottom:25px;
    
}

.bar{
    width:100%;
    height:15px;

    background:#1e293b;

    border-radius:20px;

    overflow:hidden;
}

.fill{
    height:100%;

    background:#269bc2;

    border-radius:20px;
}
.card a{
    color:#67e8f9;
    text-decoration:none;
    font-weight:600;
    text-shadow:0 0 8px rgba(103,232,249,.6);
    transition:.3s;
}

.card a:hover{
    color:white;
    text-decoration:underline;
}
footer{
    text-align:center;
    padding:40px;
    opacity:.7;
}
.hi {
    justify-content: center;
    text-align: center;
    align-items: center;
    font-family: monospace;
    font-size: 40px;
    font-weight: bold;

    background: linear-gradient(
        90deg,
        red,
        orange,
        yellow,
        lime,
        cyan,
        blue,
        magenta,
        red
    );

    background-size: 400% 100%;

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    animation:
        rainbowMove 4s linear infinite,
        glowCycle 2s linear infinite;
}

.hi::after {
    content: "_";
    color: white;
    animation: blink .8s infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

@keyframes rainbowMove {
    from {
        background-position: 0%;
    }

    to {
        background-position: 400%;
    }
}

@keyframes glowCycle {

    0% {
        text-shadow:
            0 0 10px red,
            0 0 20px red,
            0 0 40px red;
    }

    16% {
        text-shadow:
            0 0 10px orange,
            0 0 20px orange,
            0 0 40px orange;
    }

    33% {
        text-shadow:
            0 0 10px yellow,
            0 0 20px yellow,
            0 0 40px yellow;
    }

    50% {
        text-shadow:
            0 0 10px lime,
            0 0 20px lime,
            0 0 40px lime;
    }

    66% {
        text-shadow:
            0 0 10px cyan,
            0 0 20px cyan,
            0 0 40px cyan;
    }

    83% {
        text-shadow:
            0 0 10px blue,
            0 0 20px blue,
            0 0 40px blue;
    }

    100% {
        text-shadow:
            0 0 10px magenta,
            0 0 20px magenta,
            0 0 40px magenta;
    }
}
.btn2 {
    padding: 15px 40px;
    border: none;
    outline: none;
    color: #FFFFFF;
    text-shadow: 0 0 10px #FFFFFF;
    cursor: pointer;
    position: relative;
    z-index: 0;
    border-radius: 12px;
    text-decoration: none;
    display: inline-block;
}
.btn2::after {
    content: "";
    z-index: -1;
    position: absolute;
    width: 100%;
    height:100%;
    background-color:#333;
    left: 0;
    top: 0;
    border-radius:10px;
}
.btn2::before {
    content:"";
    background: linear-gradient(
      45deg,
      #FF0000, #FF7300, #FFFB00, #48FF00,
      #00FFD5, #002BFF, #FF00C8, #FF0000
    );
    position: absolute;
    top: -2px;
    left: -2px;
    background-size: 600%;
    z-index: -1;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    filter: blur(8px);
    animation: glowing 20s linear infinite;
transition: opacity .3s ease-in-out;
border-radius: 10px;
opacity: 0;
}

@keyframes glowing {
  0% {background-position: 0 0;}
  50% {background-position: 400% 0;}
  100% {background-position: 0 0;}
}
.btn2:hover:before{
    opacity: 1;
}

.btn2:active:after {
    background: transparent;
}

.btn2:active {
    color:#000;
    font-weight: bold;
}