/* Сброс и базовый стиль */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    color: #E0E0E0;
}

body {
    background-color: #121212;
    color: #E0E0E0;
    line-height: 1.6;
    animation: animates 6s
    infinite linear alternate;
}

/* Bubbles Animation */
.container {
    position: fixed;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
}
.bubbles {
    position: relative;
    display: flex;
}
.bubbles span { 
    position: relative;
    width: 30px;
    height: 30px;
    background: #4fc3dc;
    margin: 0 4px;
    border-radius: 50%;
    box-shadow: 0 0 0 6px #4fc3dc44,
                0 0 10px #4fc3dc,
                0 0 20px #4fc3dc;
    animation: animate 15s linear infinite;
    animation-duration: calc(130s / var(--i));
}
.bubbles span:nth-child(even) {
    background: #ff2d75;
    box-shadow: 0 0 0 6px #ff2d7544,
                0 0 10px #ff2d75,
                0 0 20px #ff2d75;
}
@keyframes animate {
    0% {
        transform: translateY(100vh) scale(0);
    }
    100% {
        transform: translateY(-10vh) scale(.9);
    }
}

/* Header and Navigation */
header {
    padding: 20px;
    justify-content: space-between;
    align-items: center; /* Centers them vertically */
    position: fixed;
    width: 100%;
    top: 0;
    background-color: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    flex-wrap: wrap;
}



.concept {
	position: relative;
	padding: .01em;
	overflow: hidden;
	scroll-snap-align: center;
    z-index: 1001;
    flex: 1;
	&:before {
		content: "";
		position: absolute;
		width: 100%;
		height: 5%;
		top: 0;
		left: 0;
		background: radial-gradient(rgba(0, 0, 0, 0.3), transparent);
		opacity: 0;
		transition: all 1s cubic-bezier(0.19, 1, 0.22, 1);
	}
	&:hover:before {
		opacity: 0.5;
	}
}

.tittle {
	display: flex;
	grid: 100% / repeat(6, 1fr);
    padding: .1em .1em;
    	.hover {
		position: relative;
		display: grid;
		place-items: center;
	}
	h1 {
        font-size: calc(10px + 17 * (100vw / 1920));
		color: transparent;
		text-align: 0 1px 1px;
		-webkit-text-stroke: calc(.5px + 2 * (100vw / 1920)) #fff;
		text-shadow: none;
		transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	}
	.hover:hover h1 {
		transform: scale(1.6);
		color: #fff;
		-webkit-text-stroke: 2px transparent;
		text-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
	}
}

.social-media {
    display: flex;
    margin-top: 10px;
    justify-content: center; /* Centers icons horizontally */
    gap: 20px; /* Space between icons */
}
.social-media svg {
    width: 25px; 
    height: 25px;
}
.social-media a {
    color: #E0E0E0;
    font-size: calc(10px + 10 * (100vw / 1920));
    transition: color 0.3s;
    text-decoration: none;
}

nav {
    display: flex;
    align-items: center; /* Aligns nav elements vertically */
}

nav ul {
    list-style: none;
    display: flex;
    gap: .2vw;
    margin-left: auto;
    padding: 0;
}

nav a {
    color: #E0E0E0;
    text-decoration: none;
    padding: 10px calc(5px + 10 * (100vw / 1920));
    font-size: calc(10px + 10 * (100vw / 1920));
    transition: color 0.3s, background-color 0.3s, border-radius 0.3s;
}

nav a:hover {
    color: #FFFFFF;
    background-color: #3B82F6;
    border-radius: 5px;
}


/* Основные секции */
section {
    padding: 80px 20px 60px;
    max-width: 900px;
    margin: 80px auto 0; /* Отступ для фиксированного хедера */
    text-align: center;
}

section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #FFFFFF;
    border-bottom: 2px solid #3B82F6;
    display: inline-block;
    padding-bottom: 5px;
}

section p {
    max-width: 700px;
    margin: auto;
    font-size: 1.1rem;
}

/* Карточки навыков и проектов */

.project-card {
    background-color: #1F1F1F;
    padding: 20px;
    margin: 15px 0;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6);
}

/* Эффекты для карточек */
.project-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(16, 185, 129, 0.2));
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.project-card:hover::before {
    opacity: 1;
}

#skills {
    text-align: center;
    padding: 50px 0;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.skill-card {
    position: relative;
    display: flex;
    align-items: center;
    background-color: #222;
    padding: 10px 20px;
    border-radius: 10px;
    width: auto;
    height: 60px;
    min-width: 150px;
    overflow: hidden;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.skill-card:hover {
    transform: scale(1.05);
}
.skill-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(16, 185, 129, 0.2));
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    border-radius: 10px;
}

.skill-card:hover::before {
    opacity: 1;
}

.skill-icon {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    z-index: 1; 
}

.skill-card span {
    font-size: 16px;
    color: #fff;
    z-index: 1; 
}



/* Форма контактов */
form input, form textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    background-color: #262626;
    border: 1px solid #3A3A3A;
    border-radius: 8px;
    color: #E0E0E0;
    font-size: 1rem;
    transition: border-color 0.3s;
}

form input:focus, form textarea:focus {
    border-color: #3B82F6;
    outline: none;
}

form button {
    background-color: #3B82F6;
    color: #FFFFFF;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s, transform 0.3s;
}

form button:hover {
    background-color: #2C6AC3;
    transform: translateY(-2px);
}

/* Футер */
footer {
    text-align: center;
    padding: 20px;
    background-color: #1F1F1F;
    border-top: 1px solid #3A3A3A;
    margin-top: 40px;
    font-size: 0.9rem;
}

/* Плавный переход для всех элементов */
* {
    transition: all 0.3s ease;
}
