* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img, video, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

html, body {
    background-color: #0D0E15;
    overflow-x: hidden;
    max-width: 100vw;
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

.about-logo-svg {
    width: 100%;
    max-width: 1303px;
    height: auto;
    margin: 350px auto 40px;
    display: block;
}

.about-logo {
    display: none;
}

body {
    font-family: 'Manrope', sans-serif;
    background: url('/static/main_page.avif') no-repeat center center;
    background-size: cover;
    background-position: center;
    background-color: rgba(0, 0, 0, 0);
    min-height: 100vh;
    color: #FFFFFF;
    overflow-x: hidden;
}

/* Background Spheres */
.sphere {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.sphere-big {
    background: radial-gradient(50% 50% at 50% 50%, #FFFFFF 0%, #E8C9A8 100%);
    mix-blend-mode: overlay;
    opacity: 0.3;
    box-shadow: inset -20px -20px 40px rgba(212, 191, 160, 0.6), 
                inset -20px 0px 40px rgba(255, 255, 255, 0.4);
    filter: blur(75px);
}

.sphere-medium {
    background: radial-gradient(50% 50% at 50% 50%, rgba(255, 255, 255, 0.1) 0%, rgba(232, 201, 168, 0.4) 100%);
    mix-blend-mode: overlay;
    opacity: 0.1;
    box-shadow: inset -20px -20px 40px rgba(212, 191, 160, 0.6), 
                inset -20px 0px 40px rgba(255, 255, 255, 0.4);
    filter: blur(20px);
}

.sphere-small {
    background: rgba(255, 255, 255, 0.3);
    mix-blend-mode: overlay;
    box-shadow: inset -20px -20px 40px rgba(212, 191, 160, 0.6), 
                inset -20px 0px 40px rgba(255, 255, 255, 0.4);
    filter: blur(8px);
}

/* Decorative Lines */
.line {
    position: absolute;
    height: 1px;
    background: rgba(255, 255, 255, 0.04);
    pointer-events: none;
}

.desktop-only {
    display: block;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
}

/* Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 24px 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(13, 14, 21, 0.7);
}

.logo {
    font-family: 'Unbounded', sans-serif;
    font-weight: 400;
    font-size: 36px;
    line-height: 45px;
    letter-spacing: 0.06em;
    color: #FFFFFF;
    text-decoration: none;
}

.menu-btn {
    width: 40px;
    height: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: #FFFFFF;
}

.menu-btn-wrapper {
    position: relative;
}

.menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 20px;
    background: linear-gradient(135deg, rgba(20, 21, 30, 0.98) 0%, rgba(30, 31, 45, 0.98) 100%);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 16px;
    padding: 16px 0;
    min-width: 220px;
    flex-direction: column;
    gap: 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 229, 255, 0.1);
    
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px) scale(0.95);
    transform-origin: top right;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), 
                visibility 0.35s;
}

.menu-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.menu-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, rgba(20, 21, 30, 0.98) 0%, rgba(30, 31, 45, 0.98) 100%);
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    transform: rotate(45deg);
}

.menu-dropdown a {
    padding: 14px 28px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.02em;
    transition: all 0.25s ease;
    position: relative;
    display: flex;
    align-items: center;
}

.menu-dropdown a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, #00E5FF, #00B8D4);
    transition: height 0.25s ease;
    border-radius: 0 3px 3px 0;
}

.menu-dropdown a:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.05);
    padding-left: 32px;
}

.menu-dropdown a:hover::before {
    height: 60%;
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px 80px 60px;
    position: relative;
}

.hero-content {
    max-width: 1404px;
}

.hero-title {
    font-family: 'Unbounded', sans-serif;
    font-weight: 900;
    font-size: 90px;
    line-height: 1;
    letter-spacing: 0.02em;
    margin-bottom: 16px;
}

.hero-title-cyan::after {
    font-size: 90px;
    line-height: 1;
}

.hero-title-white {
    color: #FFFFFF;
}

.hero-title-cyan {
    color: #00E5FF;
    position: relative;
}

.hero-title-cyan::after {
    content: 'СТОРИТЕЛЛАНГ';
    position: absolute;
    left: 0;
    top: 0;
    color: #00E5FF;
    opacity: 0.3;
    filter: blur(40px);
    z-index: -1;
}

.hero-subtitle {
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    font-size: 24px;
    line-height: 33px;
    letter-spacing: 0.1em;
    color: #8E8E93;
}

/* Works Section */
.works {
    padding: 60px 80px;
    position: relative;
}

.work-card {
    position: relative;
    margin-bottom: 200px;
}

.work-card-bg-text {
    font-family: 'Unbounded', sans-serif;
    font-weight: 500;
    font-size: 58px;
    line-height: 60px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #00E5FF;
    opacity: 0.1;
    filter: blur(4px);
    position: absolute;
    top: -40px;
    left: 80px;
    z-index: 0;
}

.work-card-image {
    position: relative;
    z-index: 1;
    width: 100%;
    /* max-width: 800px; */
    /* height: 450px; */
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), #1a1a2e;
    border-radius: 8px;
    overflow: hidden;
}

.work-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work-card-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 20px;
    padding: 0 20px;
    overflow: hidden;
}

.work-card-author {
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 25px;
    letter-spacing: 0.02em;
    color: #8E8E93;
}

.work-card-meta {
    text-align: right;
    max-width: 60%;
    overflow: hidden;
    word-wrap: break-word;
}

.work-card-title {
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 27px;
    letter-spacing: 0.02em;
    color: #00E5FF;
    margin-bottom: 4px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    white-space: normal;
}

.work-card-type {
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 25px;
    letter-spacing: 0.02em;
    color: #8E8E93;
}

/* About Section */
.about {
    padding: 100px 80px;
    text-align: center;
    position: relative;
    /* background-image: url('/static/about.png'); */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.about::before {
    content: '';
    position: absolute;
    inset: 0;
    /* background: rgba(13, 14, 21, 0.9); */
    z-index: 0;
}

.about > * {
    position: relative;
    z-index: 1;
}

.about-text-cyan {
    color: #00E5FF;
}

.about-text-white {
    color: #FFFFFF;
}

.about-subtitle {
    font-family: 'Unbounded', sans-serif;
    font-weight: 500;
    font-size: 24px;
    line-height: 30px;
    letter-spacing: 0.06em;
    color: #FFFFFF;
    margin-bottom: 24px;
}

.about-subtitle {
    font-family: 'Unbounded', sans-serif;
    font-weight: 500;
    font-size: 24px;
    line-height: 30px;
    letter-spacing: 0.06em;
    color: #FFFFFF;
    margin-bottom: 24px;
}

.about-text {
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 28px;
    letter-spacing: 0.02em;
    color: #00E5FF;
    max-width: 900px;
    margin: 0 auto 300px;
}

.end-of-reel {
    font-family: 'Manrope', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 18px;
    line-height: 25px;
    leading-trim: both;
    text-edge: cap;
    letter-spacing: 0.02em;
    color: #8E8E93;
    opacity: 0.23;
    text-align: center;
    margin-top: 500px;
    margin-bottom: 900px;
}

/* Footer */
.footer {
    padding: 80px 80px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 1080px;
}

.footer::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
}

.footer > * {
    position: relative;
    z-index: 1;
}

.footer-cta {
    margin-bottom: 10px;
}

.footer-title {
    font-family: 'Unbounded', sans-serif;
    font-weight: 900;
    font-size: 90px;
    line-height: 112px;
    letter-spacing: 0.06em;
    color: #FFFFFF;
    margin-bottom: 8px;
}

.footer-title-cyan {
    color: #00E5FF;
    position: relative;
}

.footer-title-cyan::after {
    content: 'СОЗДАВАТЬ';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    color: #00E5FF;
    opacity: 0.3;
    filter: blur(20px);
    z-index: -1;
    font-size: 90px;
    line-height: 112px;
}

.footer-subtitle {
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    font-size: 17px;
    line-height: 28px;
    letter-spacing: 0.1em;
    color: #8E8E93;
    margin-top: 24px;
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 120px;
}

.social-links {
    display: flex;
    gap: 24px;
}

.social-link {
    width: 48px;
    height: 48px;
    background: #00E5FF;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.social-link:hover {
    transform: scale(1.1);
}

.social-link svg {
    width: 24px;
    height: 24px;
    fill: #0D0E15;
}

.footer-email {
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    font-size: 17px;
    line-height: 33px;
    letter-spacing: 0.1em;
    color: #8E8E93;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-email:hover {
    color: #00E5FF;
}

.footer-bottom {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright {
    font-family: 'Manrope', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 33px;
    leading-trim: both;
    text-edge: cap;
    letter-spacing: 0.04em;
    color: #8E8E93;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 1024px) {
    .header {
        padding: 20px 40px;
    }

    .hero {
        padding: 80px 40px;
    }

    .hero-title {
        font-size: 72px;
        line-height: 1;
    }

    .hero-title-cyan::after {
        font-size: 72px;
        line-height: 1;
    }

    .works {
        padding: 40px 40px;
    }

    .work-card-bg-text {
        font-size: 36px;
        line-height: 45px;
    }

    .work-card-image {
        height: 350px;
    }

    .about {
        padding: 60px 40px;
    }

    .about-logo-svg {
        height: 60px;
    }
    
    .about-pr-images .pr-image-container {
        height: 350px !important;
    }
    
    .about-pr-images .pr-image-container > div:last-child div:first-child {
        font-size: 28px !important;
    }
    
    .about-pr-images .pr-image-container > div:last-child h3 {
        font-size: 20px !important;
        margin-bottom: 10px !important;
    }
    
    .about-pr-images .pr-image-container > div:last-child p {
        font-size: 13px !important;
    }
    
    .work-card-title {
        font-size: 18px;
        line-height: 24px;
    }
    
    .about {
        padding: 60px 20px;
    }
    
    .about-logo-svg {
        margin: 150px auto 20px;
    }
    
    .about-subtitle {
        font-size: 16px;
        line-height: 22px;
    }
    
    .about-text {
        font-size: 16px;
        line-height: 24px;
        margin-bottom: 150px;
    }
    
    .about-pr-images {
        padding: 0 10px !important;
        gap: 20px !important;
    }
    
    .about-pr-images .pr-image-container {
        width: 100% !important;
        height: 400px !important;
    }
    
    .about-pr-images .pr-image-container > div:last-child {
        width: 90% !important;
        right: 20px !important;
        bottom: 30px !important;
        text-align: center !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
    
    .about-pr-images .pr-image-container > div:last-child div:first-child {
        font-size: 36px !important;
    }
    
    .about-pr-images .pr-image-container > div:last-child h3 {
        font-size: 24px !important;
    }
    
    .about-pr-images .pr-image-container > div:last-child p {
        font-size: 14px !important;
        line-height: 1.5 !important;
    }
    
    .end-of-reel {
        font-size: 14px;
        margin-top: 300px;
        margin-bottom: 600px;
    }
    
    .footer {
        margin-top: 600px;
        padding: 60px 20px 30px;
    }
    
    .footer-title {
        font-size: 40px;
        line-height: 50px;
    }
    
    .footer-subtitle {
        font-size: 14px;
    }
    
    .menu-dropdown {
        right: -10px;
        min-width: 150px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
        line-height: 36px;
    }
    
    .logo {
        font-size: 24px;
        line-height: 30px;
    }
    
    .work-card {
        margin-left: 0 !important;
        max-width: 100% !important;
    }
    
    .work-card {
        margin-left: 0 !important;
        max-width: 100% !important;
    }
    
    .work-card-image {
        width: 100% !important;
        height: auto !important;
        max-height: 400px;
    }
    
    .work-card-image img {
        height: auto;
        max-height: 400px;
        width: 100%;
        object-fit: cover;
    }
    
    .work-card-bg-text {
        font-size: 32px;
        left: 20px;
        top: -30px;
    }
    
    .work-card-info {
        flex-direction: column;
        gap: 8px;
    }
    
    .work-card-meta {
        text-align: left;
        max-width: 100%;
    }
    
    .work-card-title {
        font-size: 18px;
        line-height: 24px;
    }
    
    .work-card-image img {
        max-height: 400px;
        width: 100%;
        object-fit: cover;
    }
    
    .work-card-title {
        font-size: 16px;
    }
    
    .footer-copyright {
        font-size: 18px;
    }
}
