/* Глобальні стилі */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #2c1810;
    background: linear-gradient(135deg, #8B4513, #CD853F, #DEB887);
    background-attachment: fixed;
    position: relative;
    overflow-x: hidden;
}

/* Додавання гоблін декорацій */
body::before {
    content: '';
    position: fixed;
    top: 10%;
    right: -100px;
    width: 200px;
    height: 200px;
    background: url('https://www.deviantart.com/chelarsen/art/Loot-Goblin-520827433') no-repeat center;
    background-size: contain;
    opacity: 0.1;
    z-index: -1;
    animation: floatGoblin 6s ease-in-out infinite;
}

body::after {
    content: '';
    position: fixed;
    bottom: 10%;
    left: -100px;
    width: 180px;
    height: 180px;
    background: url('https://www.deviantart.com/shattered-earth/art/Steam-Bandits-Outpost-Companion-Bob-the-Goblin-382510771') no-repeat center;
    background-size: contain;
    opacity: 0.1;
    z-index: -1;
    animation: floatGoblin 8s ease-in-out infinite reverse;
}

@keyframes floatGoblin {
    0%, 100% { transform: translateY(0px) rotate(-5deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* Анімації копання */
@keyframes digging {
    0%, 100% { transform: translateY(0px); }
    25% { transform: translateY(-8px) rotate(-2deg); }
    50% { transform: translateY(-4px) rotate(1deg); }
    75% { transform: translateY(-12px) rotate(-1deg); }
}

/* Заголовок */
header {
    background: linear-gradient(135deg, #4A4A4A 0%, #B8860B 50%, #FFD700 100%);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: #2c1810;
    text-shadow: 2px 2px 4px rgba(255,215,0,0.3);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: #2c1810;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 15px;
    border-radius: 25px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.nav-links a:hover {
    background: rgba(255,215,0,0.2);
    border-color: #FFD700;
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #2c1810;
    margin: 3px 0;
    transition: 0.3s;
}

/* Головна секція */
.hero {
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(135deg, #8B4513 0%, #CD853F 50%, #DEB887 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    padding: 0 20px;
}

/* Додаткові гоблін декорації для hero секції */
.hero::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 10%;
    width: 150px;
    height: 150px;
    background: url('https://images-wixmp-ed30a86b8c4ca887773594c2.wixmp.com/f/8b432d30-5c6c-49f1-87e5-a355912e3b2b/ddqs3ye-8b7d09e4-7fdb-41c3-a9c3-6cb895a1b38e.png?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ1cm46YXBwOjdlMGQxODg5ODIyNjQzNzNhNWYwZDQxNWVhMGQyNmUwIiwiaXNzIjoidXJuOmFwcDo3ZTBkMTg4OTgyMjY0MzczYTVmMGQ0MTVlYTBkMjZlMCIsIm9iaiI6W1t7InBhdGgiOiJcL2ZcLzhiNDMyZDMwLTVjNmMtNDlmMS04N2U1LWEzNTU5MTJlM2IyYlwvZGRxczN5ZS04YjdkMDllNC03ZmRiLTQxYzMtYTljMy02Y2I4OTVhMWIzOGUucG5nIn1dXSwiYXVkIjpbInVybjpzZXJ2aWNlOmZpbGUuZG93bmxvYWQiXX0.GcS4eDK4Yb4Xv_6YFYhKYhb4zQOq8E3jVv9FHK7D8sI') no-repeat center;
    background-size: contain;
    opacity: 0.3;
    animation: digging 3s ease-in-out infinite;
    z-index: 1;
}

.hero::after {
    content: '💎⛏️💰';
    position: absolute;
    top: 70%;
    right: 15%;
    font-size: 3rem;
    opacity: 0.4;
    animation: floatTreasure 4s ease-in-out infinite;
    z-index: 1;
}

@keyframes floatTreasure {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-15px) rotate(10deg); }
    66% { transform: translateY(-8px) rotate(-5deg); }
}

.hero-content {
    max-width: 800px;
    width: 100%;
    z-index: 2;
    position: relative;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.7);
    position: relative;
    z-index: 2;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    position: relative;
    z-index: 2;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.btn {
    padding: 15px 30px;
    background: linear-gradient(135deg, #FFD700, #B8860B);
    color: #2c1810;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255,215,0,0.3);
    border: 2px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    text-align: center;
}

.btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255,215,0,0.4);
    border-color: #FFA500;
    animation: digging 0.6s ease-in-out;
}

/* Секції */
.section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.section:nth-child(even) {
    background: linear-gradient(135deg, #DEB887 0%, #D2B48C 100%);
}

.section:nth-child(odd) {
    background: linear-gradient(135deg, #F5DEB3 0%, #F0E68C 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.section-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.section:nth-child(even) .section-content {
    grid-template-columns: 1fr 1fr;
}

.section:nth-child(odd) .section-content {
    grid-template-columns: 1fr 1fr;
}

.text-content h2 {
    font-size: 3rem;
    margin-bottom: 30px;
    color: #8B4513;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.text-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #2c1810;
}

.image-content {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    background: linear-gradient(135deg, #8B4513, #CD853F);
    padding: 60px 30px;
    text-align: center;
    color: white;
}

.image-content:hover {
    transform: scale(1.02) rotate(1deg);
}

.image-content::before {
    content: '👹⛏️💎💰';
    font-size: 4rem;
    display: block;
    margin-bottom: 20px;
    animation: digging 2s ease-in-out infinite;
}

.image-content::after {
    content: 'Gold and Goblins';
    font-size: 1.8rem;
    font-weight: bold;
    display: block;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Специфічні секції з різними фонами */
#about {
    background: linear-gradient(135deg, #DEB887 0%, #D2B48C 100%);
}

#about::before {
    content: '👹⛏️';
    position: absolute;
    top: 20%;
    right: 10%;
    font-size: 5rem;
    opacity: 0.2;
    animation: digging 4s ease-in-out infinite;
}

#services {
    background: linear-gradient(135deg, #F0E68C 0%, #DAA520 100%);
}

#services::before {
    content: '';
    position: absolute;
    top: 30%;
    left: 5%;
    width: 200px;
    height: 200px;
    background: url('https://images-wixmp-ed30a86b8c4ca887773594c2.wixmp.com/f/0c47b22a-7a91-4550-897c-50aa5d0dc798/de5q3ea-7f8b9ce5-9b8f-4b4e-9c2a-6b7d8e9f0a1b.png') no-repeat center;
    background-size: contain;
    opacity: 0.15;
    animation: floatGoblin 5s ease-in-out infinite;
}

#portfolio {
    background: linear-gradient(135deg, #D2B48C 0%, #BC9A6A 100%);
}

#portfolio::after {
    content: '💎💰⛏️👹';
    position: absolute;
    bottom: 20%;
    right: 15%;
    font-size: 2.5rem;
    opacity: 0.3;
    animation: floatTreasure 6s ease-in-out infinite;
}

#contact {
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
}

#contact::before {
    content: '';
    position: absolute;
    top: 25%;
    left: 15%;
    width: 120px;
    height: 120px;
    background: url('https://images-wixmp-ed30a86b8c4ca887773594c2.wixmp.com/f/goblin-miner-art.png') no-repeat center;
    background-size: contain;
    opacity: 0.2;
    animation: digging 3.5s ease-in-out infinite;
}

/* Сервіси сітка */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,215,0,0.1));
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(139,69,19,0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,215,0,0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.service-card:hover::before {
    opacity: 1;
    top: -60%;
    left: -60%;
}

.service-card:hover {
    transform: translateY(-10px) rotate(2deg);
    box-shadow: 0 20px 40px rgba(139,69,19,0.3);
    animation: digging 0.8s ease-in-out;
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #8B4513;
}

.service-card p {
    color: #2c1810;
    position: relative;
    z-index: 2;
}

/* Форма контакту */
.contact-form {
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,215,0,0.1));
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(139,69,19,0.3);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '⛏️💎';
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2rem;
    opacity: 0.3;
    animation: digging 2s ease-in-out infinite;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #8B4513;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #D2B48C;
    border-radius: 10px;
    font-size: 1rem;
    background: rgba(255,255,255,0.9);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #FFD700;
    box-shadow: 0 0 10px rgba(255,215,0,0.3);
    transform: scale(1.02);
}

/* Підвал */
footer {
    background: linear-gradient(135deg, #2c1810, #8B4513);
    color: white;
    text-align: center;
    padding: 50px 0;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '👹⛏️💰💎';
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3rem;
    opacity: 0.1;
    animation: floatTreasure 8s ease-in-out infinite;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #FFD700;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    padding: 10px 15px;
    border-radius: 20px;
}

.footer-links a:hover {
    background: rgba(255,215,0,0.2);
    transform: translateY(-2px);
    text-shadow: 0 0 10px rgba(255,215,0,0.8);
}

/* Додаткові стилі для рейтингу */
.rating {
    margin-top: 2rem;
    text-align: center;
}

.stars {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

.rating-text {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.rating-display {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,215,0,0.1));
    border-radius: 15px;
    text-align: center;
}

.rating-stars {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.rating-display p {
    margin: 0.5rem 0;
    font-size: 1.1rem;
    color: #2c1810;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.features-list li {
    padding: 0.5rem 0;
    font-size: 1.1rem;
    color: #2c1810;
}

.app-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* Адаптивний дизайн */

/* Великі планшети (768px - 1024px) */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .text-content h2 {
        font-size: 2.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }
    
    .section-content {
        gap: 40px;
    }
    
    .image-content {
        padding: 50px 25px;
    }
    
    .image-content::before {
        font-size: 3.5rem;
    }
    
    .image-content::after {
        font-size: 1.6rem;
    }
}

/* Малі планшети (768px) */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, #FFD700, #B8860B);
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.3);
        border-radius: 0 0 20px 20px;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .logo {
        font-size: 1.8rem;
    }

    .hero {
        height: 100vh;
        min-height: 500px;
        padding: 0 15px;
    }

    .hero-content h1 {
        font-size: 2.8rem;
        margin-bottom: 15px;
    }

    .hero-content p {
        font-size: 1.3rem;
        margin-bottom: 25px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
        padding: 12px 25px;
        font-size: 1rem;
    }

    .section {
        padding: 80px 0;
    }

    .section-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .text-content h2 {
        font-size: 2.2rem;
        margin-bottom: 25px;
    }

    .text-content p {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 40px;
    }

    .service-card {
        padding: 30px 20px;
    }

    .service-card h3 {
        font-size: 1.6rem;
    }

    .image-content {
        padding: 40px 20px;
    }

    .image-content::before {
        font-size: 3rem;
    }

    .image-content::after {
        font-size: 1.4rem;
    }

    .contact-form {
        padding: 40px 25px;
        margin: 0 15px;
    }

    .app-badges {
        flex-direction: column;
        gap: 15px;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
    
    .rating-display {
        padding: 1.2rem;
    }
    
    .rating-stars {
        font-size: 1.8rem;
    }
    
    .features-list li {
        font-size: 1rem;
    }
    
    /* Приховати декоративні елементи на мобільних */
    body::before,
    body::after,
    .hero::before,
    .hero::after,
    #about::before,
    #services::before,
    #portfolio::after,
    #contact::before {
        display: none;
    }
}

/* Малі мобільні пристрої (480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .hero {
        min-height: 450px;
        padding: 0 10px;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
        margin-bottom: 12px;
    }
    
    .hero-content p {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .text-content h2 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .text-content p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .service-card {
        padding: 25px 15px;
    }
    
    .service-card h3 {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }
    
    .image-content {
        padding: 30px 15px;
    }
    
    .image-content::before {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .image-content::after {
        font-size: 1.2rem;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    .rating-display {
        padding: 1rem;
    }
    
    .rating-stars {
        font-size: 1.5rem;
    }
    
    .rating-display p {
        font-size: 1rem;
    }
    
    .features-list li {
        font-size: 0.9rem;
        padding: 0.3rem 0;
    }
    
    .nav-links {
        padding: 15px;
    }
    
    .nav-links a {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    footer {
        padding: 30px 0;
    }
    
    .footer-content {
        padding: 0 15px;
    }
    
    .footer-links a {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}

/* Дуже малі мобільні пристрої (320px) */
@media (max-width: 320px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .text-content h2 {
        font-size: 1.5rem;
    }
    
    .service-card h3 {
        font-size: 1.2rem;
    }
    
    .image-content::before {
        font-size: 2rem;
    }
    
    .image-content::after {
        font-size: 1rem;
    }
    
    .contact-form {
        padding: 20px 15px;
    }
    
    .btn {
        padding: 8px 15px;
        font-size: 0.8rem;
    }
}

/* Landscape орієнтація для мобільних */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        height: 100vh;
        min-height: 400px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    .section {
        padding: 50px 0;
    }
}

/* Покращення для touch пристроїв */
@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        transform: none;
        box-shadow: 0 4px 15px rgba(255,215,0,0.3);
    }
    
    .service-card:hover {
        transform: none;
        box-shadow: 0 10px 30px rgba(139,69,19,0.2);
    }
    
    .image-content:hover {
        transform: none;
    }
    
    .nav-links a:hover {
        transform: none;
    }
}

/* Додаткові утиліти для адаптивності */
.text-center-mobile {
    text-align: center;
}

@media (max-width: 768px) {
    .text-center-mobile {
        text-align: center;
    }
}

/* Покращення читабельності на малих екранах */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
    
    * {
        -webkit-tap-highlight-color: transparent;
    }
    
    input, textarea, button {
        font-size: 16px; /* Запобігання zoom на iOS */
    }
} 