:root {
    --black: #000000;
    --dark: #0a0a0a;
    --dark-gray: #1a1a1a;
    --gray: #2a2a2a;
    --light-gray: #7a7a7a;
    --light: #e8e8e8;
    --white: #ffffff;
    --accent: #ffffff;
    --primary: #ffffff;
    --gold: #d4af37;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--black);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 120px 0;
    position: relative;
}

h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--white);
}

h1 {
    font-size: 4.5rem;
    margin-bottom: 20px;
    font-weight: 800;
    letter-spacing: -1px;
}

h2 {
    font-size: 3.5rem;
    margin-bottom: 80px;
    text-align: center;
    position: relative;
    font-weight: 700;
}

h2:after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--light-gray);
    line-height: 1.7;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 36px;
    background-color: transparent;
    color: var(--white);
    border-radius: 0;
    font-weight: 500;
    transition: all 0.4s;
    border: 1px solid var(--gold);
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
    transition: all 0.6s;
    z-index: -1;
}

.btn:hover:before {
    left: 100%;
}

.btn:hover {
    color: var(--gold);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.btn-gold {
    background-color: var(--gold);
    color: var(--black);
    border: 1px solid var(--gold);
    font-weight: 600;
}

.btn-gold:hover {
    background-color: transparent;
    color: var(--gold);
}

.highlight {
    color: var(--gold);
    font-weight: 600;
}

.accent {
    color: var(--white);
    position: relative;
}

.accent:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--gold);
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 25px 0;
    transition: all 0.4s;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

header.scrolled {
    padding: 15px 0;
    background: rgba(0, 0, 0, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 2px;
    position: relative;
}

.logo:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--gold);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;

    color: var(--light-gray);
    font-weight: 400;
    position: relative;
    transition: all 0.3s;
    font-size: 0.95rem;
    letter-spacing: 1px;
}

.nav-links a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s;
}

.nav-links a:hover {
    color: var(--white);
}

.nav-links a:hover:after {
    width: 100%;
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--white);
}

.hero {
    padding: 200px 0 350px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--black) 0%, var(--dark) 100%);
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
            radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
            radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.03) 0%, transparent 50%);
    z-index: -1;
}

.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 2;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 50px;
    max-width: 700px;
    color: var(--light-gray);
}

.hero-btns {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.floating-text {
    position: absolute;
    font-size: 12rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.02);
    z-index: 1;
    user-select: none;
}

.floating-text-1 {
    top: 10%;
    right: 5%;
    animation: float 15s infinite linear;
}

.floating-text-2 {
    bottom: 10%;
    left: 5%;
    animation: float 18s infinite linear reverse;
}

@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
    100% { transform: translateY(0) rotate(0deg); }
}


.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text {
    padding-right: 20px;
}

.about-image {
    position: relative;
    text-align: center;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: var(--dark-gray);
}

.image-container:before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--gray);
    z-index: -1;
    transition: all 0.4s;
}

.image-container:hover:before {
    top: 15px;
    left: 15px;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.skill-tag {
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 400;
    transition: all 0.3s;
    border: 1px solid var(--gray);
    color: var(--light-gray);
    position: relative;
    overflow: hidden;
}

.skill-tag:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gold);
    transition: all 0.3s;
    z-index: -1;
}

.skill-tag:hover {
    color: var(--black);
}

.skill-tag:hover:before {
    left: 0;
}

.experience {
    position: relative;
    background: var(--dark);
}

.experience:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
            radial-gradient(circle at 30% 70%, rgba(212, 175, 55, 0.03) 0%, transparent 50%);
    z-index: 0;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    z-index: 1;
}

.timeline:before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--gold), transparent);
    transform: translateX(-50%);
}

.timeline-item {
    padding: 40px;
    position: relative;
    width: 50%;
    margin-bottom: 50px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 70px;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 70px;
}

.timeline-content {
    background: var(--dark-gray);
    padding: 40px;
    border: 1px solid var(--gray);
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.timeline-content:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 0;
    background: var(--gold);
    transition: all 0.6s;
}

.timeline-content:hover:before {
    height: 100%;
}

.timeline-content:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.timeline-date {
    font-weight: 500;
    color: var(--gold);
    margin-bottom: 10px;
    font-size: 1rem;
    letter-spacing: 1px;
}

.timeline-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.achievement {
    padding: 20px;
    margin-top: 20px;
    border-left: 2px solid var(--gold);
    background: rgba(212, 175, 55, 0.05);
}

.timeline-item:before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--gold);
    border-radius: 50%;
    top: 50px;
    z-index: 2;
}

.timeline-item:nth-child(odd):before {
    right: -8px;
}

.timeline-item:nth-child(even):before {
    left: -8px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 40px;
}

.project-card {
    background: var(--dark-gray);
    border: 1px solid var(--gray);
    transition: all 0.4s;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.project-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: all 0.4s;
    z-index: 1;
}

.project-card:hover:before {
    opacity: 1;
}

.project-card:hover {
    border-color: var(--gold);
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.project-image {
    height: 240px;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-gray);
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
    border-bottom: 1px solid var(--gray);
    overflow: hidden;
}

.project-image:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: all 0.4s;
}

.project-card:hover .project-image:after {
    opacity: 1;
}

.project-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.project-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 20px;
}

.project-tag {
    background: var(--black);
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--light-gray);
    border: 1px solid var(--gray);
    transition: all 0.3s;
}

.project-tag:hover {
    color: var(--gold);
    border-color: var(--gold);
}

.education {
    background: var(--dark);
    position: relative;
}

.education:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
            radial-gradient(circle at 70% 30%, rgba(212, 175, 55, 0.03) 0%, transparent 50%);
    z-index: 0;
}

.education-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.education-item {
    background: var(--dark-gray);
    padding: 40px;
    border: 1px solid var(--gray);
    transition: all 0.4s;
}

.education-item:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
}

.education-date {
    color: var(--gold);
    font-weight: 500;
    margin-bottom: 10px;
}

.skills-section {
    position: relative;
}

.skills-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.skill-category {
    background: var(--dark-gray);
    padding: 30px;
    border: 1px solid var(--gray);
    transition: all 0.4s;
}

.skill-category:hover {
    border-color: var(--gold);
}

.skill-category h3 {
    color: var(--gold);
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.languages {
    background: var(--dark);
}

.languages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
}

.language-item {
    background: var(--dark-gray);
    padding: 30px;
    border: 1px solid var(--gray);
    text-align: center;
    transition: all 0.4s;
}

.language-item:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
}

.language-name {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--white);
}

.language-level {
    color: var(--gold);
    font-weight: 500;
}

.contact {
    position: relative;
}

.contact:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
            radial-gradient(circle at 70% 30%, rgba(212, 175, 55, 0.03) 0%, transparent 50%);
    z-index: 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    position: relative;
    z-index: 1;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: var(--dark-gray);
    border: 1px solid var(--gray);
    transition: all 0.3s;
}

.contact-item:hover {
    border-color: var(--gold);
    transform: translateX(10px);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--dark);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    border: 1px solid var(--gray);
    transition: all 0.3s;
}

.contact-item:hover .contact-icon {
    background: var(--gold);
    color: var(--black);
}

.form-group {
    margin-bottom: 30px;
    position: relative;
}

.form-control {
    width: 100%;
    padding: 18px;
    background: var(--dark-gray);
    border: 1px solid var(--gray);
    font-size: 1rem;
    transition: all 0.3s;
    color: var(--white);
}

.form-control:focus {
    border-color: var(--gold);
    outline: none;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

textarea.form-control {
    min-height: 180px;
    resize: vertical;
}

footer {
    background: var(--black);
    padding: 80px 0 30px;
    border-top: 1px solid var(--gray);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-link {
    width: 50px;
    height: 50px;
    background: var(--dark-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-size: 1.2rem;
    border: 1px solid var(--gray);
    color: var(--light-gray);
    position: relative;
    overflow: hidden;
}

.social-link:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gold);
    transition: all 0.3s;
    z-index: -1;
}

.social-link:hover {
    color: var(--gold);
}

.social-link:hover:before {
    left: 0;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--gray);
    font-size: 0.9rem;
    color: var(--light-gray);
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.particle {
    position: absolute;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0.3;
}

@media (max-width: 1100px) {
    h1 {
        font-size: 3.8rem;
    }

    h2 {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    h1 {
        font-size: 3.2rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    .about-content {
        gap: 50px;
    }

    .contact-content {
        gap: 50px;
    }

    .education-content {
        grid-template-columns: 1fr;
    }

    .floating-text {
        font-size: 8rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--black);
        flex-direction: column;
        padding: 30px;
        gap: 20px;
        border-top: 1px solid var(--gray);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-text {
        padding-right: 0;
    }

    .timeline:before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 60px;
        padding-right: 20px;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item:before {
        left: 12px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .hero-btns {
        flex-direction: column;
        align-items: flex-start;
    }

    .floating-text {
        display: none;
    }
}

@media (max-width: 576px) {
    section {
        padding: 100px 0;
    }

    h1 {
        font-size: 2.4rem;
    }

    h2 {
        font-size: 2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .hero p {
        font-size: 1.2rem;
    }
}
/* Popup success message */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  z-index: 2000;
}

.popup.active {
  opacity: 1;
  visibility: visible;
}

.popup-content {
  background: var(--dark-gray);
  border: 1px solid var(--gold);
  padding: 40px 50px;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
  animation: popupIn 0.5s ease forwards;
}

.popup-content i {
  font-size: 3rem;
  color: var(--gold);
  margin-bottom: 20px;
}

.popup-content h3 {
  color: var(--white);
  margin-bottom: 10px;
  font-size: 1.8rem;
  letter-spacing: 1px;
}

.popup-content p {
  color: var(--light-gray);
  font-size: 1rem;
}

@keyframes popupIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
/* Scroll To Top Button */
#scrollToTop {
  position: fixed;
  bottom: 35px;
  right: 35px;
  width: 50px;
  height: 50px;
  background-color: var(--gold);
  color: var(--dark-gray);
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.3s ease;
  z-index: 999;
}

#scrollToTop:hover {
  transform: translateY(-3px);
  background-color: #f1c75f;
}

#scrollToTop.show {
  opacity: 1;
  visibility: visible;
}
/* Recommendation section */
.recommendation {
  margin-top: 15px;
  border-top: 1px solid rgba(212, 175, 55, 0.3);
  padding-top: 12px;
}
.recommendation p {
  color: var(--light-gray);
  margin-bottom: 10px;
}
.gold-btn {
  background-color: var(--gold);
  color: var(--dark-gray);
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.2s ease;
}
.gold-btn:hover {
  background-color: #f1c75f;
  transform: translateY(-2px);
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
}
.modal-content {
  margin: auto;
  background-color: #111;
  padding: 20px;
  border: 1px solid var(--gold);
  width: 80%;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}
.close-btn {
  color: var(--gold);
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}
.close-btn:hover {
  color: #fff;
}
.accensss {
  color: #d4af37;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 2px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  padding-bottom: 2px;
}
.hackathon-slider {
  position: relative;
  width: 100%;
  height: 320px; /* можно 280–420 — смотри по вкусу */
  overflow: hidden;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
}

.hackathon-slider img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* вот эта магия выравнивает */
  opacity: 0;
  transition: opacity 1.3s ease;
}

.hackathon-slider img.active {
  opacity: 1;
  position: absolute;
}
