﻿/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Roboto Font Faces */
@font-face {
    font-family: 'Roboto';
    src: url('assets/fonts/Roboto-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('assets/fonts/Roboto-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('assets/fonts/Roboto-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'Roboto';
    line-height: 1.6;
    color: #333;
    background: #fff;
    padding-top: 80px; /* Account for fixed header */
}

/* Custom Properties - Exact Color Palette from README */
:root {
    --primary: #6A4BAE;
    --secondary: #BFA8E5;
    --accent: #D6C1F0;
    --neutral-light: #F5F2FA;
    --neutral-dark: #2E1E4F;
    --white: #FFFFFF;
    --shadow: rgba(106, 75, 174, 0.1);
    --shadow-hover: rgba(106, 75, 174, 0.2);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.2;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px var(--shadow);
    border-bottom: 1px solid rgba(106, 75, 174, 0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    position: relative;
    z-index: 2;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.brand:hover {
    color: var(--neutral-dark);
}

/* Language Selector */
.language-selector {
    position: relative;
}

.custom-select {
    position: relative;
    width: 64px;
}

.select-selected {
    background: var(--white);
    border: 2px solid var(--secondary);
    border-radius: 20px;
    padding: 0.4rem 1.2rem 0.4rem 0.6rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    overflow: hidden;
}

.flag-icon {
    width: 28px;
    height: 21px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.select-selected::after {
    content: '';
    position: absolute;
    right: 0.4rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
    border-top: 3px solid var(--primary);
    transition: transform 0.3s ease;
}

.select-selected.select-arrow-active::after {
    transform: translateY(-50%) rotate(180deg);
}

.select-selected:hover {
    border-color: var(--primary);
}

.select-items {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(106, 75, 174, 0.15);
    border: 1px solid rgba(106, 75, 174, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 4px;
}

.select-items.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.select-items div {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    color: var(--neutral-dark);
}

.select-items div:hover {
    background: linear-gradient(90deg, rgba(106, 75, 174, 0.05) 0%, rgba(106, 75, 174, 0.08) 100%);
    color: var(--primary);
}

.select-items div:first-child {
    border-radius: 12px 12px 0 0;
}

.select-items div:last-child {
    border-radius: 0 0 12px 12px;
}

.select-items div:only-child {
    border-radius: 12px;
}

/* Navigation */
.nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav a {
    text-decoration: none;
    color: var(--neutral-dark);
    font-weight: 500;
    font-size: 1.15rem;
    transition: color 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.nav a:hover,
.nav a.active {
    color: var(--primary);
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    align-items: stretch;
    width: 30px;
    height: 24px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    flex: 0 0 3px;
    width: 100%;
    height: 3px;
    background: var(--neutral-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
    align-self: stretch;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 40%, var(--neutral-light) 100%);
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20vh;
    min-height: 120px;
    max-height: 200px;
    z-index: 3;
}

.hero .waves {
    bottom: 0;
}

.section .waves {
    bottom: -60px;
}

.waves-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 15vh;
    min-height: 100px;
    max-height: 150px;
    z-index: 1;
    transform: rotate(180deg);
}

.wave-parallax use {
    animation: waveMove 10s linear infinite;
}

.wave-parallax use:nth-child(1) {
    animation-duration: 10s;
    animation-delay: -2s;
}

.wave-parallax use:nth-child(2) {
    animation-duration: 18s;
    animation-delay: -3s;
}

.wave-parallax use:nth-child(3) {
    animation-duration: 25s;
    animation-delay: -4s;
}

.wave-parallax use:nth-child(4) {
    animation-duration: 20s;
    animation-delay: -5s;
}

.wave-parallax use:nth-child(5) {
    animation: waveFloat 15s ease-in-out infinite;
    animation-delay: -6s;
}

@keyframes waveMove {
    0% {
        transform: translate3d(-90px, 0, 0);
    }
    100% {
        transform: translate3d(85px, 0, 0);
    }
}

@keyframes waveFloat {
    0%, 100% { transform: translate3d(-90px, 0px, 0); }
    25% { transform: translate3d(-45px, -8px, 0); }
    50% { transform: translate3d(0px, 0px, 0); }
    75% { transform: translate3d(45px, 5px, 0); }
}

.hero-logo {
    margin-bottom: 2rem;
}

.studio-logo {
    max-width: 300px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow);
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 5rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-left {
    flex: 0 0 380px;
    text-align: center;
    animation: slideInLeft 1s ease-out;
}

.hero-right {
    flex: 1;
    text-align: left;
    animation: slideInRight 1s ease-out 0.3s both;
}

.hero-right h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--neutral-dark);
    animation: fadeInUp 1s ease-out 0.6s both;
    position: relative;
}

.hero-right h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    animation: titleUnderline 1s ease-out 1.5s both;
}

@keyframes titleUnderline {
    0% { width: 0; }
    100% { width: 100%; }
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--neutral-dark);
    opacity: 0.8;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.9s both;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-logo {
    margin-bottom: 0;
}

.studio-logo {
    max-width: 350px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow);
    transition: all 0.3s ease;
    animation: logoEntrance 1.5s ease-out;
}

@keyframes logoEntrance {
    0% {
        opacity: 0;
        transform: scale(0.8) rotate(-5deg);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1) rotate(2deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.studio-logo:hover {
    transform: scale(1.02);
}

/* Hero Blocks */
.hero-blocks {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.hero-block {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.5rem;
    text-decoration: none;
    color: var(--neutral-dark);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 5px 15px var(--shadow);
    text-align: left;
    animation: fadeInUp 1s ease-out 1.2s both;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.hero-block svg {
    flex-shrink: 0;
}

.hero-block:nth-child(2) {
    animation-delay: 1.4s;
}

.hero-block:nth-child(3) {
    animation-delay: 1.6s;
}

.hero-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px var(--shadow-hover);
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.98);
}

.hero-block h3 {
    margin-bottom: 0.5rem;
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.hero-block:hover h3 {
    color: var(--neutral-dark);
}

.hero-block p {
    color: #666;
    line-height: 1.5;
    font-size: 0.9rem;
    margin: 0;
    transition: color 0.3s ease;
}

.hero-block:hover p {
    color: #444;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--neutral-dark);
    border-color: var(--neutral-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px var(--shadow-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px var(--shadow-hover);
}

.btn-outline {
    background: var(--neutral-dark);
    color: var(--white);
    border-color: var(--neutral-dark);
    box-shadow: 0 4px 15px rgba(46, 30, 79, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 1.2s ease;
}

.btn-outline:hover::before {
    left: 100%;
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(106, 75, 174, 0.4);
}

/* Sections */
.section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

/* Medzera medzi sekciami na PC */

/* Medzera nad animáciou vlny – padding na obsah sekcie */
.section > .container {
    padding-bottom: 80px;
}

@media (max-width: 600px) {
    .section > .container {
        padding-bottom: 40px;
    }
}

.section-alt {
    background: var(--neutral-light);
    padding: 230px 0;
}

.section h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--neutral-dark);
}

.section-description {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Grid Container */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Preview Grid Container (for index page) */
/* Games Blocks */
.games-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.games-block {
    margin-bottom: 0;
}

.games-block-title {
    color: var(--secondary);
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.games-block-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.games-slider {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

.slider-container {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease;
}

.game-slide {
    min-width: 100%;
    position: relative;
}

.game-image {
    position: relative;
    width: 100%;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.game-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.6), transparent);
    color: var(--white);
    padding: 2rem 1.5rem 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    text-align: center;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
    border: 2px solid var(--primary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: bold;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.slider-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: translateY(-50%);
}

.slider-btn:disabled:hover {
    transform: translateY(-50%) scale(1);
}

/* Preview Grid for sections */
.preview-grid, .preview-carousel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Preview Slider */
.preview-slider {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

.preview-slider .slider-container {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.preview-slider .slider-track {
    display: flex;
    justify-content: center;
    transition: transform 0.5s ease;
}

.preview-slide {
    min-width: 33.333%;
    position: relative;
    margin-right: -10px;
    z-index: 1;
    transition: transform 0.3s ease, z-index 0.3s ease;
}

.preview-slide:nth-child(1) { z-index: 3; }
.preview-slide:nth-child(2) { z-index: 2; transform: translateX(5px); }
.preview-slide:nth-child(3) { z-index: 1; transform: translateX(10px); }
.preview-slide:nth-child(4) { z-index: 1; transform: translateX(15px); }

.preview-slide:hover {
    transform: translateY(-5px) !important;
    z-index: 4 !important;
}

.preview-item {
    background: linear-gradient(135deg, var(--white) 0%, rgba(106, 75, 174, 0.08) 100%);
    border-radius: 20px;
    padding: 0;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 320px;
    min-width: 320px;
    max-width: 320px;
    margin: 0 0;
    overflow: hidden;
    height: 400px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.preview-item:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 25px 50px rgba(106, 75, 174, 0.25);
}

.item-image {
    width: 100%;
    height: 250px;
    position: relative;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.preview-item:hover .item-image img {
    transform: scale(1.15);
}

.preview-item h4 {
    color: var(--secondary);
    margin: 1.5rem 1rem 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 95%;
    align-self: center;
}

.preview-item p {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 1rem 1.5rem;
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    max-width: 95%;
    align-self: center;
}

/* Item badges for different content types */
.item-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.item-badge svg {
    width: 16px;
    height: 16px;
}

.software-item .item-badge {
    background: rgba(106, 75, 174, 0.95);
    color: white;
}

.web-item .item-badge {
    background: rgba(107, 209, 237, 0.95);
    color: white;
}

.blog-item .item-badge {
    background: rgba(221, 160, 230, 0.95);
    color: white;
}

/* Grid layouts for software, web-services, and blog sections */
.software-grid, .web-services-grid, .blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.software-grid .preview-item,
.web-services-grid .preview-item,
.blog-grid .preview-item {
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.software-grid .preview-item:hover,
.web-services-grid .preview-item:hover,
.blog-grid .preview-item:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 25px 50px rgba(106, 75, 174, 0.25);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* Grid Items */
.grid-item {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--secondary);
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px var(--shadow-hover);
}

.image-placeholder {
    width: 80px;
    height: 80px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    color: var(--primary);
}

.grid-item h3 {
    margin-bottom: 1rem;
    color: var(--neutral-dark);
}

.grid-item p {
    color: #666;
    line-height: 1.6;
}

/* Software Container */
.software-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.software-item {
    background: linear-gradient(135deg, var(--white) 0%, rgba(106, 75, 174, 0.08) 100%);
    padding: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.software-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.software-icon {
    width: 60px;
    height: 60px;
    background: var(--accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.software-item h3 {
    margin-bottom: 1rem;
    color: var(--neutral-dark);
}

.software-item p {
    color: #666;
    margin-bottom: 1rem;
}

.software-item ul {
    list-style: none;
    padding: 0;
}

.software-item li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--secondary);
    color: #555;
}

.software-item li:last-child {
    border-bottom: none;
}

/* Carousel Container */
.carousel-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.carousel-item {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--secondary);
}

.carousel-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px var(--shadow-hover);
}

/* Section Actions */
.section-actions {
    text-align: center;
    margin-top: 2rem;
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.section-actions a {
    margin: 0 auto;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5rem;
}

.about-stats {
    display: grid;
    gap: 2rem;
}

.stat {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #666;
    font-weight: 500;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
}

.contact-info {
    display: grid;
    gap: 2rem;
}

.contact-item h3 {
    color: var(--neutral-dark);
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #666;
}

.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--secondary);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--neutral-dark);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
    align-items: start;
}

.footer-brand .brand {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--secondary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* Mobile Navigation - Show hamburger at 1100px and below */
@media (max-width: 1100px) {
    .header-content {
        padding: 1rem;
        position: relative;
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 10px;
        right: 10px;
        background: linear-gradient(145deg, var(--white) 0%, var(--neutral-light) 100%);
        box-shadow: 0 15px 35px rgba(106, 75, 174, 0.15), 0 5px 15px rgba(0, 0, 0, 0.1);
        border-radius: 16px;
        transform: translateY(-20px) scale(0.9);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        z-index: 1000;
        border: 1px solid rgba(106, 75, 174, 0.1);
        backdrop-filter: blur(20px);
    }

    .nav.mobile-menu-open {
        transform: translateY(0) scale(1);
        opacity: 1;
        visibility: visible;
    }

    .nav ul {
        flex-direction: column;
        padding: 1rem 0;
        gap: 0;
        margin: 0;
    }

    .nav li {
        border-bottom: 1px solid rgba(106, 75, 174, 0.06);
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }

    .nav li:last-child {
        border-bottom: none;
    }

    .nav li::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        width: 0;
        background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
        transition: width 0.3s ease;
        z-index: -1;
    }

    .nav li:hover::before {
        width: 100%;
    }

    .nav a {
        display: block;
        padding: 1rem 1.5rem;
        color: var(--neutral-dark);
        font-weight: 600;
        font-size: 1rem;
        transition: all 0.3s ease;
        position: relative;
        text-align: center;
        letter-spacing: 0.5px;
    }

    .nav a:hover {
        color: var(--white);
        transform: translateX(5px);
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

/* Responsive Design */
@media (max-width: 1100px) {
    .container {
        padding: 0 1rem;
    }

    /* All buttons above SVG waves/animations (mobile & narrow desktop) */
    button {
        position: relative;
        z-index: 10;
    }

    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 1rem;
    }

    .brand {
        font-size: 1.5rem;
    }

    .header-right {
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .select-selected {
        font-size: 0.85rem;
        padding: 0.4rem 2rem 0.4rem 0.5rem;
    }

    .select-selected .flag-icon {
        width: 24px;
        height: 18px;
    }

    .select-items div {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .hero-left {
        flex: none;
    }

    .hero-right {
        text-align: center;
    }

    .hero-blocks {
        justify-items: center;
    }

    .hero-block {
        text-align: center;
        max-width: 400px;
    }

    .section {
        padding: 60px 0;
    }

    .grid-container,
    .software-container,
    .carousel-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }
}

/* Tablet Styles */
@media (min-width: 1025px) and (max-width: 1099px) {
    .header-content {
        padding: 1rem 1.5rem;
    }

    .nav ul {
        gap: 1.5rem;
    }

    .hero {
        padding: 120px 0 80px;
    }

    .hero-content {
        gap: 3rem;
    }
}

@media (max-width: 480px) {
    .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
    }

    /* All buttons above SVG waves/animations */
    button {
        position: relative;
        z-index: 10;
    }

    .header-content {
        padding: 0.75rem 1rem;
    }

    .brand {
        font-size: 1.3rem;
    }

    .select-selected {
        font-size: 0.8rem;
        padding: 0.3rem 1.2rem 0.3rem 0.6rem;
    }

    .select-selected {
        font-size: 0.8rem;
        padding: 0.3rem 1.8rem 0.3rem 0.4rem;
    }

    .select-selected .flag-icon {
        width: 20px;
        height: 15px;
    }

    .select-items div {
        padding: 0.5rem 0.6rem;
        font-size: 0.8rem;
    }

    .mobile-menu-toggle {
        width: 24px;
        height: 20px;
    }

    .header-right {
        gap: 0.5rem;
    }

    .hero {
        padding: 80px 0 40px;
    }

    .hero-right h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.4;
    }

    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.4rem; }

    .nav a {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }

    .grid-item,
    .software-item,
    .carousel-item {
        padding: 1.2rem;
    }

    .contact-form {
        padding: 1.2rem;
    }

    .container {
        padding: 0 0.75rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    animation: fadeInUp 0.6s ease-out;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* Footer */
.footer {
    background: var(--neutral-dark);
    color: var(--white);
    padding: 140px 0 30px;
    margin-top: 0;
    position: relative;
    z-index: 2;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: var(--secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--secondary);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-studio-logo {
    width: 50px;
    height: 50px;
    border-radius: 8px;
}

.footer-logo h3 {
    color: var(--secondary);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(241, 238, 246, 0.949);
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.contact-info p {
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive Games Sliders */
@media (max-width: 768px) {
    .games-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .games-block-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .game-image {
        height: 250px;
    }
    
    .game-title {
        font-size: 1.3rem;
        padding: 1.5rem 1rem 1rem;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .prev-btn {
        left: 10px;
    }
    
    .next-btn {
        right: 10px;
    }
}

.contact-info strong {
    color: var(--secondary);
}

.newsletter h5 {
    color: var(--secondary);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.newsletter p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 0.9rem;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--secondary);
    background: rgba(255, 255, 255, 0.15);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

.social-link svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}



@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-links {
        justify-content: center;
    }

    .newsletter-form {
        flex-direction: column;
    }



    .newsletter-form input {
        margin-bottom: 0.5rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .preview-grid, .preview-carousel {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Scroll Buttons */
.scroll-btn {
    position: fixed;
    width: 60px;
    height: 60px;
    background: rgba(106, 75, 174, 0.9);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(106, 75, 174, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
}

.scroll-btn.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-btn:hover {
    background: var(--primary);
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(106, 75, 174, 0.4);
}

.scroll-up-btn {
    top: 120px;
    right: 30px;
}

.scroll-down-btn {
    bottom: 30px;
    right: 30px;
}

@media (max-width: 768px) {
    .scroll-btn {
        width: 50px;
        height: 50px;
    }

    .scroll-up-btn {
        top: 100px;
        right: 20px;
    }

    .scroll-down-btn {
        bottom: 20px;
        right: 20px;
    }
}

/* Responsive Preview Items */
@media (max-width: 768px) {
    .software-grid, .web-services-grid, .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .preview-item {
        max-width: 100%;
        height: auto;
        margin: 0;
    }

    .item-image {
        height: 200px;
    }

    .item-badge {
        top: 10px;
        right: 10px;
        padding: 4px 8px;
        font-size: 0.7rem;
    }

    .item-badge svg {
        width: 14px;
        height: 14px;
    }

    .preview-item h4 {
        font-size: 1.3rem;
        margin: 1rem 1rem 0.5rem;
    }

    .preview-item p {
        font-size: 0.95rem;
        margin: 0 1rem 1rem;
    }
}

@media (min-width: 769px) {
    .preview-slide:nth-child(1) {
        z-index: 4;
        transform: translateX(0);
    }

    .preview-slide:nth-child(2) {
        z-index: 3;
        transform: translateX(-10px);
    }

    .preview-slide:nth-child(3) {
        z-index: 2;
        transform: translateX(-20px);
    }

    .preview-slide:nth-child(4) {
        z-index: 1;
        transform: translateX(-30px);
    }
}
