/* Theme variables */
:root {
    /* Light theme variables - Improved contrast and color balance */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --accent-primary: #2563eb;
    --accent-secondary: #3b82f6;
    --highlight-primary: #1d4ed8;
    --highlight-secondary: #3b82f6;
    --border-color: #e5e7eb;
    --card-bg: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --section-bg: #f8f9fa;
    --nav-active: #2563eb;
    --transition-duration: 0.3s;
    /* --bg-color: #000000; */
}

[data-theme="dark"] {
    /* Material Design 3 Baseline Dark Theme - Improved contrast */
    --bg-primary: #121212;
    --bg-secondary: #1e1e1e;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --accent-primary: #90caf9;
    --accent-secondary: #64b5f6;
    --highlight-primary: #90caf9;
    --highlight-secondary: #64b5f6;
    --border-color: #2d2d2d;
    --card-bg: #1e1e1e;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --section-bg: #1a1a1a;
    --nav-active: #90caf9;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color var(--transition-duration) ease,
                color var(--transition-duration) ease,
                border-color var(--transition-duration) ease,
                box-shadow var(--transition-duration) ease;
}

html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.8;
    transition: background-color var(--transition-duration) ease,
                color var(--transition-duration) ease;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
header {
    background-color: var(--bg-primary);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 70px;
}

main {
    padding-top: 70px;
    position: relative;
    z-index: 1;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--accent-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    height: 100%;
}

nav ul {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
    align-items: center;
}

nav ul li {
    height: 100%;
    display: flex;
    align-items: center;
}

nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    position: relative;
    padding: 0.5rem 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-primary);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: var(--accent-primary);
}

nav a.active {
    color: var(--nav-active);
    font-weight: 600;
}

nav a.active::after {
    width: 100%;
    background-color: var(--nav-active);
}

#theme-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.5rem;
    transition: all 0.3s ease;
    margin-left: 1rem;
    display: flex;
    align-items: center;
    height: 100%;
}

#theme-toggle:hover {
    color: var(--accent-primary);
    transform: rotate(15deg);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    height: 100%;
    align-items: center;
}

/* Hero Section */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--bg-primary);
    position: relative;
    overflow: hidden;
    padding: 0;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    z-index: 2;
    width: 100%;
}

.profile-section {
    display: flex;
    align-items: center;
    gap: 3rem;
    width: 100%;
}

.profile-photo {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--accent-primary);
    box-shadow: var(--shadow);
    flex-shrink: 0;
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-text {
    flex: 1;
}

.profile-text h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    background: linear-gradient(120deg, #FF3366, #FF6B6B, #4ECDC4);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1.5rem;
    animation: gradient 6s ease infinite;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    line-height: 1.2;
}

[data-theme="dark"] .profile-text h1 {
    background: linear-gradient(120deg, #FF6B6B, #4ECDC4, #45B7D1);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradient 6s ease infinite;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.subtitle {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 500;
    line-height: 1.4;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    white-space: nowrap;
}

.btn.primary {
    background-color: var(--accent-primary);
    color: white;
    border: 2px solid var(--accent-primary);
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
}

.btn.secondary {
    background-color: transparent;
    color: var(--accent-primary);
    border: 2px solid var(--accent-primary);
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn.primary:hover {
    background-color: var(--highlight-primary);
    border-color: var(--highlight-primary);
    box-shadow: 0 6px 12px rgba(37, 99, 235, 0.3);
}

.btn.secondary:hover {
    background-color: var(--accent-primary);
    color: white;
    box-shadow: 0 6px 12px rgba(37, 99, 235, 0.2);
}

/* Data Visualization */
.data-visualization {
    display: none;
}

/* Sections */
section {
    padding: 5rem 0;
    position: relative;
    z-index: 1;
    background-color: var(--bg-primary);
}

section:nth-child(even) {
    background-color: var(--section-bg);
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.about-content p {
    margin-bottom: 2rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.skills {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.skills h3 {
    color: var(--highlight-primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-tag {
    background-color: var(--highlight-primary);
    color: var(--bg-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background-color: var(--highlight-secondary);
    transform: translateY(-2px);
}

/* Experience Section */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    width: 100%;
}

.timeline-dot {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--accent-primary);
    border: 4px solid var(--bg-primary);
    z-index: 1;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    transform: translateX(-50%) scale(1.2);
    background-color: var(--highlight-primary);
}

.timeline-content {
    width: calc(50% - 40px);
    padding: 2rem;
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 0;
    height: 0;
    border-style: solid;
    transition: all 0.3s ease;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    left: -10px;
    border-width: 10px 10px 10px 0;
    border-color: transparent var(--card-bg) transparent transparent;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: auto;
}

.timeline-item:nth-child(even) .timeline-content::before {
    right: -10px;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent var(--card-bg);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: var(--highlight-primary);
}

.timeline-item:nth-child(odd) .timeline-content:hover::before {
    border-color: transparent var(--highlight-primary) transparent transparent;
}

.timeline-item:nth-child(even) .timeline-content:hover::before {
    border-color: transparent transparent transparent var(--highlight-primary);
}

.timeline-content h3 {
    color: var(--highlight-primary);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.timeline-content:hover h3 {
    color: var(--highlight-secondary);
}

.timeline-company {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

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

.timeline-grade {
    color: var(--accent-primary);
    font-weight: 500;
    margin-bottom: 1rem;
}

.timeline-details {
    list-style-type: none;
    margin-top: 1rem;
}

.timeline-details li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
}

.timeline-details li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}

/* Projects Section */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
    border-color: var(--highlight-primary);
}

.project-thumbnail {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    position: relative;
}

.project-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-thumbnail img {
    transform: scale(1.05);
}

.project-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    color: var(--highlight-primary);
    margin-bottom: 1rem;
    transition: color 0.3s;
}

.project-card:hover .project-content h3 {
    color: var(--highlight-secondary);
}

.project-tech {
    margin: 1rem 0;
}

.tech-tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background-color: var(--highlight-primary);
    color: var(--bg-primary);
    border-radius: 15px;
    font-size: 0.9rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background-color: var(--highlight-secondary);
    transform: translateY(-2px);
}

.project-details {
    list-style-type: none;
    margin-top: 1rem;
}

.project-details li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
}

.project-details li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}

.project-links {
    margin-top: auto;
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
}

.project-links a {
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: color 0.3s;
}

.project-links a:hover {
    color: var(--accent-primary);
}

/* Achievements Section */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.achievement-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.achievement-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
    border-color: var(--highlight-primary);
}

.achievement-icon {
    font-size: 2.5rem;
    color: var(--highlight-primary);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.achievement-card:hover .achievement-icon {
    color: var(--highlight-secondary);
    transform: scale(1.1);
}

.achievement-card h3 {
    margin-bottom: 0.5rem;
    color: #000000 !important;
}

.achievement-card p {
    color: #000000 !important;
    margin: 0.5rem 0;
}

.achievement-year {
    color: var(--accent-primary) !important;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

[data-theme="dark"] .achievement-card h3,
[data-theme="dark"] .achievement-card p {
    color: var(--text-primary) !important;
}

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

.achievement-card a {
    color: inherit;
    text-decoration: none;
    display: block;
    height: 100%;
}

.achievement-card a:hover {
    color: inherit;
}

.achievement-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
    border-color: var(--highlight-primary);
    cursor: pointer;
}

/* Contact Section */
.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.contact-item i {
    color: var(--accent-primary);
    font-size: 1.2rem;
}

.contact-item a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: var(--accent-primary);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.social-links a {
    color: var(--text-primary);
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--accent-primary);
}

/* Footer */
footer {
    background-color: var(--bg-secondary);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

/* Animations */
@keyframes rotate {
    from { transform: rotateX(0) rotateY(0); }
    to { transform: rotateX(360deg) rotateY(360deg); }
}

@keyframes pulse {
    0% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.8); opacity: 0.5; }
}

/* Responsive Design */
@media (max-width: 768px) {
    #hero {
        padding: 2rem 0;
        min-height: calc(100vh - 70px); /* Account for header height */
    }

    .hero-content {
        text-align: center;
        padding: 0 1rem;
    }

    .profile-section {
        flex-direction: column;
        gap: 2rem;
    }

    .profile-photo {
        width: 200px;
        height: 200px;
        margin: 0 auto;
    }

    .profile-text {
        text-align: center;
    }

    .cta-buttons {
        justify-content: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    nav {
        padding: 0 1rem;
    }

    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        height: auto;
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        height: auto;
        width: 100%;
    }

    nav a {
        width: 100%;
        padding: 0.5rem 0;
    }

    .menu-toggle {
        display: flex;
    }

    #theme-toggle {
        margin-left: auto;
        margin-right: 1rem;
    }

    .data-visualization {
        width: 250px;
        height: 250px;
        margin: 2rem auto;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-dot {
        left: 30px;
    }

    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
    }

    .timeline-content::before {
        left: -10px !important;
        right: auto !important;
        border-width: 10px 10px 10px 0 !important;
        border-color: transparent var(--card-bg) transparent transparent !important;
    }

    .timeline-content:hover::before {
        border-color: transparent var(--highlight-primary) transparent transparent !important;
    }

    .project-thumbnail {
        height: 180px;
    }

    body {
        font-size: 15px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .timeline-content {
        padding: 1.5rem;
    }
    
    .project-card {
        padding: 1.5rem;
    }

    .about-content {
        padding: 1.5rem;
    }
    
    .skill-tags {
        gap: 0.8rem;
    }
    
    .skill-tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
}

/* Add styles for very small screens */
@media (max-width: 480px) {
    .profile-photo {
        width: 180px;
        height: 180px;
    }

    .profile-text h1 {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .btn {
        padding: 0.7rem 1.5rem;
    }
}

/* Blog Styles */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.blog-card {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.blog-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

.blog-card:hover .blog-thumbnail img {
    transform: scale(1.05);
}

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

.blog-content-link {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-content h3 {
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.blog-excerpt {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
    flex: 1;
}

.blog-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.tech-tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background-color: var(--highlight-primary);
    color: var(--bg-primary);
    border-radius: 15px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    align-self: flex-start;
}

.blog-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.github-link {
    display: flex;
    align-items: center;
}

.github-link img {
    transition: transform 0.3s ease;
}

.github-link:hover img {
    transform: scale(1.1);
}

[data-theme="dark"] .github-link img {
    filter: invert(1);
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-primary);
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.read-more:hover {
    color: var(--highlight-primary);
    transform: translateX(4px);
}

.read-more i {
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(4px);
}

/* Active navigation link */
nav ul li a.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-thumbnail {
        height: 180px;
    }
}

.logo-link {
    text-decoration: none;
    color: inherit;
}
.logo-link:hover {
    opacity: 0.8;
}

.no-underline {
    text-decoration: none;
}

.blog-content-link {
    display: block;
    color: inherit;
}

.blog-content-link:hover {
    text-decoration: none;
}

.blog-link {
    display: block;
    color: inherit;
}

.blog-link:hover {
    text-decoration: none;
}

.read-more {
    text-decoration: none;
}

.read-more:hover {
    text-decoration: none;
}

.github-link {
    text-decoration: none;
}

.github-link:hover {
    text-decoration: none;
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    nav.container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem;
        position: relative;
        gap: 1rem;
    }

    .logo-link {
        order: 2;
        margin: 0 1rem;
    }

    .menu-toggle {
        order: 1;
        display: flex;
        margin-right: 1rem;
    }

    #theme-toggle {
        order: 3;
        margin-left: 1rem;
    }

    nav ul {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 1rem 0;
        gap: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        opacity: 0;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        margin: 0;
        z-index: 999;
        height: auto;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        pointer-events: none;
    }

    nav ul.active {
        display: flex !important;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
        background: var(--bg-primary);
        border-bottom: 1px solid var(--border-color);
    }

    nav ul li {
        height: auto;
        width: 100%;
    }

    nav ul li a {
        display: block;
        width: 100%;
        text-align: center;
        padding: 1rem;
        color: var(--text-color);
        font-weight: 500;
        transition: all 0.3s ease;
    }

    nav ul li a:hover {
        background: var(--hover-color);
    }

    [data-theme="dark"] nav ul {
        background: rgba(18, 18, 18, 0.95);
    }

    [data-theme="light"] nav ul {
        background: rgba(255, 255, 255, 0.95);
    }
}

.github-link img {
    transition: transform 0.3s ease;
}

.github-link:hover img {
    transform: scale(1.1);
}

[data-theme="dark"] .github-link img {
    filter: invert(1);
}

.tech-tag:hover {
    background-color: var(--highlight-secondary);
    transform: translateY(-2px);
} 