/* === Root Color Variables === */
:root {
    --magenta: #9b2c5c;
    --blue: #1d98bc;
    --black: #12070c;
    --grey: #292929;
    --white: #eff1fd;
    --curve-radius: 30px;
    --small-curve: 15px;
}

/* === Global Styles === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--white);
    color: var(--black);
    line-height: 1.6;
    min-height: 100vh;
    height: 100%;
}

body {
    overflow-x: hidden;
    position: relative;
    margin-left: 0;
    margin-right: 0;
}

/* Desktop margins - only on larger screens */
@media (min-width: 1024px) {
    body {
        margin-left: 60px;
        margin-right: 60px;
    }
}

/* === Side Patterns === */
.side-pattern {
    position: fixed;
    top: 0;
    width: 60px;
    height: 100vh;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 1rem 0.5rem;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
    justify-content: space-around;
}

/* Show side patterns only on larger screens */
@media (min-width: 1024px) {
    .side-pattern {
        display: flex;
    }
}

.left-pattern {
    left: 0;
    background: #3a3a3a;
    border-right: 4px solid var(--magenta);
}

.right-pattern {
    right: 0;
    background: #3a3a3a;
    border-left: 4px solid var(--magenta);
}

.pattern-element {
    width: 40px;
    height: 40px;
    border-radius: 0;
    margin: 0 auto;
    animation: float-pattern 4s ease-in-out infinite;
}

.left-pattern .pattern-element:nth-child(1) {
    background-color: var(--magenta);
    animation-delay: 0s;
}

.left-pattern .pattern-element:nth-child(2) {
    background-color: var(--blue);
    animation-delay: 0.3s;
}

.left-pattern .pattern-element:nth-child(3) {
    background-color: var(--magenta);
    animation-delay: 0.6s;
}

.left-pattern .pattern-element:nth-child(4) {
    background-color: var(--blue);
    animation-delay: 0.9s;
}

.left-pattern .pattern-element:nth-child(5) {
    background-color: var(--magenta);
    animation-delay: 1.2s;
}

.left-pattern .pattern-element:nth-child(6) {
    background-color: var(--blue);
    animation-delay: 1.5s;
}

.left-pattern .pattern-element:nth-child(7) {
    background-color: var(--magenta);
    animation-delay: 1.8s;
}

.left-pattern .pattern-element:nth-child(8) {
    background-color: var(--blue);
    animation-delay: 2.1s;
}

.right-pattern .pattern-element:nth-child(1) {
    background-color: var(--blue);
    animation-delay: 0s;
}

.right-pattern .pattern-element:nth-child(2) {
    background-color: var(--magenta);
    animation-delay: 0.3s;
}

.right-pattern .pattern-element:nth-child(3) {
    background-color: var(--blue);
    animation-delay: 0.6s;
}

.right-pattern .pattern-element:nth-child(4) {
    background-color: var(--magenta);
    animation-delay: 0.9s;
}

.right-pattern .pattern-element:nth-child(5) {
    background-color: var(--blue);
    animation-delay: 1.2s;
}

.right-pattern .pattern-element:nth-child(6) {
    background-color: var(--magenta);
    animation-delay: 1.5s;
}

.right-pattern .pattern-element:nth-child(7) {
    background-color: var(--blue);
    animation-delay: 1.8s;
}

.right-pattern .pattern-element:nth-child(8) {
    background-color: var(--magenta);
    animation-delay: 2.1s;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Bungee', cursive;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

h1 {
    font-size: clamp(1.5rem, 5vw, 3rem);
}

h2 {
    font-size: clamp(1.25rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1rem, 3vw, 2rem);
}

h1 {
    font-size: clamp(1.5rem, 5vw, 3rem);
}

h2 {
    font-size: clamp(1.25rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1rem, 3vw, 2rem);
}

.title-main {
    font-size: clamp(2rem, 8vw, 6rem);
    font-family: 'Bungee', cursive;
    font-weight: 700;
    color: var(--white);
    max-width: 85vw;
    margin: 0 auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-shadow: 
        -2px -2px 0 var(--black),
        2px -2px 0 var(--black),
        -2px 2px 0 var(--black),
        2px 2px 0 var(--black),
        -2px 0px 0 var(--black),
        2px 0px 0 var(--black),
        0px -2px 0 var(--black),
        0px 2px 0 var(--black),
        -3px -3px 0 var(--black),
        3px -3px 0 var(--black),
        -3px 3px 0 var(--black),
        3px 3px 0 var(--black);
    animation: pulse-glow-white-hero 2s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
}

.subtitle {
    font-size: clamp(1rem, 5vw, 2.2rem);
    color: var(--blue);
    font-weight: 600;
    font-family: 'Bungee', cursive;
    margin-top: 1rem;
    max-width: 70vw;
    margin-left: auto;
    margin-right: auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
    -webkit-text-stroke: 1px black;
    text-stroke: 1px black;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8), 0 0 30px rgba(255, 255, 255, 0.5);
}

p {
    font-size: 1rem;
    color: var(--grey);
    margin-bottom: 1rem;
}

/* === Navigation Bar === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, var(--blue) 0%, #ffffff 50%, var(--blue) 100%);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(155, 44, 92, 0.2);
}

/* Adjust navbar margins on desktop only */
@media (min-width: 1024px) {
    .navbar {
        left: 60px;
        right: 60px;
    }
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
}

.logo-image {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-family: 'Bungee', cursive;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--black);
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: var(--black);
    font-family: 'Bungee', cursive;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 1rem;
    border-radius: var(--small-curve);
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--magenta), var(--blue));
    transition: width 0.3s ease;
    border-radius: var(--small-curve);
}

.nav-link:hover {
    color: var(--magenta);
}

.nav-link:hover::before {
    width: 100%;
}

/* === Hamburger Menu === */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    border: none;
    background: transparent;
    padding: 0;
    gap: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--black);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* === Hero Section === */
.hero {
    position: relative;
    padding: 12rem 2rem;
    background: transparent;
    text-align: center;
    overflow: hidden;
    border-radius: var(--curve-radius);
    margin-top: 70px;
    border: 4px solid var(--magenta);
    box-shadow: 0 0 30px rgba(155, 44, 92, 0.3);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0.5;
    filter: none;
    transition: filter 0.8s ease-out;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 0;
    mix-blend-mode: lighten;
    pointer-events: none;
}

.flashing-lights {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    z-index: 0;
}

.light {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--magenta);
    animation: flash 0.8s ease-in-out infinite;
}

.light:nth-child(2) {
    animation-delay: 0.1s;
    background-color: var(--blue);
}

.light:nth-child(3) {
    animation-delay: 0.2s;
    background-color: var(--magenta);
}

.light:nth-child(4) {
    animation-delay: 0.3s;
    background-color: var(--blue);
}

.light:nth-child(5) {
    animation-delay: 0.4s;
    background-color: var(--magenta);
}

.hero-content {
    position: relative;
    z-index: 1;
    filter: none;
    opacity: 1;
    transition: filter 0.8s ease-out, opacity 0.8s ease-out;
}

.hero-content.in-view {
    filter: blur(0);
    opacity: 1;
}

.accent-curve {
    width: 100px;
    height: 8px;
    background: linear-gradient(90deg, var(--magenta) 0%, var(--blue) 100%);
    border-radius: var(--small-curve);
    margin: 2rem auto 0;
    animation: slide-in 1.5s ease-out;
    box-shadow: 0 0 15px rgba(29, 152, 188, 0.6), 0 0 25px rgba(29, 152, 188, 0.3);
}

/* === Sections === */
.section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200px;
    height: 6px;
    background: linear-gradient(90deg, var(--magenta), var(--blue));
    border-radius: var(--small-curve);
}

/* === Color Palette Section === */
.color-palette-section {
    background: linear-gradient(135deg, #f9f7ff 0%, #e8f8ff 100%);
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.color-card {
    background: white;
    border-radius: var(--curve-radius);
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 3px solid transparent;
}

.color-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.color-swatch {
    width: 100%;
    height: 120px;
    border-radius: var(--small-curve);
    margin-bottom: 1.5rem;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.1);
}

.color-swatch.magenta {
    background-color: var(--magenta);
}

.color-swatch.blue {
    background-color: var(--blue);
}

.color-swatch.black {
    background-color: var(--black);
}

.color-swatch.grey {
    background-color: var(--grey);
}

.color-swatch.white {
    background-color: var(--white);
    border: 2px solid var(--grey);
}

.color-card h3 {
    font-size: 1.5rem;
    margin: 1rem 0 0.5rem;
}

.color-code {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--blue);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.color-description {
    font-size: 0.9rem;
    color: var(--grey);
    font-style: italic;
}

/* === Typography Section === */
.typography-section {
    background: linear-gradient(180deg, #f0ebff 0%, white 100%);
}

.typography-grid {
    display: grid;
    gap: 3rem;
}

.type-example {
    background: white;
    padding: 2.5rem;
    border-radius: var(--curve-radius);
    border-left: 6px solid var(--magenta);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.type-h1 {
    font-size: 4rem;
    color: var(--magenta);
}

.type-h2 {
    font-size: 2.5rem;
    color: var(--blue);
}

.type-h3 {
    font-size: 2rem;
    color: var(--black);
}

.type-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--grey);
}

.type-info {
    font-size: 0.85rem;
    color: var(--blue);
    margin-top: 1rem;
    font-style: italic;
}

/* === Components Section === */
.components-section {
    background-color: #faf8ff;
}

.components-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.component {
    background: white;
    padding: 2rem;
    border-radius: var(--curve-radius);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.component:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(155, 44, 92, 0.15);
}

.component h3 {
    color: var(--magenta);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    margin: 0.5rem;
    border: none;
    border-radius: var(--small-curve);
    font-family: 'Bungee', cursive;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: var(--magenta);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(155, 44, 92, 0.4);
}

.btn-secondary {
    background-color: var(--blue);
    color: var(--white);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(29, 152, 188, 0.4);
}

.btn-accent {
    background-color: var(--grey);
    color: var(--white);
}

.btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(41, 41, 41, 0.4);
}

/* Cards */
.card {
    background: white;
    border-radius: var(--small-curve);
    overflow: hidden;
    border: 2px solid #f0f0f0;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: var(--magenta);
    box-shadow: 0 10px 30px rgba(155, 44, 92, 0.15);
}

.card-image-placeholder {
    width: 100%;
    height: 150px;
    background: linear-gradient(135deg, #e8d5ff 0%, #b3e5fc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--grey);
    font-weight: 600;
    border-radius: var(--small-curve) var(--small-curve) 0 0;
}

.card h4 {
    padding: 1rem 1rem 0.5rem;
    color: var(--magenta);
}

.card p {
    padding: 0 1rem 1rem;
    font-size: 0.95rem;
}

/* Light Effects */
.light-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding: 2rem 0;
}

.dot-light {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--blue);
    animation: pulse-light 1.2s ease-in-out infinite;
}

.dot-light:nth-child(1) {
    animation-delay: 0s;
    background-color: var(--magenta);
}

.dot-light:nth-child(2) {
    animation-delay: 0.2s;
}

.dot-light:nth-child(3) {
    animation-delay: 0.4s;
    background-color: var(--magenta);
}

.dot-light:nth-child(4) {
    animation-delay: 0.6s;
}

.dot-light:nth-child(5) {
    animation-delay: 0.8s;
    background-color: var(--magenta);
}

/* Highlights */
.highlight-magenta {
    background-color: rgba(155, 44, 92, 0.2);
    color: var(--magenta);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-weight: 600;
}

.highlight-blue {
    background-color: rgba(29, 152, 188, 0.2);
    color: var(--blue);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-weight: 600;
}

/* Curved Box */
.curved-box {
    background: linear-gradient(135deg, rgba(155, 44, 92, 0.1) 0%, rgba(29, 152, 188, 0.1) 100%);
    border: 3px solid var(--magenta);
    border-radius: var(--curve-radius);
    padding: 2rem;
    text-align: center;
    color: var(--black);
    font-weight: 600;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    margin: 0.3rem;
    border-radius: 20px;
    font-family: 'Bungee', cursive;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-primary {
    background-color: var(--magenta);
    color: var(--white);
}

.badge-secondary {
    background-color: var(--blue);
    color: var(--white);
}

.badge-accent {
    background-color: var(--grey);
    color: var(--white);
}

/* === Image with Flashing Lights Border === */
.image-with-light-border {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.image-with-light-border::before {
    content: '';
    position: absolute;
    top: -18px;
    left: -18px;
    right: -18px;
    bottom: -18px;
    background: transparent;
    border: 3px solid rgba(155, 44, 92, 0.3);
    border-radius: var(--curve-radius);
    z-index: 0;
    pointer-events: none;
}

.image-with-light-border .light-border-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--magenta);
    animation: flash 0.8s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(155, 44, 92, 0.8);
    z-index: 2;
}

/* Top row - 10 dots */
.light-dot-1 { top: -22px; left: 5%; animation-delay: 0s; }
.light-dot-2 { top: -22px; left: 15%; animation-delay: 0.08s; background-color: var(--blue); box-shadow: 0 0 10px rgba(29, 152, 188, 0.8); }
.light-dot-3 { top: -22px; left: 25%; animation-delay: 0.16s; }
.light-dot-4 { top: -22px; left: 35%; animation-delay: 0.24s; background-color: var(--blue); box-shadow: 0 0 10px rgba(29, 152, 188, 0.8); }
.light-dot-5 { top: -22px; left: 45%; animation-delay: 0.32s; }
.light-dot-6 { top: -22px; left: 55%; animation-delay: 0.40s; background-color: var(--blue); box-shadow: 0 0 10px rgba(29, 152, 188, 0.8); }
.light-dot-7 { top: -22px; left: 65%; animation-delay: 0.48s; }
.light-dot-8 { top: -22px; left: 75%; animation-delay: 0.56s; background-color: var(--blue); box-shadow: 0 0 10px rgba(29, 152, 188, 0.8); }
.light-dot-9 { top: -22px; left: 85%; animation-delay: 0.64s; }
.light-dot-10 { top: -22px; left: 95%; animation-delay: 0.72s; background-color: var(--blue); box-shadow: 0 0 10px rgba(29, 152, 188, 0.8); }

/* Right side - 5 dots */
.light-dot-11 { top: 15%; right: -22px; animation-delay: 0.80s; }
.light-dot-12 { top: 35%; right: -22px; animation-delay: 0.88s; background-color: var(--blue); box-shadow: 0 0 10px rgba(29, 152, 188, 0.8); }
.light-dot-13 { top: 50%; right: -22px; transform: translateY(-50%); animation-delay: 0.96s; }
.light-dot-14 { top: 65%; right: -22px; animation-delay: 1.04s; background-color: var(--blue); box-shadow: 0 0 10px rgba(29, 152, 188, 0.8); }
.light-dot-15 { top: 85%; right: -22px; animation-delay: 1.12s; }

/* Bottom row - 10 dots */
.light-dot-16 { bottom: -22px; left: 5%; animation-delay: 1.20s; background-color: var(--blue); box-shadow: 0 0 10px rgba(29, 152, 188, 0.8); }
.light-dot-17 { bottom: -22px; left: 15%; animation-delay: 1.28s; }
.light-dot-18 { bottom: -22px; left: 25%; animation-delay: 1.36s; background-color: var(--blue); box-shadow: 0 0 10px rgba(29, 152, 188, 0.8); }
.light-dot-19 { bottom: -22px; left: 35%; animation-delay: 1.44s; }
.light-dot-20 { bottom: -22px; left: 45%; animation-delay: 1.52s; background-color: var(--blue); box-shadow: 0 0 10px rgba(29, 152, 188, 0.8); }
.light-dot-21 { bottom: -22px; left: 55%; animation-delay: 1.60s; }
.light-dot-22 { bottom: -22px; left: 65%; animation-delay: 1.68s; background-color: var(--blue); box-shadow: 0 0 10px rgba(29, 152, 188, 0.8); }
.light-dot-23 { bottom: -22px; left: 75%; animation-delay: 1.76s; }
.light-dot-24 { bottom: -22px; left: 85%; animation-delay: 1.84s; background-color: var(--blue); box-shadow: 0 0 10px rgba(29, 152, 188, 0.8); }
.light-dot-25 { bottom: -22px; left: 95%; animation-delay: 1.92s; }

/* Left side - 5 dots */
.light-dot-26 { top: 15%; left: -22px; animation-delay: 2.00s; background-color: var(--blue); box-shadow: 0 0 10px rgba(29, 152, 188, 0.8); }
.light-dot-27 { top: 35%; left: -22px; animation-delay: 2.08s; }
.light-dot-28 { top: 50%; left: -22px; transform: translateY(-50%); animation-delay: 2.16s; background-color: var(--blue); box-shadow: 0 0 10px rgba(29, 152, 188, 0.8); }
.light-dot-29 { top: 65%; left: -22px; animation-delay: 2.24s; }
.light-dot-30 { top: 85%; left: -22px; animation-delay: 2.32s; background-color: var(--blue); box-shadow: 0 0 10px rgba(29, 152, 188, 0.8); }

.image-with-light-border img {
    width: 100%;
    height: auto;
    border-radius: var(--curve-radius);
    display: block;
    position: relative;
    z-index: 1;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

/* === Sample Content Section === */
.sample-content {
    background: white;
}

.content-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.content-text h3 {
    color: var(--magenta);
    font-size: 2rem;
}

.content-text p {
    color: var(--grey);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.content-image-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #dab3ff 0%, #80d8ff 100%);
    border-radius: var(--curve-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--black);
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 15px 40px rgba(155, 44, 92, 0.2);
}

/* === Footer === */
.footer {
    background: linear-gradient(180deg, var(--black) 0%, #1a0d14 100%);
    color: var(--white);
    text-align: center;
    padding: clamp(2rem, 5vw, 3rem) 2rem;
    border-radius: var(--curve-radius) var(--curve-radius) 0 0;
}

.footer p {
    font-size: clamp(0.85rem, 2vw, 1rem);
}

.footer p {
    color: var(--white);
}

.flashing-lights-footer {
    display: none;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer.loading .flashing-lights-footer {
    display: flex;
}

.light-small {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--magenta);
    animation: flash 0.8s ease-in-out infinite;
}

.light-small:nth-child(2) {
    animation-delay: 0.15s;
    background-color: var(--blue);
}

.light-small:nth-child(3) {
    animation-delay: 0.3s;
    background-color: var(--magenta);
}

/* === Animations === */
@keyframes flash {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 10px currentColor;
    }
    50% {
        opacity: 0.2;
        box-shadow: 0 0 2px currentColor;
    }
}

@keyframes float-pattern {
    0%, 100% {
        transform: translateY(0px);
        opacity: 0.8;
        filter: drop-shadow(0 0 10px rgba(155, 44, 92, 0.6));
    }
    50% {
        transform: translateY(-20px);
        opacity: 1;
        filter: drop-shadow(0 0 20px rgba(29, 152, 188, 0.8));
    }
}

@keyframes pulse-light {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.6;
    }
}

@keyframes pulse-glow {
    0%, 100% {
        text-shadow: 0 8px 20px rgba(155, 44, 92, 0.3),
                     0 0 40px rgba(155, 44, 92, 0.1);
    }
    50% {
        text-shadow: 0 8px 20px rgba(155, 44, 92, 0.5),
                     0 0 60px rgba(155, 44, 92, 0.2);
    }
}

@keyframes pulse-glow-white {
    0%, 100% {
        filter: drop-shadow(0 4px 12px rgba(255, 255, 255, 0.3));
    }
    50% {
        filter: drop-shadow(0 4px 20px rgba(255, 255, 255, 0.6));
    }
}

@keyframes pulse-glow-white-hero {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.4));
    }
    50% {
        filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.8));
    }
}

@keyframes blur-to-clear {
    from {
        filter: blur(15px);
        opacity: 0.7;
    }
    to {
        filter: blur(0);
        opacity: 1;
    }
}

@keyframes slide-in {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 100px;
        opacity: 1;
    }
}

/* === Banner Background Image Cycling === */
.banner-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
    width: 100%;
    height: 100%;
    background-color: #2a2a2a;
}

.banner-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: grayscale(100%) brightness(0.5);
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
    display: block;
}

.banner-bg-image::-webkit-input-placeholder {
    display: none;
}

.banner-bg-image[src*="undefined"],
.banner-bg-image[src*="null"] {
    display: none;
}

.banner-bg-image.active {
    opacity: 1;
}

.banner-bg-image.fade-out {
    opacity: 0;
}

.banner-content {
    position: relative;
    z-index: 2;
}

.about-banner,
.contact-banner,
.films-banner {
    position: relative;
}

/* === Responsive Design === */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .navbar {
        position: fixed;
        left: 0;
        right: 0;
    }

    .nav-container {
        padding: 0.75rem 1rem;
        max-width: 100%;
        width: 100%;
        margin: 0;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        width: 100%;
        background: linear-gradient(180deg, var(--blue) 0%, #ffffff 50%, var(--blue) 100%);
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        padding: 0;
        border: none;
        z-index: 999;
    }

    .nav-menu.active {
        max-height: 300px;
        padding: 1rem 0;
    }

    .nav-item {
        text-align: center;
        border-bottom: 1px solid rgba(155, 44, 92, 0.2);
    }

    .nav-item:last-child {
        border-bottom: none;
    }

    .nav-link {
        display: block;
        padding: 1rem;
        width: 100%;
        font-size: 0.9rem;
    }

    .nav-link::before {
        display: none;
    }

    .logo-image {
        height: 35px;
    }

    .logo-text {
        font-size: 1rem;
        letter-spacing: 0.5px;
    }

    .title-main {
        font-size: clamp(1.5rem, 6vw, 3rem);
    }

    .subtitle {
        font-size: clamp(0.9rem, 4vw, 1.5rem);
    }

    .section {
        padding: 2rem 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .color-grid {
        grid-template-columns: 1fr;
    }

    .components-grid {
        grid-template-columns: 1fr;
    }

    .content-layout {
        grid-template-columns: 1fr;
    }

    .content-image-placeholder {
        height: 250px;
    }

    .hero {
        padding: 4rem 1rem;
        margin-top: 70px;
        border-radius: 15px;
        border-width: 2px;
    }

    .accent-curve {
        width: 80px;
    }

    /* Responsive fixes for Sonder Anthology section */
    .sonder-section {
        padding: 2rem 1rem !important;
    }

    .sonder-content {
        flex-direction: column !important;
        padding: 1.5rem !important;
        gap: 1.5rem !important;
        box-shadow: none !important;
        border: 2px solid var(--magenta) !important;
    }

    /* Films gallery padding fix */
    .films-gallery {
        padding: 2rem 1rem !important;
    }

    .films-grid {
        gap: 1.5rem !important;
    }

    p {
        font-size: 0.95rem;
    }

    h1, h2, h3, h4, h5, h6 {
        margin-bottom: 0.75rem;
    }

    .btn {
        font-size: 0.9rem;
        padding: 0.65rem 1.5rem;
    }

    /* Bio section responsive - stack text above image */
    .bio-section {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .bio-section:nth-child(2) .bio-image {
        order: 0 !important;
    }

    .bio-image {
        min-height: 250px !important;
    }
}

@media (max-width: 600px) {
    /* Sonder Anthology section adjustments for extra small screens */
    .sonder-content > div[style*="flex: 0 0 auto"] {
        flex-basis: 100% !important;
        max-width: 150px !important;
        margin: 0 auto !important;
    }

    .sonder-content > div[style*="flex: 1"] {
        flex-basis: 100% !important;
    }

    .sonder-content > div[style*="flex: 1"] h2 {
        font-size: 1.3rem !important;
    }

    .sonder-content > div[style*="flex: 1"] p {
        font-size: 0.9rem !important;
    }

    .hero {
        padding: 2.5rem 1rem;
        border-width: 2px;
    }

    .title-main {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .section {
        padding: 1.5rem 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .type-h1 {
        font-size: 2rem;
    }

    .type-h2 {
        font-size: 1.3rem;
    }

    .type-h3 {
        font-size: 1.1rem;
    }

    .color-card {
        padding: 1.5rem;
    }

    .color-swatch {
        height: 100px;
    }

    .component {
        padding: 1.5rem;
    }

    .card {
        margin-bottom: 1rem;
    }

    .flashing-lights {
        gap: 1rem;
    }

    .light {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    body {
        margin-left: 0;
        margin-right: 0;
    }

    .side-pattern {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .navbar {
        left: 0;
        right: 0;
    }

    .nav-container {
        flex-direction: row;
        gap: 0.5rem;
        padding: 0.5rem;
        justify-content: space-between;
        max-width: 100%;
    }

    .nav-menu {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        width: 100%;
        background: linear-gradient(180deg, var(--blue) 0%, #ffffff 50%, var(--blue) 100%);
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        padding: 0;
        border: none;
    }

    .nav-menu.active {
        max-height: 300px;
        padding: 1rem 0;
    }

    .nav-item {
        text-align: center;
        border-bottom: 1px solid rgba(155, 44, 92, 0.2);
    }

    .nav-item:last-child {
        border-bottom: none;
    }

    .nav-link {
        display: block;
        font-size: 0.8rem;
        padding: 0.8rem;
        width: 100%;
    }

    .logo-image {
        height: 30px;
    }

    .logo-text {
        font-size: 0.85rem;
        letter-spacing: 0px;
    }

    .title-main {
        font-size: 1.3rem;
    }

    .subtitle {
        font-size: 0.9rem;
        margin-top: 0.5rem;
    }

    .section {
        padding: 1.25rem 1rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .type-h1 {
        font-size: 1.5rem;
    }

    .type-h2 {
        font-size: 1.1rem;
    }

    h1, h2, h3, h4, h5, h6 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    p {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }

    .btn {
        display: block;
        width: calc(100% - 1rem);
        margin: 0.5rem;
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
    }

    .sonder-title {
        flex-direction: column !important;
        gap: 2rem !important;
        padding: 1.5rem !important;
        border-bottom: 2px solid #000000 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .sonder-title > div:first-child {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        margin-bottom: 1rem !important;
    }

    .sonder-title > div:first-child img {
        max-width: 130px !important;
        height: auto !important;
    }

    .sonder-title > div:last-child {
        width: 100% !important;
        text-align: center !important;
    }

    .sonder-title h1 {
        font-size: 1.5rem !important;
        margin-bottom: 1rem !important;
    }

    .sonder-subtitle {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
    }

    .hero {
        padding: 2rem 1rem;
        margin-top: 70px;
        border-radius: 12px;
        border-width: 2px;
        gap: 1rem;
    }

    .accent-curve {
        width: 60px;
        margin: 1rem auto 0;
    }

    .flashing-lights {
        top: 15px;
        gap: 1rem;
    }

    .light {
        width: 8px;
        height: 8px;
    }

    .color-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .color-card {
        padding: 1rem;
    }

    .color-swatch {
        height: 80px;
        margin-bottom: 1rem;
    }

    .color-card h3 {
        font-size: 1rem;
    }

    .components-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .component {
        padding: 1rem;
    }

    .component h3 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .content-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .content-text h3 {
        font-size: 1.2rem;
    }

    .content-image-placeholder {
        height: 200px;
        font-size: 0.9rem;
    }

    .card {
        margin-bottom: 1rem;
    }

    .card-image-placeholder {
        height: 120px;
    }

    .card h4 {
        font-size: 0.95rem;
        padding: 0.75rem;
    }

    .card p {
        font-size: 0.85rem;
        padding: 0 0.75rem 0.75rem;
    }

    .light-row {
        padding: 1rem 0;
        gap: 0.75rem;
    }

    .dot-light {
        width: 12px;
        height: 12px;
    }

    .badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.8rem;
        margin: 0.2rem;
    }

    .footer {
        padding: 1.5rem 1rem;
    }

    .footer p {
        font-size: 0.8rem;
        margin: 0.25rem 0;
    }

    .light-small {
        width: 8px;
        height: 8px;
    }

    /* Hide decorative elements on very small screens */
    .image-with-light-border::before {
        display: none;
    }

    .image-with-light-border .light-border-dot {
        display: none;
    }
}
