* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FFB84D;
    --secondary-color: #FF8C42;
    --accent-color: #FFD93D;
    --green: #6BCF7F;
    --blue: #4ECDC4;
    --pink: #FFB6D9;
    --peach: #FFA69E;
    --dark-color: #2C3E50;
    --light-color: #FFF9E6;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Comic Sans MS', 'Arial', sans-serif;
    background: linear-gradient(180deg, #FFE5B4 0%, #FFD8BE 50%, #FFC4A3 100%);
    color: #2C3E50;
    overflow-x: hidden;
    min-height: 100vh;
}

html {
    scroll-behavior: smooth;
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('img/back.png') center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    overflow: hidden;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    position: relative;
    z-index: 3;
    animation: fadeInScale 0.8s ease;
}

/* Floating Images */
.floating-images {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 2;
    pointer-events: none;
}

.float-img {
    position: absolute;
    width: 150px;
    height: 150px;
    object-fit: contain;
    opacity: 0;
    filter: drop-shadow(5px 5px 10px rgba(0, 0, 0, 0.2));
}

.float-img-1 {
    bottom: -200px;
    left: 10%;
    animation: floatUp 3s ease-in-out infinite;
    animation-delay: 0s;
}

.float-img-2 {
    bottom: -200px;
    left: 25%;
    animation: floatUp 3.5s ease-in-out infinite;
    animation-delay: 0.5s;
}

.float-img-3 {
    bottom: -200px;
    left: 45%;
    animation: floatUp 4s ease-in-out infinite;
    animation-delay: 1s;
}

.float-img-4 {
    bottom: -200px;
    right: 25%;
    animation: floatUp 3.8s ease-in-out infinite;
    animation-delay: 1.5s;
}

.float-img-5 {
    bottom: -200px;
    right: 10%;
    animation: floatUp 3.3s ease-in-out infinite;
    animation-delay: 2s;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    50% {
        transform: translateY(-50vh) rotate(10deg);
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-120vh) rotate(20deg);
        opacity: 0;
    }
}

.welcome-logo {
    width: 450px;
    max-width: 85vw;
    margin-bottom: 30px;
    animation: bounceRotate 2s infinite;
    filter: drop-shadow(8px 8px 0px rgba(0, 0, 0, 0.1));
}

@keyframes bounceRotate {
    0%, 100% { 
        transform: translateY(0) rotate(0deg); 
    }
    25% {
        transform: translateY(-15px) rotate(-3deg);
    }
    50% { 
        transform: translateY(-25px) rotate(0deg); 
    }
    75% {
        transform: translateY(-15px) rotate(3deg);
    }
}

.loading-text {
    font-size: 2rem;
    font-weight: 900;
    color: #FF8C42;
    text-shadow: 4px 4px 0px #FFD93D, 
                 8px 8px 0px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    letter-spacing: 3px;
    animation: pulse 2s infinite;
}

.loading-percentage {
    font-size: 2.5rem;
    font-weight: 900;
    color: #6BCF7F;
    text-shadow: 3px 3px 0px #4ECDC4;
    margin-bottom: 25px;
    letter-spacing: 2px;
}

/* Pixel Loader */
.pixel-loader {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 auto;
    width: fit-content;
}

.pixel-row {
    display: flex;
    gap: 8px;
}

.pixel {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.3);
    border: 4px solid rgba(255, 184, 77, 0.4);
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.pixel.active {
    background: linear-gradient(135deg, #FFB84D, #FF8C42);
    border-color: #FFD93D;
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 6px 20px rgba(255, 140, 66, 0.6);
    animation: pixelPop 0.4s ease;
}

@keyframes pixelPop {
    0% {
        transform: scale(0.8) rotate(0deg);
    }
    50% {
        transform: scale(1.3) rotate(10deg);
    }
    100% {
        transform: scale(1.15) rotate(5deg);
    }
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(135deg, #FFB84D, #FF8C42);
    backdrop-filter: blur(10px);
    box-shadow: 0 6px 20px rgba(255, 140, 66, 0.4);
    z-index: 1000;
    animation: slideDown 0.5s ease;
    border-bottom: 4px solid #FFD93D;
    height: 80px;
    overflow: visible;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
}

.logo {
    display: none;
}

.social-links {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.social-btn {
    transition: transform 0.3s ease, filter 0.3s ease;
    display: block;
    margin: -40px 0;
}

.social-btn img {
    height: 140px;
    filter: drop-shadow(6px 6px 15px rgba(0, 0, 0, 0.4));
}

.social-btn:hover {
    transform: scale(1.2);
    filter: brightness(1.2);
}

/* Running Line (Ticker) */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    background: linear-gradient(90deg, #FFB84D, #FF8C42, #FFD93D, #FFA69E);
    padding: 20px 0;
    margin: 60px 0;
    box-shadow: 0 8px 30px rgba(255, 140, 66, 0.3);
    position: relative;
    border-top: 4px solid #FFD93D;
    border-bottom: 4px solid #FFD93D;
}

.ticker-wrap::before,
.ticker-wrap::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 100%;
    top: 0;
    z-index: 2;
}

.ticker-wrap::before {
    left: 0;
    background: linear-gradient(90deg, #FFB84D, transparent);
}

.ticker-wrap::after {
    right: 0;
    background: linear-gradient(270deg, #FFA69E, transparent);
}

.ticker {
    display: flex;
    animation: ticker 25s linear infinite;
    width: fit-content;
}

.ticker-item {
    padding: 0 80px;
    display: flex;
    align-items: center;
}

.ticker-item img {
    height: 160px;
    filter: drop-shadow(5px 5px 10px rgba(0, 0, 0, 0.4));
    transition: transform 0.3s ease;
}

.ticker-item img:hover {
    transform: scale(1.2);
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Hero Section */
.hero {
    min-height: calc(100vh - 150px);
    display: flex;
    align-items: center;
    padding: 4rem 2rem;
    padding-top: calc(60px + 2rem);
    background: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-title {
    font-size: 4.5rem;
    color: #FF8C42;
    margin-bottom: 1.5rem;
    text-shadow: 5px 5px 0px #FFD93D, 
                 10px 10px 0px rgba(0, 0, 0, 0.1);
    font-weight: 900;
    letter-spacing: 3px;
    overflow: hidden;
    white-space: nowrap;
    animation: typing 2s steps(40, end) 3.5s forwards, blink-caret 0.75s step-end infinite 3.5s;
    border-right: 4px solid #FF8C42;
    width: 0;
    opacity: 0;
}

@keyframes typing {
    from { 
        width: 0;
        opacity: 0;
    }
    to { 
        width: 100%;
        opacity: 1;
    }
}

@keyframes blink-caret {
    from, to { 
        border-color: transparent;
    }
    50% { 
        border-color: #FF8C42;
    }
}

.hero-description {
    font-size: 1.4rem;
    color: #2C3E50;
    margin-bottom: 2rem;
    line-height: 2;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
}

.ca-section {
    background: linear-gradient(135deg, #FFF9E6, #FFE5B4);
    padding: 2.5rem;
    border-radius: 30px;
    box-shadow: 0 15px 50px rgba(255, 140, 66, 0.3);
    margin-bottom: 2rem;
    border: 5px solid #FFD93D;
}

.ca-section h3 {
    color: #FF8C42;
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
    font-weight: 900;
    text-shadow: 2px 2px 0px rgba(255, 217, 61, 0.5);
}

.ca-box {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 20px;
    border: 4px solid #FFB84D;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.ca-box:hover {
    border-color: #FF8C42;
    box-shadow: 0 12px 30px rgba(255, 140, 66, 0.4);
    transform: translateY(-2px);
}

.ca-box:active {
    transform: scale(0.98);
}

.ca-box code {
    font-size: 1.1rem;
    word-break: break-all;
    color: var(--dark-color);
    font-weight: 700;
    text-align: center;
    transition: color 0.3s ease;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #FFB84D, #FF8C42);
    color: white;
    box-shadow: 0 8px 25px rgba(255, 140, 66, 0.5);
    border: 4px solid white;
    font-size: 1.2rem;
    font-weight: 900;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #FF8C42, #FFB84D);
    transform: translateY(-8px) scale(1.1) rotate(-2deg);
    box-shadow: 0 15px 40px rgba(255, 140, 66, 0.7);
}

.btn-secondary {
    background: white;
    color: #FF8C42;
    border: 4px solid #FFB84D;
    font-size: 1.2rem;
    font-weight: 900;
}

.btn-secondary:hover {
    background: #FFD93D;
    color: #FF8C42;
    transform: translateY(-8px) scale(1.1) rotate(2deg);
    box-shadow: 0 15px 40px rgba(255, 217, 61, 0.7);
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section-title {
    font-size: 4rem;
    text-align: center;
    color: #FF8C42;
    margin-bottom: 4rem;
    text-shadow: 5px 5px 0px #FFD93D, 
                 10px 10px 0px rgba(0, 0, 0, 0.1);
    font-weight: 900;
    letter-spacing: 4px;
    overflow: hidden;
    white-space: nowrap;
    width: 0;
    margin-left: auto;
    margin-right: auto;
}

.section-title.visible {
    animation: typing-section 1.5s steps(30, end) 0.3s forwards;
}

@keyframes typing-section {
    from { 
        width: 0;
    }
    to { 
        width: 100%;
    }
}

/* About Section */
.about {
    background: none;
    padding: 5rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.about-card {
    background: linear-gradient(135deg, #FFF9E6, white);
    padding: 3rem;
    border-radius: 35px;
    box-shadow: 0 15px 50px rgba(255, 140, 66, 0.3);
    text-align: center;
    transition: all 0.4s ease;
    border: 6px solid #FFD93D;
}

.about-card:hover {
    transform: translateY(-20px) scale(1.05) rotate(-2deg);
    box-shadow: 0 25px 70px rgba(255, 184, 77, 0.5);
    border-color: #FFB84D;
    background: linear-gradient(135deg, #FFE5B4, white);
}

.about-card img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    margin-bottom: 2rem;
    transition: transform 0.4s ease;
    filter: drop-shadow(5px 5px 10px rgba(0, 0, 0, 0.1));
}

.about-card:hover img {
    transform: scale(1.15) rotate(-5deg);
}

.about-card h3 {
    color: #FF8C42;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 900;
    text-shadow: 2px 2px 0px rgba(255, 217, 61, 0.3);
}

.about-card p {
    color: #2C3E50;
    line-height: 2;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Gallery Section */
.gallery-section {
    padding: 3rem 0 0 0;
    background: none;
    overflow: hidden;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    overflow: hidden;
    max-width: 100%;
    margin: auto;
    min-height: 100vh;
}

.gallery__strip__wrapper {
    flex: 0 0 100%;
    display: flex;
    justify-content: flex-end;
    background: transparent;
    border-right: 3px solid rgba(255, 217, 61, 0.3);
    position: relative;
}

.gallery__strip {
    min-height: 100vh;
}

.photo {
    position: relative;
    text-align: right;
    padding-bottom: 3rem;
    padding-right: 2rem;
}

.photo__image {
    overflow: hidden;
}

.photo__image img {
    width: 100%;
    transform: translateX(20%);
    transition: 1s cubic-bezier(0.19, 1, 0.22, 1) 0.2s;
    border-radius: 25px;
    border: 5px solid #FFD93D;
    box-shadow: 0 10px 40px rgba(255, 140, 66, 0.4);
    background: white;
    padding: 1rem;
}

.photo__name {
    text-transform: uppercase;
    font-size: 40px;
    letter-spacing: 4px;
    color: transparent;
    -webkit-text-stroke-width: 2px;
    -webkit-text-stroke-color: #FFB84D;
    margin-top: -25px;
    transition: 0.4s ease-in-out 0.4s;
    position: relative;
    width: 100%;
    font-weight: 900;
}

.photo:hover .photo__image img {
    transform: translateX(0);
    border-color: #FFB84D;
    box-shadow: 0 20px 60px rgba(255, 184, 77, 0.7);
}

.photo:hover .photo__name {
    color: #FF8C42;
    -webkit-text-stroke-color: #FFD93D;
}

/* Animations */
@keyframes move-it {
    0%, 100% {
        transform: translateY(0%);
    }
    50% {
        transform: translateY(-50%);
    }
}

@keyframes move-it-2 {
    0%, 100% {
        transform: translateY(-50%);
    }
    50% {
        transform: translateY(0%);
    }
}

/* Media Queries для галереи */
@media (min-width: 500px) {
    .gallery__strip__wrapper {
        flex: 0 0 50%;
    }
}

@media (min-width: 950px) {
    .gallery {
        height: 100vh;
    }
    
    .gallery__strip__wrapper {
        flex: 0 0 25%;
    }
    
    .gallery__strip.one {
        animation: 60s move-it ease alternate infinite 5s;
        transform: translateY(2%);
    }
    
    .gallery__strip.two {
        animation: 58s move-it-2 ease alternate infinite 5s;
        transform: translateY(-50%);
    }
    
    .gallery__strip.three {
        animation: 70s move-it ease alternate infinite 6s;
        transform: translateY(2%);
    }
    
    .gallery__strip.four {
        animation: 65s move-it-2 ease alternate infinite 5.5s;
        transform: translateY(-50%);
    }
    
    .gallery__strip:hover {
        animation-play-state: paused;
    }
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #FFB84D, #FF8C42, #6BCF7F);
    color: white;
    padding: 3rem 0 1rem;
    box-shadow: 0 -10px 30px rgba(255, 140, 66, 0.4);
    border-top: 5px solid #FFD93D;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo img {
    width: 60px;
    height: 60px;
}

.footer-logo p {
    font-size: 1.2rem;
    font-weight: bold;
}

.footer-links {
    display: flex;
    gap: 1rem;
}

.footer-links a img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
    filter: brightness(0) invert(1);
}

.footer-links a:hover img {
    transform: scale(1.2) rotate(5deg);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .ca-box {
        flex-direction: column;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .nav-container {
        padding: 0.3rem 1rem;
    }

    .social-btn img {
        height: 110px;
    }
    
    .social-links {
        gap: 3rem;
    }

    .ticker-item {
        padding: 0 40px;
    }
    
    .ticker-item img {
        height: 80px;
    }

    .welcome-logo {
        width: 300px;
    }
    
    .pixel {
        width: 28px;
        height: 28px;
    }
    
    .loading-text {
        font-size: 1.5rem;
    }
    
    .loading-percentage {
        font-size: 2rem;
    }
    
    .float-img {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .welcome-logo {
        width: 250px;
    }
    
    .pixel {
        width: 22px;
        height: 22px;
        border-width: 3px;
    }
    
    .loading-text {
        font-size: 1.3rem;
    }
    
    .loading-percentage {
        font-size: 1.8rem;
    }
    
    .float-img {
        width: 80px;
        height: 80px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .social-btn img {
        height: 85px;
    }
    
    .social-links {
        gap: 2rem;
    }
    
    .nav-container {
        padding: 0.2rem 0.5rem;
    }
    
    .photo__name {
        font-size: 24px;
    }
    
    .photo__image img {
        width: 95%;
    }
}

