* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Spline Sans', sans-serif;
    background-color: #212121;
    color: #FFFFFF;
    line-height: 1.6;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    position: relative;
}

/* Hero Section */
.hero {
    position: relative;
    height: 900px;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
                url('image.avif');
    background-size: cover;
    background-position: center;
    border-radius: 64px;
    overflow: hidden; /* чтобы скругление работало и фон не вылезал */
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.header {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    padding: 40px;
}

.logo {
    font-family: 'Spline Sans', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

/* Локация и погода - ПЕРЕРАБОТАННЫЙ БЛОК */
.location {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* прижимаем все к правому краю */
    font-family: 'Spline Sans', sans-serif;
    font-size: 16px;
    color: #D9D9D9;
    gap: 4px;
}

.location-text {
    text-align: right; /* текст прижат к правому краю */
    width: 100%;
}

.weather-info {
    display: flex;
    justify-content: flex-end; /* погода прижата к правому краю */
    align-items: center;
    gap: 4px;
    width: 100%;
}

#krasnodar-time,
#weather-temp,
#weather-icon {
    font-size: 16px;
}

/* Остальные стили остаются без изменений */
.hero-content {
    position: relative;
    z-index: 2;
    padding: 40px;
    height: calc(100% - 120px);
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* это обеспечивает прилипание к верху и низу */
}

.main-title {
    font-family: 'Bebas Neue', cursive;
    font-weight: 400;
    font-size: 196px;
    line-height: 100%;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    margin-top: 38px;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;

    background-image: url('mountains.avif');
    background-repeat: no-repeat;
    background-size: 150% 500%; /* шире и выше текста */
    background-position: center;
}


.info-card {
    background: rgba(53, 53, 53, 0.4);
    backdrop-filter: blur(12px);
    border-radius: 32px;
    padding: 16px;
    width: 400px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-header {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dot {
    width: 6px;
    height: 6px;
    background: #FFFFFF;
    border-radius: 50%;
}

.info-header span {
    font-size: 16px;
    line-height: 120%;
    letter-spacing: -0.02em;
}

.info-text {
    font-size: 16px;
    line-height: 120%;
    letter-spacing: -0.02em;
    font-feature-settings: 'ss02' on;
}

.explore-link {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.explore-link span {
    font-size: 16px;
    line-height: 120%;
    letter-spacing: -0.02em;
}

.arrow-down {
    width: 20px;
    height: 20px;
    transform: rotate(-90deg);
}

.social-links-top {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    margin-top: auto;
    padding-bottom: 40px;
}

.social-links-top a {
    font-size: 16px;
    line-height: 100%;
    text-align: right;
    letter-spacing: 0.01em;
    text-decoration: underline;
    font-feature-settings: 'salt' on;
    color: #FFFFFF;
}

/* Projects Section */
.projects {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.project-item {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.divider {
    width: 100%;
    height: 1px;
    background: #D9D9D9;
}

.project-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 24px;
}

.project-info {
    width: 550px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.project-title {
    font-family: 'Bebas Neue', cursive;
    font-weight: 400;
    font-size: 64px;
    line-height: 100%;
    letter-spacing: -0.02em;
    text-transform: uppercase;

    position: relative;
    overflow: hidden;          /* чтобы курсор не "выходил" за текст */
}


.large-title {
    font-size: 128px;
}

.project-description {
    font-size: 16px;
    line-height: 120%;
    letter-spacing: -0.02em;
    font-feature-settings: 'ss02' on;
}

.project-status2, .project-status {
    font-size: 16px;
    line-height: 19px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: #ffffff;
    transition: transform 0.2s ease;
    transform-origin: left; /* масштабируем от левого края */
}
.project-link:hover {
    transform: scale(0.95);
}




.project-status2 {
  display: inline-block;
  font-family: monospace;          /* чтобы квадраты ровно совпадали */
  color: transparent;               /* скрываем текст */
  position: relative;
  cursor: not-allowed;
}

.project-status2::before {
  content: "█████████████████████";  /* столько █, сколько символов примерно в тексте */
  position: absolute;
  left: 0;
  top: 0;
  color: #ffffff;                     /* спойлер */
}

.project-status2:hover {
  color: #ffffff;                      /* проявляем текст */
}

.project-status2:hover::before {
  content: "";                       /* скрываем спойлер при ховере */
}


.project-details {
    width: 302px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.project-contribution {
    font-size: 16px;
    line-height: 19px;
}

.project-role {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.role-label {
    font-size: 16px;
    line-height: 19px;
}

.role-name {
    font-size: 16px;
    line-height: 19px;
}

/* About Section */
.about {
    padding: 40px;
    margin-top: 40px;
}

.role-tag {
    font-size: 16px;
    line-height: 19px;
    margin-bottom: 16px;
}



.about-title {
    font-family: 'Bebas Neue', cursive;
    font-weight: 400;
    font-size: 128px;
    line-height: 100%;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.about-description {
    font-size: 32px;
    line-height: 120%;
    letter-spacing: -0.02em;
    font-feature-settings: 'ss02' on;
    max-width: 1014px;
    margin-bottom: 128px;
}

.contact-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.email-link {
    font-size: 16px;
    line-height: 19px;
    text-decoration: underline;
    color: #FFFFFF;
}

.social-links-bottom {
    display: flex;
    gap: 16px;
}

.social-links-bottom a {
    font-size: 16px;
    line-height: 100%;
    text-align: right;
    letter-spacing: 0.01em;
    text-decoration: underline;
    font-feature-settings: 'salt' on;
    color: #FFFFFF;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .main-title {
        font-size: 150px;
    }
    
    .project-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .project-info, .project-details {
        width: 100%;
    }
}

@media (max-width: 992px) {
    .main-title {
        font-size: 120px;
    }
    
    .about-title {
        font-size: 96px;
    }
    
    .about-description {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 16px;
    }
    
    .location {
        font-size: 14px;
        align-items: flex-start; /* на мобильных можно оставить слева для лучшего отображения */
    }

    .location-text {
        text-align: left;
    }

    .weather-info {
        justify-content: flex-start;
    }
    
    .main-title {
        font-size: 80px;
    }
    
    .info-card {
        width: 100%;
    }
    
    .social-links-top, .social-links-bottom {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .about-title {
        font-size: 64px;
    }
    
    .about-description {
        font-size: 24px;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 24px;
        align-items: flex-start;
    }
}

.gradient-border {
  position: relative;
  display: inline-block;
  padding: 24px 48px;
  background: #212121;
  color: white;
  font-family: sans-serif;
  font-size: 18px;
  border-radius: 12px; /* если нужны скругления */
  overflow: hidden;
}

/* сам градиент */
.gradient-border::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(90deg, black, white, black);
  background-size: 300% 300%;
  z-index: -1;
  animation: move-gradient 3s linear infinite;
}

/* маска для «прозрачного центра» */
.gradient-border::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  background: #212121; /* фон внутри */
  border-radius: 10px; /* чуть меньше чем у блока */
  z-index: -1;
}

@keyframes move-gradient {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

