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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background: #0a0e1a;
    background-image: url("https://i.postimg.cc/2jZJbZyb/Screenshot-2026-03-20-120452.png");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: #e0e0e0;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Top bar - glass effect */
header {
    background: rgba(15, 18, 31, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(139, 156, 255, 0.2);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

h1 {
    font-size: 1.8rem;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

nav a {
    color: #8b9cff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: all 0.2s;
    border-radius: 8px;
    backdrop-filter: blur(4px);
}

nav a:hover {
    background: rgba(139, 156, 255, 0.2);
    color: #ffffff;
}

/* Main content area - fixed width */
main {
    max-width: 900px;
    width: 90%;
    margin: 2rem auto;
    padding: 0;
    flex: 1;
}

/* AUTO-ROUNDED BOXES - Glass morphism effect */
main > * {
    background: rgba(15, 18, 31, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    padding: 1.5rem;
    margin: 1rem 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    width: 100%;
    overflow-x: auto;
    transition: all 0.3s ease;
    border: 1px solid rgba(139, 156, 255, 0.15);
}

main > *:hover {
    background: rgba(15, 18, 31, 0.7);
    border-color: rgba(139, 156, 255, 0.3);
    transform: translateY(-2px);
}

/* Headers inside rounded boxes */
h2 {
    font-size: 1.8rem;
    margin: 0 0 1rem 0;
    color: #ffffff;
    border-left: 4px solid #8b9cff;
    padding-left: 1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

h3 {
    font-size: 1.3rem;
    margin: 1.5rem 0 0.75rem 0;
    color: #ccccff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* First h3 in any box doesn't need top margin */
h3:first-of-type {
    margin-top: 0;
}

/* Remove extra margin from first element in rounded boxes */
main > * > :first-child {
    margin-top: 0;
}

/* Remove extra margin from last element in rounded boxes */
main > * > :last-child {
    margin-bottom: 0;
}

p {
    margin: 1rem 0;
    word-wrap: break-word;
}

ul, ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
    word-wrap: break-word;
}

li {
    margin: 0.75rem 0;
    line-height: 1.5;
}

/* Links */
a {
    color: #8b9cff;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
}

a:hover {
    text-decoration: underline;
    color: #b0bdff;
}

/* Table with glass effect */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: rgba(15, 18, 31, 0.4);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    overflow: hidden;
    display: table;
}

th, td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(139, 156, 255, 0.15);
}

th {
    background: rgba(26, 30, 44, 0.7);
    color: #ffffff;
    font-weight: 600;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover {
    background: rgba(139, 156, 255, 0.1);
}

/* Download links inside table - pill-shaped buttons */
td a {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(26, 30, 44, 0.8);
    backdrop-filter: blur(4px);
    border: 1px solid #8b9cff;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: all 0.2s;
    white-space: nowrap;
}

td a:hover {
    background: #8b9cff;
    color: #0a0e1a;
    text-decoration: none;
    transform: scale(1.02);
    box-shadow: 0 0 12px rgba(139, 156, 255, 0.4);
}

/* Developer profile layout - glass effect */
.developer-profile {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: 1rem 0;
    padding: 1.5rem;
    background: rgba(15, 18, 31, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    width: 100%;
    overflow: visible;
    border: 1px solid rgba(139, 156, 255, 0.15);
    transition: all 0.3s ease;
}

.developer-profile:hover {
    background: rgba(15, 18, 31, 0.7);
    border-color: rgba(139, 156, 255, 0.3);
    transform: translateY(-2px);
}

/* But don't double-round nested elements */
.developer-profile > * {
    background: transparent;
    padding: 0;
    margin: 0;
    box-shadow: none;
    backdrop-filter: none;
}

.profile-text {
    flex: 1;
}

/* Profile picture */
.profile-pic {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 20px;
    border: 2px solid rgba(139, 156, 255, 0.6);
    background: rgba(26, 30, 44, 0.6);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.developer-profile:hover .profile-pic {
    border-color: #8b9cff;
    transform: scale(1.02);
}

/* Footer - glass effect */
footer {
    text-align: center;
    padding: 1rem;
    margin: 1rem auto 1.5rem auto;
    background: rgba(15, 18, 31, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    color: #8a8fb0;
    font-size: 0.85rem;
    width: auto;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(139, 156, 255, 0.15);
}

/* Make sure text within boxes is readable */
main > * p {
    line-height: 1.6;
}

/* Responsive design */
@media (max-width: 700px) {
    header {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    h1 {
        margin-bottom: 0.5rem;
    }
    
    nav {
        justify-content: center;
    }
    
    main {
        width: 95%;
        margin: 1rem auto;
    }
    
    main > * {
        padding: 1rem;
    }
    
    .developer-profile {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-text {
        text-align: center;
    }
    
    /* Make table scroll horizontally on mobile */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    th, td {
        padding: 0.5rem;
    }
    
    td a {
        padding: 0.2rem 0.5rem;
        font-size: 0.7rem;
        white-space: nowrap;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    h3 {
        font-size: 1.1rem;
    }
    
    ul, ol {
        padding-left: 1rem;
    }
    
    li {
        margin: 0.5rem 0;
        font-size: 0.9rem;
    }
    
    footer {
        width: 90%;
        margin: 0.5rem auto 1rem auto;
        padding: 0.75rem;
    }
}

/* Desktop optimization */
@media (min-width: 701px) {
    main {
        width: 85%;
        max-width: 900px;
    }
    
    footer {
        margin: 1rem auto 1.5rem auto;
    }
}