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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #202124;
    background-color: #ffffff;
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-theme {
    background-color: #202124;
    color: #e8eaed;
}

header {
    background: rgba(255, 255, 255, 0.98);
    padding: 1rem 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

body.dark-theme header {
    background: rgba(32, 33, 36, 0.98);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.auth-section {
    display: flex;
    align-items: center;
}

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a73e8;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 32px;
    height: 32px;
}

body.dark-theme .logo {
    color: #8ab4f8;
}

body.dark-theme .logo-icon {
    filter: invert(1) brightness(0.9);
}

.login-btn {
    background: #1a73e8;
    color: white;
    padding: 0.625rem 1.5rem;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    display: inline-block;
}

.login-btn:hover {
    background: #1557b0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

body.dark-theme .login-btn {
    background: #8ab4f8;
    color: #202124;
}

body.dark-theme .login-btn:hover {
    background: #aecbfa;
}

.theme-toggle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #f1f3f4;
    color: #5f6368;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.theme-toggle:hover {
    background: #e8eaed;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transform: scale(1.05);
}

body.dark-theme .theme-toggle {
    background: #3c4043;
    color: #e8eaed;
}

body.dark-theme .theme-toggle:hover {
    background: #5f6368;
}

.theme-toggle .material-symbols-outlined {
    font-size: 24px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.hero {
    text-align: center;
    margin-bottom: 4rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: #202124;
}

body.dark-theme .hero h1 {
    color: #e8eaed;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: #5f6368;
}

body.dark-theme .hero p {
    color: #9aa0a6;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e8eaed;
}

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

body.dark-theme .feature-card {
    background: #292a2d;
    border: 1px solid #3c4043;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

body.dark-theme .feature-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.feature-card h3 {
    color: #1a73e8;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

body.dark-theme .feature-card h3 {
    color: #8ab4f8;
}

.feature-card p {
    color: #5f6368;
    line-height: 1.8;
}

body.dark-theme .feature-card p {
    color: #9aa0a6;
}

.icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

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

    .features {
        grid-template-columns: 1fr;
    }
}

/* Profile Menu Styles */
.profile-menu-container {
    position: relative;
}

.profile-button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.profile-button:hover {
    transform: scale(1.05);
}

.profile-avatar-wrapper {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100%);
    background-size: 400% 400%;
    animation: gradient-shift 8s ease infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body.dark-theme .profile-avatar-wrapper {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100%);
    background-size: 400% 400%;
    animation: gradient-shift 8s ease infinite;
}

.profile-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
    display: block;
}

body.dark-theme .profile-avatar {
    border-color: #202124;
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.profile-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

body.dark-theme .profile-dropdown {
    background: #292a2d;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.profile-dropdown-header {
    display: flex;
    gap: 12px;
    padding: 16px;
}

.profile-avatar-large {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-weight: 500;
    font-size: 14px;
    color: #202124;
    margin-bottom: 4px;
}

body.dark-theme .profile-name {
    color: #e8eaed;
}

.profile-email {
    font-size: 13px;
    color: #5f6368;
}

body.dark-theme .profile-email {
    color: #9aa0a6;
}

.profile-dropdown-divider {
    height: 1px;
    background: #e8eaed;
}

body.dark-theme .profile-dropdown-divider {
    background: #3c4043;
}

.profile-menu-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: none;
    background: transparent;
    color: #202124;
    cursor: pointer;
    font-size: 14px;
    text-align: left;
    transition: background 0.2s ease;
}

.profile-menu-item:hover {
    background: #f1f3f4;
}

body.dark-theme .profile-menu-item {
    color: #e8eaed;
}

body.dark-theme .profile-menu-item:hover {
    background: #3c4043;
}

.profile-menu-item .material-symbols-outlined {
    font-size: 20px;
}
