/* CSS Variables for Theme */
:root[data-theme="light"] {
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --text-primary: #212529;
  --text-secondary: #6c757d;
  --border-color: #dee2e6;
  --navbar-bg: #ffffff;
  --card-bg: #ffffff;
  --shadow: rgba(0, 0, 0, 0.1);
  --shadow-hover: rgba(0, 0, 0, 0.15);
}

:root[data-theme="dark"] {
  --bg-primary: #1a1a1a;
  --bg-secondary: #2d2d2d;
  --text-primary: #e9ecef;
  --text-secondary: #adb5bd;
  --border-color: #495057;
  --navbar-bg: #212529;
  --card-bg: #2d2d2d;
  --shadow: rgba(0, 0, 0, 0.3);
  --shadow-hover: rgba(0, 0, 0, 0.5);
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Dark Mode Styles */
[data-theme="dark"] {
  color-scheme: dark;
}

[data-theme="dark"] .navbar {
  background-color: var(--navbar-bg) !important;
  border-color: var(--border-color) !important;
}

[data-theme="dark"] .navbar-light .navbar-brand,
[data-theme="dark"] .navbar-light .nav-link {
  color: var(--text-primary) !important;
}

[data-theme="dark"] .navbar-light .nav-link:hover,
[data-theme="dark"] .navbar-light .nav-link:focus {
  color: #ffffff !important;
}

[data-theme="dark"] .footer {
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
  border-color: var(--border-color) !important;
}

[data-theme="dark"] .card {
  background-color: var(--card-bg);
  border-color: var(--border-color);
  color: var(--text-primary);
}

[data-theme="dark"] .border-bottom {
  border-color: var(--border-color) !important;
}

[data-theme="dark"] .text-muted {
  color: var(--text-secondary) !important;
}

[data-theme="dark"] .modal-content {
  background-color: var(--card-bg);
  color: var(--text-primary);
}

[data-theme="dark"] .modal-header {
  background-color: var(--bg-secondary);
  border-color: var(--border-color);
}

[data-theme="dark"] .dropdown-menu {
  background-color: var(--card-bg);
  border-color: var(--border-color);
}

[data-theme="dark"] .dropdown-item {
  color: var(--text-primary);
}

[data-theme="dark"] .dropdown-item:hover {
  background-color: var(--bg-secondary);
}

/* Dark mode — form controls */
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  border-color: var(--border-color);
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  border-color: #667eea;
  box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
}

[data-theme="dark"] .form-control:disabled {
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  opacity: 0.6;
}

[data-theme="dark"] .form-check-input {
  background-color: var(--bg-secondary);
  border-color: var(--border-color);
}

[data-theme="dark"] .form-check-input:checked {
  background-color: #667eea;
  border-color: #667eea;
}

/* Theme Toggle Button */
#theme-toggle {
  border: none;
  background: transparent;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--text-primary);
  transition: transform 0.3s ease;
}

#theme-toggle:hover {
  transform: scale(1.1);
}

#theme-toggle svg {
  transition: opacity 0.3s ease;
}

/* Carousel Styles */
.carousel-indicators {
  margin-bottom: 0.5rem;
}

.carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin: 0 5px;
}

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
  opacity: 0.7;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
}

/* Dark mode carousel adjustments */
[data-theme="dark"] .carousel-control-prev-icon,
[data-theme="dark"] .carousel-control-next-icon {
  filter: invert(1);
}

[data-theme="dark"] .carousel-indicators [data-bs-target] {
  background-color: rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .carousel-indicators .active {
  background-color: rgba(255, 255, 255, 0.9);
}

/* Project Card Styles */
.project-card {
  transition: transform 0.2s ease-in-out;
}

.project-card:hover {
  transform: translateY(-5px);
}

.hover-lift {
  transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.hover-lift:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
  cursor: pointer;
}

.card-img-top {
  transition: opacity 0.3s ease-in-out;
}

.card:hover .card-img-top {
  opacity: 0.9;
}

.badge {
  font-weight: 500;
  padding: 0.35em 0.65em;
}

/* Dropdown styles */
.dropdown-menu {
  max-height: 400px;
  overflow-y: auto;
}

.form-check {
  padding-left: 1.5em;
}

.form-check-input {
  cursor: pointer;
}

.form-check-label {
  cursor: pointer;
  user-select: none;
}

/* Modal styles */
.modal-content {
  border-radius: 0.5rem;
}

.modal-header {
  border-bottom: 1px solid #dee2e6;
  background-color: #f8f9fa;
}

.modal-body img {
  border: 1px solid #dee2e6;
}

/* Filter controls */
#searchInput {
  border-radius: 0.375rem;
  padding: 0.625rem 1rem;
}

#skillFilterDropdown {
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
}





/* Animation for project cards */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.project-card {
  animation: fadeIn 0.5s ease-in-out;
}

/* Stagger animation for cards */
.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }
.project-card:nth-child(5) { animation-delay: 0.5s; }
.project-card:nth-child(6) { animation-delay: 0.6s; }


/* Stuff from About Section */

.about-page {
    animation: fadeIn 0.8s ease-in;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-radius: 20px;
    margin-bottom: 3rem;
}

.profile-image-wrapper {
    position: relative;
    display: inline-block;
}

.profile-image {
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 10px 30px rgba(102, 126, 234, 0.3));
}

/* Stats Section */
.stat-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.1);
    height: 100%;
}

    .stat-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
    }

.stat-icon {
    color: #667eea;
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-primary);
    opacity: 0.7;
    font-size: 0.95rem;
}

/* Section Title */
.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

    .section-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 4px;
        background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
        border-radius: 2px;
    }

/* Story Cards */
.story-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

    .story-card:hover {
        transform: translateX(10px);
        box-shadow: 0 10px 30px rgba(102, 126, 234, 0.15);
    }

.story-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 1.5rem;
}

/* Timeline */
.timeline {
    position: relative;
    padding: 2rem 0;
}

    .timeline::before {
        content: '';
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: 4px;
        height: 100%;
        background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
        border-radius: 2px;
    }

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
}

    .timeline-item:nth-child(odd) {
        flex-direction: row-reverse;
    }

        .timeline-item:nth-child(odd) .timeline-content {
            text-align: right;
            padding-right: 3rem;
        }

    .timeline-item:nth-child(even) .timeline-content {
        padding-left: 3rem;
    }

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    border: 4px solid var(--bg-primary);
    z-index: 1;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
}

.timeline-content {
    flex: 0 0 calc(50% - 40px);
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

    .timeline-content:hover {
        transform: scale(1.05);
        box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
    }

.timeline-date {
    font-weight: bold;
    color: #667eea;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.timeline-content h4 {
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.timeline-content p {
    margin: 0;
    color: var(--text-primary);
    opacity: 0.7;
    font-size: 0.95rem;
}

/* Motivation Section */
.motivation-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-radius: 20px;
    padding: 3rem;
    position: relative;
}

.quote-icon {
    color: #667eea;
    opacity: 0.2;
    margin-bottom: 1rem;
}

.motivation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.motivation-item {
    text-align: center;
}

.motivation-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.motivation-item h5 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    color: white;
    margin-top: 3rem;
}

    .cta-section h2,
    .cta-section .lead {
        color: white;
    }

    .cta-section .btn-primary {
        background: white;
        color: #667eea;
        border: none;
    }

        .cta-section .btn-primary:hover {
            background: rgba(255, 255, 255, 0.9);
            transform: translateY(-2px);
        }

    .cta-section .btn-outline-primary {
        border-color: white;
        color: white;
    }

        .cta-section .btn-outline-primary:hover {
            background: white;
            color: #667eea;
        }

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

    .fade-in-up.delay-1 {
        animation-delay: 0.2s;
    }

    .fade-in-up.delay-2 {
        animation-delay: 0.4s;
    }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        flex-direction: column !important;
        align-items: flex-start;
    }

    .timeline-dot {
        left: 20px;
    }

    .timeline-content {
        flex: 1;
        text-align: left !important;
        padding-left: 4rem !important;
        padding-right: 1.5rem !important;
    }

    .section-title {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .motivation-card {
        padding: 2rem 1.5rem;
    }
}

/* Dark mode adjustments */
[data-theme="dark"] .stat-card,
[data-theme="dark"] .story-card,
[data-theme="dark"] .timeline-content {
    border-color: rgba(255, 255, 255, 0.1);
}

    [data-theme="dark"] .stat-card:hover,
    [data-theme="dark"] .story-card:hover,
    [data-theme="dark"] .timeline-content:hover {
        box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    }




/* About Page CSS */
.about-page {
    animation: fadeIn 0.8s ease-in;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-radius: 20px;
    margin-bottom: 3rem;
}

.profile-image-wrapper {
    position: relative;
    display: inline-block;
}

.profile-image {
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 10px 30px rgba(102, 126, 234, 0.3));
}

/* Stats Section */
.stat-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.1);
    height: 100%;
}

    .stat-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
    }

.stat-icon {
    color: #667eea;
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-primary);
    opacity: 0.7;
    font-size: 0.95rem;
}

/* Section Title */
.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

    .section-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 4px;
        background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
        border-radius: 2px;
    }

/* Story Cards */
.story-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

    .story-card:hover {
        transform: translateX(10px);
        box-shadow: 0 10px 30px rgba(102, 126, 234, 0.15);
    }

.story-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 1.5rem;
}

/* Timeline */
.timeline {
    position: relative;
    padding: 2rem 0;
}

    .timeline::before {
        content: '';
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: 4px;
        height: 100%;
        background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
        border-radius: 2px;
    }

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
}

    .timeline-item:nth-child(odd) {
        flex-direction: row-reverse;
    }

        .timeline-item:nth-child(odd) .timeline-content {
            text-align: right;
            padding-right: 3rem;
        }

    .timeline-item:nth-child(even) .timeline-content {
        padding-left: 3rem;
    }

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    border: 4px solid var(--bg-primary);
    z-index: 1;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
}

.timeline-content {
    flex: 0 0 calc(50% - 40px);
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

    .timeline-content:hover {
        transform: scale(1.05);
        box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
    }

.timeline-date {
    font-weight: bold;
    color: #667eea;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.timeline-content h4 {
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.timeline-content p {
    margin: 0;
    color: var(--text-primary);
    opacity: 0.7;
    font-size: 0.95rem;
}

/* Motivation Section */
.motivation-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-radius: 20px;
    padding: 3rem;
    position: relative;
}

.quote-icon {
    color: #667eea;
    opacity: 0.2;
    margin-bottom: 1rem;
}

.motivation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.motivation-item {
    text-align: center;
}

.motivation-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.motivation-item h5 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    color: white;
    margin-top: 3rem;
}

    .cta-section h2,
    .cta-section .lead {
        color: white;
    }

    .cta-section .btn-primary {
        background: white;
        color: #667eea;
        border: none;
    }

        .cta-section .btn-primary:hover {
            background: rgba(255, 255, 255, 0.9);
            transform: translateY(-2px);
        }

    .cta-section .btn-outline-primary {
        border-color: white;
        color: white;
    }

        .cta-section .btn-outline-primary:hover {
            background: white;
            color: #667eea;
        }

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

    .fade-in-up.delay-1 {
        animation-delay: 0.2s;
    }

    .fade-in-up.delay-2 {
        animation-delay: 0.4s;
    }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        flex-direction: column !important;
        align-items: flex-start;
    }

    .timeline-dot {
        left: 20px;
    }

    .timeline-content {
        flex: 1;
        text-align: left !important;
        padding-left: 4rem !important;
        padding-right: 1.5rem !important;
    }

    .section-title {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .motivation-card {
        padding: 2rem 1.5rem;
    }
}

/* Dark mode adjustments */
[data-theme="dark"] .stat-card,
[data-theme="dark"] .story-card,
[data-theme="dark"] .timeline-content {
    border-color: rgba(255, 255, 255, 0.1);
}

    [data-theme="dark"] .stat-card:hover,
    [data-theme="dark"] .story-card:hover,
    [data-theme="dark"] .timeline-content:hover {
        box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    }
/* Project Modal Timeline - Compact Version */
.project-timeline {
    position: relative;
    padding: 1rem 0;
    margin: 1.5rem 0;
}

.project-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
}

.project-timeline-item {
    position: relative;
    padding-left: 2rem;
    padding-bottom: 1.5rem;
}

.project-timeline-item:last-child {
    padding-bottom: 0;
}

.project-timeline-dot {
    position: absolute;
    left: 0;
    top: 0;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    border: 3px solid var(--bg-primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
    z-index: 1;
}

.project-timeline-date {
    font-size: 0.85rem;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 0.25rem;
}

.project-timeline-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.project-timeline-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

[data-theme="dark"] .project-timeline-dot {
    border-color: var(--bg-primary);
}

/* Timeline company name */
.timeline-company {
    color: #667eea;
    font-size: 0.88rem;
}

/* Project image viewer */
.project-image-viewer img {
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

/* Footer */
.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px;
}

/* ─── Site Navigation ──────────────────────────────────────────── */
.site-nav {
    background: var(--navbar-bg) !important;
    border-color: transparent !important;
    padding: 0.55rem 0;
    position: relative;
}

/* Fading gradient accent line replaces the plain border */
.site-nav::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #667eea 25%, #764ba2 75%, transparent 100%);
}

/* Brand: gradient text matching the site palette */
.site-nav .navbar-brand {
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.025em;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: opacity 0.2s ease;
}

.site-nav .navbar-brand:hover {
    opacity: 0.82;
}

/* Nav links */
.site-nav .nav-link {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    padding: 0.45rem 0.9rem !important;
    position: relative;
    color: var(--text-secondary) !important;
    transition: color 0.2s ease;
}

/* Slide-in underline on hover */
.site-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0.9rem;
    right: 0.9rem;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 1px;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.22s ease;
}

.site-nav .nav-link:hover,
.site-nav .nav-link:focus {
    color: #667eea !important;
}

.site-nav .nav-link:hover::after,
.site-nav .nav-link:focus::after {
    transform: scaleX(1);
}

/* Theme toggle */
.site-nav #theme-toggle {
    color: var(--text-secondary);
    transition: color 0.2s ease, transform 0.3s ease;
    padding: 0.45rem 0.5rem !important;
}

.site-nav #theme-toggle:hover {
    color: #667eea;
    transform: scale(1.15);
}

/* Dark mode: frosted glass */
[data-theme="dark"] .site-nav {
    background: rgba(26, 26, 26, 0.92) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

[data-theme="dark"] .site-nav .navbar-brand {
    -webkit-text-fill-color: transparent !important;
}

[data-theme="dark"] .site-nav .nav-link {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .site-nav .nav-link:hover,
[data-theme="dark"] .site-nav .nav-link:focus {
    color: #667eea !important;
}
