/* Dark Theme for About Page - Matching Index Styles */
body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #181A20;
    color: #EAEAEA;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    letter-spacing: 0.01em;
}

header {
    background: linear-gradient(90deg, #23243a 0%, #2d2e4a 100%);
    color: #fff;
    padding: 1rem 2rem 1rem 2rem;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.25);
    border-bottom: 1px solid #23243a;
}

header h1 {
    margin: 0;
    font-size: 2.3rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

header .subtitle {
    color: #ffb300;
    font-size: 1.2rem;
    margin-top: 0.5rem;
    font-weight: 400;
}

main {
    padding: 2.5rem 1rem 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    margin-bottom: 3.5rem;
    background: #23243a;
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.25);
    padding: 2rem 1.5rem;
    border: 1px solid #292a3e;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.35);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.icon {
    font-size: 1.8rem;
    color: #ffb300;
}

h2 {
    color: #ffb300;
    border-bottom: 2px solid #ffb300;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.content {
    line-height: 1.6;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ffb300;
    margin: 0 auto 1.5rem;
    display: block;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: #292a3e;
    border-radius: 8px;
    transition: transform 0.2s;
}

.tech-item:hover {
    transform: translateY(-3px);
}

.tech-item i {
    font-size: 2.5rem;
    color: #ffb300;
}

.tech-item span {
    font-size: 0.9rem;
    font-weight: 500;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.2rem;
    background: #292a3e;
    border-radius: 6px;
    transition: background 0.2s;
    color: #ffb300;
}

.social-link:hover {
    background: #3a3b5a;
    text-decoration: none;
    color: #fff;
}

.social-link i {
    font-size: 1.2rem;
}

.contact-methods {
    margin-top: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    padding: 0.8rem 1rem;
    background: #292a3e;
    border-radius: 6px;
}

.contact-item i {
    font-size: 1.2rem;
    color: #ffb300;
    width: 1.5rem;
    text-align: center;
}

.contact-item a {
    color: #ffb300;
    text-decoration: none;
    transition: color 0.2s;
}

.contact-item a:hover {
    color: #fff;
}

footer {
    text-align: center;
    padding: 1.5rem 0;
    background: #23243a;
    margin-top: 2rem;
    border-top: 1px solid #292a3e;
    color: #EAEAEA;
}

/* Responsive Design */
@media (max-width: 600px) {
    header {
        padding: 1.5rem 1rem 0.5rem 1rem;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
    
    header .subtitle {
        font-size: 1rem;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    nav a {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    section {
        padding: 1.5rem 1rem;
        margin-bottom: 2rem;
    }
    
    .profile-img {
        width: 120px;
        height: 120px;
    }
    
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .social-links {
        flex-direction: column;
    }
    
    .contact-methods {
        flex-direction: column;
    }
}

/* Responsive Design for Very Small Screens (below 400px) */
@media (max-width: 400px) {
    header h1 {
        font-size: 1.5rem;
    }
    
    header .subtitle {
        font-size: 0.9rem;
    }
    
    section {
        padding: 1rem 0.8rem;
        margin-bottom: 1.5rem;
    }
    
    .profile-img {
        width: 100px;
        height: 100px;
    }
    
    .tech-item {
        padding: 0.8rem;
    }
    
    .tech-item i {
        font-size: 2rem;
    }
    
    .social-link, .contact-item {
        padding: 0.6rem 1rem;
    }
}

/* Navigation Styles */
nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1.5rem 0 0;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 0.6rem 1.3rem;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
    font-size: 1.05rem;
    position: relative;
}

nav a:hover, nav a:focus {
    background: #3a3b5a;
    color: #ffb300;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #ffb300;
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: right;
}

nav a:hover::after, nav a:focus::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Custom ROM Developers Section */
.developers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.developer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem;
    background: #292a3e;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
    min-width: 250px;
}

.developer-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.developer-item > div {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 1rem;
}

.developer-item > div > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.developer-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffb300;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.developer-item span {
    font-weight: 500;
    text-align: center;
}