:root {
    --bg-color: #fbfbfd;
    --text-main: #1d1d1f;
    --text-muted: #86868b;
    --primary: #0071e3;
    --secondary: #0077ed;
    --border-color: #d2d2d7;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative; /* ensure the fixed background sits below */
}

/* Ambient Background */
.ambient-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.ambient-balloon {
    position: absolute;
    opacity: 0.25;
    filter: blur(6px);
}

.ab1 {
    width: 300px;
    top: -50px;
    left: -100px;
    animation: ambientFloat 18s ease-in-out infinite alternate;
}

.ab2 {
    width: 400px;
    top: 40%;
    right: -150px;
    animation: ambientFloat 25s ease-in-out infinite alternate-reverse;
}

.ab3 {
    width: 250px;
    bottom: -80px;
    left: 20%;
    animation: ambientFloat 20s ease-in-out infinite alternate;
}

.ab4 {
    width: 150px;
    top: 20%;
    left: 60%;
    animation: ambientFloat 15s ease-in-out infinite alternate-reverse;
}

@keyframes ambientFloat {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(60px, -60px) rotate(10deg); }
}

/* Navbar removed for embedding */

/* Buttons */
.btn-primary {
    background: var(--primary);
    color: #fff;
    padding: 0.8rem 1.8rem;
    border-radius: 980px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    display: inline-block;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: var(--secondary);
}

/* Hero */
.hero {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 60px 5% 60px 5%;
    overflow: hidden;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-text {
    flex: 1;
    text-align: left;
    padding-right: 50px;
    z-index: 10;
}

.hero-text h1 {
    font-size: 4.5rem;
    font-weight: 700;
    letter-spacing: -2px;
    line-height: 1.05;
    margin-bottom: 1rem;
}

.hero-text p {
    font-size: 1.5rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 0 2rem 0;
    font-weight: 400;
    letter-spacing: -0.2px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    margin-top: 0;
}

.hero-composition {
    position: relative;
    display: inline-block;
}

.main-screenshot {
    max-width: 320px;
    border-radius: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    border: 8px solid #000;
    position: relative;
    z-index: 1;
}

.floating-character {
    position: absolute;
    width: 250px;
    bottom: -30px;
    left: -120px;
    z-index: 2;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.3));
    animation: floatCharacter 4s ease-in-out infinite;
}

@keyframes floatCharacter {
    0% { transform: translateY(0px) rotate(-2deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(-2deg); }
}

.balloons-container {
    position: absolute;
    width: 200px;
    height: 100%;
    right: -180px;
    top: 0;
    z-index: 2;
}

.balloon {
    position: absolute;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.2));
}

.b1 {
    width: 80px;
    top: 20%;
    left: 20px;
    animation: floatBalloon 6s ease-in-out infinite;
}

.b2 {
    width: 120px;
    top: 50%;
    left: 80px;
    animation: floatBalloon 5s ease-in-out infinite 1s;
}

.b3 {
    width: 90px;
    bottom: 10%;
    left: 40px;
    animation: floatBalloon 7s ease-in-out infinite 2s;
}

@keyframes floatBalloon {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-25px) rotate(5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

/* Common Section */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
    text-align: center;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -1.5px;
    margin-bottom: 4rem;
}

.bg-light {
    background-color: #f5f5f7;
}

/* Features Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    text-align: left;
}

.grid-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.grid-item p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Gallery */
.gallery-section {
    position: relative;
    overflow: hidden;
    padding-bottom: 60px;
}

.gallery-side-character {
    position: absolute;
    width: 250px;
    bottom: 20px;
    left: 20px;
    z-index: 2;
    animation: floatCharacter 5s ease-in-out infinite;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.3));
}

.gallery-side-balloons {
    position: absolute;
    right: 50px;
    top: 50px;
    width: 200px;
    height: 100%;
    z-index: 2;
}

.gallery-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}

.gallery-img {
    width: 280px;
    border-radius: 35px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border: 6px solid #000;
    transition: transform 0.4s ease;
}

.gallery-img:hover {
    transform: translateY(-10px);
}

/* Footer */
.footer {
    background-color: #f5f5f7;
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-top: auto;
}

.footer .container {
    padding: 0 2rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo-img {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.footer h2 {
    font-size: 1.2rem;
    margin-bottom: 0;
}

.footer p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.top-bar {
    position: absolute;
    top: 24px;
    left: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.portfolio-back-link {
    display: flex;
    align-items: center;
    gap: 2px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    transition: opacity 0.2s;
}

.portfolio-back-link:hover {
    opacity: 0.8;
}

.back-logo {
    height: 56px;
    width: auto;
}

.back-text {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #1e293b;
}

.accent-text {
    color: #00e5ff;
    font-weight: 800;
}

.lang-switcher select {
    appearance: none;
    background: rgba(30, 41, 59, 0.08);
    border: 1px solid rgba(30, 41, 59, 0.2);
    color: #1e293b;
    padding: 8px 16px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    outline: none;
    transition: background 0.2s, border-color 0.2s;
}

.lang-switcher select:hover, .lang-switcher select:focus {
    background: rgba(30, 41, 59, 0.14);
    border-color: #00e5ff;
}

.lang-switcher select option {
    background: #0f172a;
    color: #fff;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, #0071e3, #00e5ff);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    padding: 0.35rem 0.85rem;
    border-radius: 980px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.gradient-text {
    background: linear-gradient(135deg, #0071e3, #00e5ff, #ff2d55);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-secondary {
    background: rgba(0, 113, 227, 0.08);
    color: var(--primary);
    padding: 0.8rem 1.8rem;
    border-radius: 980px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    display: inline-block;
    transition: background 0.2s;
}

.btn-secondary:hover {
    background: rgba(0, 113, 227, 0.16);
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        padding-top: 40px;
        text-align: center;
    }
    .hero-text {
        text-align: center;
        padding-right: 0;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-text p {
        margin: 0 auto 2rem auto;
    }
    .hero-image {
        margin-top: 4rem;
    }
    .hero-text h1 {
        font-size: 3.5rem;
    }
    .hero-text p {
        font-size: 1.2rem;
    }
}
