
@import url('https://fonts.googleapis.com/css2?family=Francois+One&display=swap');
 
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}
 
:root{
    --bg:#111111;
    --card:#181818;
    --text:#f5f5f5;
    --green:#a6ff00;
    --gray:#232323;
}
 
body{
    font-family: "Francois One", sans-serif;
    background:var(--bg);
    color:var(--text);
    min-height:100vh;
    overflow-x:hidden;
    position:relative;
    letter-spacing: 2px;
}
 
/* Background Effects */
body::before{
    content:'';
    position:fixed;
    width:400px;
    height:400px;
    border-radius:50%;
    background:rgba(166,255,0,.06);
    top:-150px;
    right:-100px;
    filter:blur(120px);
    z-index:-1;
}
 
body::after{
    content:'';
    position:fixed;
    width:300px;
    height:300px;
    border-radius:50%;
    background:rgba(166,255,0,.04);
    bottom:-100px;
    left:-100px;
    filter:blur(120px);
    z-index:-1;
}
 
/* =====================
   HEADER — UPDATED
   ===================== */
 
header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:0 32px;
    height:70px;
    width:92%;
    margin:24px auto 0;
    border-radius:50px;
    background:rgba(24,24,24,.95);
    border:1px solid rgba(166,255,0,.12);
    backdrop-filter:blur(16px);
    -webkit-backdrop-filter:blur(16px);
    position:sticky;
    top:16px;
    z-index:100;
    box-shadow:0 4px 30px rgba(0,0,0,.4), 0 0 0 1px rgba(166,255,0,.05);
}
 
/* Logo */
.logo{
    font-size:1.6rem;
    letter-spacing:6px;
    color:var(--green);
    text-decoration:none;
    flex-shrink:0;
    transition:opacity .2s;
}
 
.logo:hover{
    opacity:.8;
}
 
.logo-dot{
    color:#fff;
    opacity:.35;
    font-size:2rem;
    line-height:1;
}
 
/* Nav links */
nav ul{
    display:flex;
    gap:4px;
    list-style:none;
}
 
nav li{
    list-style:none;
}
 
nav a{
    text-decoration:none;
    color:#888;
    font-size:.75rem;
    letter-spacing:.12em;
    padding:8px 18px;
    border-radius:30px;
    transition:all .25s;
    display:block;
}
 
nav a:hover{
    color:#fff;
    background:rgba(255,255,255,.06);
}
 
/* Active nav link — driven by data-page on <body> */
[data-page="home"]    nav a[data-nav="home"],
[data-page="works"]   nav a[data-nav="works"],
[data-page="contacts"] nav a[data-nav="contacts"]{
    background:var(--green);
    color:#111;
}
 
[data-page="home"]    nav a[data-nav="home"]:hover,
[data-page="works"]   nav a[data-nav="works"]:hover,
[data-page="contacts"] nav a[data-nav="contacts"]:hover{
    background:var(--green);
    color:#111;
    opacity:.9;
}
 
/* Header right: avatar + hire button */
.header-right{
    display:flex;
    align-items:center;
    gap:14px;
    flex-shrink:0;
}
 
header img{
    width:42px;
    height:42px;
    object-fit:cover;
    border-radius:50%;
    border:2px solid var(--green);
    display:block;
}
 
.hire-btn{
    font-size:.65rem;
    font-weight:700;
    letter-spacing:.12em;
    color:#111;
    background:var(--green);
    border-radius:30px;
    padding:9px 20px;
    text-decoration:none;
    white-space:nowrap;
    transition:all .25s;
    font-family:inherit;
}
 
.hire-btn:hover{
    box-shadow:0 0 20px rgba(166,255,0,.5);
    transform:translateY(-1px);
}
 
/* =====================
   MAIN CONTENT
   ===================== */
 
body > h1{
    font-size:5rem;
    display: flex;
    text-align: center;
    justify-content: center;
    letter-spacing: 5px;
    margin-top: 70px;
}
 
body > h3{
    display: flex;
    justify-content: center;
    color:var(--green);
    letter-spacing:8px;
    margin-bottom:50px;
    margin-top: 20px;
}
 
body > p:first-of-type{
    font-size: 1.5rem;
    width:1000px;
    max-width:85%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    line-height:1.9;
    color:#cfcfcf;
}
 
/* Buttons */
 
.buttuns{
    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    gap:20px;
    margin-top:40px;
    padding:0 5%;
}
 
.buttuns a{
    text-decoration:none;
    color:white;
}
 
.works-but,
.contacts-but{
    display:inline-block;
    margin:0;
    padding:15px 35px;
    border-radius:40px;
    cursor:pointer;
    transition:.3s;
}
 
.works-but{
    background:var(--green);
    color:#111;
}
 
.works-but:hover{
    transform:translateY(-5px);
    box-shadow:0 0 25px rgba(166,255,0,.4);
}
 
.works-header{
    text-align: center;
    margin-top: 50px;
}
 
.works-header h4{
    color:var(--green);
    letter-spacing:6px;
    margin-bottom:10px;
}
 
.works-header h1{
    font-size:5rem;
    letter-spacing: 5px;
}
 
.projects-grid{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:50px;
    margin-top:50px;
}
 
.project-card {
    background:var(--card);
    border-radius:20px;
    padding:20px;
    width:350px;
    margin-bottom:30px;
    border:1px solid rgba(166,255,0,.15);
    cursor:pointer;
    text-align:left;
    color:var(--text);
    font-family:inherit;
    transition:.3s;
    appearance:none;
    -webkit-appearance:none;
}
 
.project-card:hover,
.project-card:focus-visible {
    transform:translateY(-5px);
    box-shadow:0 0 25px rgba(166,255,0,.4);
    outline:2px solid var(--green);
    outline-offset:2px;
}
 
.project-card img {
    width:100%;
    border-radius:10px;
    margin-bottom:15px;
    display:block;
}
 
.project-card h3 {
    font-size:1.1rem;
    letter-spacing:2px;
    line-height:1.4;
}
 
body.modal-open {
    overflow:hidden;
}
 
.project-modal {
    position:fixed;
    inset:0;
    z-index:1000;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:24px;
}
 
.project-modal[hidden] {
    display:none;
}
 
.project-modal-backdrop {
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.75);
    backdrop-filter:blur(4px);
}
 
.project-modal-dialog {
    position:relative;
    z-index:1;
    background:var(--card);
    border:1px solid rgba(166,255,0,.2);
    border-radius:20px;
    padding:28px;
    width:100%;
    max-width:720px;
    max-height:90vh;
    overflow-y:auto;
    box-shadow:0 0 40px rgba(166,255,0,.15);
}
 
.project-modal-close {
    position:absolute;
    top:16px;
    right:16px;
    width:40px;
    height:40px;
    border:none;
    border-radius:50%;
    background:var(--gray);
    color:var(--text);
    font-size:1.6rem;
    line-height:1;
    cursor:pointer;
    transition:.3s;
}
 
.project-modal-close:hover,
.project-modal-close:focus-visible {
    background:var(--green);
    color:#111;
    outline:none;
}
 
.project-modal-media {
    position:relative;
    margin-bottom:20px;
    border-radius:12px;
    overflow:hidden;
}
 
.project-modal-image {
    width:100%;
    border-radius:12px;
    display:block;
}
 
.project-modal-media.has-video .project-modal-image {
    cursor:pointer;
}
 
.project-modal-media.has-video:not(.is-playing) .project-modal-image:hover {
    opacity:0.85;
}
 
.project-modal-play {
    position:absolute;
    inset:0;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:10px;
    border:none;
    background:rgba(0,0,0,.45);
    color:var(--text);
    cursor:pointer;
    transition:.3s;
    font-family:inherit;
}
 
.project-modal-play:hover,
.project-modal-play:focus-visible {
    background:rgba(0,0,0,.6);
    outline:none;
}
 
.project-modal-play-icon {
    display:flex;
    align-items:center;
    justify-content:center;
    width:72px;
    height:72px;
    border-radius:50%;
    background:var(--green);
    color:#111;
    font-size:1.8rem;
    padding-left:6px;
    box-shadow:0 0 30px rgba(166,255,0,.45);
}
 
.project-modal-play-text {
    font-size:0.95rem;
    letter-spacing:3px;
    text-transform:uppercase;
}
 
.project-modal-player {
    position:relative;
    width:100%;
    aspect-ratio:16 / 9;
    background:#000;
    border-radius:12px;
    overflow:hidden;
}
 
.project-modal-player iframe,
.project-modal-player video {
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    border:none;
    border-radius:12px;
}
 
.project-modal-title {
    font-size:2rem;
    letter-spacing:3px;
    margin-bottom:16px;
    padding-right:40px;
}
 
.project-modal-description {
    color:#cfcfcf;
    font-size:1rem;
    line-height:1.9;
    letter-spacing:1px;
    white-space:pre-wrap;
}
 
.works-dynamic{
    min-height:200px;
}
 
.projects-status{
    text-align:center;
    color:#999;
    padding:40px 5%;
    font-size:0.95rem;
}
 
.projects-status-error{
    color:#ff8a8a;
}
 
.contacts-but{
    border:1px solid var(--green);
}
 
.contacts-but:hover{
    background:var(--green);
    color:#111;
}
 
/* Footer */
 
footer{
    margin-top:100px;
    padding:40px 8%;
    text-align: center;
    width:90%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom:50px;
    background:var(--card);
    border-top:1px solid rgba(166,255,0,.15);
    border-radius:50px 50px 50px 50px;
}
 
.do{
    font-size:1.2rem;
    margin-bottom:25px;
}
 
.email{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:15px;
    margin-bottom:25px;
}
 
.email img{
    width:25px;
    height:25px;
}
 
.copy{
    color:#999;
    margin-bottom:10px;
}
 
.by{
    color:var(--green);
}
 
.contact-header{
    margin-left:auto;
    margin-right:auto;
    text-align:center;
}
 
.contact-header h1{
    font-size:5rem;
    letter-spacing:8px;
    margin-top:50px;
    margin-bottom:20px;
}
 
.contact-header p{
    width:650px;
    max-width:85%;
    margin-left:auto;
    margin-right:auto;
    margin-bottom:50px;
    text-align:center;
    line-height:1.9;
    color:#a6ff00;
}
 
.contact-info{
    display:flex;
    justify-content:center;
    gap:40px;
    margin-top:20px;
    margin-bottom:20px;
    margin-left: auto;
    margin-right: auto;
}
 
.social{
    display:flex;
    align-items:center;
    gap:10px;
    background:var(--gray);
    padding:10px 20px;
    border-radius:40px;
    border:1px solid rgba(166,255,0,.15);
}
 
.social:hover{
    transform:translateY(-5px);
    box-shadow:0 0 25px rgba(166,255,0,.4);
}
 
.social img{
    width:25px;
    height:25px;
}
 
.social a{
    display:flex;
    align-items:center;
    gap:10px;
    text-decoration:none;
    color:var(--text);
    transition:.3s;
}
 
/* =====================
   RESPONSIVE
   ===================== */
 
@media (max-width:1024px){
    header{
        width:95%;
        padding:0 24px;
    }
 
    body > h1,
    .works-header h1,
    .contact-header h1{
        font-size:4rem;
    }
 
    .projects-grid{
        gap:60px;
        padding:0 4%;
    }
 
    .project-card{
        width:300px;
    }
 
    .contact-info{
        flex-wrap:wrap;
        gap:25px;
        padding:0 4%;
    }
}
 
@media (max-width:768px){
    header{
        width:92%;
        padding:0 18px;
        height:62px;
        top:12px;
        border-radius:40px;
    }
 
    .logo{
        font-size:1.3rem;
        letter-spacing:4px;
    }
 
    nav ul{
        gap:2px;
    }
 
    nav a{
        font-size:.65rem;
        padding:6px 12px;
        letter-spacing:.08em;
    }
 
    .hire-btn{
        display:none;
    }
 
    header img{
        width:36px;
        height:36px;
    }
 
    body > h1,
    .works-header h1,
    .contact-header h1{
        font-size:3rem;
        margin-top:40px;
        padding:0 5%;
    }
 
    body > h3{
        letter-spacing:4px;
        font-size:0.95rem;
        padding:0 5%;
    }
 
    body > p:first-of-type,
    .contact-header p{
        font-size:0.95rem;
    }
 
    .works-header{
        margin-top:35px;
        padding:0 5%;
    }
 
    .works-header h4{
        letter-spacing:4px;
        font-size:0.9rem;
    }
 
    .projects-grid{
        gap:35px;
        margin-top:35px;
    }
 
    .project-card{
        width:100%;
        max-width:350px;
    }
 
    .project-modal{
        padding:16px;
    }
 
    .project-modal-dialog{
        padding:20px;
    }
 
    .project-modal-title{
        font-size:1.5rem;
    }
 
    .buttuns{
        flex-direction:column;
        align-items:center;
    }
 
    .works-but,
    .contacts-but{
        width:100%;
        max-width:280px;
        text-align:center;
    }
 
    .contact-info{
        flex-direction:column;
        align-items:center;
        gap:18px;
    }
 
    .social{
        width:100%;
        max-width:320px;
        justify-content:center;
    }
 
    footer{
        width:95%;
        padding:30px 5%;
        margin-top:70px;
    }
 
    .do{
        font-size:1rem;
    }
 
    .email{
        flex-wrap:wrap;
        padding:0 5%;
    }
 
    .email p{
        word-break:break-word;
    }
}
 
@media (max-width:480px){
    header{
        width:94%;
        padding:0 14px;
        height:56px;
        margin:12px auto 0;
        border-radius:30px;
    }
 
    .logo{
        font-size:1.1rem;
        letter-spacing:3px;
    }
 
    .logo-dot{
        font-size:1.4rem;
    }
 
    nav ul{
        gap:1px;
    }
 
    nav a{
        font-size:.6rem;
        padding:5px 10px;
        letter-spacing:.06em;
    }
 
    header img{
        width:32px;
        height:32px;
    }
 
    body > h1,
    .works-header h1,
    .contact-header h1{
        font-size:2.2rem;
        margin-top:30px;
    }
 
    body > h3{
        letter-spacing:3px;
    }
 
    body > p:first-of-type,
    .contact-header p{
        font-size:0.9rem;
        line-height:1.7;
    }
 
    .works-but,
    .contacts-but{
        padding:12px 28px;
    }
 
    .project-card{
        padding:15px;
    }
 
    body::before{
        width:280px;
        height:280px;
    }
 
    body::after{
        width:220px;
        height:220px;
    }
}
 
