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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.4;
    color: #2d3748;
    scroll-behavior: smooth;
    background-color: #ffffff;
    font-size: 14px;
}

/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(247, 250, 252, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled .logo,
.navbar.scrolled .nav-links a,
.navbar.scrolled .menu-toggle {
    color: #1a365d;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.navbar.scrolled .logo {
    color: #1a365d;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: #d69e2e;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: #d69e2e;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: white;
}

.nav-close-btn {
    display: none;
}

.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('images/bestpumpkin.jpg');
    background-size: cover;
    background-position: 50% 50%;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.hero-content p {
    font-size: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.5s forwards;
}

/* Section Styles */
.section {
    padding: 3rem 0;
}

.section-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #1a365d;
    text-align: center;
}

.section p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    color: #4a5568;
}

/* Individual Section Backgrounds */
.about-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f4 100%);
}

.projects-section {
    background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
}

.hobbies-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.blog-section {
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
}



/* Project Grid */
.projects-grid {
    display: column;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.project-card {
    background: white;
    margin: 1.5rem;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-3px);
}

.project-card h3 {
    color: #1a365d;
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

/* GitHub Repository Embed Styles */
/* .github-embed {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
} */

.github-card {
    margin-top: 0.8rem;
    margin-bottom: 0.8rem;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.8rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif;
    font-size: 13px;
    line-height: 1.4;
}

.github-header {
    display: flex;
    align-items: center;
    /* margin-bottom: 0.75rem; */
}

.github-icon {
    width: 18px;
    height: 18px;
    color: #1a365d;
    margin-right: 0.4rem;
}

.repo-name {
    font-weight: 600;
    color: #1a365d;
    font-size: 13px;
    /* text-decoration: none; */
}

/* .gime:hover {
    text-decoration: underline;
} */

.repo-stats {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 0.6rem;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    color: #4a5568;
    font-size: 11px;
}

.stat svg {
    color: #4a5568;
}

.repo-description {
    margin-bottom: 0.6rem;
}

.repo-description p {
    color: #4a5568;
    margin: 0;
    font-size: 13px;
}

.repo-languages {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
    flex-wrap: wrap;
}

.language {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 11px;
    color: #4a5568;
}

.language-color {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.github-link {
    display: inline-block;
    color: #1a365d;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.github-link:hover {
    color: #d69e2e;
    text-decoration: underline;
}

/* Hobbies List */
.hobbies-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.hobby-item {
    background: white;
    padding: 1.2rem;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.hobby-item h3 {
    color: #1a365d;
    margin-bottom: 0.4rem;
    font-size: 1.1rem;
}

/* Blog Posts */
.blog-posts {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.blog-post {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.blog-post h3 {
    color: #1a365d;
    margin-bottom: 0.4rem;
    font-size: 1.2rem;
}

.blog-post .date {
    color: #4a5568;
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
}

.blog-post {
    position: relative;
}

.blog-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease;
    position: relative;
    padding: 1.5rem;
    margin: -1.5rem;
    border-radius: 8px;
}

.blog-link:hover {
    transform: translateY(-2px);
    background: rgba(26, 54, 93, 0.05);
}

.blog-post .link-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    color: #4a5568;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    padding: 0;
    z-index: 2;
    transition: all 0.3s ease;
}

.blog-post .link-icon:hover {
    background: #4a5568;
    color: white;
    transform: scale(1.1);
}

.blog-post .link-icon svg {
    width: 18px;
    height: 18px;
}

/* Footer Styles */
.footer {
    background: #f7fafc;
    color: #2d3748;
    padding: 2rem 0 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.footer-section h4 {
    color: #1a365d;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}

.footer-section p {
    color: #4a5568;
    font-size: 0.9rem;
    line-height: 1.4;
}

.social-links {
    display: flex;
    gap: 0.8rem;
}

.social-link {
    color: #3182ce;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #1e40af;
}

.footer-link {
    color: #1a365d;
    text-decoration: none;
    display: block;
    margin-bottom: 0.4rem;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-link:hover {
    color: #d69e2e;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer-bottom p {
    color: #4a5568;
    font-size: 0.85rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -300px;
        width: 250px;
        height: auto;
        max-height: 80vh;
        background: rgba(247, 250, 252, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 1.5rem;
        padding: 1rem;
        padding-top: 3rem;
        transition: right 0.3s ease;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 0 8px;
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1rem;
        color: #1a365d;
    }

    .nav-close-btn {
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: #1a365d;
        cursor: pointer;
        padding: 0.5rem;
        border-radius: 50%;
        transition: all 0.3s ease;
        display: none;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
    }

    .nav-links.active .nav-close-btn {
        display: flex;
    }

    .nav-close-btn:hover {
        background: rgba(26, 54, 93, 0.1);
        color: #d69e2e;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .section {
        padding: 2rem 0;
    }

    .section-content {
        padding: 0 1rem;
    }

    .section h2 {
        font-size: 1.6rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .hobbies-list {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .social-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.6rem;
    }

    .nav-links {
        width: 200px;
        right: -200px;
        max-height: 70vh;
    }
}

/* PDF Preview Styles */
.pdf-preview {
    margin: 1.2rem 0;
}

.pdf-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease;
}

.pdf-link:hover {
    transform: translateY(-2px);
}

.pdf-thumbnail {
    width: 100%;
    max-width: 140px;
    margin: 0;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    position: relative;
}

.pdf-page-preview {
    background: white;
    aspect-ratio: 8.5/11;
    position: relative;
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.pdf-header {
    text-align: center;
    margin-bottom: 16px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 12px;
}

.pdf-title {
    font-size: 14px;
    font-weight: bold;
    color: #1a365d;
    margin-bottom: 4px;
}

.pdf-subtitle {
    font-size: 10px;
    color: #4a5568;
    font-style: italic;
}

.pdf-content-preview {
    padding: 0;
    margin: 0;
    display: block;
    gap: 0;
}

.preview-line,
.preview-line.short {
    height: 5px;
    margin: 1.5px 0;
}

.puffer-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0;
    padding: 0;
}

.link-icon {
    position: absolute;
    top: 6px;
    right: 6px;
    background: none;
    color: #4a5568;
    border-radius: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    padding: 0;
    z-index: 2;
}

.link-icon svg {
    width: 20px;
    height: 20px;
}

.pdf-footer {
    text-align: center;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}

.page-number {
    font-size: 9px;
    color: #4a5568;
    font-weight: bold;
}

/* View Project Button */
.view-project-btn {
    display: inline-block;
    background: linear-gradient(135deg, #1a365d 0%, #2d3748 100%);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 500;
    margin-top: 0.8rem;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 2px 6px rgba(26, 54, 93, 0.3);
    font-size: 0.9rem;
}

.view-project-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(26, 54, 93, 0.4);
    background: linear-gradient(135deg, #2d3748 0%, #1a365d 100%);
}

/* Responsive adjustments for PDF preview */
@media (max-width: 768px) {
    .pdf-thumbnail {
        max-width: 110px;
    }
    
    .pdf-page-preview {
        padding: 12px;
    }
    
    .pdf-title {
        font-size: 12px;
    }
    
    .pdf-subtitle {
        font-size: 9px;
    }
    
    .puffer-logo {
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
    }
    
    .link-icon {
        width: 24px;
        height: 24px;
        top: 5px;
        right: 5px;
    }
    
    .link-icon svg {
        width: 18px;
        height: 18px;
    }
}