@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --dark-bg: #1a202c;
    --dark-text: #e2e8f0;
    --dark-text-light: #a0aec0;
    --dark-nav-bg: rgba(26, 32, 44, 0.95);
    --dark-container-bg: rgba(45, 55, 72, 0.95);
}
.language-toggle-btn {
    background: none;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    padding: 0.3rem 0.8rem;
    cursor: pointer;
    color: var(--text-dark);
    font-weight: 500;
    margin-left: 1rem;
    transition: all 0.3s ease;
}
[data-theme="dark"] .language-toggle-btn {
    color: var(--dark-text);
}
.language-toggle-btn:hover {
    background-color: var(--primary-color);
    color: white;
}
.language-text {
    font-size: 0.9rem;
    font-weight: 600;
}
[data-theme="dark"] {
    --text-dark: #e2e8f0;
    --text-light: #a0aec0;
    --bg-light: #1a202c;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.2);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#three-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.7;
}

html {
    scroll-behavior: smooth;
}

p {
    color: var(--text-light);
}

a, .btn {
    transition: all 300ms ease;
}

/* Theme Toggle */
.theme-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.theme-icon {
    height: 1.5rem;
    width: 1.5rem;
    filter: brightness(1);
}

.theme-text {
    font-size: 0.9rem;
    color: var(--text-dark);
}

[data-theme="dark"] .theme-icon {
    filter: brightness(0.8);
}

[data-theme="dark"] .theme-text {
    color: var(--dark-text);
}

.theme-toggle-btn:hover .theme-icon {
    transform: scale(1.1);
}

/* Navigation */
nav, .nav-links {
    display: flex;
}

nav {
    justify-content: space-around;
    align-items: center;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0 5%;
    transition: background-color 0.3s ease;
}

[data-theme="dark"] nav {
    background-color: var(--dark-nav-bg);
}

.nav-links {
    gap: 2rem;
    list-style: none;
    font-size: 1.2rem;
    gap: 1rem;
}

a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
}

[data-theme="dark"] a {
    color: var(--dark-text);
}

a:hover {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 0.5rem;
    text-decoration-color: var(--primary-color);
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo:hover {
    cursor: default;
}

/* Hamburger Navigation */
#hamburger-nav {
    display: none;
}

.hamburger-menu {
    position: relative;
    display: inline-block;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 24px;
    width: 30px;
    cursor: pointer;
}

.hamburger-icon span {
    width: 100%;
    height: 2px;
    background-color: var(--text-dark);
    transition: all 0.3s ease-in-out;
}

[data-theme="dark"] .hamburger-icon span {
    background-color: var(--dark-text);
}

.menu-links {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    width: 200px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-md);
}

[data-theme="dark"] .menu-links {
    background-color: var(--dark-container-bg);
}

.menu-links a {
    display: block;
    padding: 10px;
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-dark);
    text-decoration: none;
}

[data-theme="dark"] .menu-links a {
    color: var(--dark-text);
}

.menu-links li {
    list-style: none;
}

.menu-links.open {
    max-height: 300px;
}

.hamburger-icon.open span:first-child {
    transform: rotate(45deg) translate(10px, 5px);
}

.hamburger-icon.open span:nth-child(2) {
    opacity: 0;
}

.hamburger-icon.open span:last-child {
    transform: rotate(-45deg) translate(10px, -5px);
}

/* Sections */
section {
    padding: 4rem 5%;
    min-height: 100vh;
    scroll-margin-top: 4rem;
    position: relative;
    z-index: 1;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Profile Section */
#profile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5rem;
    max-width: 1200px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(249, 250, 251, 0.9), rgba(229, 231, 235, 0.9));
    padding: 2rem;
    border-radius: 1rem;
    transition: background 0.3s ease;
}

[data-theme="dark"] #profile {
    background: linear-gradient(135deg, rgba(45, 55, 72, 0.9), rgba(26, 32, 44, 0.9));
}

.section__pic-container {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.section__pic-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section__text {
    flex: 1;
    text-align: left;
}

.section__text__p1 {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.section__text__p2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

#socials-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 2rem;
    margin-top: 1.5rem;
}

.icon {
    cursor: pointer;
    height: 2.5rem;
    transition: all 0.3s ease;
}

.icon:hover {
    transform: translateY(-5px);
}

/* Buttons */
.btn-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
    justify-content: flex-start;
}

.btn {
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    border-radius: 2rem;
    font-size: 0.95rem;
    cursor: pointer;
    text-align: center;
}

.btn-color-1 {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    box-shadow: var(--shadow-sm);
}

.btn-color-2 {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: none;
}

.btn-color-1:hover, .btn-color-2:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-color-1:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.btn-color-2:hover {
    background: var(--primary-color);
    color: white;
}

/* About Section */
#about {
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.text-container {
    margin-bottom: 3rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    transition: background 0.3s ease;
}

[data-theme="dark"] .text-container {
    background: var(--dark-container-bg);
}

.text-container p {
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-containers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.details-container {
    padding: 1.8rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}

[data-theme="dark"] .details-container {
    background: var(--dark-container-bg);
    border-color: rgba(255, 255, 255, 0.1);
}

.details-container:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.details-container .icon {
    width: 50px;
    height: 50px;
    margin-bottom: 1rem;
    object-fit: contain;
}

.details-container h3 {
    margin: 0.5rem 0;
    font-size: 1.3rem;
    color: var(--text-dark);
    font-weight: 600;
}

.details-container p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0.5rem 0;
}

.education-details {
    font-size: 0.85rem !important;
    color: var(--primary-color) !important;
    font-style: italic;
    margin-top: 0.8rem !important;
}

[data-theme="dark"] .education-details {
    color: var(--accent-color) !important;
}

/* Skills Section */
.skills-container {
    margin-top: 2rem;
}

.skills-sub-title {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin: 1.5rem 0 1rem;
}

[data-theme="dark"] .skills-sub-title {
    color: var(--dark-text);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.skill-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

[data-theme="dark"] .skill-card {
    background: var(--dark-container-bg);
}

.skill-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.3);
}

.skill-logo {
    width: 32px;
    height: 32px;
    margin-bottom: 0.5rem;
}

.skill-card p {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

[data-theme="dark"] .skill-card p {
    color: var(--dark-text);
}

.skill-badge {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
    border-radius: 1rem;
    color: white;
}

.skill-badge.experienced {
    background: var(--primary-color);
}

.skill-badge.learning {
    background: var(--accent-color);
}

/* Animation for skill cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.skill-card:nth-child(1) { animation-delay: 0.1s; }
.skill-card:nth-child(2) { animation-delay: 0.2s; }
.skill-card:nth-child(3) { animation-delay: 0.3s; }
.skill-card:nth-child(4) { animation-delay: 0.4s; }
.skill-card:nth-child(5) { animation-delay: 0.5s; }
.skill-card:nth-child(6) { animation-delay: 0.6s; }
.skill-card:nth-child(7) { animation-delay: 0.7s; }
.skill-card:nth-child(8) { animation-delay: 0.8s; }
.skill-card:nth-child(9) { animation-delay: 0.9s; }

/* Experience Section */
#experience {
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.experience-details-container {
    margin-top: 2rem;
}

.experience-sub-title {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

/* Projects Section */
#projects {
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.project-img {
    border-radius: 1rem;
    width: 100%;
    max-height: 180px;
    max-width: 300px;
    object-fit: contain;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.details-container:hover .project-img {
    transform: scale(1.05) rotate(2deg);
}

.project-title {
    margin: 1rem 0;
    color: var(--text-dark);
    font-size: 1.3rem;
}

.project-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.project-btn-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.project-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    border: 2px solid var(--primary-color);
    background: none;
    cursor: pointer;
    width: 120px;
    text-align: center;
    margin: 0 auto;
}

[data-theme="dark"] .project-btn {
    color: var(--dark-text);
}

.project-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.project-category-title {
    font-size: 2rem;
    color: var(--text-dark);
    margin: 2rem 0 1rem;
    text-align: left;
}

/* Blog Section */
#blog {
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.blog-title {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin: 1rem 0;
}

[data-theme="dark"] .blog-title {
    color: var(--dark-text);
}

.blog-description {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* Contact Section */
#contact {
    padding: 4rem 5%;
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(249, 250, 251, 0.9), rgba(229, 231, 235, 0.9));
    transition: background 0.3s ease;
}

[data-theme="dark"] #contact {
    background: linear-gradient(135deg, rgba(45, 55, 72, 0.9), rgba(26, 32, 44, 0.9));
}

.contact-info-upper-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    border-radius: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.95);
    margin: 2rem auto;
    padding: 1rem;
    box-shadow: var(--shadow-sm);
    transition: background 0.3s ease, border-color 0.3s ease;
}

[data-theme="dark"] .contact-info-upper-container {
    background: var(--dark-container-bg);
    border-color: rgba(255, 255, 255, 0.1);
}

.contact-info-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem;
    padding: 0.5rem;
}

.contact-info-container p {
    font-size: 1.1rem;
}

.contact-info-container a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-info-container a:hover {
    text-decoration: underline;
}

.contact-icon {
    height: 2rem;
}

.email-icon {
    height: 2.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 500px;
    margin: 1rem auto;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: var(--text-dark);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.form-group input, .form-group textarea {
    padding: 0.8rem;
    border: 2px solid var(--primary-color);
    border-radius: 0.5rem;
    background: var(--bg-light);
    color: var(--text-dark);
    font-family: "Poppins", sans-serif;
}

[data-theme="dark"] .form-group input, [data-theme="dark"] .form-group textarea {
    background: var(--dark-container-bg);
    color: var(--dark-text);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Footer */
footer {
    padding: 2rem 5%;
    background-color: rgba(255, 255, 255, 0.95);
    text-align: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease;
}

[data-theme="dark"] footer {
    background-color: var(--dark-nav-bg);
}

footer .nav-links {
    justify-content: center;
    margin-bottom: 1rem;
}

footer p {
    color: var(--text-light);
}
.project-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
  }
  
  /* Individual project skill badge */
  .skill-badge.project-skill {
    background-color: var(--primary-color, #007bff);
    color: var(--text-white, #fff);
    font-size: 'Poppins', sans-serif;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-weight: 500;
    line-height: 1.8;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  
  .project-skill:hover {
    transform: scale(1.05);
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.3);
  }
  #skills {
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.skills-container {
    margin-top: 2rem;
}

.skills-sub-title {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin: 1.5rem 0 1rem;
}

[data-theme="dark"] .skills-sub-title {
    color: var(--dark-text);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.skill-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="dark"] .skill-card {
    background: var(--dark-container-bg);
}

.skill-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.3);
}
/* Blog Section Styles */
.blog-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-post {
    display: flex;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="dark"] .blog-post {
    background: var(--dark-container-bg);
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-image {
    flex: 1;
    min-width: 300px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-post:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    flex: 2;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.blog-title {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

[data-theme="dark"] .blog-title {
    color: var(--dark-text);
}

.blog-date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.blog-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.blog-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.blog-tag {
    background-color: var(--primary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 1rem;
    font-size: 0.8rem;
}

.blog-read-btn {
    align-self: flex-start;
    margin-top: auto;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow: auto;
}

.modal-content {
    background-color: var(--bg-light);
    margin: 5% auto;
    padding: 2rem;
    border-radius: 1rem;
    width: 80%;
    max-width: 800px;
    position: relative;
    box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .modal-content {
    background-color: var(--dark-bg);
}

.close {
    color: #aaa;
    float: right;
    font-size: 2rem;
    font-weight: bold;
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    cursor: pointer;
}

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

/* Blog Content Styles */
.blog-article {
    padding: 1rem;
}

.blog-article h2 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

[data-theme="dark"] .blog-article h2 {
    color: var(--dark-text);
}

.blog-article p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.blog-article img {
    max-width: 100%;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

/* Fixed navigation for all screens */
#desktop-nav, #hamburger-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] #desktop-nav,
[data-theme="dark"] #hamburger-nav {
    background-color: var(--dark-nav-bg);
}

/* Desktop specific */
#desktop-nav {
    height: 80px;
}

/* Mobile specific */
#hamburger-nav {
    height: 60px;
}

/* Body padding based on screen size */
body {
    padding-top: 80px;
}

@media screen and (max-width: 1200px) {
    body {
        padding-top: 60px;
    }
    
    /* Mobile menu positioning */
    .menu-links {
        position: fixed;
        top: 60px;
        right: 0;
        background-color: white;
        width: 100%;
        height: calc(100vh - 60px);
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1001;
    }
    
    [data-theme="dark"] .menu-links {
        background-color: var(--dark-container-bg);
    }
    
    .menu-links.open {
        transform: translateX(0);
    }
    
    /* Section spacing */
    section {
        scroll-margin-top: 60px;
    }
}

/* Desktop menu positioning */
@media screen and (min-width: 1201px) {
    section {
        scroll-margin-top: 80px;
    }
}
/* Footer styles */
footer {
    background-color: rgba(255, 255, 255, 0.95);
    text-align: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease;
    padding: 2rem 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

[data-theme="dark"] footer {
    background-color: var(--dark-nav-bg);
}

footer nav {
    margin-bottom: 1.5rem;
    width: 100%;
}

footer .nav-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 0;
    list-style: none;
}

footer .nav-links li {
    margin: 0;
}

footer .nav-links a {
    font-size: 0.9rem;
    white-space: nowrap;
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

[data-theme="dark"] footer .nav-links a {
    color: var(--dark-text);
}

footer .nav-links a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

[data-theme="dark"] footer .nav-links a:hover {
    color: var(--accent-color);
}

footer p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
    order: 2; /* Ensure copyright appears after nav */
}