/* Interactive Elements */
.card, 
.button,
.interactive-element {
    transition: all 0.4s var(--spring-easing);
}

.card:hover,
.button:hover,
.interactive-element:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.card:active,
.button:active,
.interactive-element:active {
    transform: translateY(-2px);
}

@keyframes subtle-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

.animate-on-visible {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s var(--spring-easing);
}

.animate-on-visible.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Ripple Effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0) 70%);
    transform: scale(0);
    opacity: 0;
    transition: transform 0.6s var(--spring-easing), opacity 0.6s var(--spring-easing);
}

.ripple:active::after {
    transform: scale(2);
    opacity: 1;
    transition: 0s;
}

/* Progress Bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--md-sys-color-primary);
    transition: width 0.2s ease-out, opacity 0.3s ease-out;
    z-index: 9999;
    width: 0%;
    opacity: 0;
}

/* Loading States */
.rotating {
    animation: rotate 1s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.md-button.loading {
    pointer-events: none;
    opacity: 0.8;
}

/* Animation Variables */
:root {
    --bounce-easing: cubic-bezier(0.28, 1.65, 0.65, 0.95);
    --spring-easing: cubic-bezier(0.34, 1.56, 0.64, 1);
    --standard-easing: cubic-bezier(0.2, 0, 0, 1);
}

/* Page Transitions */
body {
    opacity: 1;
    transition: opacity 0.3s var(--standard-easing);
}

/* Icon Buttons */
.icon-button {
    width: 40px;
    height: 40px;
    border-radius: 20px;
    border: none;
    background: transparent;
    color: var(--md-sys-color-on-surface);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--spring-easing);
    position: relative;
    overflow: hidden;
}

.icon-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--md-sys-color-surface-container-highest);
    border-radius: inherit;
    transform: scale(0);
    transition: transform 0.3s var(--spring-easing);
    z-index: -1;
}

.icon-button:hover {
    transform: translateY(-2px);
}

.icon-button:hover::before {
    transform: scale(1);
}

.icon-button:active {
    transform: scale(0.95);
    background-color: var(--md-sys-color-surface-container-high);
}

/* Theme Switch */
.theme-toggle {
    margin-left: 8px;
    display: flex;
    align-items: center;
}

.switch {
    width: 52px;
    height: 32px;
    padding: 2px;
    border-radius: 32px;
    background: var(--md-sys-color-surface-container-highest);
    cursor: pointer;
    position: relative;
    transition: all 0.4s var(--spring-easing);
    overflow: hidden;
}

.switch::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--md-sys-color-primary);
    border-radius: 32px;
    opacity: 0;
    transition: opacity 0.3s var(--bounce-easing);
}

.switch-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--md-sys-color-outline);
    position: absolute;
    left: 2px;
    transition: all 0.4s var(--spring-easing);
    z-index: 1;
}

.switch:hover .switch-thumb {
    transform: scale(1.1);
}

.switch.active {
    background: transparent;
}

.switch.active::before {
    opacity: 1;
}

.switch.active .switch-thumb {
    transform: translateX(20px) rotate(360deg);
    background: var(--md-sys-color-on-primary);
}

/* Dark Theme Colors */
.dark-theme {
    --md-sys-color-primary: #d0bcff;
    --md-sys-color-on-primary: #381e72;
    --md-sys-color-primary-container: #4f378b;
    --md-sys-color-on-primary-container: #eaddff;
    --md-sys-color-secondary: #ccc2dc;
    --md-sys-color-on-secondary: #332d41;
    --md-sys-color-secondary-container: #4a4458;
    --md-sys-color-on-secondary-container: #e8def8;
    --md-sys-color-tertiary: #efb8c8;
    --md-sys-color-on-tertiary: #492532;
    --md-sys-color-tertiary-container: #633b48;
    --md-sys-color-on-tertiary-container: #ffd8e4;
    --md-sys-color-error: #ffb4ab;
    --md-sys-color-on-error: #690005;
    --md-sys-color-error-container: #93000a;
    --md-sys-color-on-error-container: #ffdad6;
    --md-sys-color-background: #1c1b1f;
    --md-sys-color-on-background: #e6e1e5;
    --md-sys-color-surface: #1c1b1f;
    --md-sys-color-on-surface: #e6e1e5;
    --md-sys-color-surface-variant: #49454f;
    --md-sys-color-on-surface-variant: #cac4d0;
    --md-sys-color-outline: #938f99;
    --md-sys-color-outline-variant: #49454f;
    --md-sys-color-surface-tint: #d0bcff;
    --md-sys-color-surface-container: #1c1b1f;
    --md-sys-color-surface-container-high: #2b2930;
    --md-sys-color-surface-container-highest: #36343b;
}

/* Material Design 3 Theme Colors */
:root {
    --md-sys-color-primary: #6750a4;
    --md-sys-color-on-primary: #ffffff;
    --md-sys-color-primary-container: #eaddff;
    --md-sys-color-on-primary-container: #21005d;
    --md-sys-color-secondary: #625b71;
    --md-sys-color-on-secondary: #ffffff;
    --md-sys-color-secondary-container: #e8def8;
    --md-sys-color-on-secondary-container: #1d192b;
    --md-sys-color-tertiary: #7d5260;
    --md-sys-color-on-tertiary: #ffffff;
    --md-sys-color-tertiary-container: #ffd8e4;
    --md-sys-color-on-tertiary-container: #31111d;
    --md-sys-color-error: #ba1a1a;
    --md-sys-color-on-error: #ffffff;
    --md-sys-color-error-container: #ffdad6;
    --md-sys-color-on-error-container: #410002;
    --md-sys-color-background: #fffbfe;
    --md-sys-color-on-background: #1c1b1f;
    --md-sys-color-surface: #fffbfe;
    --md-sys-color-on-surface: #1c1b1f;
    --md-sys-color-surface-variant: #e7e0ec;
    --md-sys-color-on-surface-variant: #49454f;
    --md-sys-color-outline: #79747e;
    --md-sys-color-outline-variant: #cac4d0;
    --md-sys-color-inverse-surface: #313033;
    --md-sys-color-inverse-on-surface: #f4eff4;
    --md-sys-color-inverse-primary: #d0bcff;
    --md-sys-color-surface-tint: #6750a4;

    /* Animation durations */
    --animation-short: 200ms;
    --animation-medium: 300ms;
    --animation-long: 500ms;
    --md-sys-color-surface-dim: #ded8e1;
    --md-sys-color-surface-bright: #fffbfe;
    --md-sys-color-surface-container-lowest: #ffffff;
    --md-sys-color-surface-container-low: #f7f2fa;
    --md-sys-color-surface-container: #f3edf7;
    --md-sys-color-surface-container-high: #ece6f0;
    --md-sys-color-surface-container-highest: #e6e0e9;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: var(--md-sys-color-background);
    color: var(--md-sys-color-on-background);
    line-height: 1.5;
    overflow-x: hidden;
}

/* Layout */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation and Menus */
.app-bar-end {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: var(--md-sys-color-surface-container);
    z-index: 1000;
    transition: all 0.5s var(--spring-easing);
    box-shadow: none;
    overflow-y: auto;
    transform: translateX(0);
    opacity: 0.5;
}

.nav-menu.active {
    transform: translateX(300px);
    opacity: 1;
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.nav-menu a {
    transform: translateX(-20px);
    opacity: 0;
    transition: all 0.4s var(--bounce-easing);
    transition-delay: calc(var(--item-index) * 0.05s);
}

.nav-menu.active a {
    transform: translateX(0);
    opacity: 1;
}

.nav-header {
    background: var(--md-sys-color-surface-container-high);
    color: var(--md-sys-color-on-surface);
    position: relative;
}

.nav-items {
    padding: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    color: var(--md-sys-color-on-surface-variant);
    text-decoration: none;
    border-radius: 28px;
    transition: all 0.2s;
    margin: 4px 0;
}

.nav-item:hover {
    background: var(--md-sys-color-surface-container-highest);
}

.nav-item.active {
    background: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-on-secondary-container);
}

/* Top App Bar */
.top-app-bar {
    background: var(--md-sys-color-surface-container);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--md-sys-color-outline-variant);
    animation: slideDown 0.6s var(--spring-easing);
    transform-origin: top;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%) scale(0.98);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.top-app-bar.scrolled {
    background: var(--md-sys-color-surface-container-high);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.app-title {
    font-family: 'Roboto Flex', sans-serif;
    font-size: 22px;
    font-weight: 500;
    flex: 1;
    background: linear-gradient(45deg, var(--md-sys-color-primary), var(--md-sys-color-tertiary));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--md-sys-color-surface-container);
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s;
}

.search-overlay.active {
    visibility: visible;
    opacity: 1;
}

.search-header {
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--md-sys-color-surface-container-high);
}

.search-input-container {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--md-sys-color-surface-container);
    border-radius: 28px;
    margin-right: 8px;
}

.search-input {
    border: none;
    background: none;
    outline: none;
    flex: 1;
    font-size: 16px;
    color: var(--md-sys-color-on-surface);
}

/* More Menu */
.more-menu {
    position: fixed;
    top: 56px;
    right: 16px;
    background: var(--md-sys-color-surface-container);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.2s;
}

.more-menu.active {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--md-sys-color-on-surface-variant);
    cursor: pointer;
    transition: background 0.2s;
}

.menu-item:hover {
    background: var(--md-sys-color-surface-container-high);
}

/* Components and Elements */
.icon-button {
    width: 40px;
    height: 40px;
    border-radius: 20px;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--md-sys-color-on-surface-variant);
    transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
    position: relative;
    overflow: hidden;
}

.icon-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: currentColor;
    opacity: 0;
    transition: opacity 0.2s;
    border-radius: inherit;
}

.icon-button:hover::before {
    opacity: 0.08;
}

.icon-button:active::before {
    opacity: 0.12;
}

.main-content {
    flex: 1;
    padding: 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.card {
    background: var(--md-sys-color-surface-container-low);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--md-sys-color-primary), var(--md-sys-color-tertiary));
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1);
    transform-origin: left;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.card:hover::before {
    transform: scaleX(1);
}

.card-title {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 16px;
    color: var(--md-sys-color-on-surface);
}

.filled-button {
    background: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
    border: none;
    padding: 12px 24px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
    position: relative;
    overflow: hidden;
}

.filled-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.08);
    opacity: 0;
    transition: opacity 0.2s;
}

.filled-button:hover::before {
    opacity: 1;
}

.filled-button:active {
    transform: scale(0.98);
}

.outlined-button {
    background: transparent;
    color: var(--md-sys-color-primary);
    border: 1px solid var(--md-sys-color-outline);
    padding: 12px 24px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
    margin-left: 8px;
}

.outlined-button:hover {
    background: rgba(103, 80, 164, 0.08);
    border-color: var(--md-sys-color-primary);
}

.text-field {
    width: 100%;
    background: var(--md-sys-color-surface-container-highest);
    border: 1px solid var(--md-sys-color-outline-variant);
    border-radius: 4px;
    padding: 16px;
    font-size: 16px;
    color: var(--md-sys-color-on-surface);
    transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
    margin: 8px 0;
}

.text-field:focus {
    outline: none;
    border-color: var(--md-sys-color-primary);
    border-width: 2px;
    padding: 15px;
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    background: var(--md-sys-color-surface-container-high);
    color: var(--md-sys-color-on-surface-variant);
    border-radius: 8px;
    font-size: 14px;
    margin: 4px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
}

.chip.selected {
    background: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-on-secondary-container);
}

.chip:hover {
    background: var(--md-sys-color-surface-container-highest);
}

.fab {
    width: 56px;
    height: 56px;
    background: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
    border: none;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 3px 5px rgba(0,0,0,0.2);
    transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 50;
}

.fab:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.25);
    transform: scale(1.1);
}

/* Dark Theme */
body.dark-theme {
    --md-sys-color-primary: #d0bcff;
    --md-sys-color-on-primary: #381e72;
    --md-sys-color-primary-container: #4f378b;
    --md-sys-color-on-primary-container: #eaddff;
    --md-sys-color-secondary: #ccc2dc;
    --md-sys-color-on-secondary: #332d41;
    --md-sys-color-secondary-container: #4a4458;
    --md-sys-color-on-secondary-container: #e8def8;
    --md-sys-color-tertiary: #efb8c8;
    --md-sys-color-on-tertiary: #492532;
    --md-sys-color-tertiary-container: #633b48;
    --md-sys-color-on-tertiary-container: #ffd8e4;
    --md-sys-color-error: #ffb4ab;
    --md-sys-color-on-error: #690005;
    --md-sys-color-error-container: #93000a;
    --md-sys-color-on-error-container: #ffdad6;
    --md-sys-color-background: #1c1b1f;
    --md-sys-color-on-background: #e6e0e9;
    --md-sys-color-surface: #1c1b1f;
    --md-sys-color-on-surface: #e6e0e9;
    --md-sys-color-surface-variant: #49454f;
    --md-sys-color-on-surface-variant: #cac4d0;
    --md-sys-color-outline: #938f99;
    --md-sys-color-outline-variant: #49454f;
    --md-sys-color-inverse-surface: #e6e0e9;
    --md-sys-color-inverse-on-surface: #313033;
    --md-sys-color-inverse-primary: #6750a4;
    --md-sys-color-surface-tint: #d0bcff;
    --md-sys-color-surface-dim: #141316;
    --md-sys-color-surface-bright: #3b383f;
    --md-sys-color-surface-container-lowest: #0f0e11;
    --md-sys-color-surface-container-low: #1d1b20;
    --md-sys-color-surface-container: #211f26;
    --md-sys-color-surface-container-high: #2b2930;
    --md-sys-color-surface-container-highest: #36343b;
}

/* Animation Elements */
.floating-elements {
    position: relative;
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.design-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.6;
    animation: float 8s infinite;
}

.blob-primary {
    width: 200px;
    height: 200px;
    background: var(--md-sys-color-primary);
    animation-delay: 0s;
}

.blob-secondary {
    width: 150px;
    height: 150px;
    background: var(--md-sys-color-secondary);
    animation-delay: -2s;
}

.blob-tertiary {
    width: 180px;
    height: 180px;
    background: var(--md-sys-color-tertiary);
    animation-delay: -4s;
}

.design-card {
    position: absolute;
    background: var(--md-sys-color-surface-container-highest);
    border-radius: var(--radius-xl);
    padding: 20px;
    box-shadow: var(--elevation-3);
    animation: cardFloat 6s infinite;
    backdrop-filter: blur(10px);
    border: 1px solid var(--md-sys-color-outline-variant);
}

.design-card .material-icons-round {
    font-size: 32px;
    color: var(--md-sys-color-primary);
}

.design-pill {
    position: absolute;
    background: var(--md-sys-color-surface-container-high);
    border-radius: 50px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--elevation-2);
    animation: pillFloat 7s infinite;
    animation-delay: -2s;
    backdrop-filter: blur(10px);
    border: 1px solid var(--md-sys-color-outline-variant);
    bottom: 40px;
    right: 40px;
}

.design-pill .material-icons-round {
    font-size: 18px;
    color: var(--md-sys-color-primary);
}

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

@keyframes cardFloat {
    0%, 100% {
        transform: translate(-50%, -50%) rotate(-5deg);
    }
    50% {
        transform: translate(-50%, -60%) rotate(5deg);
    }
}

@keyframes pillFloat {
    0%, 100% {
        transform: translate(0, 0) rotate(2deg);
    }
    50% {
        transform: translate(-10px, -10px) rotate(-2deg);
    }
}

.floating-shape {
    position: absolute;
    opacity: 0.05;
    animation: float 20s infinite linear;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(120deg);
    }
    66% {
        transform: translateY(10px) rotate(240deg);
    }
}

/* General Hero Section Styles */
.hero-section {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 24px;
    overflow: hidden;
    background: var(--md-sys-color-surface-container);
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-text {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 24px;
    background: linear-gradient(45deg, var(--md-sys-color-primary), var(--md-sys-color-tertiary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 32px;
    color: var(--md-sys-color-on-surface-variant);
}

.hero-actions {
    display: flex;
}

.hero-visual {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-button:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    background: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
}

.hero-button {
    border-radius: var(--radius-full);
}


/* Your existing styles here */