/* CSS Variables mimicking the Geeky theme aesthetics but in Dark Mode */
:root {
    --primary-color: #7b61ff; /* Slightly brighter for dark mode */
    --text-main: #f3f4f6; /* Very light gray for main text */
    --text-muted: #9ca3af; /* Medium gray for muted text */
    --bg-main: #111827; /* Dark background */
    --bg-light: #1f2937; /* Slightly lighter dark background for contrast */
    --border-color: #374151; /* Dark border color */
    
    --font-heading: 'Nunito', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.3s ease-in-out;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.5);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.5), 0 2px 4px -1px rgba(0,0,0,0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.5), 0 4px 6px -2px rgba(0,0,0,0.4);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: #a78bfa;
}

ul {
    list-style: none;
}

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

.section {
    padding: 5rem 0;
}

/* Header & Navbar */
.header {
    background-color: var(--bg-main);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    height: 50px;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.2));
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-main);
    font-weight: 500;
    font-size: 1rem;
}

.nav-menu a.active, .nav-menu a:hover {
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    color: var(--text-muted);
    font-size: 1.2rem;
}

.social-icons a:hover {
    color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Banner / Hero */
.banner {
    background-color: var(--bg-light);
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: cover;
    padding: 6rem 0 4rem 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.banner-content {
    flex: 1;
}

.greeting {
    font-family: var(--font-heading);
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.name {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.nickname {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.nickname .highlight {
    color: var(--primary-color);
}

.roles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 3rem;
}

.role-tag {
    background: rgba(123, 97, 255, 0.1);
    border: 1px solid rgba(123, 97, 255, 0.3);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
}

.stats-card {
    display: flex;
    background: var(--bg-main);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    display: inline-flex;
    align-items: center;
    gap: 2rem;
    border: 1px solid var(--border-color);
}

.stat h4 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--text-main);
}

.stat p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background-color: var(--border-color);
}

.banner-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.banner-image img {
    max-width: 100%;
    height: auto;
    max-height: 500px;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5));
}

/* Sections Global */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

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

/* Cards */
.card {
    background: var(--bg-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.card-img-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: var(--shadow-sm);
}

.card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.card-content h3 a {
    color: var(--text-main);
}

.card-content h3 a:hover {
    color: var(--primary-color);
}

.card-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.read-more {
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

/* Alternate Section Backgrounds */
.bg-alternate {
    background-color: var(--bg-light);
}
.bg-alternate .card {
    background-color: var(--bg-main);
}

/* Footer */
.footer {
    background-color: var(--bg-light);
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: cover;
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.2));
}

.footer-social {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.footer-social a {
    color: var(--text-muted);
    font-size: 1.5rem;
    background: var(--bg-main);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.footer-social a:hover {
    color: #fff;
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .banner-inner {
        flex-direction: column-reverse;
        text-align: center;
    }
    
    .roles {
        justify-content: center;
    }
    
    .name {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-menu, .social-icons {
        display: none; 
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .stats-card {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .stat-divider {
        width: 100%;
        height: 1px;
    }
}
