/* Import theme variables */
:root {
    /* Dark theme colors */
    --dark-bg-primary: #021019;
    --dark-bg-secondary: #041f2d;
    --dark-cell-default: #0b1f3a;
    --dark-text: #a0f0f0;
    --dark-accent: #40E0D0;

    /* Light theme colors */
    --light-bg-primary: #f0f9ff;
    --light-bg-secondary: #e0f2fe;
    --light-cell-default: #ffffff;
    --light-text: #0f172a;
    --light-accent: #3b82f6;

    /* Default to dark theme */
    --bg-primary: var(--dark-bg-primary);
    --bg-secondary: var(--dark-bg-secondary);
    --text-primary: var(--dark-text);
    --accent: var(--dark-accent);
}

/* Light theme class */
:root.light-theme {
    --bg-primary: var(--light-bg-primary);
    --bg-secondary: var(--light-bg-secondary);
    --text-primary: var(--light-text);
    --accent: var(--light-accent);
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.navbar {
    background: rgba(4, 31, 45, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(64, 224, 208, 0.1);
    padding: 0rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.home-link {
    text-decoration: none;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
}

.logo {
    color: var(--accent);
    font-size: 1.25rem;
    font-weight: bold;
    font-family: 'Nunito', sans-serif;
    text-decoration: none;
}

.logo-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-right: 0.5rem;
    vertical-align: middle;
    display: inline-block;
}

.nav-pagelinks {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: rgba(64, 224, 208, 0.1);
    transform: translateY(-2px);
}

.nav-link.active-page {
    background: var(--accent);
    color: var(--bg-primary);
}

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

h1 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--accent);
}

.motivation-section {
    margin-bottom: 4rem;
}

.motivation-card {
    background: rgba(11, 31, 58, 0.8);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(64, 224, 208, 0.2);
    margin-bottom: 3rem;
}

.team-section h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.dev-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.dev-card {
    background: rgba(11, 31, 58, 0.8);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(64, 224, 208, 0.2);
    text-align: center;
    transition: transform 0.3s ease;
}

.dev-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.dev-avatar {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.dev-role {
    color: var(--accent);
    margin: 0.5rem 0;
}

.dev-bio {
    margin: 1rem 0;
}

.dev-link {
    color: var(--accent);
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.dev-link:hover {
    transform: translateX(5px);
}

.thank-you-section {
    text-align: center;
    padding: 2rem;
}

.thank-you {
    font-size: 1.2rem;
    color: var(--accent);
    font-style: italic;
}

@media (max-width: 768px) {
    .dev-cards {
        grid-template-columns: 1fr;
    }
    
    .about-container {
        padding: 5rem 1rem 1rem;
    }
    
    .navbar {
        padding: 0.75rem 0.5rem;
        height: auto;
        flex-wrap: wrap;
    }
    
    .nav-left {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
    }
    
    .theme-btn {
        position: absolute;
        right: 1rem;
        top: 1rem;
    }
    
    .nav-pagelinks {
        display: none;
    }
    
    /* Show mobile sidebar elements on small screens */
    .mobile-sidebar {
        display: block;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .logo-icon {
        width: 60px;
        height: 60px;
    }
    
    h1 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .motivation-card, 
    .dev-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .about-container {
        padding: 4.5rem 0.75rem 1rem;
    }
    
    .navbar {
        padding: 0.5rem;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .dev-card, .motivation-card {
        padding: 1.25rem;
    }
    
    .logo {
        font-size: 1rem;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
    }
    
    .mobile-menu-toggle {
        font-size: 1.2rem;
    }
    
    .dev-avatar {
        font-size: 2.5rem;
    }
    
    .dev-role, .dev-bio {
        font-size: 0.9rem;
    }
}

@media (max-width: 360px) {
    .about-container {
        padding: 4rem 0.5rem 1rem;
    }
    
    h1 {
        font-size: 1.6rem;
    }
    
    .dev-card {
        padding: 1rem;
    }
    
    .motivation-card {
        padding: 1rem;
    }
    
    .mobile-menu-toggle {
        font-size: 1rem;
    }
    
    .logo-icon {
        width: 36px;
        height: 36px;
    }
    
    .logo {
        font-size: 0.9rem;
    }
    
    .navbar {
        padding: 0.25rem;
    }
}

/* Update navbar and cards for light theme */
:root.light-theme .navbar {
    background: rgba(224, 242, 254, 0.8);
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

:root.light-theme .motivation-card,
:root.light-theme .dev-card {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(59, 130, 246, 0.1);
}

/* Update theme toggle button to match main page */
.theme-btn {
    background: rgba(11, 31, 58, 0.8);
    border: 1px solid rgba(64, 224, 208, 0.2);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-btn:hover {
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(64, 224, 208, 0.2);
    transform: translateY(-2px);
}

.theme-btn .light-icon {
    display: none;
}

.theme-btn .dark-icon {
    display: block;
}

:root.light-theme .theme-btn {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(59, 130, 246, 0.2);
}

:root.light-theme .theme-btn .light-icon {
    display: block;
    color: #f59e0b;
}

:root.light-theme .theme-btn .dark-icon {
    display: none;
}

/* Update hover effects for light theme */
:root.light-theme .nav-link:hover {
    background: rgba(59, 130, 246, 0.1);
}

:root.light-theme .dev-card:hover {
    border-color: var(--light-accent);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

:root.light-theme .dev-link:hover {
    color: var(--light-accent);
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    margin-right: 0;
    transition: color 0.3s ease;
}

.mobile-menu-toggle:hover {
    color: var(--accent);
}

/* Mobile sidebar */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background-color: var(--bg-secondary);
    z-index: 2000;
    padding: 2rem 1rem;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    display: none;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-sidebar.open {
    left: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(64, 224, 208, 0.1);
}

.sidebar-header h2 {
    color: var(--accent);
    margin: 0;
    font-size: 1.5rem;
}

.sidebar-close {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.sidebar-close:hover {
    color: var(--accent);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-link {
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.sidebar-link:hover {
    background: rgba(64, 224, 208, 0.1);
    transform: translateX(5px);
}

.sidebar-link.active-page {
    background: var(--accent);
    color: var(--bg-primary);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1950;
    display: none;
}

.sidebar-overlay.visible {
    display: block;
}

/* Light theme sidebar */
:root.light-theme .mobile-sidebar {
    background-color: var(--light-bg-secondary);
}

:root.light-theme .sidebar-header {
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

:root.light-theme .sidebar-header h2 {
    color: var(--light-accent);
}

:root.light-theme .sidebar-close {
    color: var(--light-text);
}

:root.light-theme .sidebar-close:hover {
    color: var(--light-accent);
}

:root.light-theme .sidebar-link {
    color: var(--light-text);
}

:root.light-theme .sidebar-link:hover {
    background: rgba(59, 130, 246, 0.1);
}

:root.light-theme .sidebar-link.active-page {
    background: var(--light-accent);
    color: white;
}

/* Added for medium-sized tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .dev-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-container {
        padding: 7rem 1.5rem 1.5rem;
    }
}