/* ===== 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 {
    background: linear-gradient(135deg, #050a1c 0%, #1a0f3d 30%, #2d0b5e 70%, #1e3c72 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, #050a1c 0%, #1a0f3d 30%, #2d0b5e 70%, #1e3c72 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);
    }
}

/* ===== 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::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::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 2px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.6), transparent);
}

.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,
    .star,
    .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;
    }
}
