/* 
 * Theme: Murdoch Street Productions
 * Concept: Cinematic, modern, and creative
 * 2025 Design System
 */

:root {
    /* Palette */
    --color-sky-light: #E0F7FA;
    --color-sky-mid: #B2EBF2;
    --color-sky-deep: #4DD0E1;
    --color-pop-pink: #FF80AB;
    --color-pop-purple: #EA80FC;
    --color-pop-yellow: #FFF9C4;
    --color-sunshine: #FDD835;
    --color-white: #FFFFFF;
    --color-text-dark: #263238;
    --color-text-light: #546E7A;
    --color-shadow: rgba(38, 50, 56, 0.15);

    /* Gradients */
    --grad-sky: linear-gradient(135deg, #E0F7FA 0%, #B2EBF2 100%);
    --grad-balloon-1: radial-gradient(circle at 30% 30%, #FF80AB, #F50057);
    --grad-balloon-2: radial-gradient(circle at 30% 30%, #82B1FF, #2979FF);
    --grad-balloon-3: radial-gradient(circle at 30% 30%, #EA80FC, #AA00FF);
    --grad-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.2));

    /* Typography */
    --font-primary: 'Nunito', sans-serif;
    /* Primary UI font */
    --font-heading: 'Fredoka', sans-serif;
    /* Distinct heading font */

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background: var(--grad-sky);
    color: var(--color-text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

p {
    margin-bottom: 1.5rem;
    color: var(--color-text-light);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.section-padding {
    padding: 100px 0;
}

/* =========================================
   Animations (Keyframes)
   ========================================= */

@keyframes float-up {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes float-side {
    0% {
        transform: translateX(0) rotate(0deg);
    }

    50% {
        transform: translateX(10px) rotate(2deg);
    }

    100% {
        transform: translateX(0) rotate(0deg);
    }
}

@keyframes wobble {
    0% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-5deg);
    }

    75% {
        transform: rotate(5deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

@keyframes shake-hover {
    0% {
        transform: translate(1px, 1px) rotate(0deg);
    }

    10% {
        transform: translate(-1px, -2px) rotate(-1deg);
    }

    20% {
        transform: translate(-3px, 0px) rotate(1deg);
    }

    30% {
        transform: translate(3px, 2px) rotate(0deg);
    }

    40% {
        transform: translate(1px, -1px) rotate(1deg);
    }

    50% {
        transform: translate(-1px, 2px) rotate(-1deg);
    }

    60% {
        transform: translate(-3px, 1px) rotate(0deg);
    }

    70% {
        transform: translate(3px, 1px) rotate(-1deg);
    }

    80% {
        transform: translate(-1px, -1px) rotate(1deg);
    }

    90% {
        transform: translate(1px, 2px) rotate(0deg);
    }

    100% {
        transform: translate(1px, -2px) rotate(-1deg);
    }
}

@keyframes pop-effect {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.4);
        opacity: 0.8;
    }

    100% {
        transform: scale(2);
        opacity: 0;
        display: none;
    }
}

@keyframes cloud-drift {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100vw);
    }
}

@keyframes inflate {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    80% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* =========================================
   Header Styles
   ========================================= */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.header .container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.05) rotate(-2deg);
}

.logo {
    height: 40px;
    width: auto;
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 600;
    color: var(--color-text-dark);
    position: relative;
    padding: 5px 10px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: var(--color-sky-mid);
    color: var(--color-pop-pink);
    transform: translateY(-2px);
}

.header-cta {
    background: var(--grad-balloon-1);
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 20px rgba(245, 0, 87, 0.3);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.header-cta:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 30px rgba(245, 0, 87, 0.4);
    animation: wobble 1s ease infinite;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--color-text-dark);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* =========================================
   Hero Section (Index)
   ========================================= */

.hero {
    padding-top: calc(var(--header-height) + 50px);
    padding-bottom: 100px;
    position: relative;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-content {
    width: 50%;
    position: relative;
    z-index: 5;
    animation: inflate 1s ease-out forwards;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--color-text-dark);
    text-shadow: 2px 2px 0px white;
}

.hero h1 span {
    color: var(--color-pop-pink);
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.6);
    padding: 15px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.hero-visuals {
    width: 50%;
    position: relative;
    height: 500px;
}

/* Hero Visual Components */
.balloon {
    position: absolute;
    width: 120px;
    height: 150px;
    border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
    box-shadow: inset -10px -10px 20px rgba(0, 0, 0, 0.1), 5px 5px 15px rgba(255, 255, 255, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s;
    z-index: 3;
}

.balloon::before {
    /* Specular highlight */
    content: '';
    position: absolute;
    top: 15%;
    left: 20%;
    width: 20px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    transform: rotate(45deg);
}

.balloon::after {
    /* String Knot */
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 15px;
    height: 10px;
    background: inherit;
    clip-path: polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%);
}

.string {
    position: absolute;
    bottom: -100px;
    left: 50%;
    width: 2px;
    height: 100px;
    background: rgba(0, 0, 0, 0.2);
    transform-origin: top center;
    z-index: -1;
}

.balloon:hover {
    animation: shake-hover 0.5s ease-in-out infinite;
}

.balloon.popped {
    animation: pop-effect 0.3s forwards;
}

.balloon-1 {
    background: var(--grad-balloon-1);
    top: 10%;
    right: 20%;
    width: 180px;
    height: 220px;
    animation: float-up 6s ease-in-out infinite;
}

.balloon-2 {
    background: var(--grad-balloon-2);
    top: 40%;
    right: 50%;
    animation: float-up 8s ease-in-out infinite 1s;
}

.balloon-3 {
    background: var(--grad-balloon-3);
    top: 60%;
    right: 10%;
    width: 100px;
    height: 125px;
    animation: float-up 5s ease-in-out infinite 0.5s;
}

/* =========================================
   Services Section (Cards as Inflatables)
   ========================================= */

.services-section {
    background: var(--color-white);
    position: relative;
    border-radius: 50px 50px 0 0;
    margin-top: -50px;
    z-index: 10;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-text-dark);
}

.section-tag {
    display: block;
    text-align: center;
    color: var(--color-pop-pink);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.service-card {
    background: var(--color-sky-light);
    border-radius: 30px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: inset 5px 5px 10px rgba(255, 255, 255, 0.8),
        inset -5px -5px 10px rgba(0, 0, 0, 0.05),
        10px 10px 20px rgba(0, 0, 0, 0.05);
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: var(--color-pop-pink);
    background: white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 3rem;
    color: var(--color-pop-purple);
    margin-bottom: 20px;
    display: inline-block;
    transition: transform 0.3s;
}

.service-card:hover .service-icon {
    animation: wobble 0.5s ease;
}

/* =========================================
   Interactive Calculator Section
   ========================================= */

.calculator-section {
    background: var(--grad-sky);
    position: relative;
    overflow: hidden;
}

.calc-container {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    border-radius: 40px;
    padding: 50px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.9);
}

.calc-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--color-text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border-radius: 15px;
    border: 2px solid transparent;
    background: white;
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.05);
    font-family: var(--font-primary);
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-pop-pink);
    box-shadow: 0 0 10px rgba(255, 128, 171, 0.3);
}

.calc-result {
    grid-column: 1 / -1;
    background: var(--color-text-dark);
    color: white;
    padding: 20px;
    border-radius: 20px;
    text-align: center;
    margin-top: 20px;
    display: none;
    animation: inflate 0.5s ease-out;
}

.calc-result.active {
    display: block;
}

.btn-primary {
    background: var(--grad-balloon-2);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 20px rgba(41, 121, 255, 0.3);
    width: 100%;
    display: inline-block;
    text-align: center;
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(41, 121, 255, 0.4);
}

/* =========================================
   Report & Analytics Section (Visuals)
   ========================================= */

.analytics-section {
    background: white;
    border-radius: 50px;
    margin: 50px 0;
}

.dashboard-mockup {
    background: var(--color-sky-light);
    border-radius: 30px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.chart-bars {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 200px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.bar-wrap {
    width: 40px;
    background: white;
    border-radius: 20px;
    position: relative;
    height: 100%;
}

.bar-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--grad-balloon-1);
    border-radius: 20px;
    transition: height 1s ease;
}

.bar-wrap:nth-child(2) .bar-fill {
    background: var(--grad-balloon-2);
}

.bar-wrap:nth-child(3) .bar-fill {
    background: var(--grad-balloon-3);
}

.bar-wrap:nth-child(4) .bar-fill {
    background: var(--color-sunshine);
}

/* =========================================
   Testimonials (Floating Clouds)
   ========================================= */

.testimonials {
    position: relative;
    overflow: hidden;
}

.cloud {
    background: white;
    border-radius: 50px;
    padding: 30px;
    box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    position: relative;
    transition: transform 0.3s;
}

.cloud::after {
    /* Cloud bump */
    content: '';
    position: absolute;
    top: -20px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    z-index: -1;
}

.cloud:hover {
    transform: translateY(-10px);
}

.client-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.client-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--color-sky-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--color-text-dark);
}

/* =========================================
   Footer
   ========================================= */

.footer {
    background: white;
    position: relative;
    padding-top: 150px;
    padding-bottom: 50px;
}

.footer-waves {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(0deg);
}

.footer-waves svg {
    position: relative;
    display: block;
    width: calc(130% + 1.3px);
    height: 150px;
    
}

.footer-waves .shape-fill {
    fill: #E0F7FA;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-col h3 {
    color: var(--color-text-dark);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.footer-col h3::after {
    content: '';
    display: block;
    width: 100%;
    height: 3px;
    background: var(--color-pop-pink);
    border-radius: 3px;
    margin-top: 5px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--color-pop-pink);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-btn {
    width: 40px;
    height: 40px;
    background: var(--color-sky-mid);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-dark);
    transition: all 0.3s;
}

.social-btn:hover {
    background: var(--color-pop-pink);
    color: white;
    transform: scale(1.1) rotate(10deg);
}

/* =========================================
   Legal Pages Specifics
   ========================================= */
.legal-content-wrapper {
    background: white;
    padding: 60px;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    margin-top: 30px;
}

.legal-content-wrapper h2 {
    color: var(--color-pop-purple);
    margin-top: 30px;
}

/* =========================================
   Live Chat Mockup
   ========================================= */
.live-chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.chat-btn {
    width: 60px;
    height: 60px;
    background: var(--grad-balloon-3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 10px 20px rgba(170, 0, 255, 0.3);
    cursor: pointer;
    transition: transform 0.3s;
    animation: float-up 4s ease-in-out infinite;
}

.chat-btn:hover {
    transform: scale(1.1);
}

/* =========================================
   Responsiveness
   ========================================= */

@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 150px;
    }

    .hero-content,
    .hero-visuals {
        width: 100%;
    }

    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-list {
        display: none;
        /* Add JS toggle later */
    }

    .mobile-toggle {
        display: flex;
    }

    /* Mobile Menu Active State (handled by JS) */
    .mobile-nav-active .nav-list {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: white;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    .legal-content-wrapper {
        padding: 30px;
    }
}