/* Color Variables */
:root {
    --color-bg-theme-main: #f0f0f0;
    --color-bg-theme-alt: #1c1c1c;
    --color-text-theme-main: #333;
    --color-text-theme-alt: #e0e0e0;
    --color-accent-theme-main: #666;
    --color-accent-theme-alt: #aaa;
    --color-border-theme-main: #ccc;
    --color-border-theme-alt: #444;
    --color-footer-bg-theme-main: #f8f8f8;
    --color-footer-bg-theme-alt: #2a2a2a;
}


/* Default Theme based on system preference */
@media (prefers-color-scheme: dark) {
    :root {
        --color-bg-theme-alt: #f0f0f0;
        --color-bg-theme-main: #1c1c1c;
        --color-text-theme-alt: #333;
        --color-text-theme-main: #e0e0e0;
        --color-accent-theme-alt: #666;
        --color-accent-theme-main: #aaa;
        --color-border-theme-alt: #ccc;
        --color-border-theme-main: #444;
        --color-footer-bg-theme-alt: #f8f8f8;
        --color-footer-bg-theme-main: #2a2a2a;
    }
}

/* General Styling */
body {
    font-family: 'Roboto Slab', serif;
    background-color: var(--color-bg-theme-main);
    color: var(--color-text-theme-main);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Inconsolata', monospace;
    margin-bottom: 0.5rem;
}

h1 {
    font-size: 2.5rem;
    text-align: center;
}

h1 span {
    font-size: 3rem;
    display: block;
}

h2 {
    font-size: 2rem;
    margin-top: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-top: 1rem;
}

p {
    font-size: 1rem;
    margin-bottom: 1rem;
    text-align: justify;
}

section {
    padding: 1.5rem 0;
    width: 80%;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    height: 50vh;
    background-color: var(--color-bg-theme-main);
    text-align: center;
    padding: 1rem 0; /* Reduced padding */
}

.hero-text {
    margin-right: 2rem;
}

.hero-photo {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: grayscale(100%);
}

/* Navbar */
.navbar {
    background-color: transparent;
    padding: 0.5rem 1rem;
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-toggle {
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--color-accent-theme-main);
    cursor: pointer;
}

/* Sidebar/Menu */
.sidebar {
    position: fixed;
    top: 0;
    right: -250px;
    width: 250px;
    height: 100%;
    background-color: var(--color-bg-theme-main);
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    padding-top: 60px;
    z-index: 99;
}

.sidebar .nav-link {
    padding: 1rem;
    text-decoration: none;
    color: var(--color-accent-theme-main);
    display: block;
}

.sidebar .nav-link:hover {
    background-color: var(--color-border-theme-main);
}

.sidebar.open {
    right: 0;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: absolute;
        top: -100%; /* Hide off-screen by default */
        right: 0;
        padding-top: 10px;
    }
    .sidebar.open {
        top: 50px;
    }
    .hero-photo {
        width: 150px;
        height: 150px;
    }
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.profile-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    filter: grayscale(100%);
}

/* Experience Timeline */
.timeline {
    border-left: 2px solid var(--color-border-theme-main);
    padding-left: 20px;
    list-style: none;
}

.timeline-item {
    margin-bottom: 20px;
    position: relative;
    padding-left: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 0;
    width: 12px;
    height: 12px;
    background-color: var(--color-bg-theme-main);
    border: 2px solid var(--color-border-theme-main);
    border-radius: 50%;
}

.timeline-date {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--color-accent-theme-main);
}

/* Social Links */
.social-links {
    list-style: none;
    padding: 0;
}

.social-links li {
    display: inline;
    margin-right: 1rem;
}

.social-links a {
    text-decoration: none;
    color: var(--color-accent-theme-main);
}

.social-links a:hover {
    text-decoration: underline;
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--color-bg-theme-main);
    color: var(--color-text-theme-main);
    border: 1px solid var(--color-border-theme-main);
    border-radius: 50%;
    padding: 0.5rem;
    cursor: pointer;
    z-index: 20;
}

.theme-toggle:hover {
    background-color: var(--color-border-theme-main);
}

/* Footer */
footer {
    /* background-color: var(--color-footer-bg-theme-main); */
    padding: 0.5rem 1rem;
    text-align: left;
    font-size: 0.8rem;
}

footer p {
    font-size: 0.8rem;  
}

.footer-note {
    font-size: 0.75rem;
    color: var(--color-accent-theme-main);
}

footer p {
    margin: 0;
}

/* theme-alt Mode Styles */
.theme-alt-mode {
    background-color: var(--color-bg-theme-alt);
    color: var(--color-text-theme-alt);
}

.theme-alt-mode .hero {
    background-color: var(--color-bg-theme-alt);
}

.theme-alt-mode .navbar {
    border-bottom-color: var(--color-border-theme-alt);
}   

.theme-alt-mode .nav-link {
    color: var(--color-accent-theme-alt);
}

.theme-alt-mode .sidebar {
    background-color: var(--color-bg-theme-alt);
}

.theme-alt-mode .sidebar .nav-link {
    color: var(--color-accent-theme-alt);
}

.theme-alt-mode .sidebar .nav-link:hover {
    background-color: var(--color-border-theme-alt);
}

.theme-alt-mode .timeline {
    border-left-color: var(--color-border-theme-alt);
}

.theme-alt-mode .timeline-item::before {
    border-color: var(--color-border-theme-alt);
}

.theme-alt-mode .timeline-date {
    color: var(--color-accent-theme-alt);
}

.theme-alt-mode .theme-toggle {
    background-color: var(--color-bg-theme-alt);
    color: var(--color-text-theme-alt);
    border-color: var(--color-border-theme-alt);
}

.theme-alt-mode footer {
    /* background-color: var(--color-footer-bg-theme-alt); */
    color: var(--color-accent-theme-alt);
}

.theme-alt-mode .footer-note {
    color: var(--color-accent-theme-alt);
}