/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.4;
    color: #1a252f;
    background-color: #f8f9fa;
    font-size: 14px;
}

/* Raspberry Pi Banner */
.pi-banner {
    background: #1e4a72;
    color: white;
    text-align: center;
    padding: 8px 0;
    font-size: 0.9rem;
    font-weight: 500;
}

.pi-link {
    color: white;
    text-decoration: underline;
}

.pi-link:hover {
    color: #ecf0f1;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 32px;
    width: 100%;
    background: #ffffff;
    z-index: 1000;
    border-bottom: 1px solid #e1e5e9;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

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

.nav-logo a {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a252f;
    text-decoration: none;
}

.nav-logo a:hover {
    color: #1e4a72;
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: #34495e;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.9rem;
}

.nav-link:hover {
    color: #1e4a72;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 2px;
    background: #1a252f;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding: 152px 0 80px;
    background: #ffffff;
    color: #1a252f;
}


.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1a252f;
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #1e4a72;
}

.hero-description {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    color: #34495e;
    line-height: 1.5;
}

.hero-links {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.hero-link {
    color: #1e4a72;
    text-decoration: underline;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.hero-link:hover {
    color: #153a5c;
}

.hero-skills {
    margin-bottom: 1.5rem;
}

.hero-skills h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a252f;
    margin-bottom: 0.25rem;
    margin-top: 0.75rem;
}

.hero-skills h3:first-child {
    margin-top: 0;
}

.hero-skills p {
    font-size: 0.9rem;
    color: #34495e;
    margin-bottom: 0.5rem;
}

.hero-contact {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
}

.contact-link {
    color: #34495e;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.contact-link:hover {
    color: #1e4a72;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    display: inline-block;
    text-align: center;
    border: 1px solid;
}

.btn-primary {
    background: #1e4a72;
    color: #ffffff;
    border-color: #1e4a72;
}

.btn-primary:hover {
    background: #153a5c;
    border-color: #153a5c;
}

.btn-secondary {
    background: transparent;
    color: #1e4a72;
    border-color: #1e4a72;
}

.btn-secondary:hover {
    background: #1e4a72;
    color: #ffffff;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid #e1e5e9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.profile-image {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    margin: 0 auto;
    overflow: hidden;
    border: 3px solid #e1e5e9;
}

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

.profile-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    color: #2c3e50;
    font-weight: 600;
}

.profile-info p {
    color: #5a6c7d;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

/* Sections */
.section {
    padding: 3rem 0;
    background: #ffffff;
}

.section:nth-child(even) {
    background: #f8f9fa;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 600;
    text-align: left;
    margin-bottom: 1.5rem;
    color: #1a252f;
    border-bottom: 2px solid #1e4a72;
    padding-bottom: 0.5rem;
}

/* Education Section */
.education-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a252f;
    margin-bottom: 0.5rem;
}

.education-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a252f;
    margin: 1.5rem 0 0.75rem 0;
}

.education-content p {
    font-size: 0.9rem;
    color: #34495e;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.courses h5 {
    font-size: 1rem;
    font-weight: 600;
    margin: 1rem 0 0.5rem 0;
    color: #1a252f;
}

.courses p {
    font-size: 0.9rem;
    color: #34495e;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat {
    text-align: center;
    padding: 1rem;
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e5e9;
}

.stat h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #3498db;
    margin-bottom: 0.25rem;
}

.stat p {
    color: #5a6c7d;
    font-weight: 500;
    font-size: 0.9rem;
}

.education, .skills {
    margin-top: 2rem;
}

.education h3, .skills h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.education-item {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e5e9;
}

.education-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.education-header h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
}

.education-date {
    color: #3498db;
    font-weight: 500;
    font-size: 0.9rem;
}

.courses h5 {
    font-size: 1rem;
    font-weight: 600;
    margin: 1rem 0 0.5rem;
    color: #2c3e50;
}

.course-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.course-tag {
    background: #e3f2fd;
    color: #1976d2;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #bbdefb;
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.skill-category {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e5e9;
}

.skill-category h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #2c3e50;
}

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

.skill-tag {
    background: #f8f9fa;
    color: #5a6c7d;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #e1e5e9;
}

/* Experience Section */
.experience-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.2);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 80px;
}

.timeline-marker {
    position: absolute;
    left: 20px;
    top: 0;
    width: 20px;
    height: 20px;
    background: #a78bfa;
    border-radius: 50%;
    border: 4px solid #0f0f0f;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
}

.timeline-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
}

.experience-header {
    margin-bottom: 1rem;
}

.experience-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.experience-company {
    display: block;
    color: #a78bfa;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.experience-date {
    color: #9ca3af;
    font-size: 0.9rem;
}

.timeline-content ul {
    list-style: none;
    padding-left: 0;
}

.timeline-content li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: #9ca3af;
    line-height: 1.6;
}

.timeline-content li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #a78bfa;
    font-weight: bold;
}

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

.project-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
    border-color: rgba(167, 139, 250, 0.3);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.project-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
}

.project-links {
    display: flex;
    gap: 0.5rem;
}

.project-link {
    color: #9ca3af;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: #a78bfa;
}

.project-description {
    color: #9ca3af;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.project-tag {
    background: #f8f9fa;
    color: #5a6c7d;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #e1e5e9;
}

.project-achievement {
    color: #27ae60;
    font-weight: 500;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* Awards Section */
.awards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.award-category h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.award-list, .activity-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.award-item, .activity-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e5e9;
    transition: box-shadow 0.3s ease;
}

.award-item:hover, .activity-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    border-color: #3498db;
}

.award-item i, .activity-item i {
    font-size: 1.25rem;
    color: #3498db;
    margin-top: 0.25rem;
}

.award-content h4, .activity-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.award-content p, .activity-content p {
    color: #5a6c7d;
    font-size: 0.85rem;
}

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

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.contact-info p {
    font-size: 0.95rem;
    color: #5a6c7d;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e5e9;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.3s ease;
}

.contact-method:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    border-color: #3498db;
}

.contact-method i {
    font-size: 1.25rem;
    color: #3498db;
}

.contact-method h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.contact-method p {
    color: #5a6c7d;
    margin: 0;
    font-size: 0.9rem;
}

.contact-note {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #3498db;
}

.contact-note p {
    color: #5a6c7d;
    font-style: italic;
    margin: 0;
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid #e1e5e9;
}

.footer p {
    margin: 0;
    color: #bdc3c7;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 92px;
        flex-direction: column;
        background-color: #ffffff;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        padding: 2rem 0;
        border-top: 1px solid #e1e5e9;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu a {
        padding: 1rem;
        display: block;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-stats {
        flex-direction: row;
        justify-content: space-around;
    }

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

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

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

    .education-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .timeline-item {
        padding-left: 60px;
    }

    .timeline-marker {
        left: 15px;
    }

    .experience-timeline::before {
        left: 25px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 200px;
    }

    .about-stats {
        flex-direction: column;
    }

    .contact-methods {
        gap: 1rem;
    }

    .contact-method {
        flex-direction: column;
        text-align: center;
    }
}

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

.section {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling for anchor links */
html {
    scroll-padding-top: 92px;
}

/* Project link styles */
.project-header h3 a {
    color: #3498db;
    text-decoration: none;
}

.project-header h3 a:hover {
    color: #2980b9;
}

/* Simplified sections */
.about-content {
    margin-bottom: 2rem;
}

.about-text p {
    font-size: 0.95rem;
    color: #34495e;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.skills-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a252f;
    margin-bottom: 0.5rem;
}

.skills-content p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #34495e;
}

.awards-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1.5rem 0 0.5rem 0;
    color: #1a252f;
}

.awards-content p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #34495e;
}

/* Experience page styles */
.experience-content {
    max-width: 800px;
}

.experience-spacer {
    height: 3rem;
}

.experience-item {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e1e5e9;
}

.experience-item:last-child {
    border-bottom: none;
}

.experience-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a252f;
    margin-bottom: 0.25rem;
}

.experience-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a252f;
    margin-bottom: 0.25rem;
}

.experience-date {
    color: #1e4a72;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.experience-item p {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: #34495e;
    line-height: 1.5;
}

.experience-item a {
    color: #1e4a72;
    text-decoration: none;
}

.experience-item a:hover {
    color: #153a5c;
}

.volunteering-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e1e5e9;
}

.volunteering-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a252f;
    margin-bottom: 1rem;
}

/* Projects page styles */
.projects-content {
    max-width: 800px;
}

.project-group {
    margin-bottom: 2.5rem;
}

.project-group h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a252f;
    margin-bottom: 1rem;
    border-bottom: 2px solid #1e4a72;
    padding-bottom: 0.5rem;
}

.project-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e1e5e9;
}

.project-item:last-child {
    border-bottom: none;
}

.project-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a252f;
    margin-bottom: 0.25rem;
}

.project-item h4 a {
    color: #1e4a72;
    text-decoration: none;
    font-size: 1.2rem;
}

.project-item h4 a:hover {
    color: #153a5c;
}

.project-item h4 a i {
    margin-right: 0.5rem;
    font-size: 0.9em;
}

.project-date {
    color: #1e4a72;
    font-weight: 500;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.project-item p {
    font-size: 0.9rem;
    color: #34495e;
    line-height: 1.5;
}

/* Credit page styles */
.credit-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.pi-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.credit-content p {
    font-size: 1.1rem;
    color: #34495e;
    margin-bottom: 1rem;
}

/* Pi Stats Styling */
.pi-stats {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
}

.pi-stats h3 {
    color: #1a252f;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #e1e5e9;
    text-align: center;
}

.stat-card h4 {
    color: #34495e;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.stat-value {
    color: #1e4a72;
    font-size: 1.5rem;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.processes-section {
    margin-bottom: 1.5rem;
}

.processes-section h4 {
    color: #1a252f;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.processes-list {
    background: white;
    border-radius: 6px;
    border: 1px solid #e1e5e9;
    padding: 1rem;
}

.process-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f3f4;
    font-size: 0.85rem;
}

.process-item:last-child {
    border-bottom: none;
}

.process-info {
    flex: 1;
}

.process-name {
    color: #1a252f;
    font-weight: 500;
}

.process-details {
    color: #7f8c8d;
    font-size: 0.8rem;
}

.process-stats {
    text-align: right;
    color: #1e4a72;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.loading {
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
}

.last-updated {
    text-align: center;
    color: #7f8c8d;
    font-size: 0.8rem;
}
