* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 22px;
    scroll-behavior: smooth;
}

body {
    background-color: #1a1a1a;
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #1565c0;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 0 0 4px 0;
    z-index: 1000;
}

.skip-link:focus {
    top: 0;
}

a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus,
.avatar:focus {
    outline: 3px solid #42a5f5;
    outline-offset: 2px;
}

.page-header {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-bottom: 3px solid #0f3460;
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.header-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(76, 175, 80, 0.05) 0, transparent 50%), radial-gradient(circle at 80% 20%, rgba(33, 150, 243, 0.05) 0, transparent 50%);
}

.header-content {
    position: relative;
    z-index: 2;
}

.profile-intro {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.avatar-container {
    position: relative;
    display: inline-block;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #4fc3f7;
}

.online-indicator {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 15px;
    height: 15px;
    background-color: #4caf50;
    border-radius: 50%;
    border: 2px solid #ffffff;
}

.title-container {
    flex: 1;
}

.title-container h1 {
    margin: 0;
    color: #ffffff;
    font-size: 2.5rem;
}

.tagline {
    color: #e0e0e0;
    font-size: 1.1rem;
    margin: 0.5rem 0 0 0;
    font-style: italic;
}

.starry-nav {
    width: 100%;
    margin-top: 2rem;
}

.starry-nav .nav-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.starry-nav .nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.starry-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: rgba(25, 118, 210, 0.3);
    border-radius: 50px;
    text-decoration: none;
    color: #ffffff;
    border: 1px solid rgba(79, 195, 247, 0.2);
    transition: all 0.3s;
}

.starry-nav .nav-link:hover {
    background: rgba(79, 195, 247, 0.1);
    border-color: #4fc3f7;
    transform: translateY(-2px);
}

.nav-icon {
    font-size: 1.2rem;
    color: #ffffff;
}

.nav-text {
    font-weight: 500;
    color: #ffffff;
}

.starry-nav .nav-extra {
    display: flex;
    align-items: center;
}

.progress-indicator {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.8rem 1.2rem;
    border-radius: 25px;
    border: 1px solid rgba(76, 175, 80, 0.3);
    min-width: 200px;
}

.progress-text {
    display: block;
    color: #ffffff;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4caf50, #8bc34a);
    border-radius: 3px;
}

.code-bracket {
    position: absolute;
    right: 2rem;
    bottom: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.65);
    font-weight: bold;
    user-select: none;
}

article {
    background: #2d2d2d;
    border: 1px solid #404040;
    border-radius: 12px;
    padding: 2rem;
    margin: 2.5rem 0;
    transition: all 0.3s ease;
    color: #ffffff;
}

article:hover {
    border-color: #4fc3f7;
    transform: translateY(-4px);
}

article section {
    margin: 1.5rem 0;
    padding: 1rem 0;
    border-bottom: 1px dashed #404040;
}

article section:last-child {
    border-bottom: none;
}

img {
    border-radius: 8px;
    transition: transform 0.3s ease;
}

img:hover {
    transform: scale(1.02);
}

aside {
    margin: 1.5rem 0;
    background: #2d2d2d;
    border-left: 4px solid #9c27b0;
    border-radius: 0 8px 8px 0;
}

aside details {
    background: #363636;
    border: 1px solid #555;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: border-color 0.3s;
}

aside details:hover {
    border-color: #9c27b0;
}

aside details summary {
    padding: 1rem 1.25rem;
    font-weight: 600;
    color: #e1bee7;
    cursor: pointer;
    list-style: none;
    background: #2d2d2d;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

aside details summary::after {
    content: '+';
    font-size: 1.5rem;
    color: #9c27b0;
    transition: transform 0.3s;
}

aside details[open] summary::after {
    content: '−';
}

aside details[open] summary {
    background: #3a2d3d;
    border-bottom: 1px solid #9c27b0;
}

aside details p {
    padding: 1.25rem;
    margin: 0;
    color: #ffffff;
}

#facebook {
    background: #1e3a5f;
    border: 1px solid #2563eb;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
}

#facebook h2 {
    color: #bbdefb;
    text-align: center;
}

#facebook h3 {
    color: #bbdefb;
    text-align: center;
}

.contact-links {
    list-style: none;
    padding: 0;
}

.contact-links li {
    background: #363636;
    margin: 0.8rem 0;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #9c27b0;
    transition: transform 0.2s, background 0.3s;
    color: #ffffff;
}

.contact-links li:hover {
    background: #3a3a3a;
    transform: translateX(5px);
}

.contact-links a {
    color: #bbdefb;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: underline;
}

footer {
    text-align: center;
    padding: 2rem 0;
    border-top: 2px solid #404040;
    margin-top: 2rem;
    color: #ffffff;
}

footer a {
    color: #bbdefb;
    margin: 0 1rem;
    padding: 0.5rem 1rem;
    background: #2c3e50;
    border-radius: 20px;
    text-decoration: none;
    transition: background 0.3s;
}

footer a:hover {
    background: #3498db;
    color: #ffffff;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.about-content {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: #2d2d2d;
    border-radius: 12px;
    border-left: 5px solid #3498db;
}

.facebook-section {
    text-align: center;
    margin: 2rem auto;
    max-width: 500px;
}

code {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    border: 1px solid #404040;
}

nav a {
    color: #ffffff;
    background: rgba(25, 118, 210, 0.3);
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
}

nav a:hover {
    background: rgba(25, 118, 210, 0.5);
}

p, li, dd, td, figcaption, address {
    color: #f0f0f0;
}

strong, dt {
    color: #ffffff;
}

.radio-group,
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.radio-group label,
.checkbox-group label {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    cursor: pointer;
    color: #ffffff;
}

input[type="radio"],
input[type="checkbox"] {
    margin-right: 8px;
}

button {
    background-color: #1565c0;
    color: #ffffff;
    border: 2px solid #42a5f5;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 1rem;
    min-height: 44px;
    cursor: pointer;
}

button:hover {
    background-color: #0d47a1;
}

input, textarea, select {
    background-color: #2d2d2d;
    color: #ffffff;
    border: 1px solid #555;
    padding: 8px;
    border-radius: 4px;
}

input:focus, textarea:focus, select:focus {
    border-color: #42a5f5;
    outline: none;
}

label {
    color: #f0f0f0;
    display: block;
    margin-bottom: 4px;
}

table {
    background-color: #2d2d2d;
    width: auto;
    border-collapse: collapse;
    margin: 1rem 0;
}

th, td {
    border: 1px solid #404040;
    padding: 0.75rem 1.25rem;
    color: #ffffff;
}

th {
    background: #2c3e50;
    color: #ffffff;
    font-weight: 600;
}

caption {
    font-size: 1.5rem;
    color: #bbdefb;
    margin: 1rem 0 0.5rem 0;
    text-align: left;
    font-weight: 600;
}

hr {
    border: none;
    border-top: 1px solid #404040;
    margin: 2rem 0;
}

a {
    color: #bbdefb;
    text-decoration: underline;
}

a:hover {
    color: #e3f2fd;
}

.page-nav {
    padding: 1rem;
    background: #2d2d2d;
    border-bottom: 1px solid #404040;
    margin-bottom: 2rem;
}

.page-nav a {
    color: #4fc3f7;
    text-decoration: none;
    margin-right: 1.5rem;
}

.page-nav a:hover {
    text-decoration: underline;
}

.content-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
    background-color: #1a1a1a;
    color: #f0f0f0;
    line-height: 1.6;
}

.content-page h1 {
    color: #4fc3f7;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

#learn-p1 {
    color: #ff6b6b;
}

#learn-p2 {
    color: #ffa500;
}

#learn-p3 {
    color: #f1c40f;
}

#learn-p4 {
    color: #2ecc71;
}

#dev-p1.odd,
#dev-p3.odd {
    color: #64b5f6;
}

#dev-p2.even,
#dev-p4.even {
    color: #2ecc71;
}

.content-page p {
    background: #2d2d2d;
    padding: 1.2rem;
    border-radius: 8px;
    border-left: 4px solid currentColor;
    margin: 1.2rem 0;
}

.responsive-image {
    display: block;
    margin: 1.5rem 0;
    width: 100%;
    overflow: hidden;
}

.responsive-image img {
    width: 100%;
    height: auto;
    max-width: 600px;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}

.responsive-image figcaption {
    text-align: center;
    font-style: italic;
    margin-top: 0.5rem;
    color: #e0e0e0;
    font-size: 0.9rem;
}

.fb-post,
.fb-post span,
.fb-post p {
    color: #1d2129 !important;
    background-color: #f0f2f5 !important;
}

#facebook {
    border: 2px solid #1877f2 !important;
    border-radius: 8px !important;
    padding: 1rem !important;
}

@media (max-width: 768px) {
    html {
        font-size: 18px;
    }
    
    .starry-nav .nav-main {
        flex-direction: column;
        gap: 1rem;
    }
    
    .starry-nav .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .progress-indicator {
        min-width: 100%;
        text-align: center;
    }
    
    article {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    #facebook .fb-embed-wrapper iframe {
        width: 100% !important;
        height: auto;
        min-height: 300px;
    }
    
    .nav-link, footer a, nav a {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .profile-intro {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    table {
        width: 100%;
    }
    
    th, td {
        padding: 0.75rem;
    }
}