body {
    font-family: 'Baloo 2', sans-serif;
    background: #fefae0;
    color: #333;
    margin: 0;
    padding: 0;
}

.header {
    background-color: #fbf9f9;
    padding: 1.5em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px dashed #ffadad;
}

.logo {
    font-size: 1.8em;
}

nav a {
    margin: 0 10px;
    color: #7c3aed;
    font-weight: bold;
    text-decoration: none;
}

.hero,
.contact {
    padding: 2em;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h2 {
    font-size: 2em;
    color: #ff595e;
    margin-bottom: 0.5em;
}

p {
    max-width: 500px;
    text-align: center;
    font-size: 1.2em;
}

form {
    margin-top: 1.5em;
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    justify-content: center;
}

input,
textarea {
    font-size: 1em;
    padding: 0.6em;
    border: 2px solid #d4a373;
    border-radius: 8px;
    width: 250px;
}

textarea {
    min-height: 80px;
    resize: vertical;
}

button {
    background-color: #ffb703;
    border: none;
    padding: 0.7em 1.2em;
    font-size: 1em;
    font-weight: bold;
    color: #000;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s;
}

button:hover {
    transform: scale(1.1);
    background: #f77f00;
}

.filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1em;
    padding: 2em;
}

.filters button {
    background: #caffbf;
    border: 2px dashed #000;
    padding: 0.5em 1em;
    font-size: 1em;
    border-radius: 10px;
    cursor: pointer;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2em;
    padding: 2em;
    max-width: 1200px;
    margin: auto;
}

.gallery img {
    width: 100%;
    border: 4px solid #ffd6a5;
    border-radius: 10px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
}

figcaption {
    text-align: center;
    font-size: 1em;
    padding-top: 0.5em;
}

.decor {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 80px;
    opacity: 0.5;
}

body.home-page {
    margin: 0;
    font-family: 'Baloo 2', sans-serif;
    background-color: #111;
    color: white;
    overflow-x: hidden;
}

.header {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2em 2em;
    background: rgba(0, 0, 0, 0.3);
}

.logo {
    font-size: 1.5em;
    font-weight: bold;
}

nav a {
    margin-left: 1em;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.hero-banner {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    z-index: 1;
}

.overlay-text {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    top: 50%;
    transform: translateY(-50%);
    padding: 0 2em;
}

.overlay-text .intro {
    font-size: 1.2em;
    letter-spacing: 1px;
    opacity: 0.85;
}

.overlay-text .main-title {
    font-size: 3em;
    margin: 0.3em 0;
    font-weight: bold;
}

.overlay-text .main-title span {
    color: #fcd34d;
}

.hero-btn {
    display: inline-block;
    margin-top: 1.5em;
    padding: 0.7em 1.4em;
    background-color: #ff595e;
    color: white;
    font-size: 1.1em;
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.3s;
}

.hero-btn:hover {
    background-color: #ff3b49;
}

/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    font-family: 'Baloo 2', sans-serif;
    overflow-x: hidden;
    background: #fff;
    color: #222;
}

/* HEADER */
.header {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    padding: 1em 2em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 2px black;
}

.header nav a {
    margin-left: 1em;
    color: white;
    font-weight: bold;
    text-decoration: none;
    font-size: 1rem;
    transition: opacity 0.3s;
}

.header nav a:hover {
    opacity: 0.8;
}

/* HERO SECTION */
.hero-banner {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.7);
}

.overlay-text {
    position: relative;
    z-index: 2;
    color: white;
    padding: 2rem;
}

.overlay-text p.intro {
    font-size: 1.2rem;
    opacity: 0.9;
}

.overlay-text h1.main-title {
    font-size: 2.8rem;
    margin: 0.5rem 0;
}

.overlay-text h1 span {
    color: #ffd166;
}

.hero-btn {
    background: #f95f62;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1.1rem;
    border-radius: 12px;
    text-decoration: none;
    margin-top: 1.2rem;
    display: inline-block;
    transition: background 0.3s;
}

.hero-btn:hover {
    background: #ff3b49;
}

/* RESPONSIVE: MOBILE FIRST */
@media (max-width: 768px) {
    .overlay-text h1.main-title {
        font-size: 2rem;
    }

    .overlay-text p.intro {
        font-size: 1rem;
    }

    .hero-btn {
        font-size: 1rem;
        padding: 0.6rem 1.2rem;
    }

    .header {
        flex-direction: column;
        align-items: flex-start;
        padding: 1em;
    }

    .header nav {
        margin-top: 0.5em;
    }

    .header nav a {
        margin-right: 1em;
        display: inline-block;
    }
}


/* Dark Portfolio Layout */
body.portfolio-dark {
    margin: 0;
    font-family: 'Baloo 2', sans-serif;
    background: black;
    color: white;
    overflow-x: hidden;
}

.portfolio-container {
    display: flex;
    height: 100vh;
    width: 100%;
}

.left-side {
    width: 45%;
    background: black;
    display: flex;
    align-items: center;
    justify-content: center;
}

.side-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.right-side {
    width: 55%;
    padding: 2em;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.dark-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1em;
}

.dark-header nav a {
    color: white;
    margin-left: 1em;
    text-decoration: none;
}

.gallery-intro h2 {
    font-size: 1.5em;
    font-weight: 400;
    letter-spacing: 1px;
    margin-bottom: 1em;
}

.gallery-intro h2 span {
    font-weight: bold;
    color: #fcd34d;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5em;
}

.gallery a img {
    width: 100%;
    border-radius: 8px;
    border: 2px solid #333;
    transition: transform 0.3s ease;
}

.gallery a img:hover {
    transform: scale(1.05);
}


.floating {
    position: absolute;
    animation: floaty 12s ease-in-out infinite;
    z-index: 0;
    opacity: 0.8;
}

.doodle-1 {
    top: 10%;
    left: 5%;
    width: 60px;
    height: auto;
}

.doodle-2 {
    bottom: 15%;
    right: 10%;
    width: 50px;
    height: auto;
}

@keyframes floaty {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-12px) rotate(2deg);
    }
}

@keyframes drift {
    0% {
        transform: translate(0, 0) rotate(0);
    }

    50% {
        transform: translate(8px, -12px) rotate(2deg);
    }

    100% {
        transform: translate(0, 0) rotate(0);
    }
}

.doodle-man {
    top: 20%;
    left: 10%;
    width: 50px;
}

.doodle-dino {
    bottom: 5%;
    right: 10%;
    width: 60px;
}

.doodle-line {
    bottom: 20%;
    left: 5%;
    width: 200px;
    animation: floatyline 10s ease-in-out infinite;
}

@keyframes floatyline {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-5px);
    }
}


/* SVG Styles */
.svg-deco {
    position: absolute;
    width: 60px;
    /* увеличено на 50% */
    height: 60px;
    animation: floaty 8s ease-in-out infinite;
    z-index: 1;
}

.deco-top-left {
    top: 20px;
    left: 20px;
}

.deco-top-right {
    top: 40px;
    right: 30px;
}

.deco-bottom-left {
    bottom: 40px;
    left: 40px;
    width: 300px;
    /* специально длиннее */
}

.deco-bottom-right {
    bottom: 30px;
    right: 30px;
}

@keyframes floaty {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* SVG Styles new */
/* Анимация */
@keyframes floaty {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

@keyframes floatyline {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-5px);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

@keyframes rotateStar {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Общие стили */
.floating {
    position: absolute;
    z-index: 1;
    opacity: 0.85;
}

.doodle-1 {
    /* 👑 Пульсация */
    top: 10%;
    left: 5%;
    width: 80px;
    animation: pulse 4s infinite ease-in-out;
}

.doodle-2 {
    /* ⭐ Вращение */
    top: 25%;
    right: 5%;
    width: 70px;
    animation: rotateStar 10s linear infinite;
}

.doodle-man {
    /* 👣 Вверх/вниз */
    bottom: 20%;
    left: 8%;
    width: 75px;
    animation: floaty 6s ease-in-out infinite;
}

.doodle-dino {
    /* 🦖 Статично или добавить движение */
    top: 15%;
    right: 20%;
    width: 80px;
    animation: floaty 10s ease-in-out infinite;
}

.doodle-line {
    /* 🐍 Рисующаяся змейка */
    bottom: 10%;
    left: 20%;
    width: 300px;
    animation: floatyline 10s ease-in-out infinite;
}