html, body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #141414, #1f1f2e);
    color: #f0f0f0;
    overflow-x: hidden;
}

.os-theme-dark > .os-scrollbar > .os-scrollbar-track > .os-scrollbar-handle {
    background: rgba(255, 255, 255, 0.3);
    width: 6px;
}

header, footer {
    background-color: #4CAF50;
    color: white;
    text-align: center;
    padding: 40px 20px;
}

nav {
    background: #333;
    padding: 10px;
    text-align: center;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    display: inline-block;
    padding: 8px 12px;
    transition: background 0.3s, transform 0.3s;
}

nav a:hover {
    background: #555;
    transform: scale(1.1);
    border-radius: 4px;
}

section {
    padding: 80px 20px;
    text-align: center;
}

.parallax {
    background-image: url('https://source.unsplash.com/1600x900/?mountains');
    height: 400px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.card {
    background: white;
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateY(50px);
}

button {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 12px 24px;
    margin-top: 15px;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

button:hover {
    background: #45a049;
    transform: translateY(-3px);
}

.icon {
    font-size: 48px;
    color: #4CAF50;
    transition: transform 0.3s;
}

.icon:hover {
    transform: rotate(20deg) scale(1.2);
}

footer {
    padding: 20px;
}

.youtube-button {
    display: inline-flex;
    align-items: center;
    background: #FF0000;
    color: white;
    padding: 0.8rem 1.5rem;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.4);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.youtube-button:hover {
    background: #cc0000;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 25px rgba(255, 0, 0, 0.6);
}

.telegram-button {
    display: inline-flex;
    align-items: center;
    background: #0088cc;
    color: white;
    padding: 0.8rem 1.5rem;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0, 136, 204, 0.4);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.telegram-button:hover {
    background: #006699;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 25px rgba(0, 136, 204, 0.6);
}

#services {
    background: linear-gradient(135deg, #1e1e2f, #2b2b3c);
    color: #f0f0f0;
    padding: 4rem 2rem;
    text-align: center;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    position: relative;
    overflow: hidden;
    margin: 2rem auto;
    max-width: 800px;
}

#services::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

#services h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

#services p {
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto 1.5rem auto;
    line-height: 1.6;
    color: #ddd;
}

#services button {
    background: linear-gradient(135deg, #ff5722, #ff784e);
    color: #fff;
    border: none;
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 6px 15px rgba(255, 87, 34, 0.5);
}

#services button:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 25px rgba(255, 87, 34, 0.7);
}

/* Ìîäàëüíîå îêíî */
.modal {
    display: flex;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
    overflow: hidden;
}

.modal.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #333;
    color: #fff;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    background: none !important;
    border: none !important;
    color: #fff;
    padding: 0;
    margin: 0;
    transition: color 0.3s;
}

.close-button:hover {
    color: #ff5722;
    transform: none !important;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(20, 20, 30, 0.8);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    backdrop-filter: blur(10px);
    z-index: 1000;
    flex-wrap: wrap;
    box-sizing: border-box;
}

.navbar .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff5722;
    margin-bottom: 0.5rem;
}

.nav-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    text-decoration: none;
    color: #f0f0f0;
    font-size: 1rem;
    position: relative;
    transition: color 0.3s;
    white-space: nowrap;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0%;
    height: 2px;
    background: #ff5722;
    transition: width 0.3s;
}

.nav-links li a:hover {
    color: #ff784e;
}

.nav-links li a:hover::after {
    width: 100%;
}

body {
    padding-top: 70px;
}

body.modal-open {
    overflow: hidden;
}

.site-content {
    position: relative;
    z-index: 1;
}

.about-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: transparent;
    background-blend-mode: overlay;
    color: #f0f0f0;
    padding: 4rem 2rem;
    text-align: center;
    box-sizing: border-box;
    animation: fadeIn 1s ease;
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 120, 78, 0.1), transparent 70%);
    animation: backgroundGlow 6s infinite alternate;
    z-index: 0;
}

.about-section > * {
    position: relative;
    z-index: 1;
}

@keyframes backgroundGlow {
    0% {
        transform: rotate(0deg) scale(1);
    }
    100% {
        transform: rotate(360deg) scale(1.2);
    }
}

.about-section h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: #ffffff;
}

.about-section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
    color: #ff784e;
}

.about-section p {
    max-width: 700px;
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    color: #cccccc;
}

.about-section .skills {
    margin-top: 1rem;
    font-size: 1rem;
    color: #bbbbbb;
    letter-spacing: 0.5px;
}

.wave {
    display: inline-block;
    animation: wave-animation 2s infinite;
}

@keyframes wave-animation {
    0% { transform: rotate(0deg); }
    10% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    30% { transform: rotate(14deg); }
    40% { transform: rotate(-4deg); }
    50% { transform: rotate(10deg); }
    60% { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: radial-gradient(circle at top left, #1f1f1f, #0d0d0d 70%);
}

#youtube {
    z-index: 0;
}

.section-game {
    position: relative;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
    scroll-snap-align: start;
    background: transparent;
    padding: 4rem 2rem;
}

.background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('Resources/Screen.png') center/cover no-repeat;
    z-index: 1;
    transform: scale(1.05);
    transition: transform 2s ease;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom right, rgba(0,0,0,0.7), rgba(0,0,0,0.5));
    z-index: 2;
}

.content {
    position: relative;
    z-index: 3;
    padding: 2rem;
    max-width: 700px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

.content.show {
    opacity: 1;
    transform: translateY(0);
}

.content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.content p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.game-card {
    background: rgba(30, 30, 40, 0.85);
    border: 2px solid rgba(255, 120, 78, 0.3);
    border-radius: 25px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    padding: 1rem;
    max-width: 1000px;
    width: 100%;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 60px rgba(255, 120, 78, 0.4);
}

.game-card .content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.text-block {
    flex: 1 1 50%;
    text-align: center;
}

.text-block h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.text-block p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.google-play-btn img {
    height: 60px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.google-play-btn img:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 120, 78, 0.6);
}

.game-icon img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
}

.game-icon img:hover {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 0 25px rgba(255, 120, 78, 0.9);
}

.image-block {
    flex: 1 1 65%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.image-block img {
    width: 100%;
    height: auto;
    max-width: none;
    max-height: 500px;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.7);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    margin-left: 40rem;
    object-fit: cover;
}

.image-block img:hover {
    transform: scale(1.08) rotate(1deg);
    box-shadow: 0 25px 60px rgba(255, 120, 78, 0.6);
}

.buttons-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.card-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 6rem 1rem;
    background: transparent;
    perspective: 1500px;
}

.card {
    display: flex;
    flex-wrap: wrap;
    background-color: #1c1c24;
    border: 2px solid #333;
    border-radius: 20px;
    overflow: hidden;
    max-width: 1100px;
    width: 100%;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    transform-origin: center center;
}

.card:hover {
    transform: scale(1.08) rotateX(2deg);
    border-color: #a020f0;
    box-shadow: 0 0 30px rgba(160, 32, 240, 0.8), 0 0 60px rgba(160, 32, 240, 0.6), 0 25px 60px rgba(0, 0, 0, 0.7);
}

.card-text {
    flex: 1 1 400px;
    padding: 3rem;
    color: #fff;
}

.card-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.card-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
    border: none;
    cursor: pointer;
}

.button i {
    font-size: 1.4rem;
}

.button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.button.youtube {
    background-color: #ff0000;
    color: #fff;
}

.button.youtube:hover {
    background-color: #cc0000;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.7);
}

.button.telegram {
    background-color: #0088cc;
    color: #fff;
}

.button.telegram:hover {
    background-color: #006699;
    box-shadow: 0 0 20px rgba(0, 136, 204, 0.7);
}

.card-image {
    flex: 1 1 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
}

.card-image img {
    max-width: 100%;
    height: auto;
    border-radius: 0 20px 20px 0;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.card-image img:hover {
    transform: scale(1.05);
}

.modern-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #1e1e2f, #2c2c40);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 800px;
    margin: 2rem auto;
    color: #fff;
}

.modern-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.icon {
    font-size: 3rem;
    color: #4ade80;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.card-content {
    flex: 1;
    margin-right: 2rem;
}

.card-content h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.card-content p {
    font-size: 1rem;
    opacity: 0.8;
}

#openModal {
    background: linear-gradient(135deg, #ff6a00, #ee0979);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(238, 9, 121, 0.6);
}

#openModal:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(238, 9, 121, 0.8);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.project-card {
    background: #444;
    border-radius: 15px;
    padding: 0.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
    cursor: pointer;
}

.project-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.6);
}

.project-card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease;
    display: block;
}

.project-card h4 {
    margin: 0.3rem 0;
    font-size: 1rem;
}

.project-card p {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Lightbox ñòèëè */
.lightbox {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.lightbox.show {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 80%;
    text-align: center;
    overflow: hidden;
}

.lightbox-img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 12px;
    box-shadow: 0 0 40px rgba(255,255,255,0.3);
    opacity: 0;
    transform: scale(0.85) translateX(0);
    transition: none;
}

.lightbox-img.slide-in {
    animation: imageFadeInScale 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.lightbox-img.active {
    opacity: 1;
    transform: scale(1) translateX(0);
}

.lightbox-img.slide-left {
    animation: imageFadeOutLeft 0.5s cubic-bezier(0.7, 0, 0.84, 0) forwards;
}

.lightbox-img.slide-right {
    animation: imageFadeOutRight 0.5s cubic-bezier(0.7, 0, 0.84, 0) forwards;
}

@keyframes imageFadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8) translateX(0);
    }
    to {
        opacity: 1;
        transform: scale(1) translateX(0);
    }
}

@keyframes imageFadeOutLeft {
    from {
        opacity: 1;
        transform: scale(1) translateX(0);
    }
    to {
        opacity: 0;
        transform: scale(0.85) translateX(-60px);
    }
}

@keyframes imageFadeOutRight {
    from {
        opacity: 1;
        transform: scale(1) translateX(0);
    }
    to {
        opacity: 0;
        transform: scale(0.85) translateX(60px);
    }
}

.lightbox-caption {
    margin-top: 10px;
    color: #fff;
    font-size: 1rem;
    opacity: 0.9;
}

.lightbox-prev, .lightbox-next, .lightbox-close {
    position: absolute;
    top: 50%;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    user-select: none;
    padding: 0.5rem;
    background: rgba(0,0,0,0.4);
    border-radius: 50%;
    transition: background 0.3s ease, transform 0.3s ease;
    border: none;
    transform: translateY(-50%);
}

.lightbox-prev:hover, .lightbox-next:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-50%) scale(1.15);
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.15);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-close {
    top: 20px;
    right: 20px;
    transform: none;
    font-size: 2.5rem;
}

/* ============================================
   ÀÄÀÏÒÀÖÈß ÍÀ ÏËÀÍØÅÒÛ (768px è ìåíüøå)
   ============================================ */

@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }

    .navbar {
        padding: 0.8rem 1rem;
    }

    .navbar .logo {
        font-size: 1.2rem;
    }

    .nav-links {
        gap: 0.8rem;
    }

    .nav-links li a {
        font-size: 0.9rem;
        padding: 6px 10px;
    }

    section {
        padding: 40px 15px;
    }

    .about-section {
        padding: 3rem 1.5rem;
        min-height: auto;
    }

    .about-section h1 {
        font-size: 2.5rem;
    }

    .about-section h2 {
        font-size: 1.5rem;
    }

    .about-section p {
        font-size: 1rem;
    }

    .section-game {
        padding: 3rem 1.5rem;
        min-height: auto;
    }

    .game-card {
        padding: 0.8rem;
    }

    .game-card .content {
        gap: 1.5rem;
    }

    .text-block h1 {
        font-size: 1.5rem;
    }

    .text-block p {
        font-size: 1rem;
    }

    .image-block img {
        margin-left: 0;
        max-height: 300px;
    }

    .card-container {
        padding: 3rem 1rem;
    }

    .card-text {
        padding: 2rem;
    }

    .card-text h2 {
        font-size: 2rem;
    }

    .card-text p {
        font-size: 1rem;
    }

    .button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .button i {
        font-size: 1.2rem;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .project-card {
        padding: 0.4rem;
    }

    .project-card h4 {
        font-size: 0.9rem;
    }

    .project-card p {
        font-size: 0.75rem;
    }

    .modern-card {
        flex-direction: column;
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .icon {
        font-size: 2.5rem;
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .card-content {
        margin-right: 0;
    }

    .card-content h2 {
        font-size: 1.5rem;
    }

    .card-content p {
        font-size: 0.9rem;
    }

    #services button {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }

    .modal-content {
        width: 95%;
        padding: 1.5rem;
        border-radius: 12px;
    }

    .close-button {
        font-size: 1.3rem;
    }

    .lightbox-prev, .lightbox-next {
        font-size: 1.5rem;
        padding: 0.3rem;
    }

    .lightbox-close {
        font-size: 2rem;
    }

    .buttons-row {
        flex-direction: column;
        gap: 1rem;
    }

    .google-play-btn img {
        height: 50px;
    }

    .game-icon img {
        width: 50px;
        height: 50px;
    }
}

/* ============================================
   ÀÄÀÏÒÀÖÈß ÍÀ ÒÅËÅÔÎÍÛ (600px è ìåíüøå)
   ============================================ */

@media (max-width: 600px) {
    html, body {
        font-size: 14px;
    }

    body {
        padding-top: 55px;
    }

    .navbar {
        flex-direction: column;
        align-items: stretch;
        padding: 0.6rem;
        gap: 0.5rem;
    }

    .navbar .logo {
        font-size: 1rem;
        text-align: center;
        margin-bottom: 0.3rem;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
        gap: 0.5rem;
    }

    .nav-links li a {
        font-size: 0.8rem;
        padding: 4px 8px;
    }

    .parallax {
        height: 250px;
        background-attachment: scroll;
    }

    section {
        padding: 30px 12px;
    }

    .about-section {
        padding: 2rem 1rem;
        min-height: auto;
    }

    .about-section h1 {
        font-size: 2rem;
    }

    .about-section h2 {
        font-size: 1.3rem;
    }

    .about-section p {
        font-size: 0.9rem;
        max-width: 100%;
    }

    .about-section .skills {
        font-size: 0.8rem;
    }

    .section-game {
        padding: 2rem 1rem;
        min-height: auto;
    }

    .game-card {
        padding: 0.6rem;
        border-radius: 15px;
    }

    .game-card:hover {
        transform: scale(1);
    }

    .game-card .content {
        flex-direction: column;
        gap: 1rem;
    }

    .text-block {
        flex: 1 1 100%;
    }

    .text-block h1 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }

    .text-block p {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }

    .image-block {
        flex: 1 1 100%;
    }

    .image-block img {
        max-width: 100%;
        max-height: 250px;
        border-radius: 15px;
    }

    .image-block img:hover {
        transform: scale(1);
    }

    .buttons-row {
        flex-direction: column;
        gap: 0.8rem;
        margin-top: 1rem;
    }

    .google-play-btn img {
        height: 45px;
    }

    .game-icon img {
        width: 45px;
        height: 45px;
    }

    .card-container {
        padding: 2rem 0.5rem;
    }

    .card {
        flex-direction: column;
        border-radius: 15px;
    }

    .card:hover {
        transform: scale(1);
        border-color: #333;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    }

    .card-text {
        flex: 1 1 100%;
        padding: 1.5rem;
    }

    .card-text h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .card-text p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .card-image {
        flex: 1 1 100%;
        background: transparent;
        display: none;
    }

    .button-group {
        gap: 0.8rem;
    }

    .button {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
        border-radius: 25px;
    }

    .button i {
        font-size: 1rem;
    }

    .button:hover {
        transform: none;
    }

    .modern-card {
        flex-direction: column;
        padding: 1.2rem;
        gap: 1rem;
        margin: 1.5rem auto;
        max-width: 100%;
    }

    .icon {
        font-size: 2rem;
        margin-right: 0;
        margin-bottom: 0.8rem;
    }

    .card-content {
        margin-right: 0;
    }

    .card-content h2 {
        font-size: 1.3rem;
    }

    .card-content p {
        font-size: 0.8rem;
    }

    #services {
        margin: 1.5rem auto;
        padding: 1.5rem 1rem;
    }

    #services button {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }

    #services h2 {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
    }

    #services p {
        font-size: 0.85rem;
        max-width: 100%;
        margin: 0 auto 1rem auto;
    }

    /* ========== ÌÎÄÀËÜÍÎÅ ÎÊÍÎ ÍÀ ÌÎÁÈËßÕ ========== */
    .modal {
        align-items: flex-end;
        padding: 0;
    }

    .modal-content {
        width: 100%;
        max-width: 100%;
        padding: 1rem;
        border-radius: 20px 20px 0 0;
        max-height: 85vh;
        overflow-y: auto;
        box-shadow: 0 -5px 40px rgba(0, 0, 0, 0.9);
    }

    .modal.show .modal-content {
        transform: translateY(0);
    }

    .modal-content h3 {
        font-size: 1.1rem;
        margin: 0.5rem 0 0.8rem 0;
    }

    .modal-content p {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    .close-button {
        top: 12px;
        right: 15px;
        font-size: 1.5rem;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        margin-top: 1rem;
    }

    .project-card {
        padding: 0.3rem;
        border-radius: 10px;
    }

    .project-card img {
        border-radius: 8px;
        margin-bottom: 0.3rem;
    }

    .project-card h4 {
        font-size: 0.75rem;
        margin: 0.2rem 0;
    }

    .project-card p {
        font-size: 0.6rem;
        line-height: 1.2;
    }

    /* ========== LIGHTBOX ÍÀ ÌÎÁÈËßÕ ========== */
    .lightbox-content {
        max-width: 100%;
        max-height: 75vh;
    }

    .lightbox-img {
        max-width: 100%;
        max-height: 55vh;
        border-radius: 8px;
    }

    .lightbox-prev, .lightbox-next {
        font-size: 1.5rem;
        width: 40px;
        height: 40px;
        padding: 0;
    }

    .lightbox-prev {
        left: 8px;
    }

    .lightbox-next {
        right: 8px;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
        font-size: 1.8rem;
        width: 40px;
        height: 40px;
        padding: 0;
    }

    .lightbox-caption {
        font-size: 0.8rem;
        margin-top: 6px;
    }

    header, footer {
        padding: 20px 10px;
        font-size: 0.9rem;
    }

    footer {
        font-size: 0.85rem;
    }
}

/* ============================================
   Î×ÅÍÜ ÌÀËÅÍÜÊÈÅ ÝÊÐÀÍÛ (480px è ìåíüøå)
   ============================================ */

@media (max-width: 480px) {
    body {
        padding-top: 50px;
    }

    .navbar {
        padding: 0.5rem;
    }

    .navbar .logo {
        font-size: 0.9rem;
    }

    .nav-links {
        gap: 0.3rem;
    }

    .nav-links li a {
        font-size: 0.75rem;
        padding: 3px 6px;
    }

    .about-section h1 {
        font-size: 1.8rem;
    }

    .about-section h2 {
        font-size: 1.2rem;
    }

    .text-block h1 {
        font-size: 1.1rem;
    }

    .modal-content {
        padding: 0.8rem;
        border-radius: 15px 15px 0 0;
    }

    .modal-content h3 {
        font-size: 1rem;
        margin: 0.4rem 0 0.6rem 0;
    }

    .modal-content p {
        font-size: 0.8rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }

    .project-card h4 {
        font-size: 0.7rem;
    }

    .project-card p {
        font-size: 0.55rem;
    }

    .button {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
}

/* ============================================
   Î×ÅÍÜ ÌÀËÅÍÜÊÈÅ ÝÊÐÀÍÛ (370px è ìåíüøå)
   ============================================ */

@media (max-width: 370px) {
    .navbar {
        padding: 0.4rem;
    }

    .navbar .logo {
        font-size: 0.8rem;
    }

    .nav-links {
        gap: 0.2rem;
    }

    .nav-links li a {
        font-size: 0.65rem;
        padding: 2px 4px;
    }

    .about-section h1 {
        font-size: 1.5rem;
    }

    .about-section h2 {
        font-size: 1rem;
    }

    .about-section p {
        font-size: 0.8rem;
    }

    .text-block h1 {
        font-size: 1rem;
    }

    .text-block p {
        font-size: 0.8rem;
    }

    .modal-content {
        padding: 0.7rem;
    }

    .modal-content h3 {
        font-size: 0.95rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 0.3rem;
    }

    .button {
        padding: 0.5rem 0.9rem;
        font-size: 0.75rem;
    }

    .modern-card {
        padding: 0.8rem;
    }
}
