/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    scroll-behavior: smooth;
}
body {
      cursor: url('path-to-image.png'), auto;
}
body {
    background: linear-gradient(135deg, #000000 0%, #050e38 20%, #60138d, #2b1a52 60%, #327c94 , #75f0e5 100%);
    color: #fff;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    
}

/*======Navigation=======*/
nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.nav-btn, .active{
    padding: 10px 10px;
    background: linear-gradient(135deg, #000000 0%, #050e38 20%, #60138d, #2b1a52 60%, #327c94 , #75f0e5 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: transform 0.3s;
    position: relative;
}
.nav-btn:hover, .active{
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(35, 30, 44, 0.3);
}

/* ===== STAR BACKGROUND ===== */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.star {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: twinkle 8s infinite;
}

.star:nth-child(2n) {
    animation-delay: 1s;
    background-color: rgba(255, 255, 255, 0.6);
}

.star:nth-child(3n) {
    animation-delay: 2s;
    background-color: rgba(255, 255, 255, 0.9);
}

@keyframes twinkle {
    0%, 100% { 
        opacity: 0.3; 
        transform: scale(1);
    }
    50% { 
        opacity: 1; 
        transform: scale(1.2);
    }
}

/* ===== MOON ===== */
.moon {
    position: fixed;
    top: 10%;
    right: 10%;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle at 30% 30%, #f8f8f8, #e0e0e0);
    border-radius: 50%;
    box-shadow: 0 0 60px rgba(255, 255, 255, 0.3);
    z-index: -1;
    animation: moonGlow 4s ease-in-out infinite alternate;
}

@keyframes moonGlow {
    from {
        box-shadow: 0 0 60px rgba(255, 255, 255, 0.3);
    }
    to {
        box-shadow: 0 0 80px rgba(255, 255, 255, 0.5);
    }
}

/* ===== COUNTDOWN TIMER ===== */
.countdown-section {
    text-align: center;
    padding: 80px 20px;
    margin: 60px 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.countdown-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.8), 
        transparent);
}

.countdown-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #ffffff;
    font-weight: 300;
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.countdown-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
}

.countdown-number {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
    position: relative;
    height: 120px;
    perspective: 1000px;
}

.countdown-number span {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    font-weight: 700;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    width: 70px;
    height: 100px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Анимированные градиенты для цифр */
.countdown-number span::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    border-radius: 15px 15px 0 0;
}

/* Эффект стекла */
.countdown-number span::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        transparent 30%,
        rgba(255, 255, 255, 0.05) 50%,
        transparent 70%
    );
    border-radius: 15px;
}

/* Анимация смены цифр */
.countdown-number span.flip {
    animation: flipNumber 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes flipNumber {
    0% {
        transform: rotateX(0deg);
        opacity: 1;
    }
    50% {
        transform: rotateX(90deg);
        opacity: 0.5;
    }
    100% {
        transform: rotateX(0deg);
        opacity: 1;
    }
}

/* Эффект свечения при изменении */
.countdown-number span.changed {
    animation: glowChange 0.8s ease;
}

@keyframes glowChange {
    0%, 100% {
        box-shadow: 
            0 10px 30px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 
            0 10px 40px rgba(255, 255, 255, 0.4),
            0 0 30px rgba(255, 255, 255, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
        background: rgba(255, 255, 255, 0.15);
    }
}

.countdown-label {
    font-size: 1.2rem;
    color: #e6e6ff;
    opacity: 0.9;
    letter-spacing: 1px;
    margin-top: 10px;
    text-transform: uppercase;
    font-weight: 300;
}

.countdown-separator {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
    margin: 0 5px;
    position: relative;
    top: -20px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.new-year-message {
    font-size: 2rem;
    color: white;
    margin-top: 30px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInMessage 2s ease 1s forwards;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

@keyframes fadeInMessage {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Эффект конфетти */
.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    opacity: 0;
    pointer-events: none;
}

/* Адаптивность */
@media (max-width: 968px) {
    .countdown-title {
        font-size: 2rem;
    }
    
    .countdown-number span {
        font-size: 4rem;
        width: 60px;
        height: 85px;
    }
    
    .countdown-separator {
        font-size: 3rem;
    }
    
    .new-year-message {
        font-size: 1.5rem;
    }
    
    .countdown-unit {
        min-width: 80px;
    }
}

@media (max-width: 768px) {
    .countdown-container {
        gap: 15px;
    }
    
    .countdown-number span {
        font-size: 3rem;
        width: 50px;
        height: 70px;
    }
    
    .countdown-separator {
        font-size: 2.5rem;
        top: -15px;
    }
    
    .countdown-label {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .countdown-title {
        font-size: 1.5rem;
    }
    
    .countdown-container {
        gap: 10px;
    }
    
    .countdown-number {
        height: 80px;
    }
    
    .countdown-number span {
        font-size: 2.2rem;
        width: 35px;
        height: 50px;
        border-radius: 10px;
    }
    
    .countdown-separator {
        font-size: 1.8rem;
        top: -10px;
    }
    
    .new-year-message {
        font-size: 1.2rem;
    }
}

/* ===== MOON ===== */
.moon {
    position: fixed;
    top: 10%;
    right: 10%;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle at 30% 30%, #f8f8f8, #e0e0e0);
    border-radius: 50%;
    box-shadow: 0 0 60px rgba(255, 255, 255, 0.3);
    z-index: -1;
    animation: moonGlow 4s ease-in-out infinite alternate;
}

@keyframes moonGlow {
    from {
        box-shadow: 0 0 60px rgba(255, 255, 255, 0.3);
    }
    to {
        box-shadow: 0 0 80px rgba(255, 255, 255, 0.5);
    }
}

/* ===== LAYOUT ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ===== HEADER ===== */
.header {
    text-align: center;
    padding: 100px 20px 80px;
    margin-bottom: 40px;
    position: relative;
}

.header__title {
    font-size: 4rem;
    margin-bottom: 25px;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
    color: #ffffff;
    font-weight: 300;
    letter-spacing: 2px;
    position: relative;
    z-index: 2;
}

.header__subtitle {
    font-size: 1.3rem;
    color: #e6e6ff;
    opacity: 0.9;
    font-weight: 300;
    letter-spacing: 1px;
}
.header__subtitle1 {
    font-size: 0.7rem;
    color: #e6e6ff;
    opacity: 0.5;
    font-weight: 100;
    letter-spacing: 1px;
}

.header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: linear-gradient(to right, transparent, #ffffff, transparent);
}

/* ===== CONTENT BLOCKS ===== */
.blocks-container {
    display: flex;
    flex-direction: column;
    gap: 50px;
    margin-bottom: 80px;
}

.content-block {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.content-block:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.content-block__image {
    flex: 1;
    min-height: 400px;
    overflow: hidden;
    position: relative;
}

.content-block__image::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(45, 11, 94, 0.4), rgba(30, 60, 114, 0.4));
    mix-blend-mode: overlay;
}

.content-block__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
    filter: brightness(0.9) contrast(1.1);
}

.content-block:hover .content-block__img {
    transform: scale(1.08);
}

.content-block__text {
    flex: 1;
    padding: 60px 50px;
}

.content-block__title {
    font-size: 2.4rem;
    margin-bottom: 30px;
    color: #ffffff;
    font-weight: 400;
    position: relative;
    padding-bottom: 20px;
    letter-spacing: 1px;
}

.content-block__title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 70px;
    height: 2px;
    background: linear-gradient(to right, #ffffff, rgba(255, 255, 255, 0.5));
    border-radius: 2px;
}

.content-block__description {
    font-size: 1.2rem;
    color: #f0f0ff;
    line-height: 1.8;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* ===== MODIFIERS ===== */
.content-block--reverse {
    flex-direction: row-reverse;
}

/* ===== FOOTER ===== */
.footer {
    text-align: center;
    padding: 50px 20px;
    margin-top: 60px;
    color: #b8b8ff;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.footer__text {
    font-size: 1.1rem;
    opacity: 0.8;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 968px) {
    .header__title {
        font-size: 3.2rem;
    }
    
    .moon {
        width: 80px;
        height: 80px;
        top: 5%;
        right: 5%;
    }
    
    .content-block,
    .content-block--reverse {
        flex-direction: column;
    }
    
    .content-block__text {
        padding: 50px 40px;
    }
    
    .content-block__image {
        min-height: 350px;
    }
}

@media (max-width: 768px) {
    .header__title {
        font-size: 2.8rem;
    }
    
    .header__subtitle {
        font-size: 1.1rem;
    }
    
    .content-block__title {
        font-size: 2rem;
    }
    
    .content-block__description {
        font-size: 1.1rem;
    }
    
    .content-block__text {
        padding: 40px 30px;
    }
}

@media (max-width: 480px) {
    .header__title {
        font-size: 2.2rem;
    }
    
    .header {
        padding: 80px 20px 60px;
    }
    
    .content-block__text {
        padding: 35px 25px;
    }
    
    .container {
        padding: 15px;
    }
    
    .footer__text {
        font-size: 1rem;
    }
    
    .moon {
        width: 60px;
        height: 60px;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .stars,
    .snowflake,
    .moon {
        display: none;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .content-block {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
    
    .header__title,
    .content-block__title {
        color: black !important;
    }
}