/* Updated style.css
   Responsive portfolio theme for Leviron
*/
:root{
    --bg:#0b1020;
    --bg2:#151b35;
    --card:rgba(23,28,50,.72);
    --accent:#7c5cff;
    --accent2:#4cc9f0;
    --text:#eef2ff;
    --muted:#b7bfd9;
    --radius:18px;
    --shadow:0 10px 30px rgba(0,0,0,.35);
}

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

html{
    scroll-behavior:smooth;
}

body{
    font-family:Inter,system-ui,sans-serif;
    color:var(--text);

    /* Fixed background image */
    background:
        linear-gradient(rgba(10,14,28,.55), rgba(10,14,28,.55)),
        url("bg.jpg");

    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
    background-attachment:fixed;

    min-height:100vh;
    overflow-x:hidden;
}

.background{
    position:fixed;
    inset:0;
    pointer-events:none;
    background:
        radial-gradient(circle at 20% 20%,rgba(124,92,255,.15),transparent 30%),
        radial-gradient(circle at 80% 70%,rgba(76,201,240,.12),transparent 30%);
}

header{
    position:sticky;
    top:0;
    z-index:99;
    width:100%;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px 6%;
    backdrop-filter:blur(14px);
    background:rgba(10,14,28,.45);
    border-bottom:1px solid rgba(255,255,255,.08);
}

.logo{
    font-size:2rem;
    font-weight:800;
    background:linear-gradient(90deg,#fff,#a78bfa,#4cc9f0);
    -webkit-background-clip:text;
    background-clip:text;
    color:transparent;
}

nav{
    display:flex;
    gap:22px;
    flex-wrap:wrap;
}

nav a{
    color:var(--text);
    text-decoration:none;
    font-weight:600;
    position:relative;
}

nav a:after{
    content:"";
    position:absolute;
    left:0;
    bottom:-5px;
    width:0;
    height:2px;
    background:var(--accent);
    transition:.25s;
}

nav a:hover:after{
    width:100%;
}

.section{
    max-width:1200px;
    margin:auto;
    padding:90px 20px;
    width:100%;
}

h2{
    text-align:center;
    font-size:2rem;
    margin-bottom:28px;
}

.card{
    background:var(--card);
    border:1px solid rgba(255,255,255,.08);
    backdrop-filter:blur(16px);
    border-radius:18px;
    box-shadow:var(--shadow);
    transition:.25s;
}

.card:hover,
.portfolio-card:hover{
    transform:translateY(-6px);
}

.about-card{
    display:grid;
    grid-template-columns:220px 1fr;
    gap:36px;
    padding:34px;
    align-items:center;
}

.profile-image{
    width:180px;
    height:180px;
    border-radius:50%;
    object-fit:cover;
    border:3px solid var(--accent);
}

.glow-title{
    font-size:2.5rem;
    margin-bottom:18px;
}

.about-text p{
    line-height:1.8;
    color:var(--muted);
}

.social-container{
    display:flex;
    justify-content:center;
    gap:24px;
    flex-wrap:wrap;
}

.social{
    width:84px;
    height:84px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:18px;
    background:var(--card);
    border:1px solid rgba(255,255,255,.08);
}

.social img{
    width:52px;
    height:52px;
}

.portfolio-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,220px);
    justify-content:center;
    gap:22px;
    margin-top:25px;
}

.portfolio-card{
    background:rgba(23,28,50,.75);
    border:1px solid rgba(255,255,255,.08);
    border-radius:18px;
    overflow:hidden;
    transition:.25s;
}

.portfolio-image{
    width:100%;
    aspect-ratio:1/1;
    object-fit:cover;
}

.portfolio-content{
    padding:14px;
}

.role{
    display:inline-block;
    padding:4px 10px;
    border-radius:999px;
    background:#7c5cff25;
    color:#bfa9ff;
    font-size:13px;
    margin:8px 0;
}

.portfolio-content p{
    color:var(--muted);
}

.portfolio-content strong{
    display:block;
    margin-top:4px;
}

@media(max-width:768px){

    header{
        padding:18px;
        flex-direction:column;
        justify-content:center;
        align-items:center;
        gap:16px;
    }

    nav{
        width:100%;
        justify-content:center;
        gap:16px;
    }

    .section{
        padding:70px 18px;
    }

    .about-card{
        display:flex;
        flex-direction:column;
        align-items:center;
        text-align:center;
        padding:26px;
        gap:20px;
        height:auto;
    }

    .about-text{
        width:100%;
    }

    .about-text p{
        width:100%;
        overflow-wrap:break-word;
    }

    .profile-image{
        width:140px;
        height:140px;
    }

    .portfolio-grid{
        grid-template-columns:repeat(auto-fit,180px);
        justify-content:center;
    }
}

@media(max-width:430px){

    .logo{
        font-size:1.7rem;
    }

    nav a{
        font-size:14px;
    }

    .profile-image{
        width:120px;
        height:120px;
    }

    .glow-title{
        font-size:1.8rem;
    }

    .portfolio-grid{
        grid-template-columns:220px;
        justify-content:center;
    }
}

.button-group{
 display:flex;
 gap:16px;
 margin-top:32px;
 flex-wrap:wrap;
}

.btn{
 padding:14px 34px;
 border-radius:14px;
 font-size:1rem;
 font-weight:700;
 text-decoration:none;
 display:inline-block;
 transition:.25s;
 box-shadow:var(--shadow);
}

.primary-btn{
 background:linear-gradient(90deg,var(--accent),var(--accent2));
 color:#fff;
}

.secondary-btn{
 background:rgba(255,255,255,.08);
 color:#fff;
 border:1px solid rgba(255,255,255,.12);
}

.btn:hover{
 transform:translateY(-5px);
 box-shadow:0 0 30px rgba(124,92,255,.7);
}

footer{
    width:100%;
    text-align:center;
    padding:32px 20px;
    color:var(--muted);
    display:flex;
    justify-content:center;
    align-items:center;
}
