:root {
    --bg: #0a0a0f;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --accent: #00eaff;
    --text: #f0f0f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: radial-gradient(circle at top, #151515, #050505);
    color: var(--text);
    scroll-behavior: smooth;
    line-height: 1.6; /* Improves readability */
}

/* NAV */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 15px 10%;
    backdrop-filter: blur(12px);
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.nav-links a {
    color: white;
    margin-left: 30px;
    text-decoration: none;
    opacity: 0.85; /* Increased visibility */
    transition: 0.3s;
    font-weight: 400;
}
.nav-links a:hover,
.nav-links a:focus-visible {
    opacity: 1;
    color: var(--accent);
    outline: none;
}

.logo img{
    height: 50px;
    width: auto;
    display: block;
}

/* SECTIONS */
section {
    min-height: 100vh;
    padding: 120px 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

h2 {
    font-size: 36px;
    margin-bottom: 30px;
    color: white;
}

/* ABOUT NEW DESIGN */

.about-steps{
position:relative;
display:flex;
flex-direction:column;
gap:35px;
margin-top:40px;
max-width:1500px;
}

.about-card{
position:relative;
width:420px;
padding:34px;
border-radius:18px;
background:rgba(255,255,255,0.03);
border:1px solid rgba(255,255,255,0.08);
backdrop-filter:blur(12px);
transition:.4s ease;
overflow:hidden;
opacity:0;
transform:translateY(50px);
animation:cardShow .8s forwards;
}

.about-card:hover{
transform:translateY(-8px) scale(1.02);
box-shadow:0 20px 40px rgba(0,234,255,.10);
border-color:rgba(0,234,255,.25);
}

.about-card p{
font-size:18px;
line-height:1.7;
color:#fff;
opacity:.95;
}

.about-icon{
width:58px;
height:58px;
display:flex;
justify-content:center;
align-items:center;
font-size:28px;
border-radius:14px;
margin-bottom:22px;
color:var(--accent);
border:1px solid rgba(0,234,255,.2);
background:rgba(0,234,255,.05);
box-shadow:0 0 25px rgba(0,234,255,.08);
}

.about-number{
position:absolute;
top:25px;
right:25px;
font-size:52px;
font-weight:700;
color:rgba(255,255,255,.12);
}

.about-line{
width:70px;
height:3px;
background:var(--accent);
margin-top:24px;
border-radius:20px;
box-shadow:0 0 10px rgba(0,234,255,.5);
}

/* SCHODKI */

.step-1{
margin-left:0;
animation-delay:.1s;
}

.step-2{
margin-left:260px;
animation-delay:.3s;
}

.step-3{
margin-left:520px;
animation-delay:.5s;
}

.step-4{
margin-left:780px;
animation-delay:.7s;
}

@keyframes cardShow{
to{
opacity:1;
transform:translateY(0);
}
}

/* MOBILE */

@media(max-width:1400px){

.step-2,
.step-3,
.step-4{
margin-left:0;
}

.about-card{
width:100%;
max-width:700px;
}

}

@media(max-width:768px){

.about-card{
padding:26px;
}

.about-number{
font-size:36px;
}

.about-card p{
font-size:16px;
}

}

/* HERO */
.hero h1 {
    font-size: 64px;
    background: linear-gradient(90deg, #fff, var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.hero p {
    margin: 20px 0 40px;
    font-size: 20px;
    opacity: 0.8;
    max-width: 600px;
}

/* BUTTON */
.btn {
    padding: 12px 28px;
    border: 1px solid var(--accent);
    border-radius: 6px;
    color: var(--accent);
    background: rgba(0, 234, 255, 0.05);
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn:hover,
.btn:focus-visible {
    background: var(--accent);
    color: black;
    box-shadow: 0 0 15px rgba(0, 234, 255, 0.4);
    outline: none;
}

/* CARDS */
.card {
    background: var(--glass);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--glass-border); /* Pro glassmorphism detail */
    backdrop-filter: blur(15px);
    transition: all 0.3s ease;
}

.card.clickable {
    cursor: pointer;
}

.card.clickable:hover,
.card.clickable:focus-visible {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 234, 255, 0.15);
    border-color: rgba(0, 234, 255, 0.3);
    outline: none;
}

.card h3 {
    margin-bottom: 10px;
    color: white;
}

/* PROJECT GRID */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

/* =========================
PROJECT FILTER BUTTONS UPGRADE
========================= */

.filters{
display:flex;
flex-wrap:wrap;
gap:14px;
margin:35px 0 40px;
}

.filter-btn{
padding:12px 20px;
border-radius:14px;
border:1px solid rgba(255,255,255,0.08);
background:rgba(255,255,255,0.03);
color:#fff;
font-size:14px;
font-weight:600;
letter-spacing:.3px;
cursor:pointer;
transition:.3s ease;
backdrop-filter:blur(10px);
}

.filter-btn:hover{
transform:translateY(-3px);
border-color:rgba(0,234,255,.25);
box-shadow:0 8px 20px rgba(0,234,255,.08);
color:var(--accent);
}

.filter-btn.active{
background:linear-gradient(135deg,rgba(0,234,255,.16),rgba(0,234,255,.05));
color:var(--accent);
border-color:rgba(0,234,255,.4);
box-shadow:0 0 18px rgba(0,234,255,.15);
}


/* SKILLS */
.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill {
    padding: 10px 20px;
    border: 1px solid rgba(0, 234, 255, 0.3);
    background: rgba(0, 234, 255, 0.05);
    border-radius: 30px;
    font-size: 15px;
    transition: 0.3s;
}

.skill:hover {
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(0, 234, 255, 0.2);
}

/* =========================
TEXTAREA FIX
========================= */

textarea{
height:160px;
min-height:160px;
max-height:320px;
resize:vertical;   /* only bigger */
overflow:auto;
}

/* If you want fully fixed, replace with:
resize:none;
*/

/* =========================
FOOTER
========================= */

footer{
margin-top:80px;
padding:28px 10%;
border-top:1px solid rgba(255,255,255,0.08);
background:rgba(255,255,255,0.02);
display:flex;
justify-content:space-between;
align-items:center;
flex-wrap:wrap;
gap:18px;
}

.footer-left{
font-size:14px;
opacity:.75;
}

.footer-right{
display:flex;
gap:18px;
flex-wrap:wrap;
}

.footer-right a{
color:#fff;
text-decoration:none;
font-size:14px;
opacity:.75;
transition:.3s;
}

.footer-right a:hover{
opacity:1;
color:var(--accent);
}

@media(max-width:768px){

footer{
padding:24px 6%;
flex-direction:column;
align-items:flex-start;
}

.filters{
gap:10px;
}

.filter-btn{
padding:10px 14px;
font-size:13px;
}

.skill::after{
left:0;
transform:none;
bottom:125%;
min-width:200px;
}

.skill:hover::after{
transform:none;
}

.skill::before{
left:24px;
transform:none;
}

}

/* CONTACT */
.contact-form {
    max-width: 600px;
}

input, textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    color: white;
    font-size: 16px;
    transition: 0.3s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(0, 234, 255, 0.1);
    background: rgba(255, 255, 255, 0.08);
}

/* MODAL */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-content {
    max-width: 500px;
    width: 90%;
    text-align: center;
}

/* ANIMATION */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}