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

body {
    font-family: 'Unbounded', sans-serif;
    line-height: 1.6;
    background: #1a1a1a;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px, 40px 40px, 200px 200px, 200px 200px;
    background-position: 0 0, 0 0, 0 0, 0 0;
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

:root {
    font-family: 'Unbounded', sans-serif;
    --primary-purple: #7B1FA2;
    --secondary-purple: #9C27B0;
    --dark-purple: #4A148C;
    --light-purple: #CE93D8;
    --bg-primary: #1a1a1a;
    --bg-secondary: #2a2a2a;
    --bg-card: rgba(255, 255, 255, 0.05);
    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    --text-muted: #737373;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --gradient-purple: linear-gradient(135deg, #9945ff 0%, #c084fc 100%);
    --gradient-bg: linear-gradient(135deg, #1a1a1a 0%, #2d1b4e 100%);
}

.header {
    font-family: 'Unbounded', sans-serif;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
    max-width: 53%;
    margin: 0 auto;
    border-radius: 0 0 25px 25px;
}

.header-content {
    font-family: 'Unbounded', sans-serif;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-family: 'Unbounded', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

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

.header-link {
    font-family: 'Unbounded', sans-serif;
    background: var(--gradient-purple);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid transparent;
    box-shadow: 0 4px 15px rgba(153, 69, 255, 0.3);
}

.header-link-icon {
    font-family: 'Unbounded', sans-serif;
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
    color: white;
    opacity: 0.95;
}

.header-link:hover {
    font-family: 'Unbounded', sans-serif;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(153, 69, 255, 0.4);
    background: linear-gradient(135deg, #8034db 0%, #a66ef4 100%);
}

.header-link:active {
    font-family: 'Unbounded', sans-serif;
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(153, 69, 255, 0.3);
}

.main-content {
    font-family: 'Unbounded', sans-serif;
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
    min-height: calc(100vh - 100px);
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 3rem;
    align-items: start;
}

.updates-panel {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    position: sticky;
    top: 120px;
    height: fit-content;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.updates-header {
    font-family: 'Unbounded', sans-serif;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.updates-header h3 {
    font-family: 'Unbounded', sans-serif;
    color: var(--primary-purple);
    font-size: 1.5rem;
    font-weight: 600;
    background: var(--gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.updates-badge {
    background: var(--gradient-purple);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.updates-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.update-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.update-item:hover {
    border-color: var(--primary-purple);
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.update-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-purple);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

.update-content h4 {
    font-family: 'Unbounded', sans-serif;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.update-content p {
    font-family: 'Unbounded', sans-serif;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.update-time {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
}

.profile-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 3rem;
    width: 100%;
}

.avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.avatar {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--gradient-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(153, 69, 255, 0.3);
}

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

.avatar-placeholder {
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    background: var(--gradient-purple);
    color: white;
    font-size: 3rem;
}

.username {
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.bio-section {
    width: 100%;
    max-width: 600px;
}

.greeting {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-weight: 400;
}

.info-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 3rem;
}

.info-item {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.info-item:hover {
    border-color: var(--primary-purple);
    background: rgba(255, 255, 255, 0.08);
}

.label {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.value {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.experience {
    background: var(--gradient-purple);
    color: white;
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 500;
    font-size: 1.125rem;
    box-shadow: 0 20px 40px rgba(153, 69, 255, 0.2);
}

.custom-text {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-purple);
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 2rem;
}

.custom-text p {
    color: var(--text-secondary);
    font-style: italic;
    margin: 0;
}

.anime-section,
.project-section,
.personal-section,
.coding-section {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.2s ease;
}

.anime-section:hover,
.project-section:hover,
.personal-section:hover,
.coding-section:hover {
    border-color: var(--primary-purple);
    background: rgba(255, 255, 255, 0.08);
}

.anime-section h3,
.project-section h3,
.personal-section h3,
.coding-section h3 {
    color: var(--primary-purple);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    background: var(--gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.anime-section p,
.project-section p,
.personal-section p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.anime-section p:last-child,
.project-section p:last-child,
.personal-section p:last-child {
    margin-bottom: 0;
}

.details-btn {
    font-family: 'Unbounded', sans-serif;
    background: var(--gradient-purple);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 700;
    margin: 1rem auto 0;
    width: 80%;
    transition: all 0.2s ease;
}

.details-btn:hover {
    font-family: 'Unbounded', sans-serif;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(153, 69, 255, 0.3);
}

.details-btn i {
    transition: transform 0.2s ease;
}

.details-btn.active i {
    transform: rotate(180deg);
}

.details-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin-top: 1rem;
}

.details-content.active {
    max-height: 1000px;
}

.details-content h4 {
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem 0;
}

.details-content h4:first-child {
    margin-top: 0;
}

.details-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.coding-stats {
    display: grid;
    gap: 1rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.stat-item:hover {
    border-color: var(--primary-purple);
    background: rgba(255, 255, 255, 0.08);
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.stat-value {
    color: var(--primary-purple);
    font-weight: 600;
    font-size: 1.125rem;
}

@media (max-width: 900px) {
  .header {
    max-width: 100%;
    border-radius: 0 0 18px 18px;
    padding: 0.7rem 0;
  }
  .header-content {
    max-width: 100vw;
    padding: 0 0.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .logo h1 {
    font-size: 1.2rem;
  }
  .controls {
    width: 100%;
    justify-content: flex-end;
  }
  .header-link {
    width: 100%;
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
    white-space: normal;
    word-break: break-word;
    text-align: right;
    box-sizing: border-box;
  }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0 1rem;
    }
    
    .main-content {
        padding: 2rem 1rem;
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .updates-panel {
        position: static;
        order: 2;
    }
    
    .profile-container {
        order: 1;
    }
    
    .username {
        font-size: 2.5rem;
    }
    
    .avatar {
        width: 120px;
        height: 120px;
    }
    
    .avatar-placeholder {
        font-size: 2.5rem;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        text-align: left;
    }
    
    .controls {
        gap: 0.5rem;
    }
    
    .language-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .reset-btn {
        width: 40px;
        height: 40px;
    }
    .header {
        padding: 0.4rem 0;
        border-radius: 0 0 12px 12px;
    }
    .header-link {
        font-size: 0.8rem;
        padding: 0.5rem 0.7rem;
    }
}

@media (max-width: 480px) {
    .username {
        font-size: 2rem;
    }
    
    .greeting {
        font-size: 1.125rem;
    }
    
    .experience {
        font-size: 1rem;
        padding: 1.5rem;
    }
}

.language-btn:focus,
.theme-toggle:focus,
.reset-btn:focus,
.lang-option:focus {
    outline: 2px solid var(--primary-purple);
    outline-offset: 2px;
}

html {
    scroll-behavior: smooth;
}

::selection {
    background: var(--primary-purple);
    color: white;
}

::-moz-selection {
    background: var(--primary-purple);
    color: white;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-purple);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-purple);
}