/* ===== RESET AND BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #f59e0b;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #f59e0b, #d97706);
    border-radius: 2px;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 255);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.8rem;
    font-weight: 700;
    color: #f59e0b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-logo a:hover {
    color: #f59e0b;
}

.logo-image {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.logo-img2 {
    width: 220px;
    height: 56px;
    border-radius: 0%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.logo-image:hover {
    transform: scale(1.1);
}

.logo-text {
    display: inline-block;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #6b46c1;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #f59e0b;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

/* Language toggle */
.lang-toggle {
    display: flex;
    gap: 6px;
    align-items: center;
}
.lang-btn {
    background: transparent;
    border: 1px solid rgba(0,0,0,0.08);
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}
.lang-btn.active {
    background: linear-gradient(90deg, #6b46c1, #f59e0b);
    color: #fff;
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    /* Background image with subtle gradient overlay for readability */
    background: linear-gradient(rgba(255,255,255,0.45), rgba(243,232,255,0.45)), url('img/bg2.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    padding: 120px 20px 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23f59e0b" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%236b46c1" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%23f59e0b" opacity="0.15"/><circle cx="10" cy="60" r="0.5" fill="%236b46c1" opacity="0.15"/><circle cx="90" cy="40" r="0.5" fill="%23f59e0b" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #6b46c1;
    -webkit-text-stroke: 2px rgba(255,255,255,0.95);
    text-shadow: 0 3px 10px rgba(0,0,0,0.45);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #8a8792;
    -webkit-text-stroke: 1.5px rgba(0, 0, 0, 0.95);
    text-shadow: 0 2px 8px rgba(0,0,0,0.45);
    margin-bottom: 2rem;
    font-weight: 500;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #6b46c1, #f59e0b);
    color: white;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(107, 70, 193, 0.3);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(107, 70, 193, 0.4);
    background: linear-gradient(135deg, #7c3aed, #d97706);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #6b46c1, #f59e0b);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: 500;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.hero-placeholder::before {
    content: '🏙️ City Adventure';
    font-size: 2rem;
}

/* Timeline / How it works */
.how-it-works .lead {
    text-align: center;
    margin: 0 auto 2rem;
    max-width: 760px;
    color: #5a4a3a;
}
.steps-grid.timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}
.steps-grid.timeline .step {
    text-align: center;
    padding: 1.5rem;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.04);
}
.steps-grid.timeline .step-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: linear-gradient(90deg,#6b46c1,#f59e0b);
    color: white;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:700;
}

/* ===== HOW IT WORKS SECTION ===== */
.how-it-works {
    padding: 100px 0;
    background: white;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.step {
    text-align: center;
    padding: 2rem;
    border-radius: 20px;
    background: #fafafa;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.step:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #f59e0b;
    background: white;
}

.step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #6b46c1, #f59e0b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.step-icon svg {
    width: 40px;
    height: 40px;
}

.step h3 {
    font-size: 1.5rem;
    color: #6b46c1;
    margin-bottom: 1rem;
}

.step p {
    color: #5a4a3a;
    line-height: 1.6;
}

/* ===== GAMES SECTION ===== */
.games {
    padding: 100px 0;
    background: linear-gradient(135deg, #fdf4ff 0%, #f3e8ff 100%);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.game-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.game-image {
    height: 200px;
    overflow: hidden;
}

.game-image img.game-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.game-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #6b46c1, #f59e0b);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
}

.game-content {
    padding: 2rem;
}

.game-content h3 {
    font-size: 1.4rem;
    color: #6b46c1;
    margin-bottom: 1rem;
}

.game-content p {
    color: #5a4a3a;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.game-button {
    display: inline-block;
    background: linear-gradient(135deg, #6b46c1, #f59e0b);
    color: white;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.game-button:hover {
    background: linear-gradient(135deg, #7c3aed, #d97706);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(107, 70, 193, 0.3);
}

/* Modal / Popup styles */
.modal { display:none; }
.modal.open { display:block; }
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1500;
}
.modal-content {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    width: min(680px, 92%);
    z-index: 1600;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.modal-close {
    position: absolute;
    right: 12px;
    top: 8px;
    border: none;
    background: transparent;
    font-size: 1.6rem;
    cursor: pointer;
}
.modal-actions { display:flex; gap:12px; justify-content:center; margin-top:1rem; flex-wrap:wrap; }
.store-btn {
    background: linear-gradient(90deg,#6b46c1,#f59e0b);
    color: white;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight:600;
}
.store-btn.secondary { background: #f3f4f6; color:#333; }
.modal-note { text-align:center; margin-top:0.8rem; color:#6b6b6b; font-size:0.95rem; }

/* Footer wordmark */
.footer-wordmark { width: 200px; height: auto; display:block; }

/* Partners tweaks */
.partners-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap:1rem; }
.partner-card { padding:1rem; border-radius:12px; background:white; border:1px solid rgba(0,0,0,0.04); }
.partner-placeholder { width:56px; height:56px; display:flex; align-items:center; justify-content:center; border-radius:8px; background:linear-gradient(90deg,#f59e0b,#6b46c1); color:white; font-size:1.25rem; }

/* ===== WHY POTULKY SECTION ===== */
.why-potulky {
    padding: 100px 0;
    background: white;
}

.why-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}

.why-text p {
    font-size: 1.1rem;
    color: #5a4a3a;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.highlights-grid {
    display: grid;
    gap: 2rem;
}

.highlight {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 15px;
    background: #fafafa;
    transition: all 0.3s ease;
}

.highlight:hover {
    background: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateX(10px);
}

.highlight-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #6b46c1, #f59e0b);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.highlight-icon svg {
    width: 24px;
    height: 24px;
}

.highlight h3 {
    font-size: 1.2rem;
    color: #6b46c1;
    margin-bottom: 0.5rem;
}

.highlight p {
    color: #5a4a3a;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* ===== TEAM SECTION ===== */
.team {
    padding: 100px 0;
    background: white;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.team-member {
    text-align: center;
    padding: 2rem;
    border-radius: 20px;
    background: #fafafa;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #f59e0b;
    background: white;
}

.team-image {
    margin-bottom: 1.5rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.team-photo {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.team-photo:hover {
    transform: scale(1.05);
}

.team-content h3 {
    font-size: 1.4rem;
    color: #6b46c1;
    margin-bottom: 1rem;
}

.team-content p {
    color: #5a4a3a;
    line-height: 1.6;
}

/* ===== PARTNERS SECTION ===== */
.partners {
    padding: 100px 0;
    background: linear-gradient(135deg, #fdf4ff 0%, #f3e8ff 100%);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.partner-card {
    text-align: center;
    padding: 2rem;
    border-radius: 20px;
    background: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.partner-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #f59e0b;
}

.partner-logo {
    margin-bottom: 1.5rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.partner-placeholder {
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, #6b46c1, #f59e0b);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.partner-placeholder:hover {
    transform: scale(1.05);
}

.partner-card h3 {
    font-size: 1.3rem;
    color: #6b46c1;
    margin-bottom: 1rem;
}

.partner-card p {
    color: #5a4a3a;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
    padding: 100px 0;
    background: linear-gradient(135deg, #fdf4ff 0%, #f3e8ff 100%);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.testimonial {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: #f59e0b;
    font-weight: bold;
}

.testimonial:hover {
    transform: translateY(-5px);
}

.testimonial-content p {
    font-style: italic;
    color: #5a4a3a;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.testimonial-author strong {
    color: #6b46c1;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.3rem;
}

.testimonial-author span {
    color: #7c3aed;
    font-size: 0.9rem;
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(135deg, #7c3aed, #3f3274);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    font-size: 1.8rem;
    color: #f59e0b;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: #b8b8b8;
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: #b8b8b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #f59e0b;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #f59e0b;
    transform: translateY(-3px);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: #b8b8b8;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: #f59e0b;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet Styles */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .why-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-links {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

    .logo-image {
        width: 35px;
        height: 35px;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
}

/* Mobile Styles */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 100px 15px 40px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .step, .game-card, .testimonial {
        padding: 1.5rem;
    }

    .cta-button, .game-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .why-potulky, .how-it-works, .games, .team, .partners, .testimonials {
        padding: 60px 0;
    }

    .logo-image {
        width: 30px;
        height: 30px;
    }

    .team-photo {
        height: 200px;
    }

    .partners-grid {
        grid-template-columns: 1fr;
    }

    .partner-placeholder {
        height: 100px;
        font-size: 1.2rem;
    }
}

/* Animation for smooth scrolling */
@media (prefers-reduced-motion: no-preference) {
    .step, .game-card, .highlight, .testimonial, .team-member, .partner-card {
        animation: fadeInUp 0.6s ease-out;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus styles for accessibility */
.cta-button:focus,
.game-button:focus,
.nav-link:focus {
    outline: 3px solid #f59e0b;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hero {
        background: white;
    }
    
    .games, .testimonials {
        background: white;
    }
    
    .step, .game-card, .testimonial {
        border: 2px solid #333;
    }
}
