/*:root {*/
/*    --primary-color: #6366f1;*/
/*    --secondary-color: #a855f7;*/
/*    --accent-color: #ec4899;*/
/*    --dark-color: #0a0a16;*/
/*    --darker-color: #050510;*/
/*    --light-color: #f8fafc;*/
/*    --text-color: #e2e8f0;*/
/*    --text-light-color: #94f3b8;*/
/*    --success-color: #10b981;*/
/*}*/
:root {
    --primary-color: #0a036b;    /* фиолетово-синий */
    --secondary-color: #312e81;  /* глубокий индиго */
    --accent-color: #189fb9;     /* небесно-голубой */
    --dark-color: #0a0a16;
    --darker-color: #050510;
    --light-color: #f1f5f9;
    --text-color: #e2e8f0;
    --text-light-color: #a5b4fc;
    --success-color: #22c55e;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

::selection {
    background: var(--accent-color);
    color: var(--light-color);
}

body {
    font-family: 'Roboto Light', sans-serif;
    background: var(--darker-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

a {
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
}


/*Loading animation*/
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background-color: var(--darker-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader-circle {
    position: relative;
    width: 200px;
    height: 200px;
}

.loader-text{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light-color);
    z-index: 2;
}

.circle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid transparent;
    border-top-color: var(--primary-color);
    animation: spin 1.5s linear infinite;
}

.circle:nth-child(2) {
    border-top-color: var(--secondary-color);
    animation-duration: 2s;
}

.circle:nth-child(3) {
    border-top-color: var(--accent-color);
    animation-duration: 2.5s;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/*Load inner*/
@keyframes square-animation {
    0% {
        left: 0;
        top: 0;
    }

    10.5% {
        left: 0;
        top: 0;
    }

    12.5% {
        left: 32px;
        top: 0;
    }

    23% {
        left: 32px;
        top: 0;
    }

    25% {
        left: 64px;
        top: 0;
    }

    35.5% {
        left: 64px;
        top: 0;
    }

    37.5% {
        left: 64px;
        top: 32px;
    }

    48% {
        left: 64px;
        top: 32px;
    }

    50% {
        left: 32px;
        top: 32px;
    }

    60.5% {
        left: 32px;
        top: 32px;
    }

    62.5% {
        left: 32px;
        top: 64px;
    }

    73% {
        left: 32px;
        top: 64px;
    }

    75% {
        left: 0;
        top: 64px;
    }

    85.5% {
        left: 0;
        top: 64px;
    }

    87.5% {
        left: 0;
        top: 32px;
    }

    98% {
        left: 0;
        top: 32px;
    }

    100% {
        left: 0;
        top: 0;
    }
}

.loader {
    position: relative;
    width: 0;
    height: 285px;
    transform: rotate(45deg);
}

.loader-square {
    position: absolute;
    top: 0;
    left: 0;
    width: 28px;
    height: 28px;
    margin: 2px;
    border-radius: 0;
    background-size: cover;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    animation: square-animation 10s ease-in-out infinite both;
}

.loader-square:nth-of-type(0) {
    animation-delay: 0s;
}

.loader-square:nth-of-type(1) {
    animation-delay: -1.4285714286s;
}

.loader-square:nth-of-type(2) {
    animation-delay: -2.8571428571s;
}

.loader-square:nth-of-type(3) {
    animation-delay: -4.2857142857s;
}

.loader-square:nth-of-type(4) {
    animation-delay: -5.7142857143s;
}

.loader-square:nth-of-type(5) {
    animation-delay: -7.1428571429s;
}

.loader-square:nth-of-type(6) {
    animation-delay: -8.5714285714s;
}

.loader-square:nth-of-type(7) {
    animation-delay: -10s;
}



/* Main layout */
.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

/*Floating elements*/
.floating-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    z-index: 1;
}

.shape-1 {
    background: var(--primary-color);
    width: 300px;
    height: 300px;
    top: 10%;
    left: -100px;
}

.shape-2 {
    background: var(--secondary-color);
    width: 400px;
    height: 400px;
    top: 60%;
    right: -150px;
}

.shape-3 {
    background: var(--accent-color);
    width: 250px;
    height: 250px;
    bottom: 10%;
    left: 10%;
}

.shape-4 {
    background: #4b2fdd;
    width: 170px;
    height: 170px;
    top: -6%;
    right: 30%;
}


/*Header section*/
.header {
    padding:  2rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(5, 5, 16, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    border-bottom: 1px solid var(--secondary-color);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--light-color);
    position: relative;
}

.logo span {
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 1px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    bottom: 5px;
    left: 0;
}
/* Кнопка бургер */
.mobile-menu-btn {
    display: none;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--dark-color, #333);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 1px;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--light-color);
    font-size: 1.5rem;
    cursor: pointer;
}



/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 8rem 0 5rem;
    overflow: hidden;
}

.hero-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.35;

    background-image: url('https://cdn.pixabay.com/photo/2017/01/31/13/40/shooting-star-2024127_1280.png');
    background-size: cover;
    background-position: center;
    filter: contrast(1.2) brightness(0.7);
}

.hero-container {
    display: flex;               /* Делаем флекс-контейнер */
    justify-content: space-between; /* Текст слева, картинка справа */
    align-items: center;         /* Выравнивание по вертикали */
    gap: 20px;
}

.header-container {
    display: grid;
    grid-template-columns: 6fr 6fr;
    gap: 2rem;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-greeting {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero-greeting::before {
    content: '';
    width: 60px;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero-title .gradient-text {
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    color: var(--text-light-color);
}


.hero-visual {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-visual-inner {
    position: relative;
    width: 400px;
    height: 400px;
    transform-style: preserve-3d;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.hero-visual-frame {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
    transition: all 0.5s ease;
}

.hero-visual-frame:nth-child(1) {
    transform: translateZ(20px);
linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgb(9 18 135 / 10%))
    backdrop-filter: blur(10px);
}

.hero-visual-frame:nth-child(2) {
    transform: translateZ(10px) scale(0.9);
    border-color: rgba(168, 85, 247, 0.3);
}

.hero-visual-frame:nth-child(3) {
    transform: translateZ(0) scale(0.8);
    border-color: rgba(236, 72, 153, 0.3);
}

.hero-stats {
    position: absolute;
    background: rgba(10, 10, 22, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
}

.hero-stats:hover {
    transform: translateY(-5px);
}

.hero-stats.stats-1 {
    top: 20%;
    left: -20%;
}

.hero-stats.stats-2 {
    bottom: 20%;
    right: -15%;
}

.hero-stats.stats-3 {
    bottom: -10%;
    left: 10%;
}

.hero-stats-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.hero-stats-text {
    display: flex;
    flex-direction: column;
}

.hero-stats-label {
    color: var(--text-light-color);
    font-size: 0.8rem;
}

.hero-stats-value {
    font-weight: 600;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    transform: translateY(-5px);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    z-index: -1;
    transition: all 0.5s ease;
}

.btn-primary {
    color: white;
}

.btn-primary::before {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-color);
}

.btn-outline::before {
    opacity: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.btn-outline:hover {
    color: white;
    border-color: transparent;
}

.btn-outline:hover::before {
    opacity: 1;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn i {
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: translateX(5px);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light-color);
    font-size: 0.9rem;
}

.scroll-indicator-line {
    width: 2px;
    height: 60px;
    background: linear-gradient(to bottom, var(--primary-color), transparent);
    position: relative;
}

.scroll-indicator-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-color);
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0% {
        top: 0;
        opacity: 1;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}

/* About Section */
.section {
    padding: 8rem 0;
    position: relative;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    display: inline-block;
}

.section-title-container {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    color: var(--text-light-color);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-visual {
    position: relative;
}

.about-image-container {
    position: relative;
    width: 100%;
    padding-top: 120%;
    overflow: hidden;
    border-radius: 30px;
    transform: rotate(3deg);
}

.about-image-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0.1;
    border-radius: 30px;
    transform: rotate(6deg) scale(0.95);
}

.about-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
    filter: grayscale(30%) contrast(1.1);
}

.about-decorations {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

.about-decoration {
    position: absolute;
    border-radius: 50%;
    background: var(--primary-color);
    filter: blur(30px);
    opacity: 0.1;
}

.about-decoration:nth-child(1) {
    width: 150px;
    height: 150px;
    top: -20px;
    left: -50px;
    background: var(--primary-color);
}

.about-decoration:nth-child(2) {
    width: 200px;
    height: 200px;
    bottom: -30px;
    right: -60px;
    background: var(--secondary-color);
}

.about-content {
    position: relative;
}

.about-tagline {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.about-tagline::before {
    content: '';
    width: 60px;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

.about-heading {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.about-text {
    color: var(--text-light-color);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.skill-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.skill-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.skill-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.skill-name {
    font-weight: 500;
    font-size: 0.9rem;
}

/* Projects Section */
.projects {
    position: relative;
    background: var(--dark-color);
    border-top: 1px solid var(--secondary-color);
    border-bottom: 1px solid var(--secondary-color);
    z-index: 1;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    position: relative;
    z-index: 2;
}

.project-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: var(--darker-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.5s ease;
    height: 450px;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transform: translateY(50px);
    opacity: 0;
}

.project-card.animated {
    transform: translateY(0);
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.project-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
    filter: grayscale(30%);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
    filter: grayscale(0%);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(5, 5, 16, 0.9));
    opacity: 0.7;
    transition: all 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 0.5;
}

.project-tags {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.project-tag {
    background: rgba(10, 10, 22, 0.8);
    backdrop-filter: blur(5px);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.7rem;
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--light-color);
    transition: all 0.3s ease;
}

.project-card:hover .project-title {
    color: var(--primary-color);
}

.project-description {
    color: var(--text-light-color);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex: 1;
}

.project-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-link:hover {
    color: var(--primary-color);
}

.project-link i {
    transition: transform 0.3s ease;
}

.project-link:hover i {
    transform: translateX(5px);
}

/* Experience Section */
.experience {
    position: relative;
}

.timeline {
    position: relative;
    margin: 0 auto;
    max-width: 1000px;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    padding: 1rem 0;
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.timeline-content {
    position: relative;
    width: 45%;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
    opacity: 0;
    transform: translateY(50px);
}

.timeline-content.animated {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: auto;
    transform: translateX(-50px);
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
    transform: translateX(50px);
}

.timeline-item:nth-child(odd) .timeline-content.animated,
.timeline-item:nth-child(even) .timeline-content.animated {
    transform: translateX(0);
}

.timeline-date {
    position: absolute;
    top: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 0.5rem 1rem;
    font-weight: 500;
    font-size: 0.9rem;
    margin-left: 3rem;
    margin-right: 3rem;
    margin-top: -1.5rem;
}

.timeline-item:nth-child(odd) .timeline-date {
    right: -15%;
}

.timeline-item:nth-child(even) .timeline-date {
    left: -15%;
}

.timeline-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--light-color);
}

.timeline-subtitle {
    color: var(--light-color);
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.timeline-description {
    color: var(--text-light-color);
    font-size: 0.95rem;
    line-height: 1.6;
}

.timeline-icon {
    position: absolute;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    z-index: 2;
}

/* Achievements Section */
.achievements {
    background: var(--dark-color);
    position: relative;
    border-top: 1px solid var(--secondary-color);
    border-bottom: 1px solid var(--secondary-color);
}

.achievements-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.achievement-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transform: translateY(50px);
    opacity: 0;
}

.achievement-card.animated {
    transform: translateY(0);
    opacity: 1;
}

.achievement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(236, 72, 153, 0.05));
    z-index: -1;
    opacity: 0;
    transition: all 0.3s ease;
}

.achievement-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

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

.achievement-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.achievement-card:hover .achievement-icon {
    transform: rotateY(180deg);
}

.achievement-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--light-color);
}

.achievement-description {
    color: var(--text-light-color);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Contact Section */
.contact {
    position: relative;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-info {
    position: relative;
}

.contact-heading {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.contact-text {
    color: var(--text-light-color);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-link:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.contact-link-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.contact-link-text {
    display: flex;
    flex-direction: column;
}

.contact-link-label {
    font-size: 0.9rem;
    color: var(--text-light-color);
}

.contact-link-value {
    font-weight: 500;
    font-size: 1.1rem;
}

.contact-form {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light-color);
}

.form-control {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-color);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
.footer {
    background: var(--darker-color);
    border-top: 1px solid var(--secondary-color);
    padding: 5rem 0 2rem;
    position: relative;
    z-index: 1;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
}

.footer-brand {
    margin-bottom: 2rem;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--light-color);
    margin-bottom: 1rem;
    display: inline-block;
}

.footer-text {
    color: var(--text-light-color);
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.8;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-heading {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--light-color);
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-link {
    color: var(--text-light-color);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-link:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: var(--text-light-color);
    font-size: 0.9rem;
}

/* Media Queries */
@media (min-width: 1201px) and (max-width: 1350px) {

    .container {
        max-width: 1200px;
        background: #22c55e;
        margin: 0 auto;
    }

    .header {
        max-width: 90%;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .logo::after {
        width: 100px; /* или даже width: 50%; */
    }


    .hero-title {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .hero-visual-inner {
        width: 350px;
        height: 350px;
    }

    .about-image {
        max-width: 90%;
        max-height: 90%;
    }





    .projects-container {
        justify-items: center;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 2rem;
    }
    .project-card {
        max-width: 90%;
        max-height: 90%;
    }

    .project-card.animated {
        max-width: 90%;
        max-height: 90%;
    }

    .project-tag {
        font-size: 0.5rem;
    }



    .achievements-container {
        display: grid;
        justify-content: center;
        justify-items: center;
        max-width: 830px;
        padding-left: 115px;
    }

    .timeline {
        max-width: 900px;
    }


    .contact-container {
        justify-items: center;
        grid-template-columns: 0.9fr 1fr;
        gap: 2.5rem;
    }

    .contact-info {
        height: 80%;
        width: 80%;
    }



    .contact-form {
        height: 95%;
        width: 80%;
    }


    .footer-container {
        max-height: 200px;
    }


    .section-title {
        font-size: 2.5rem;
    }
}

@media (min-width: 1025px) and (max-width: 1200px) {
    .shape-1, .shape-2, .shape-3, .shape-4 {
        display: none;
    }
    .container {
        /*background: brown;*/
        max-width: 1000px;
        margin: 0 auto;
    }

    /*Header*/
    /*.container.header-container {*/
    /*    grid-template-columns: 4.5fr 6fr;*/
    /*}*/

    /*.nav-links {*/
    /*    gap: 2rem;*/
    /*}*/

    .header {
        padding: 1.5rem 0; /* уменьшаем верхний и нижний отступ */
    }

    .container.header-container {
        grid-template-columns: 4.5fr 6fr;
    }

    .logo {
        font-size: 1.5rem; /* чуть меньше логотип */
    }

    .nav-links {
        gap: 1.5rem; /* уменьшаем расстояние между пунктами меню */
    }

    .nav-link {
        font-size: 0.9rem; /* уменьшаем размер текста */
    }

    /*Hero*/
    .hero-container {
        justify-content: center;  /* центрируем */
        gap: 3rem;                /* можно увеличить зазор */
    }

    .hero-content {
        max-width: 500px;         /* ограничиваем ширину текста, чтобы не растягивался */
        text-align: left;         /* оставляем выравнивание по левому краю */
    }

    .hero-visual-inner {
        width: 320px;             /* уменьшаем фото */
        height: 320px;
    }
    /*About*/
    /*Projects*/
    /*Education*/
    /*Achievements*/
    /*Contact*/
    /*Footer*/
}

@media (min-width: 769px) and (max-width: 1024px) {

    .shape-1, .shape-2, .shape-3, .shape-4 {
        display: none;
    }

    .container {
        max-width: 800px;
        margin: 0 auto;
        /*background: red;*/
    }

    /*Header*/
    .header {
        padding: 1.2rem 0; /* еще компактнее */
    }

    .container.header-container {
        grid-template-columns: 3fr 6fr;
    }


    .logo {
        font-size: 1.3rem; /* уменьшаем логотип */
    }

    .nav-links {
        gap: 1.2rem; /* уменьшаем расстояние между ссылками */
    }

    .nav-link {
        font-size: 0.85rem; /* текст пунктов меню меньше */
    }

    .logo::after {
        width: 125px;
    }


    /*Hero*/
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.4rem;
    }

    .hero-description {
        font-size: 1rem;
        max-width: 500px;
    }

    .hero-visual-inner {
        width: 300px;
        height: 300px;
    }


    /*About*/
    .section {
        padding: 6rem 0; /* меньше вертикальные отступы */
    }

    .section-title {
        font-size: 2.2rem; /* уменьшили заголовок */
    }

    .section-subtitle {
        font-size: 1rem;
        max-width: 500px;
    }

    .about-container {
        grid-template-columns: 1fr; /* одна колонка */
        gap: 3rem;
        text-align: center;
    }

    .about-visual {
        max-width: 500px;
        margin: 0 auto; /* центрируем картинку */
    }

    .about-heading {
        font-size: 2rem;
    }

    .about-text {
        font-size: 1rem;
        line-height: 1.6;
    }

    .skills-container {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); /* чуть компактнее */
        gap: 0.8rem;
    }

    .skill-item {
        padding: 0.8rem;
    }

    .skill-name {
        font-size: 0.85rem;
    }


    /*Projects*/
    .projects-container {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* карточки компактнее */
        gap: 2rem;
    }

    .project-card {
        height: 400px; /* ниже по высоте */
    }

    .project-image {
        height: 180px; /* картинка поменьше */
    }

    .project-title {
        font-size: 1.3rem;
    }

    .project-description {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }

    .project-links {
        flex-direction: column; /* ссылки в столбик */
        align-items: flex-start;
        gap: 0.5rem;
    }

    .project-link {
        font-size: 0.85rem;
    }


    /*Experience*/
    .timeline::before {
        left: 40px;
    }

    .timeline-content {
        width: calc(100% - 80px);
        margin-left: 80px !important;
    }

    .timeline-date {
        top: -20px;
        left: -50px !important;
        right: auto !important;
    }

    .timeline-icon {
        left: 40px;
    }

    /*Contact*/
    .contact-container {
        grid-template-columns: 1fr; /* Сетка в один столбец */
        gap: 3rem;
    }

    .contact-heading {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .contact-text {
        font-size: 1rem;
        line-height: 1.6;
    }

    .contact-links {
        gap: 1rem;
        margin-top: 1.5rem;
        max-width: 330px;
    }

    .contact-link {
        padding: 0.8rem;
        gap: 0.8rem;
    }

    .contact-link-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .contact-link-value {
        font-size: 1rem;
    }

    .contact-form {
        padding: 2rem;
        border-radius: 16px;
    }

    .form-control {
        padding: 0.8rem;
        font-size: 0.95rem;
    }

    textarea.form-control {
        min-height: 120px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

}

@media (min-width: 481px) and (max-width: 768px) {

    .shape-1, .shape-2, .shape-3, .shape-4 {
        display: none;
    }
    .container {
        /*background: powderblue;*/
        max-width: 550px;
        margin: 0 auto;
    }

    /*Header*/
    .header {
        padding: 1.5rem 0; /* уменьшаем верхний и нижний отступ */
    }

    .container.header-container {
        margin: 0 auto;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        grid-template-columns: 12fr 6fr;
    }

    .logo {
        font-size: 1.5rem; /* чуть меньше логотип */
    }
    .logo::after {
        width: 125px;
    }

    /* Показываем кнопку бургер */
    .mobile-menu-btn {
        display: block;
    }

    /* Скрываем обычные ссылки */
    .nav-links {
        display: none;
        flex-direction: column;
        gap: 1.5rem;
        position: absolute;
        top: 100%;
        left: 0;
        width: 70%;
        background: rgba(5, 5, 16, 0.95);
        backdrop-filter: blur(10px);
        padding: 1rem 0;
        border-top: 1px solid var(--secondary-color);
    }

    /* Когда меню активно */
    .nav-links.active {
        display: flex;
    }

    .nav-link {
        padding: 0.5rem 1rem;
        text-align: center;
    }


    /*Hero*/
    .hero-container {
        justify-content: center;  /* центрируем */
        gap: 0;                /* можно увеличить зазор */
    }

    .hero-content {
        max-width: 500px;         /* ограничиваем ширину текста, чтобы не растягивался */
        text-align: left;         /* оставляем выравнивание по левому краю */
    }

    .hero-visual-inner {
        width: 250px;             /* уменьшаем фото */
        height: 250px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .btn {
        display: inline-block;
        gap: 0;
        font-size: 0.9rem;
    }

    /*About*/
    .section-title {
        font-size: 2.2rem; /* уменьшили заголовок */
    }

    .section-subtitle {
        font-size: 1rem;
        max-width: 500px;
    }

    .about-container {
        display: block;
        grid-template-columns: 1fr; /* одна колонка */
        gap: 3rem;
        text-align: center;
    }

    .about-visual {
        display: none;
        max-width: 500px;
        margin: 0 auto; /* центрируем картинку */
    }

    .about-heading {
        font-size: 2rem;
    }

    .about-text {
        font-size: 1rem;
        line-height: 1.6;
    }

    .skills-container {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); /* чуть компактнее */
        gap: 0.8rem;
    }

    .skill-item {
        padding: 0.8rem;
    }

    .skill-name {
        font-size: 0.85rem;
    }





    /*Projects*/
    .projects-container {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* карточки компактнее */
        gap: 2rem;
    }

    .project-card {
        height: 400px; /* ниже по высоте */
    }

    .project-image {
        height: 180px; /* картинка поменьше */
    }

    .project-title {
        font-size: 1.3rem;
    }

    .project-description {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }

    .project-links {
        flex-direction: column; /* ссылки в столбик */
        align-items: flex-start;
        gap: 0.5rem;
    }

    .project-link {
        font-size: 0.85rem;
    }


    /*Experience*/
    .timeline::before {
        left: 40px;
    }

    .timeline-content {
        width: calc(100% - 80px);
        margin-left: 80px !important;
    }

    .timeline-date {
        top: -20px;
        left: -50px !important;
        right: auto !important;
    }

    .timeline-icon {
        left: 40px;
    }


    .achievements-container {
        grid-template-columns: 1fr;
    }

    /*Contact*/
    .contact-container {
        grid-template-columns: 1fr; /* Сетка в один столбец */
        gap: 3rem;
    }

    .contact-heading {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .contact-text {
        font-size: 1rem;
        line-height: 1.6;
    }

    .contact-links {
        gap: 1rem;
        margin-top: 1.5rem;
        max-width: 330px;
    }

    .contact-link {
        padding: 0.8rem;
        gap: 0.8rem;
    }

    .contact-link-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .contact-link-value {
        font-size: 1rem;
    }

    .contact-form {
        padding: 2rem;
        border-radius: 16px;
    }

    .form-control {
        padding: 0.8rem;
        font-size: 0.95rem;
    }

    textarea.form-control {
        min-height: 120px;
    }



    /*Footer*/
    .footer-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-links-container {
        line-height: 10px;
    }
}

@media (min-width: 320px) and (max-width: 480px) {

    .shape-1, .shape-2, .shape-3, .shape-4 {
        display: none;
    }



    .container {
        /*background: violet;*/
        margin: 0 auto;
    }
    /*Header*/
    .header {
        padding: 1.3rem 0; /* уменьшаем верхний и нижний отступ */
        max-width: 100%;
        overflow-x: hidden;
    }

    .container.header-container {
        width: 340px;
        margin: 0 auto;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        grid-template-columns: 17fr 6fr;
    }

    .logo {
        font-size: 1.5rem; /* чуть меньше логотип */
        margin-left: 20px;
    }
    .logo::after {
        width: 125px;
    }

    /* Показываем кнопку бургер */
    .mobile-menu-btn {
        display: block;
    }

    .nav {
        margin-left: 30px;
    }

    /* Скрываем обычные ссылки */
    .nav-links {
        display: none;
        flex-direction: column;
        gap: 1.5rem;
        position: absolute;
        top: 100%;
        left: 0;
        width: 90%;
        background: rgba(5, 5, 16, 0.95);
        backdrop-filter: blur(10px);
        padding: 1rem 0;
        border-top: 1px solid var(--secondary-color);
        overflow-x: hidden;
    }

    /* Когда меню активно */
    .nav-links.active {
        display: flex;
    }

    .nav-link {
        padding: 0.5rem 1rem;
        text-align: center;
    }

    /*Hero*/
    .hero-container {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 20px;
        flex-direction: column-reverse;
        /* можно увеличить зазор */
    }

    .hero-content {
        max-width: 320px;
        text-align: center;         /* оставляем выравнивание по левому краю */
    }

    .hero-visual-inner {
        width: 250px;             /* уменьшаем фото */
        height: 250px;
    }

    .hero-greeting::before {
        content: '';
        width: 30px;
        height: 2px;
        background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    }

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

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .hero-description {
        font-size: 0.8rem;
        margin-bottom: 1.5rem;
    }

    .btn {
        display: inline-block;
        gap: 0;
        font-size: 0.7rem;
        padding: 0.6rem 1.4rem;
    }

    .social-links {
        display: flex;
        gap: 1rem;
        margin-top: 1.5rem;
        justify-content: center;
    }

    .scroll-indicator {
        bottom: -20px;
        font-size: 0.7rem;
    }


    /*About*/
    .section {
        padding: 3.5rem 0;
        position: relative;
    }

    .section-title {
        font-size: 2rem; /* уменьшили заголовок */
    }

    .section-subtitle {
        font-size: 0.9rem;
        max-width: 400px;
    }

    .about-container {
        display: block;
        grid-template-columns: 1fr; /* одна колонка */
        gap: 3rem;
        text-align: center;
    }

    .about-tagline::before {
        content: '';
        width: 20px;
        height: 2px;
        background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    }

    .about-visual {
        display: none;
        max-width: 500px;
        margin: 0 auto; /* центрируем картинку */
    }

    .about-heading {
        font-size: 1.8rem;
    }

    .about-text {
        font-size: 0.8rem;
        line-height: 1.6;
    }

    .skills-container {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); /* чуть компактнее */
        gap: 0.7rem;
    }

    .skill-item {
        padding: 0.7rem;
    }

    .skill-name {
        font-size: 0.75rem;
    }

    /*Projects*/
    .projects-container {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* карточки компактнее */
        gap: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }
    .section-subtitle {
        font-size: 0.8rem;
        max-width: 300px;
    }
    .project-card {
        height: 400px; /* ниже по высоте */
    }

    .project-image {
        height: 180px; /* картинка поменьше */
    }

    .project-tag {
        background: rgba(10, 10, 22, 0.8);
        backdrop-filter: blur(5px);
        padding: 0.1rem 0.1rem;
        border-radius: 50px;
        font-size: 0.6rem;
        color: var(--text-color);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .project-title {
        font-size: 1.3rem;
    }

    .project-description {
        font-size: 0.8rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }

    .project-links {
        flex-direction: row; /* ссылки в столбик */
        align-items: flex-start;
        gap: 0.5rem;
    }

    .project-link {
        font-size: 0.85rem;
    }


    /*Experience*/
    .timeline::before {
        left: 40px;
    }

    .timeline-content {
        width: calc(100% - 80px);
        margin-left: 80px !important;
        padding: 1.6rem;
    }

    .timeline-date {
        top: -20px;
        left: -50px !important;
        right: auto !important;
    }

    .timeline-title {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
        color: var(--light-color);
    }

    .timeline-subtitle {
        color: var(--light-color);
        font-size: 0.9rem;
        margin-bottom: 1rem;
        font-weight: 500;
    }

    .timeline-description {
        color: var(--text-light-color);
        font-size: 0.75rem;
        line-height: 1.6;
    }

    .timeline-icon {
        left: 40px;
    }


    .achievements-container {
        grid-template-columns: 1fr;
    }


    /*Contact*/

    .section-title {
        font-size: 1.7rem;
    }
    .section-subtitle {
        font-size: 0.7rem;
        max-width: 300px;
    }

    .contact-container {
        grid-template-columns: 1fr; /* Сетка в один столбец */
        gap: 3rem;
    }

    .contact-heading {
        font-size: 1.8rem;
        margin-bottom: 1rem;
        display: inline-block;
        text-align: center;
    }

    .contact-text {
        font-size: .7rem;
        line-height: 1.6;
        display: inline-block;
        text-align: center;
    }

    .contact-links {
        gap: 1rem;
        margin-top: 1.5rem;
        max-width: 330px;
    }

    .contact-link {
        padding: 0.8rem;
        gap: 0.8rem;
    }

    .contact-link-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .contact-link-value {
        font-size: 1rem;
    }

    .contact-form {
        padding: 2rem;
        border-radius: 16px;
    }

    .form-control {
        padding: 0.8rem;
        font-size: 0.95rem;
    }

    textarea.form-control {
        min-height: 120px;
    }

    /*Footer*/
    .footer-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-links-container {
        line-height: 10px;
    }
}




















