/* COLORS */
body[data-theme="spring"] {
    --bg-color: #b5e48c;
    --bg-pattern: rgba(0, 0, 0, 0.05);
    --primary: #ff4d6d;
    --secondary: #fff;
    --accent: #ffb703;
    --text-color: #000;
}

body[data-theme="summer"] {
    --bg-color: #fab4b7;
    --bg-pattern: rgba(0, 0, 0, 0.05);
    --primary: #f8984a;
    --secondary: #fff;
    --accent: #fcc207;
    --text-color: #000;
}

body[data-theme="autumn"] {
    --bg-color: #e8f7a6;
    --bg-pattern: rgba(0, 0, 0, 0.05);
    --primary: #1bd194;
    --secondary: #fff;
    --accent: #f58664;
    --text-color: #000;
}

body[data-theme="winter"] {
    --bg-color: #93e7f8;
    --bg-pattern: rgba(0, 0, 0, 0.05);
    --primary: #6622d4;
    --secondary: #fff;
    --accent: #f8ac8e;
    --text-color: #000;
}

/* GLOBAL STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Space Grotesk', sans-serif;
    cursor: none;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.5s ease;
    background-image: linear-gradient(var(--bg-pattern) 2px, transparent 2px), 
                      linear-gradient(90deg, var(--bg-pattern) 2px, transparent 2px);
    background-size: 40px 40px;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

img {
    -webkit-user-drag: none;
    pointer-events: none;
}

#flash-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 999999;
    pointer-events: none;
    opacity: 0;
    mix-blend-mode: overlay;
}

/* CUSTOM CURSOR */
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background-color: var(--text-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s;
    mix-blend-mode: overlay;
}

.cursor-dot.active {
    width: 50px;
    height: 50px;
    background-color: var(--secondary);
    mix-blend-mode: difference;
}

/* UI COMPONENTS */
.neo-btn {
    display: inline-block;
    background-color: var(--primary);
    color: #fff;
    border: 4px solid var(--text-color);
    box-shadow: 6px 6px 0px var(--text-color);
    padding: 14px 32px;
    font-weight: 900;
    font-size: 1.2rem;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: box-shadow 0.2s, color 0.3s, transform 0.1s;
    text-decoration: none;
}

.neo-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--accent);
    z-index: -1;
    transition: left 0.3s cubic-bezier(0.85, 0, 0.15, 1);
}

.neo-btn:hover::before {
    left: 0;
}

.neo-btn:hover {
    color: var(--text-color);
    box-shadow: 8px 8px 0px var(--text-color);
}

.neo-btn:active {
    transform: translate(4px, 4px);
    box-shadow: 0px 0px 0px var(--text-color);
}

.neo-box {
    background-color: var(--secondary);
    border: 4px solid var(--text-color);
    box-shadow: 10px 10px 0px var(--text-color);
    padding: 2rem;
    position: relative;
}

/* HEADER */
header {
    background-color: var(--secondary);
    border-bottom: 4px solid var(--text-color);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    background: var(--accent);
    padding: 5px 15px;
    border: 4px solid var(--text-color);
    transform: rotate(-2deg);
}

.theme-selector {
    display: flex;
    gap: 8px;
    justify-content: space-between;
    width: 100%;
    max-width: 420px;
    flex-wrap: nowrap;
}

.theme-btn {
    flex: 1;
    border: 3px solid var(--text-color);
    box-shadow: 4px 4px 0px var(--text-color);
    font-size: 1rem;
    font-weight: 900;
    background: #fff;
    color: #000;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
    line-height: 1;
    padding: 10px 0 8px 0;
}

.theme-btn:active {
    transform: translate(4px, 4px);
    box-shadow: 0px 0px 0px var(--text-color);
}

body[data-theme="spring"] .theme-btn.active-theme { background: var(--primary); color: #fff; }
body[data-theme="summer"] .theme-btn.active-theme { background: var(--primary); color: #fff; }
body[data-theme="autumn"] .theme-btn.active-theme { background: var(--primary); color: #fff; }
body[data-theme="winter"] .theme-btn.active-theme { background: var(--primary); color: #fff; }

/* MARQUEE */
.marquee {
    margin-top: 85px;
    background: var(--primary);
    color: #fff;
    padding: 12px 0;
    overflow: hidden;
    white-space: nowrap;
    border-bottom: 4px solid var(--text-color);
    font-weight: 900;
    font-size: 1.2rem;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    line-height: normal; 
}

.marquee span {
    display: inline-block;
    flex-shrink: 0; 
    padding-left: 100%;
    animation: marquee 20s linear infinite;
    will-change: transform;
    position: relative;
    top: 8px;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* HERO SECTION */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5%;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.hero-content {
    text-align: center;
    z-index: 10;
    position: relative;
    width: 100%;
    max-width: 800px;
}

.title-mask {
    overflow: hidden;
    display: inline-block;
}

.hero-title {
    font-size: clamp(3.5rem, 10vw, 7rem);
    font-weight: 900;
    line-height: 1.3;
    color: var(--secondary);
    text-shadow: 4px 4px 0px var(--text-color);
    -webkit-text-stroke: 2px var(--text-color);
    text-transform: uppercase;
}

.hero-badge {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-weight: 900;
    font-size: clamp(1rem, 3vw, 1.5rem);
    padding: 8px 16px;
    border: 4px solid var(--text-color);
    box-shadow: 4px 4px 0px var(--text-color);
    margin-bottom: 1.5rem;
    transform: rotate(3deg);
}

.sticker {
    position: absolute;
    border: 4px solid var(--text-color);
    box-shadow: 4px 4px 0px var(--text-color);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    z-index: 1;
}

.stk-1 { top: 15%; left: 10%; width: 80px; height: 80px; border-radius: 50%; background: var(--primary); color: #fff; }
.stk-2 { bottom: 15%; right: 10%; width: 100px; height: 70px; transform: rotate(15deg); background: var(--accent); }
.stk-3 { top: 20%; right: 5%; padding: 10px 15px; font-weight: 900; font-size: 1.2rem; background: var(--secondary); transform: rotate(-10deg); }

/* GRID & SECTIONS */
.section-padding {
    padding: 5rem 5%;
    width: 100%;
    overflow: hidden;
}

.section-title {
    font-size: clamp(2rem, 6vw, 5rem);
    font-weight: 900;
    margin-bottom: 4rem;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 3px 3px 0px var(--text-color);
    -webkit-text-stroke: 1.5px var(--text-color);
    color: #fff;
    white-space: nowrap;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    perspective: 1000px;
}

.srv-card {
    transform-style: preserve-3d;
    margin-top: 80px; 
    padding-top: 3.5rem; 
    position: relative; 
}

.srv-card:hover {
    box-shadow: 15px 15px 0px var(--text-color);
    transform: translateY(-5px);
}

.srv-card h3 {
    font-size: 1.8rem;
    font-weight: 900;
    margin: 1rem 0;
    color: var(--primary);
}

.srv-character {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    height: 100px;
    width: auto;
    max-width: 90%;
    z-index: 5;
    pointer-events: none;
    filter: drop-shadow(4px 4px 0px var(--text-color));
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.srv-card:hover .srv-character {
    transform: translateX(-50%) scale(1.1) translateY(-10px);
}

.steps-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    perspective: 1000px;
}

.step-box {
    text-align: center;
    background: var(--accent);
    padding: 2.5rem 1.5rem;
    transform-style: preserve-3d;
}

.step-num {
    font-size: 2rem;
    font-weight: 900;
    background: var(--text-color);
    color: #fff;
    width: 50px;
    height: 50px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    margin-top: -4rem;
    border: 3px solid #fff;
    margin-bottom: 1rem;
}

/* MUSIC TOGGLE */
.music-toggle {
    position: fixed;
    bottom: 30px;
    right: 25px;
    z-index: 10000;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--text-color);
    color: #fff;
    border: 3px solid #fff;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    cursor: pointer;
}

.music-toggle.playing {
    background: var(--primary);
    animation: spinRecord 3s linear infinite;
}

@keyframes spinRecord { 100% { transform: rotate(360deg); } }

/* FOOTER */
footer {
    background: var(--text-color);
    color: #fff;
    text-align: center;
    padding: 3rem 5%;
    border-top: 8px solid var(--primary);
}

.footer-desc {
    font-size: 1.2rem;
    margin: 0 auto 2rem auto;
    max-width: 100%;
    width: 95%;
    word-wrap: break-word;
    white-space: normal;
    line-height: 1.5;
    font-weight: 600;
}

/* RESPONSIVE FIXES */
@media (max-width: 768px) {
    * { cursor: auto; }
    .cursor-dot { display: none; }
    
    header { 
        flex-direction: column; 
        gap: 12px; 
        padding: 12px 1rem; 
    }

    .theme-selector { 
        gap: 4px; 
        max-width: 100%; 
        width: 100%; 
    }

    .theme-btn { 
        font-size: clamp(0.7rem, 2.5vw, 0.9rem); 
        gap: 3px; 
        flex: 1; 
        padding: 9px 2px 7px 2px; 
    }
    
    .marquee { margin-top: 135px; padding: 6px 0; }
    .marquee span { top: 2px; }
    .hero-title { line-height: 1.2; font-size: 3rem; margin-top: 1rem; }
    .stk-1 { top: 5%; left: 5%; width: 50px; height: 50px; font-size: 1.2rem; }
    .stk-2 { bottom: 5%; right: 5%; width: 70px; height: 50px; font-size: 1.5rem; }
    .stk-3 { display: none; }
    .neo-box { padding: 1.5rem; }
    .section-padding { padding: 4rem 5%; }
    .music-toggle { width: 50px; height: 50px; font-size: 1.4rem; right: 20px; }
}

.pwa-update-toast {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 99999;
    max-width: 350px;
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--accent) !important;
    animation: slideUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-content strong { display: block; text-transform: uppercase; margin-bottom: 5px; }
.toast-content p { font-size: 0.85rem; margin: 0; line-height: 1.2; }

@keyframes slideUp {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 768px) {
    .pwa-update-toast { left: 10px; right: 10px; bottom: 10px; max-width: none; }
}