:root {
    /* Cute & Colorful Indie Palette */
    --sky-top: #ffb7b2; /* Soft pastel pink/coral */
    --sky-mid: #e2f0cb; /* Pastel green/yellow */
    --sky-bottom: #b5ead7; /* Minty pastel blue */
    
    --ink: #5e548e; /* Soft dark purple for shadows */
    --surface-light: #fef9f8; /* Soft warm white */
    --primary-color: #ff9aa2; /* Cute pink */
    --secondary-color: #9d8189; /* Dusky rose */
    --tertiary-color: #ffdac1; /* Peach */
    
    --text-main: #5e548e; /* Dark purple */
    --text-light: #2b2d42;
    
    --font-heading: 'Coiny', cursive;
    --font-body: 'Winky Sans', sans-serif;
    --font-accent: 'Jersey 25', sans-serif;
    
    --border-width: 3px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--sky-top);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.5;
    font-size: 1.2rem; /* Hand fonts need slightly larger size to be readable */
    overflow-x: hidden;
    position: relative;
}

/* Heavy scratchy paper noise texture */
body::after {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('data:image/svg+xml;utf8,%3Csvg viewBox=%220 0 200 200%22 xmlns=%22http://www.w3.org/2000/svg%22%3E%3Cfilter id=%22noise%22%3E%3CfeTurbulence type=%22fractalNoise%22 baseFrequency=%221.5%22 numOctaves=%224%22 stitchTiles=%22stitch%22/%3E%3C/filter%3E%3Crect width=%22100%25%22 height=%22100%25%22 filter=%22url(%23noise)%22/%3E%3C/svg%3E');
    opacity: 0.05; /* Softer grain for cute indie feel */
    z-index: 9999;
    pointer-events: none;
    mix-blend-mode: multiply;
}

/* Atmospheric Sky Background */
.sky-gradient {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, var(--sky-top) 0%, var(--sky-mid) 50%, var(--sky-bottom) 100%);
    z-index: -2;
}

.vignette {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle, transparent 30%, rgba(94, 84, 142, 0.1) 100%);
    z-index: -1;
    pointer-events: none;
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 1px;
}

.highlight {
    color: var(--primary-color);
    text-shadow: 3px 3px 0 var(--ink);
    position: relative;
    display: inline-block;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(254, 249, 248, 0.95);
    border-bottom: 3px dashed var(--primary-color);
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 1;
}

.logo img {
    height: 72px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05) rotate(-2deg);
}

.navbar.scrolled .logo {
    /* Logo image doesn't need text color changes */
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-family: var(--font-accent);
    font-size: 1.8rem;
    transition: all 0.2s ease;
    opacity: 0.8;
}

.navbar.scrolled .nav-links a {
    color: var(--text-main);
}

.nav-links a:hover {
    transform: translateY(-2px) rotate(-2deg);
    color: var(--primary-color);
    opacity: 1;
    text-shadow: 1px 1px 0 var(--ink);
}

.btn-nav {
    display: none !important;
}

@media (min-width: 900px) {
    .nav-links{
        gap: .5rem 2rem;
        flex-wrap: wrap;
        justify-content: center;
        padding: 0 20px;
    }

    .btn-nav {
        display: inline-block !important;
        padding: 0.2rem 1.5rem !important;
        min-width: 200px;
        background: var(--surface-light);
        color: var(--text-main);
        text-decoration: none;
        font-family: var(--font-accent);
        font-size: 1.8rem;
        border: 2px solid var(--ink);
        border-radius: 8px;
        transition: all 0.2s ease;
        opacity: 0.9;
        box-shadow: 3px 3px 0 var(--ink);
    }
    .btn-nav:hover {
        transform: translateY(2px) rotate(2deg);
        background: var(--primary-color);
        color: var(--surface-light);
        opacity: 1;
        box-shadow: 1px 1px 0 var(--ink);
    }
}

@media (min-width: 900px) and (max-width:1366px) {
    .nav-links{
        gap: .5rem 1.5rem;
        padding: 0 50px;
    }

    .nav-links a{
        font-size: 1.5rem !important;
    }

    .lang-selector select{
        font-size: 1.5rem !important;
    }

    .btn{
        font-size: 2rem !important;
    }

    .btn-nav{
        min-width: 175px;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 5% 60px; /* Safe padding at the top to prevent overlapping the fixed navbar */
    position: relative;
    text-align: center;
}

.clouds {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

/* Eerie, shadowy fog patches rather than solid clouds */
.cloud {
    position: absolute;
    background: #ffffff;
    border-radius: 50%;
    filter: blur(8px);
    opacity: 0.7;
    box-shadow: 10px 10px 0 rgba(94, 84, 142, 0.1);
}

.cloud-1 {
    width: 300px; height: 150px;
    top: 15%; left: -5%;
    animation: drift 40s linear infinite;
}

.cloud-2 {
    width: 250px; height: 120px;
    top: 60%; right: -5%;
    animation: drift 30s linear infinite reverse;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    animation: fadeIn 2s ease-in;
}

.toon-badge {
    display: inline-block;
    background: var(--surface-light);
    color: var(--primary-color);
    padding: 0.4rem 1.5rem;
    font-family: var(--font-accent);
    font-size: 2rem;
    border: 3px solid var(--ink);
    border-radius: 12px;
    margin-bottom: 2rem; /* Clean vertical spacing */
    transform: rotate(-4deg);
    opacity: 1;
    box-shadow: 4px 4px 0 var(--ink);
}

.hero h1 {
    font-size: 6rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    text-shadow: 3px 3px 0 var(--ink);
}

.hero p {
    font-size: 1.5rem;
    color: var(--text-light);
    margin: 0 auto 3rem;
    max-width: 650px;
    opacity: 0.9;
    font-weight: bold;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.2);
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 2.5rem;
    font-family: var(--font-accent);
    font-size: 2.2rem;
    text-decoration: none;
    border-radius: 12px;
    border: 3px solid var(--ink);
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

.btn:active {
    transform: scale(0.95);
}

.btn-primary {
    background: var(--primary-color);
    color: var(--surface-light);
    box-shadow: 5px 5px 0 var(--ink);
}

.btn-primary:hover {
    background: #ff7e88;
    transform: rotate(-2deg) translateY(-2px);
    box-shadow: 7px 7px 0 var(--ink);
}

.btn-secondary {
    background: var(--tertiary-color);
    color: var(--ink);
    box-shadow: 5px 5px 0 var(--ink);
}

.btn-secondary:hover {
    background: #ffd0a8;
    transform: rotate(2deg) translateY(-2px);
    box-shadow: 7px 7px 0 var(--ink);
}

@media (min-width:3840px) {
    .hero-content, .hero p{
        max-width: initial;
    }
}

/* Services */
.services {
    padding: 8rem 5%;
    background: var(--sky-mid);
    border-top: 4px dashed var(--ink);
    border-bottom: 4px dashed var(--ink);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--text-light);
    text-shadow: 3px 3px 0 var(--ink);
    opacity: 1;
}

.section-header p {
    font-size: 1.4rem;
    color: var(--text-main);
    font-weight: bold;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--surface-light);
    border: 3px solid var(--ink);
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 8px 8px 0 var(--ink);
    transition: all 0.3s ease;
    position: relative;
    color: var(--text-main);
}

/* Rough paper-like irregular edges */
.toon-blob-1 { border-radius: 20px 40px 20px 40px; }
.toon-blob-2 { border-radius: 40px 20px 40px 20px; }
.toon-blob-3 { border-radius: 30px 30px 40px 20px; }

.service-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 12px 12px 0 var(--ink);
    background: #fff;
}

.icon-wrapper {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    filter: drop-shadow(2px 2px 0 var(--ink));
    opacity: 1;
    animation: floatIcon 3s ease-in-out infinite alternate;
}

.service-card h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--ink);
    opacity: 1;
}

.service-card p {
    color: var(--text-main);
}

/* Strengths */
.strengths {
    padding: 8rem 5%;
    background: var(--sky-bottom);
    border-bottom: 4px dashed var(--ink);
    position: relative;
    overflow: hidden;
}

.strengths-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

.strengths-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(181, 234, 215, 0.45);
    z-index: 1;
    pointer-events: none;
}

.strengths .section-header,
.strengths .services-grid {
    position: relative;
    z-index: 2;
}

@media (max-width:900px) {
    .service-card h3 {
        font-size: 2rem;
    }

    
}

@media (min-width:720px) and (max-width:1200px) {
    .services-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .service-card {
        width: 45%;
    }
}

/* Download */
.download {
    padding: 8rem 5%;
    background: var(--sky-top);
    position: relative;
}

.download-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.download-info {
    flex: 1;
    color: var(--text-light);
}

.download-info h2 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 0 var(--ink);
}

.download .highlight {
    color: var(--sky-bottom);
}

.download-info p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    color: var(--text-main);
    font-weight: bold;
}

.btn-glow {
    background: var(--surface-light);
    color: var(--ink);
    border: 3px solid var(--ink);
    margin-bottom: 2rem;
    box-shadow: 4px 4px 0 var(--ink);
}
.btn-glow:hover {
    background: var(--tertiary-color);
    box-shadow: 6px 6px 0 var(--ink);
}

.sys-req {
    margin-top: 1rem;
    font-size: 1.1rem !important;
    opacity: 0.8;
    color: var(--text-main);
    display: block;
}

.download-visual {
    flex: 1;
    width: 100%;
}

/* Cardboard box / drawn window vibe */
.toon-window {
    background: var(--surface-light);
    border: 3px solid var(--ink);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 10px 10px 0 var(--ink);
    transform: rotate(1deg);
    position: relative;
}

.toon-window::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
}

.window-header {
    background: var(--sky-top);
    padding: 0.8rem 1rem;
    display: flex;
    gap: 8px;
    border-bottom: 3px solid var(--ink);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--ink);
}

.window-body {
    padding: 3rem;
    text-align: center;
}

.loading-bar-container {
    height: 15px;
    border: 3px solid var(--ink);
    border-radius: 8px;
    background: var(--surface-light);
    margin-bottom: 1.5rem;
    overflow: hidden;
    position: relative;
}

.loading-bar {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    animation: loadDemo 5s ease-in-out forwards infinite;
    opacity: 1;
}

.status-text {
    font-family: var(--font-body);
    font-size: 1.4rem;
    color: var(--text-main);
    opacity: 1;
    font-weight: bold;
}

/* Glowing atmospheric orb instead of a ghost */
.character-blob {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    margin: 2rem auto 0;
    animation: pulseOrb 4s ease-in-out infinite alternate;
    position: relative;
    box-shadow: 0 0 30px var(--primary-color), inset 0 0 10px rgba(255,255,255,0.8);
}

/* "Dust motes" instead of glowing fireflies */
.fireflies {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    pointer-events: none;
}

.firefly {
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    filter: blur(1px);
    animation: floatDust 15s linear infinite alternate;
}

.firefly:nth-child(even) {
    width: 12px; height: 12px;
    background: var(--primary-color);
    opacity: 0.5;
    filter: blur(2px);
}

.firefly:nth-child(1) { top: 20%; left: 10%; animation-duration: 20s; }
.firefly:nth-child(2) { top: 60%; left: 80%; animation-duration: 25s; }
.firefly:nth-child(3) { top: 80%; left: 30%; animation-duration: 18s; }
.firefly:nth-child(4) { top: 30%; left: 60%; animation-duration: 22s; }
.firefly:nth-child(5) { top: 50%; left: 20%; animation-duration: 28s; }
.firefly:nth-child(6) { top: 90%; left: 70%; animation-duration: 19s; }
.firefly:nth-child(7) { top: 15%; left: 85%; animation-duration: 24s; }
.firefly:nth-child(8) { top: 75%; left: 15%; animation-duration: 21s; }

/* Footer */
.footer {
    padding: 2rem 5%;
    background: var(--sky-top);
    border-top: 4px dashed var(--ink);
    position: relative;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer .brand h2 {
    font-size: 4rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    opacity: 1;
}

.footer .brand p {
    color: var(--text-main);
}

.contact-info {
    text-align: right;
}

.contact-info p {
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.contact-email {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 2.5rem;
    font-family: var(--font-heading);
    transition: all 0.2s ease;
    opacity: 1;
    text-shadow: 2px 2px 0 var(--ink);
}

.contact-email:hover {
    color: var(--surface-light);
}

.copyright {
    text-align: center;
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: bold;
}

/* Video Frame */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
}
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.toon-video-frame {
    border: 4px solid var(--ink);
    border-radius: 12px;
    box-shadow: 10px 10px 0 var(--ink);
    transform: rotate(1deg);
    background: var(--surface-light);
}

/* Portfolio Section */
.portfolio {
    padding: 8rem 5%;
    background: var(--sky-mid);
    border-top: 4px dashed var(--ink);
    position: relative;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 1200px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 900px;
        gap: 2rem;
    }
}

.portfolio-card {
    background: var(--surface-light);
    border: 3px solid var(--ink);
    box-shadow: 8px 8px 0 var(--ink);
    transition: all 0.3s ease;
    position: relative;
    color: var(--text-main);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.portfolio-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 12px 12px 0 var(--ink);
    background: #fff;
}

.portfolio-thumb-wrapper {
    width: 100%;
    aspect-ratio: 460 / 215;
    overflow: hidden;
    border-bottom: 3px solid var(--ink);
    position: relative;
}

.portfolio-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.portfolio-card:hover .portfolio-thumb {
    transform: scale(1.08);
}

.portfolio-card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: left;
}

.portfolio-card h3 {
    font-size: 2.2rem;
    margin-bottom: 0.3rem;
    color: var(--ink);
}

.portfolio-tag {
    font-family: var(--font-accent);
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
}

.portfolio-card p {
    color: var(--text-main);
    font-size: 1.15rem;
    line-height: 1.6;
}

/* Portfolio Description Line Clamping */
.portfolio-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s ease;
}

.portfolio-card-content.expanded .portfolio-desc {
    display: block;
    -webkit-line-clamp: none;
}

/* Read More Button Styling */
.btn-read-more {
    background: none;
    border: none;
    color: var(--secondary-color);
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: underline;
    cursor: pointer;
    margin-top: 1rem;
    align-self: flex-start;
    padding: 0;
    transition: color 0.2s ease;
}

.btn-read-more:hover {
    color: var(--primary-color);
}

.btn-read-more .text-less {
    display: none;
}

.btn-read-more .text-more {
    display: inline;
}

.portfolio-card-content.expanded .btn-read-more .text-less {
    display: inline;
}

.portfolio-card-content.expanded .btn-read-more .text-more {
    display: none;
}

/* Contact Section */
.contact {
    padding: 8rem 5%;
    background: var(--sky-bottom);
    border-top: 4px dashed var(--ink);
    position: relative;
}

.contact-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info-new {
    flex: 1;
    color: var(--text-light);
}

.contact-info-new h2 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 0 var(--ink);
}

.contact-info-new p {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    color: var(--text-main);
    font-weight: bold;
}

.contact-form-wrapper {
    flex: 1;
    background: var(--surface-light);
    padding: 3rem;
    border: 3px solid var(--ink);
    border-radius: 12px;
    box-shadow: 10px 10px 0 var(--ink);
    transform: rotate(-1deg);
    position: relative;
    width: 100%;
}

.contact-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: left;
    position: relative;
    z-index: 1;
}

.form-group {
    display: flex;
    gap: 1.5rem;
}

.form-group input {
    flex: 1;
}

.contact-form input,
.contact-form textarea {
    font-family: var(--font-body);
    font-size: 1.2rem;
    padding: 1rem;
    background: var(--surface-light);
    border: 3px solid var(--ink);
    color: var(--text-main);
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 100%;
    font-weight: bold;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 4px 4px 0 var(--ink);
}

.contact-form .btn {
    font-size: 1.8rem;
    padding: 0.8rem 2rem;
    align-self: flex-start;
}

.contact-error-message {
    display: none;
    color: #e63946;
    font-weight: bold;
    font-size: 1.1rem;
    border: 3px solid var(--ink);
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    background: #ffe3e3;
    text-align: center;
    box-shadow: 4px 4px 0 var(--ink);
    animation: popIn 0.3s ease-out both;
    width: 100%;
}

/* Contact Success Message States */
.contact-success-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1.5rem;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

.success-icon-wrapper {
    width: 100px;
    height: 100px;
    position: relative;
    margin-bottom: 0.5rem;
}

.success-svg {
    width: 100%;
    height: 100%;
}

.success-circle {
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    animation: drawCircle 0.6s ease-out forwards;
}

.success-check {
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
    animation: drawCheck 0.4s 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.contact-success-message h3 {
    font-size: 2.2rem;
    color: var(--ink);
    margin: 0;
}

.contact-success-message p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 400px;
    margin: 0 0 1rem 0;
}

.btn-reset-contact {
    font-size: 1.4rem !important;
    padding: 0.6rem 1.5rem !important;
}

@keyframes drawCircle {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes drawCheck {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Language Selector & Nav Right */
.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.lang-selector {
    display: flex;
    align-items: center;
}

.lang-selector select {
    font-family: var(--font-accent);
    font-size: 1.8rem;
    padding: 0.2rem 0.5rem;
    background: var(--surface-light);
    color: var(--text-main);
    border: 3px solid var(--ink);
    border-radius: 8px;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
    opacity: 0.9;
    box-shadow: 2px 2px 0 var(--ink);
}

.lang-selector select:hover,
.lang-selector select:focus {
    background: var(--primary-color);
    color: var(--surface-light);
    opacity: 1;
}

.lang-selector select option {
    background: var(--surface-light);
    color: var(--text-main);
    font-size: 1.2rem;
    font-family: var(--font-body);
}

/* Animations */
@keyframes drift {
    from { transform: translateX(0); }
    to { transform: translateX(100vw); }
}

@keyframes fadeIn {
    from { opacity: 0; filter: blur(10px); }
    to { opacity: 1; filter: blur(0); }
}

@keyframes pulseOrb {
    0% { transform: translateY(0) scale(1); opacity: 0.8; box-shadow: 0 0 20px var(--primary-color); }
    100% { transform: translateY(-10px) scale(1.1); opacity: 1; box-shadow: 0 0 40px var(--primary-color); }
}

@keyframes loadDemo {
    0% { width: 0%; opacity: 0; }
    10% { opacity: 0.6; }
    50% { width: 40%; }
    80% { width: 80%; }
    100% { width: 100%; opacity: 0; }
}

@keyframes floatDust {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, -50px); }
}

@keyframes flicker {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 0.4; }
    55% { opacity: 0.9; }
    60% { opacity: 0.3; }
    80% { opacity: 0.7; }
}

@media (max-width: 900px) {
    .navbar {
        flex-direction: row;
        padding: 1rem 5%;
        justify-content: space-between;
    }
    .navbar.scrolled {
        padding: 1rem 5%;
    }
    .nav-links, .btn-nav {
        display: none;
    }
    .logo img {
        height: 56px;
    }
    .lang-selector select {
        font-size: 1.4rem;
    }
    .hero {
        padding-top: 100px;
        padding-bottom: 50px;
    }
    .hero h1 { font-size: 4rem; }
    .download-container { flex-direction: column; text-align: center; }
    .footer-content { flex-direction: column; gap: 3rem; text-align: center; }
    .contact-info { text-align: center; }
    .contact-container { flex-direction: column; text-align: center; }
    .contact-info-new { text-align: center; }
    .form-group { flex-direction: column; gap: 1rem; }
    .contact-form .btn { align-self: center; }
}

@media (max-width: 600px) {
    .navbar {
        padding: 0.8rem 4%;
    }
    .navbar.scrolled {
        padding: 0.8rem 4%;
    }
    .logo img {
        height: 44px;
    }
    .lang-selector select {
        font-size: 1.1rem;
        padding: 0.15rem 0.35rem;
        box-shadow: 1.5px 1.5px 0 var(--ink);
    }
    .hero {
        padding-top: 100px;
        padding-bottom: 40px;
    }
    .hero h1 {
        font-size: 2.6rem;
        text-shadow: 3px 3px 0 var(--ink);
    }
    .hero p {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }
    .hero-actions {
        gap: 1rem;
    }
    .btn {
        font-size: 1.6rem;
        padding: 0.4rem 1.8rem;
        border-radius: 10px;
    }
    .services, .strengths, .download, .portfolio, .contact {
        padding: 5rem 4%;
    }
    .section-header {
        margin-bottom: 3.5rem;
    }
    .section-header h2 {
        font-size: 2.8rem;
        text-shadow: 2px 2px 0 var(--ink);
    }
    .section-header p {
        font-size: 1.2rem;
    }
    .services-grid,
    .portfolio-grid {
        gap: 2rem;
    }
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    .service-card {
        padding: 2rem 1.5rem;
        box-shadow: 6px 6px 0 var(--ink);
    }
    .service-card h3 {
        font-size: 2rem;
    }
    .icon-wrapper {
        font-size: 2.8rem;
    }
    .download-info h2, .contact-info-new h2 {
        font-size: 2.8rem;
        text-shadow: 2px 2px 0 var(--ink);
    }
    .download-info p, .contact-info-new p {
        font-size: 1.2rem;
    }
    .contact-form-wrapper {
        padding: 2rem 1.5rem;
        box-shadow: 6px 6px 0 var(--ink);
    }
    .contact-form {
        gap: 1.2rem;
    }
    .contact-form input,
    .contact-form textarea {
        font-size: 1.1rem;
        padding: 0.8rem;
    }
    .contact-email {
        font-size: 2rem;
    }
}

/* ==========================================================================
   NEW INTERACTIVITY AND VISUAL POLISH STYLES
   ========================================================================== */

/* 1. Custom Scrollbar (Cross-Browser) */
html {
    scrollbar-width: auto;
    scrollbar-color: var(--primary-color) var(--sky-mid);
}
::-webkit-scrollbar {
    width: 14px;
}
::-webkit-scrollbar-track {
    background: var(--sky-mid);
    border-left: 3px solid var(--ink);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border: 3px solid var(--ink);
    border-radius: 7px;
}
::-webkit-scrollbar-thumb:hover {
    background: #ff7e88;
}

/* 2. Interactive Canvases */
#foreground-canvas, #background-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    display: block;
}
#background-canvas {
    z-index: -1;
}
#foreground-canvas {
    z-index: 9998; /* Under custom cursor but above content */
}

/* 3. Custom Cursor */
@media (hover: hover) and (pointer: fine) {
    body, a, button, select, input, textarea, .service-card, .portfolio-card, .btn {
        cursor: none !important;
    }
    
    .custom-cursor-arrow {
        position: fixed;
        top: 0;
        left: 0;
        transform: translate(-2px, -2px); /* Align SVG tip to mouse position */
        pointer-events: none;
        z-index: 10000;
        width: 24px;
        height: 28px;
    }

    .custom-cursor-arrow .cursor-fill {
        transition: fill 0.2s ease;
    }
    
    .custom-cursor-ring {
        width: 24px;
        height: 24px;
        border: 1.5px solid var(--ink);
        border-radius: 50%;
        position: fixed;
        top: 0;
        left: 0;
        transform: translate(-50%, -50%);
        pointer-events: none;
        z-index: 9999;
        transition: width 0.25s cubic-bezier(0.1, 0.8, 0.25, 1), 
                    height 0.25s cubic-bezier(0.1, 0.8, 0.25, 1), 
                    background-color 0.2s ease, 
                    border-color 0.2s ease;
    }
    
    /* Hover state */
    body.cursor-hovering .custom-cursor-ring {
        width: 38px;
        height: 38px;
        border-color: var(--primary-color);
        background-color: rgba(255, 154, 162, 0.08);
    }
    
    body.cursor-hovering .custom-cursor-arrow .cursor-fill {
        fill: var(--tertiary-color); /* Changes from pink to soft peach */
    }

    /* Click state */
    body.cursor-clicking .custom-cursor-ring {
        width: 16px;
        height: 16px;
        border-color: var(--ink);
        background-color: rgba(94, 84, 142, 0.2);
    }
}

/* Fallback for touch devices */
@media (hover: none), (pointer: coarse) {
    .custom-cursor-arrow,
    .custom-cursor-ring {
        display: none !important;
    }
}

/* 4. Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform, opacity;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
    /* Exclude transform transition once revealed to avoid lagging mousemove tilt actions for generic items */
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.service-card.reveal.revealed,
.portfolio-card.reveal.revealed {
    /* Restore exact original transition behavior for card tilt hover smoothing */
    transition: all 0.3s ease;
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* 5. Custom Rotation Overrides for Reveal Elements */
.contact-form-wrapper.reveal {
    transform: translateY(20px) scale(0.98) rotate(-0.5deg);
}
.contact-form-wrapper.reveal.revealed {
    transform: translateY(0) scale(1) rotate(-0.5deg);
}

