/* ========================================
   OVERBECK MUSIC - ORGANIC FLOW DESIGN
   Water-inspired, minimal, flowing aesthetic
   ======================================== */

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    /* Base colors */
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --text-dark: #2c3e50;
    --text-medium: #5a6c7d;
    
    /* System colors - subtle, from photos */
    --pink-elephant: #f4c8d8;
    --pink-elephant-dark: #e8a6ba;
    --purple-jellyfish: #c8b8e8;
    --purple-jellyfish-dark: #b39dd9;
    --silver-dolphin: #b8c5d0;
    --silver-dolphin-dark: #9aa8b5;
    
    /* Accent */
    --accent: #4a90a4;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Border radius - organic, rounded */
    --radius-sm: 12px;
    --radius-md: 24px;
    --radius-lg: 48px;
    --radius-xl: 96px;
    
    /* Transitions */
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* === HEADER === */
header {
    background-color: var(--white);
    padding: var(--spacing-md) var(--spacing-lg);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-sm);
    border-bottom: 1px solid var(--medium-gray);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

h1 {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

h1 a {
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
}

h1 a:hover {
    color: var(--accent);
}

nav ul {
    list-style: none;
    display: flex;
    gap: var(--spacing-md);
}

nav ul li a {
    text-decoration: none;
    color: var(--text-medium);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
}

nav ul li a:hover {
    color: var(--text-dark);
    background-color: var(--light-gray);
}

nav ul li a.active {
    color: var(--text-dark);
    background-color: var(--light-gray);
    font-weight: 600;
}

/* === HAMBURGER MENU === */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-dark);
    margin: 5px 0;
    transition: var(--transition);
    border-radius: 2px;
}

.nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* === MAIN CONTENT === */
main {
    min-height: calc(100vh - 200px);
}

/* === HERO SECTION === */
.hero {
    position: relative;
    padding: var(--spacing-xl) var(--spacing-lg);
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
    overflow: hidden;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 300;
    letter-spacing: -2px;
    margin-bottom: var(--spacing-md);
    line-height: 1.1;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-medium);
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
}

.hero-banner {
    flex: 1;
    max-width: 500px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.hero-banner img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
}

.cta-button,
.cta-button-secondary {
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    display: inline-block;
}

.cta-button {
    background-color: var(--text-dark);
    color: var(--white);
}

.cta-button:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
}

.cta-button-secondary {
    background-color: transparent;
    color: var(--text-dark);
    border: 2px solid var(--medium-gray);
}

.cta-button-secondary:hover {
    border-color: var(--text-dark);
    transform: translateY(-2px);
}

/* === ORGANIC FLOW SHAPES === */
.flow-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.05;
    pointer-events: none;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--pink-elephant) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    animation: float 20s ease-in-out infinite;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--purple-jellyfish) 0%, transparent 70%);
    bottom: -100px;
    left: -50px;
    animation: float 25s ease-in-out infinite reverse;
}

.shape-3 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--silver-dolphin) 0%, transparent 70%);
    top: 50%;
    right: -150px;
    transform: translateY(-50%);
    animation: float 30s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(5deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(-5deg);
    }
}

/* === FEATURED WORK === */
.featured-work {
    padding: var(--spacing-xl) var(--spacing-lg);
    background-color: var(--white);
}

.flow-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.flow-container h3 {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: -1px;
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
}

.featured-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.featured-card {
    background-color: var(--light-gray);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.featured-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.featured-card.coming-soon {
    opacity: 0.6;
}

.card-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.featured-card:hover .card-image img {
    transform: scale(1.05);
}

.coming-soon-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--silver-dolphin) 0%, var(--silver-dolphin-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.coming-soon-overlay span {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.card-content {
    padding: var(--spacing-md);
}

.card-content h4 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
}

.card-content p {
    color: var(--text-medium);
    margin-bottom: var(--spacing-md);
}

.card-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.card-link:hover {
    color: var(--text-dark);
}

/* === PHILOSOPHY SECTION === */
.philosophy {
    padding: var(--spacing-xl) var(--spacing-lg);
    background-color: var(--light-gray);
    position: relative;
    overflow: hidden;
}

.philosophy blockquote {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.75rem;
    font-weight: 300;
    line-height: 1.8;
    text-align: center;
    color: var(--text-medium);
    font-style: italic;
    position: relative;
    z-index: 2;
}

/* === SYSTEMS PAGE === */
.systems-intro {
    padding: var(--spacing-md) var(--spacing-lg);
    text-align: center;
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
}

.systems-intro h2 {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: -1px;
    margin-bottom: var(--spacing-sm);
}

.systems-tagline {
    font-size: 1.25rem;
    color: var(--text-medium);
}

/* === SYSTEM SELECTION (Character Select Style) === */
.system-selection {
    padding: var(--spacing-xl) var(--spacing-lg);
    background-color: var(--white);
}

.selection-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
}

.system-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    cursor: not-allowed;
}

.system-card.active {
    cursor: pointer;
}

.system-card.active:hover {
    transform: translateY(-12px) scale(1.02);
}

.system-card-inner {
    padding: var(--spacing-lg);
    text-align: center;
    border-radius: var(--radius-md);
    transition: var(--transition);
    min-height: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* System themes */
.pink-elephant-theme {
    background: linear-gradient(135deg, var(--pink-elephant) 0%, #fceef4 100%);
}

.system-card.active:hover .pink-elephant-theme {
    background: linear-gradient(135deg, var(--pink-elephant-dark) 0%, var(--pink-elephant) 100%);
    box-shadow: 0 20px 60px rgba(244, 200, 216, 0.4);
}

.purple-jellyfish-theme {
    background: linear-gradient(135deg, var(--purple-jellyfish) 0%, #e8e0f6 100%);
}

.system-card.active:hover .purple-jellyfish-theme {
    background: linear-gradient(135deg, var(--purple-jellyfish-dark) 0%, var(--purple-jellyfish) 100%);
    box-shadow: 0 20px 60px rgba(200, 184, 232, 0.4);
}

.silver-dolphin-theme {
    background: linear-gradient(135deg, var(--silver-dolphin) 0%, #dce4e8 100%);
    opacity: 0.6;
}

.system-icon {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: var(--spacing-md);
    border: 4px solid var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.system-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.locked-icon {
    background: linear-gradient(135deg, var(--medium-gray) 0%, var(--silver-dolphin) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lock-symbol {
    font-size: 5rem;
    color: var(--white);
    font-weight: 300;
}

.system-card h3 {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
}

.system-status {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-medium);
    font-weight: 600;
}

/* === MODAL STYLES === */
.system-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--white);
    border-radius: var(--radius-md);
    max-width: 1200px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    font-size: 2rem;
    color: var(--text-dark);
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    line-height: 1;
    text-align: center;
}

.modal-close:hover {
    background-color: var(--light-gray);
    transform: rotate(90deg);
}

.modal-header {
    padding: var(--spacing-lg);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.pink-elephant-accent {
    background: linear-gradient(135deg, var(--pink-elephant) 0%, var(--pink-elephant-dark) 100%);
}

.purple-jellyfish-accent {
    background: linear-gradient(135deg, var(--purple-jellyfish) 0%, var(--purple-jellyfish-dark) 100%);
}

.silver-dolphin-accent {
    background: linear-gradient(135deg, var(--silver-dolphin) 0%, var(--silver-dolphin-dark) 100%);
}

.modal-header h2 {
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: var(--spacing-xs);
}

.modal-subtitle {
    font-size: 1.25rem;
    color: var(--text-medium);
}

.modal-body {
    padding: var(--spacing-lg);
}

.modal-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.modal-gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.modal-description h3 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.modal-description p {
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.modal-description ul {
    list-style: none;
    padding-left: 0;
}

.modal-description ul li {
    padding: var(--spacing-xs) 0;
    padding-left: var(--spacing-md);
    position: relative;
    color: var(--text-medium);
}

.modal-description ul li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent);
}

.coming-soon-content {
    text-align: center;
    padding: var(--spacing-xl) 0;
}

.mystery-box {
    max-width: 500px;
    margin: 0 auto;
}

.mystery-symbol {
    font-size: 6rem;
    color: var(--silver-dolphin-dark);
    margin-bottom: var(--spacing-md);
}

/* === CONTENT PAGES === */
.page-header {
    padding: var(--spacing-md) var(--spacing-lg);
    text-align: center;
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
}

.page-header h2 {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: -1px;
    margin-bottom: var(--spacing-sm);
}

.page-header p {
    font-size: 1.25rem;
    color: var(--text-medium);
    max-width: 700px;
    margin: 0 auto;
}

.content-section {
    padding: var(--spacing-xl) var(--spacing-lg);
    max-width: 1200px;
    margin: 0 auto;
}

.content-section h3 {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: var(--spacing-md);
}

.content-section p {
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

/* === ABOUT PAGE === */
.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.about-image {
    width: 100%;
}

.about-image picture {
    display: block;
    width: 100%;
}

.about-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

/* === CONTACT PAGE === */
.contact-info {
    background-color: var(--light-gray);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-xl);
}

.contact-item {
    margin-bottom: var(--spacing-md);
}

.contact-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--text-dark);
}

.contact-item a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--text-dark);
}

/* === MUSIC PAGE MEDIA === */
.media-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.media-container h3 {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
}

.section-description {
    color: var(--text-medium);
    margin-bottom: var(--spacing-lg);
    font-size: 1.1rem;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    margin-bottom: var(--spacing-md);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-md);
}

.soundcloud-wrapper {
    margin-bottom: var(--spacing-md);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.soundcloud-wrapper iframe {
    display: block;
}

.bandcamp-wrapper {
    margin-bottom: var(--spacing-lg);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.bandcamp-wrapper iframe {
    display: block;
    border-radius: var(--radius-md);
}

.bandcamp-link {
    text-align: center;
    margin-top: var(--spacing-lg);
}

/* === NEWSLETTER FORM === */
.newsletter-section {
    background: linear-gradient(135deg, #c8e5f5 0%, #d8d0f0 50%, #a8d8d8 100%);
    padding: var(--spacing-xl);
    border-radius: var(--radius-md);
    text-align: center;
}

.newsletter-section h3 {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.newsletter-section p {
    color: var(--text-medium);
    margin-bottom: var(--spacing-lg);
}

.newsletter-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.form-group label {
    font-weight: 500;
    margin-bottom: var(--spacing-xs);
    color: var(--text-dark);
}

.form-group input {
    padding: var(--spacing-sm) var(--spacing-md);
    border: 2px solid var(--white);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    background-color: var(--white);
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group select {
    padding: var(--spacing-sm) var(--spacing-md);
    border: 2px solid var(--white);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    background-color: var(--white);
    transition: var(--transition);
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.form-group select:focus {
    outline: none;
    border-color: var(--accent);
}

.newsletter-submit {
    padding: var(--spacing-sm) var(--spacing-lg);
    background-color: var(--text-dark);
    color: var(--white);
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-submit:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
}

.newsletter-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.newsletter-message {
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    margin-top: var(--spacing-md);
    text-align: center;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.newsletter-message-success {
    background-color: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.newsletter-message-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

.newsletter-message-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 2px solid #bee5eb;
}

/* === FOOTER === */
footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: var(--spacing-lg);
    text-align: center;
    font-size: 0.9rem;
}

footer .social-icons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

footer .social-icons a {
    color: #e8e8e8;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

footer .social-icons a:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

footer .social-icons svg {
    width: 20px;
    height: 20px;
}

/* === PLACEHOLDER STYLES === */
.video-grid,
.releases-grid,
.installation-placeholder,
.video-placeholder,
.release-placeholder {
    background-color: var(--light-gray);
    padding: var(--spacing-xl);
    border-radius: var(--radius-md);
    text-align: center;
    margin: var(--spacing-lg) 0;
    border: 2px dashed var(--medium-gray);
}

.video-placeholder p,
.release-placeholder p,
.installation-placeholder p {
    color: var(--text-medium);
    font-style: italic;
}

.publication {
    background-color: var(--light-gray);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-lg);
}

.publication h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.publication p {
    color: var(--text-medium);
    line-height: 1.8;
}

.publication em {
    font-weight: 600;
    color: var(--accent);
    font-style: normal;
}

/* === LIQUID, FROST, MIST EFFECTS === */

/* Glassmorphism effects */
.newsletter-section,
.featured-card,
.system-card,
.modal-content {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Smooth transitions for all interactive elements */
a, button, .featured-card, .system-card, img {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Liquid hover effects */
.featured-card:hover,
.system-card.active:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.cta-button:hover,
.cta-button-secondary:hover,
.card-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(74, 144, 164, 0.3);
}

/* Frost overlay effect */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(200, 184, 232, 0.1), transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(244, 200, 216, 0.1), transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Flow shapes with mist effect */
.flow-shape {
    transition: transform 0.3s ease-out;
    will-change: transform;
    animation: float 20s ease-in-out infinite;
}

.flow-shape.shape-1 {
    animation-delay: 0s;
    animation-duration: 25s;
}

.flow-shape.shape-2 {
    animation-delay: -10s;
    animation-duration: 20s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(20px, -20px) rotate(5deg);
    }
    50% {
        transform: translate(-15px, 15px) rotate(-5deg);
    }
    75% {
        transform: translate(15px, 10px) rotate(3deg);
    }
}

/* Mist effect on images */
.hero-banner img,
.about-image img,
.card-image img,
.system-icon img {
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-banner:hover img,
.about-image:hover img,
.card-image:hover img,
.system-icon:hover img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* === SCROLL ANIMATIONS === */

/* Fade in elements */
.fade-in-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-element.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation for grid items */
.featured-grid .featured-card,
.selection-grid .system-card {
    transition-delay: calc(var(--delay, 0) * 0.1s);
}

.featured-grid .featured-card:nth-child(1) { --delay: 1; }
.featured-grid .featured-card:nth-child(2) { --delay: 2; }
.featured-grid .featured-card:nth-child(3) { --delay: 3; }

.selection-grid .system-card:nth-child(1) { --delay: 1; }
.selection-grid .system-card:nth-child(2) { --delay: 2; }
.selection-grid .system-card:nth-child(3) { --delay: 3; }

/* Smooth scroll indicator */
@keyframes pulseGlow {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

.newsletter-submit,
.cta-button {
    animation: pulseGlow 3s ease-in-out infinite;
}

.newsletter-submit:hover,
.cta-button:hover {
    animation: none;
}

/* Liquid loading state */
.newsletter-submit:disabled {
    animation: shimmer 1.5s infinite;
    background: linear-gradient(90deg,
        var(--text-dark) 0%,
        var(--accent) 50%,
        var(--text-dark) 100%);
    background-size: 200% 100%;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .about-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    header {
        padding: var(--spacing-md);
        flex-direction: column;
        justify-content: center;
    }
    
    .hero {
        padding: var(--spacing-lg) var(--spacing-md);
    }

    .hero-content {
        flex-direction: column;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-banner {
        max-width: 100%;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .selection-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-gallery {
        grid-template-columns: 1fr;
    }
    
    .newsletter-section {
        padding: var(--spacing-lg) var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .system-icon {
        width: 150px;
        height: 150px;
    }
    
    .lock-symbol {
        font-size: 3rem;
    }
}

/* === ACCESSIBILITY ENHANCEMENTS === */

/* Visible focus indicators for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus,
.system-card:focus,
.featured-card-link:focus,
.nav-toggle:focus {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

/* Enhanced focus for navigation links */
nav a:focus {
    outline: 2px solid var(--white);
    outline-offset: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
}

/* Focus states for CTA buttons */
.cta-button:focus,
.cta-button-secondary:focus,
.newsletter-submit:focus {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
    box-shadow: 0 0 0 6px rgba(74, 144, 164, 0.2);
}

/* Focus for social icons */
footer .social-icons a:focus {
    outline: 2px solid var(--white);
    outline-offset: 3px;
    background: rgba(255, 255, 255, 0.3);
}

/* Skip to main content link for screen readers */
.skip-to-main {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent);
    color: var(--white);
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-to-main:focus {
    top: 0;
}

/* Ensure animations respect user preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --text-dark: #000000;
        --white: #ffffff;
        --accent: #0066cc;
    }
    
    a:focus,
    button:focus {
        outline-width: 4px;
    }
}
