/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-snap-type: y proximity;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Header and Navigation */
header {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.theme-toggle {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    transition: all 0.3s ease;
}


.theme-toggle .moon-icon {
    display: none;
}

.dark-mode .theme-toggle .sun-icon {
    display: none;
}

.dark-mode .theme-toggle .moon-icon {
    display: block;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #2c3e50;
}

/* Main content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    margin: 4rem 0;
}

/* Hero section */
#hero {
    text-align: center;
    padding: 4rem 0;
}

#hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
}

#hero p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Section headings */
h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 2rem;
    text-align: center;
}

/* About section */
.about-container {
    display: flex;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
    align-items: center;
    width: 100%;
}

.about-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    min-width: 250px;
}

.profile-pic {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #2c3e50;
}

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

.download-btn {
    padding: 0.75rem 1.5rem;
    background: #2c3e50;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: #34495e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.3);
}

.about-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.about-content h2 {
    margin-bottom: 1.5rem;
}

.about-content p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1.5rem;
}

/* Sliding Tags Component */
.sliding-tags-container {
    width: 100%;
    border-top: 1px solid #e1e5e9;
    border-bottom: 1px solid #e1e5e9;
    padding: 1rem 0;
    margin-bottom: 2rem;
    overflow: hidden;
    display: flex;
}

.sliding-tags-track {
    display: flex;
    gap: 1rem;
    animation: slide 80s linear infinite;
    flex-shrink: 0;
    padding-right: 1rem;
}

.sliding-tag {
    background: #f1f3f4;
    color: #5f6368;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.sliding-tag:hover {
    background: #2c3e50;
    color: white;
}

@keyframes slide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.dark-mode .sliding-tags-container {
    border-top-color: #333333;
    border-bottom-color: #333333;
}

.dark-mode .sliding-tag {
    background: #333333;
    color: #a1a1aa;
}

.dark-mode .sliding-tag:hover {
    background: #3b82f6;
    color: white;
}

/* Projects section */
.projects-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.projects-placeholder {
    font-size: 1.1rem;
    color: #666;
    font-style: italic;
    padding: 3rem 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #ddd;
    grid-column: 1 / -1;
}

/* Project cards */
.project-card {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    scroll-margin-top: 100px;
    scroll-snap-align: start;
}

.project-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: #2c3e50;
}

.project-card h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.project-description {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.project-tech {
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: #f1f3f4;
    color: #5f6368;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

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

.project-links a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border: 1px solid #2c3e50;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.project-links a:hover {
    background: #2c3e50;
    color: white;
}

.project-links a.demo {
    background: #2c3e50;
    color: white;
}

.project-links a.demo:hover {
    background: #34495e;
}

.project-links a.notebook {
    background: transparent;
    color: #ff7215;
    border: 2px solid #ff7215;
}

.project-links a.notebook:hover {
    background: #ff7215;
    color: white;
}

.project-links a.read-more-btn {
    background: #ff7215;
    color: white;
    border-color: #ff7215;
}

.project-links a.read-more-btn:hover {
    background: #e16512;
    cursor: pointer;
}

/* Footer */
footer {
    background: #f8f9fa;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid #eee;
}

footer p {
    color: #666;
    font-size: 0.9rem;
}


/* Dark mode styles */
body.dark-mode {
    background-color: #1a1a1a;
    color: #e4e4e7;
}

.dark-mode header {
    background: #252525;
    border-bottom-color: #333333;
}

.dark-mode nav h1 {
    color: #e4e4e7;
}

.dark-mode nav a {
    color: #a1a1aa;
}

.dark-mode nav a:hover {
    color: #e4e4e7;
}

.dark-mode .theme-toggle {
    color: #a1a1aa;
}


.dark-mode #hero h1,
.dark-mode h2,
.dark-mode .project-card h3 {
    color: #e4e4e7;
}

.dark-mode #hero p,
.dark-mode .about-content p,
.dark-mode .project-description {
    color: #a1a1aa;
}

.dark-mode .profile-pic {
    border-color: #e4e4e7;
}

.dark-mode .download-btn {
    background: #3b82f6;
}

.dark-mode .download-btn:hover {
    background: #2563eb;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.dark-mode .project-card {
    background: #252525;
    border-color: #333333;
}

.dark-mode .project-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.dark-mode .tech-tag {
    background: #333333;
    color: #a1a1aa;
}

.dark-mode .project-links a {
    color: #e4e4e7;
    border-color: #e4e4e7;
}

.dark-mode .project-links a:hover {
    background: #e4e4e7;
    color: #1a1a1a;
}

.dark-mode .project-links a.notebook {
    color: #ff8c42;
    border-color: #ff8c42;
}

.dark-mode .project-links a.notebook:hover {
    background: #ff8c42;
    color: #1a1a1a;
}

.dark-mode .project-links a.read-more-btn {
    background: #ff8c42;
    border-color: #ff8c42;
    color: #1a1a1a;
}

.dark-mode .project-links a.read-more-btn:hover {
    background: #ff7215;
}

.dark-mode footer {
    background: #252525;
    border-top-color: #333333;
}

.dark-mode footer p {
    color: #a1a1aa;
}

.dark-mode .projects-placeholder {
    background: #252525;
    border-color: #333333;
    color: #a1a1aa;
}

/* Responsive design */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        gap: 1rem;
    }

    #hero h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 2rem;
    }

    main {
        padding: 0 1rem;
    }

    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .about-content {
        text-align: center;
    }
}