:root {
    --bg-color: #fff;
    --text-color: #333;
    --heading-color: #000;
    --link-color: #3498db;
    --border-color: #ccc;
    --font-family: 'Times New Roman', serif;
}

body[data-theme="dark"] {
    --bg-color: #000;
    --text-color: #fff;
    --heading-color: #fff;
    --link-color: #66b3ff;
    --border-color: #333;
    /* Neon blue for glow-paragraph text in dark mode */
    --neon-blue: #00ffff;
    --neon-glow: 0 0 10px #00ffff, 0 0 20px #00ffff, 0 0 30px #0080ff;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1 {
    color: var(--heading-color);
}

a {
    color: var(--link-color);
}

/* Light Switch & Video Toggle Shared Styles */
.theme-switch {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-label {
    font-size: 14px;
    color: var(--text-color);
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Video Toggle Position (below theme toggle) */
.video-switch {
    top: 64px;
}

/* Navbar styles */
.navbar {
    position: sticky;
    top: 0;
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Icon toggle styles */
.icon-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toggle-icon {
    font-size: 20px;
    cursor: pointer;
    user-select: none;
}

/* Navbar toggle switches - smaller */
.icon-toggle .switch {
    width: 50px;
    height: 28px;
}

.icon-toggle .slider:before {
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
}

.icon-toggle input:checked + .slider:before {
    transform: translateX(22px);
}
