* {
    margin: 0; padding: 0; box-sizing: border-box;
}
body {
    background: #04030d;
    color: #dce8ff;
    font-family: Arial, sans-serif;
}
.navbar {
    position: fixed; top: 0; width: 100%;
    padding: 10px;
    background: rgba(0, 0, 20, 0.85);
    border-bottom: 1px solid #0091FF;
    backdrop-filter: blur(12px);
    display: flex; justify-content: space-between; align-items: center;
    z-index: 999;
}
.logo { font-size: 30px; font-weight: bold; color: #0091FF; }
.menu { list-style: none; display: flex; gap: 25px; border-radius: 10px;}
.menu a { color: #dce8ff; text-decoration: none; transition: 0.2s; }
.menu a:hover { color: #0091FF; }

.burger { display: none; font-size: 30px; color: #0091FF; cursor: pointer; }

.hero {
    height: 100%;
    /* background: url("header-bg3.png"); */
    background: #04030d;
    
    display: flex; justify-content: center; align-items: center;
    text-align: center;
}
.floating { animation: float 2.5s infinite ease-in-out; }
@keyframes float {
    0% { transform: translateY(0); }
    30% { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}

.btns {
    margin-top: 25px; 

}

.btn {
    margin-top: 25px; padding: 12px 20px;
    border: 2px solid #0091FF; color: #fff;
    text-decoration: none; border-radius: 5px;
    background: #0091FF;
    font-weight: bold;
    font-size: 1.1em;
    transition: 0.3s;
}
.btn:hover { background: none; color: #0091FF; }

.section { padding: 80px 20px; }

h2 {
    font-size: 32px;
    color: #0091FF;
    margin-bottom: 25px;
}

.about-box {
    background: #0c1424;
    padding: 20px;
    border-left: 4px solid #0091FF;
    border-radius: 8px;
}

/* Fade-in */
/* Fade-in улучшенный */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInSoft 1.4s ease-out forwards;
}
@keyframes fadeInSoft {
    0% { opacity: 0; transform: translateY(30px); }
    30% { opacity: 0.7; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Блок "Обо мне" */
.about-box {
    background: rgba(10, 20, 40, 0.55);
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid #0091FF;
    backdrop-filter: blur(6px);
    box-shadow: 0 0 18px rgba(0, 145, 255, 0.25);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Заголовок */
#about h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #0091FF;
    letter-spacing: 1px;
}

/* Skills */
.skills-box {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}


.skills-box span:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 18px rgba(0,145,255,0.4);
}

/* Skills */
.skills-box {
    display: flex; gap: 15px; flex-wrap: wrap;
}
.skills-box span {
    background: #0f1b32;
    padding: 10px 20px;
    border-left: 4px solid #0091FF;
    box-shadow: 0 0 12px rgba(0,145,255,0.15);
    border-radius: 6px;
    transition: 0.3s;
}

/* Cards */
.cards {
    display: grid; gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.card {
    background: #0d1528;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #0091FF;
    transition: 0.3s;
    box-shadow: 0 0 12px rgba(0,145,255,0.15);
}
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 80, 180, 0.4);
}

/* Contact */
.contact-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
}
.contact-card {
	box-shadow: 0 0 12px rgba(0,145,255,0.15);
    background: #0c1424;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #0091FF;
    transition: 0.3s;
}
.contact-card:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 20px rgba(0, 80, 180, 0.4);
}

/* Mobile */
@media (max-width: 768px) {
    .menu {
        position: absolute; top: 65px; right: 10px;
        background: rgba(0,0,30,0.95);
        flex-direction: column; width: 220px;
        padding: 20px; display: none;
    }
    .menu.show { display: flex; }
    .burger { display: block; }
}
/* Fullscreen sections */
.section, .hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Fade/Slide on scroll */
.scroll-anim {
    opacity: 0;
    transform: translateY(30px);
    transition: 1s ease;
}

.scroll-anim.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Zoom */
.zoom-anim {
    opacity: 0;
    transform: scale(0.8);
    transition: 0.8s ease;
}
.zoom-anim.visible {
    opacity: 1;
    transform: scale(1);
}

/* Left slide */
.slide-left {
    opacity: 0;
    transform: translateY(-30px);
    transition: 1s ease;
}
.slide-left.visible { 
    opacity: 1;
    transform: translateY(0);
}

/* Right slide */
.slide-right {
    opacity: 0;
    transform: translateY(30px);
    transition: 1s ease;
}
.slide-right.visible {
    opacity: 1;
    transform: translateY(0);
}