@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700&family=Righteous&display=swap');

:root {
    --bg-dark: #020205;
    /* Pitch black/void - Default for Home */
    --bg-mesh-1: #0a0a12;
    /* Deepest charcoal */
    --bg-mesh-2: #050510;
    /* Dark moon shadow */

    --primary: #00d2ff;
    --secondary: #3a7bd5;
    --accent: #ff0076;
    /* Vibrant pink for accents */

    --text-white: #ffffff;
    --text-gray: #b3b3b3;

    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.02);
    /* Made less visible */

    --font-main: 'Outfit', sans-serif;
    --font-logo: 'Righteous', cursive;

    --transition-speed: 0.3s;
}

/* --- Page Specific Backgrounds (Progressive Lightening) --- */
body.page-playground {
    --bg-dark: #0a0a1a;
    --bg-mesh-1: #121225;
    --bg-mesh-2: #0c0c1e;
}

body.page-services {
    --bg-dark: #121225;
    --bg-mesh-1: #1a1a35;
    --bg-mesh-2: #14142b;
}

body.page-contact {
    --bg-dark: #181830;
    --bg-mesh-1: #202045;
    --bg-mesh-2: #1a1a38;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background: linear-gradient(to right, var(--bg-dark), var(--bg-mesh-1), var(--bg-mesh-2));
    color: var(--text-white);
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-speed);
}

ul {
    list-style: none;
}

/* --- Layout Utility --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.flex {
    display: flex;
    align-items: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.grid {
    display: grid;
    gap: 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition-speed);
    text-align: center;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 210, 255, 0.6);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--bg-dark);
}

/* --- Components --- */

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-speed);
    background: rgba(255, 255, 255, 0.01);
    /* Removed dark blue, added subtle blending */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-white);
    background: linear-gradient(to right, #fff, #aaa);
    -webkit-background-clip: text;
    background-clip: text;
    /* Standard property */
    -webkit-text-fill-color: transparent;
    transition: var(--transition-speed);
    font-family: var(--font-logo);
    /* New Font */
    display: flex;
    align-items: center;
    gap: 10px;
    /* Space between icon and text */
    position: relative;
    /* Keep for ::after pseudo-element */
    cursor: pointer;
    /* Keep for hover effect */
    text-transform: uppercase;
    /* Keep original styling */
    letter-spacing: 1px;
    /* Keep original styling */
}

.brand-text {
    font-family: var(--font-logo);
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.logo i {
    -webkit-text-fill-color: initial;
    /* Don't clip text on icon */
    color: var(--accent);
    /* Accent color for the icon */
    font-size: 1.5rem;
}

.logo:hover {
    transform: scale(1.05);
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    /* Standard property */
    -webkit-text-fill-color: transparent;
}

.logo::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: linear-gradient(to right, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.logo:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-links {
    gap: 30px;
}

.nav-link {
    font-size: 1rem;
    color: var(--text-gray);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-white);
}

/* Mobile Menu Toggle */
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Footer */
footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    margin-top: auto;
    color: var(--text-gray);
}

/* --- Transitions & Animations --- */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Paint Splashes */
@keyframes splash-morph {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        transform: scale(1) rotate(0deg);
    }

    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }

    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
        transform: scale(1.1) rotate(180deg);
    }

    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }

    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        transform: scale(1) rotate(360deg);
    }
}

@keyframes splash-appear {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 0.6;
    }
}

.splash {
    position: absolute;
    /* filter: blur(40px); */
    opacity: 0.6;
    z-index: -1;
    animation: splash-morph 10s infinite linear;
}

.splash-1 {
    top: 10%;
    left: 5%;
    width: 300px;
    height: 300px;
    background: var(--primary);
    animation-duration: 15s;
}

.splash-2 {
    bottom: 15%;
    right: 5%;
    width: 400px;
    height: 400px;
    background: var(--accent);
    animation-duration: 20s;
    animation-direction: reverse;
}

.splash-3 {
    top: 40%;
    right: 25%;
    width: 200px;
    height: 200px;
    background: #FFD700;
    /* Gold */
    /* filter: blur(50px); */
    animation-duration: 12s;
}

.splash-4 {
    bottom: 30%;
    left: 20%;
    width: 250px;
    height: 250px;
    background: #9d00ff;
    /* Purple */
    animation-duration: 18s;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Add toggle logic in JS usually, or pure CSS checkbox hack */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-dark);
        flex-direction: column;
        padding: 20px;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }
}

/* --- Painter Animation --- */
@keyframes walk {
    0% {
        left: -100px;
    }

    100% {
        left: 110%;
    }
}

@keyframes paint-spill {
    0% {
        width: 0;
    }

    100% {
        width: 100vw;
    }
}

@keyframes fade-out {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        pointer-events: none;
    }
}

.painter-container {
    position: fixed;
    bottom: 0px;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 9999;
    pointer-events: none;
    animation: fade-out 1s ease 6s forwards;
    /* Fades out after 6s */
}

.paint-trail {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 10px;
    /* Paint height on the floor */
    background: linear-gradient(to right, var(--primary), var(--accent), #FFD700, #9d00ff);
    width: 0;
    animation: paint-spill 5s linear forwards;
}

/* Liquid dripping looks */
.paint-trail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background: inherit;
    filter: blur(4px);
    opacity: 0.7;
    transform: translateY(5px);
}

.painter {
    position: absolute;
    bottom: 10px;
    left: -100px;
    font-size: 3rem;
    color: var(--text-white);
    animation: walk 5s linear forwards;
    display: flex;
    align-items: center;
    gap: 10px;
}

.painter i {
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}


/* --- Liquid Mixer Animation --- */
.mixer-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    position: relative;
    padding: 20px;
}

.input-group {
    display: flex;
    align-items: center;
    z-index: 2;
}

.flow-path {
    width: 100px;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.flow-liquid {
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: currentColor;
    /* Inherits from inline style */
    box-shadow: 0 0 10px currentColor;
    transition: width 2s ease-in-out;
    /* Slower fill for detail */
}

#flow2 {
    left: auto;
    right: 0;
}

.btn-vibrant-copy {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    color: white;
    font-family: monospace;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 0 15px var(--secondary);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-vibrant-copy:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px var(--accent);
}

/* Animations */
@keyframes liquid-pulse {
    0% {
        transform: scaleX(1);
        opacity: 0.8;
    }

    50% {
        transform: scaleX(1.05);
        opacity: 1;
        filter: brightness(1.2);
    }

    100% {
        transform: scaleX(1);
        opacity: 0.8;
    }
}

.flowing {
    animation: liquid-pulse 2s infinite;
}

@keyframes ripple {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(255, 255, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.ripple-effect {
    animation: ripple 1s linear;
}