/* Hide nav links inside dropdown on desktop; show only on mobile */
.nav-dropdown-section { display: block; }
@media (min-width: 768px) { .nav-dropdown-section { display: none !important; } }

/* Theme-aware hamburger button */
.hamburger-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.5rem;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: background-color 0.15s;
    color: var(--text-color);
}
.hamburger-btn:hover { background-color: var(--hover-bg); }

:root {
    --background-color: #ffffff; /* White background */
    --text-color: #000000; /* Black text */
    --link-color: #000000; /* Black links */
    --link-accent: #1d4ed8;
    --link-accent-hover: #1e40af;
    --tab-color: rgb(209 213 219);
    --subheading: rgb(55 65 81);
    --badge: rgb(243 244 246);
    --source-button: #000000;
    --source-text: #ffffff;
    --hover-bg: #f3f4f6; /* Light gray hover for light mode */
    --border-color: #e5e7eb;
}

:root.dark {
    --background-color: #111111; /* Dark gray background */
    --text-color: #ffffff; /* White text */
    --link-color: #ffffff; /* White links for dark mode */
    --link-accent: #93c5fd;
    --link-accent-hover: #bfdbfe;
    --tab-color: rgb(55 65 81);
    --subheading: rgb(209 213 219);
    --source-button: #ffffff;
    --badge: #1f2937;
    --hover-bg: rgb(55 65 81); /* Dark hover for dark mode */
    --border-color: #374151;
}

.icon-animate {
    transition: transform 0.5s ease, color 0.5s ease;
}

.rotate-180 {
    transform: rotate(360deg);
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: Arial, sans-serif;
    margin: 0;
}

/* Nav links wrap on very small screens instead of overflowing */
#nav-links {
    flex-wrap: wrap;
    row-gap: 0.25rem;
}

/* Minimum touch target size for interactive icons */
.theme-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: inherit;
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    text-decoration: underline;
}

/* Use for links that should stay blue but remain readable in both themes */
.accent-link {
    color: var(--link-accent);
}

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

/* Remove underlines from button-like links */
.no-underline:hover {
    text-decoration: none !important;
}

/* Primary button styling */
.primary-button {
    background-color: var(--link-color);
    color: var(--background-color);
    border: 1px solid var(--link-color);
}

.primary-button:hover {
    background-color: transparent;
    color: var(--link-color);
    text-decoration: none !important;
}

/* Social icon hover improvements */
.social-icon:hover,
.social-link:hover {
    background-color: var(--hover-bg);
    text-decoration: none !important;
}

/* Remove underline from button links */
button a, a button, .no-underline {
    text-decoration: none !important;
}

button a:hover, a button:hover, .no-underline:hover {
    text-decoration: none !important;
}

/* Fix hover colors for social links and buttons */
.social-link {
    transition: background-color 0.3s ease;
}

.social-link:hover {
    background-color: var(--hover-bg) !important;
    text-decoration: none;
}

.tab-container {
    width: 100%;
    margin: auto;
}

.tabs {
    display: flex;
    cursor: pointer;
    background-color: var(--tab-color);
}

.tab {
    font-weight: bold;
    transition: background-color 0.3s ease;
    opacity: 0.6;
    width: auto;
}

.tab.active { 
    opacity: 1;
    background-color: var(--background-color);
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.hidden {
    display: none;
}

.timeline-container {
    position: relative; /* Ensure the container is positioned relative to place the absolute line */
}

/* Language toggle button styling */
#lang-toggle {
    background-color: transparent;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    opacity: 0.8;
    transition: opacity 0.3s ease, background-color 0.3s ease;
}

#lang-toggle:hover {
    opacity: 1;
    background-color: var(--hover-bg);
}

/* Button hover improvements */
button {
    transition: background-color 0.3s ease;
}

/* Resume button and other primary buttons */
.primary-button {
    transition: all 0.3s ease;
}

.primary-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
