/* Responsive styles */
@media (max-width: 768px) {
    /* Base spacing improvements */
    .container {
        padding: 0 1.5rem;
    }

    section {
        padding: 4rem 0;
    }

    /* Navigation */
    nav {
        padding: 1rem 0;
    }

    .nav-links {
        flex-wrap: wrap;
        gap: 0.5rem;
        font-size: 0.8rem;
        justify-content: flex-end;
    }
    
    .nav-links li {
        flex-shrink: 0;
    }

    .logo {
        font-size: 1.2rem;
    }

    /* Hero Section */
    .hero {
        padding-top: 90px;
        padding-bottom: 2rem;
    }

    .hero-content .greeting {
        margin-bottom: 0.75rem;
    }

    .hero-content h1 {
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .hero-content .subtitle {
        line-height: 1.5;
        margin-bottom: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
        max-width: 400px;
        margin: 0 auto;
    }

    .btn {
        width: 100%;
    }

    /* Section Titles */
    .section-title {
        margin-bottom: 3rem;
    }

    .subsection-title {
        margin-bottom: 2rem;
    }

    /* About Section */
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

    .stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2.5rem;
    }

    .stat-item {
        padding: 1.5rem;
    }

    .about-skills {
        margin-top: 4rem;
        padding-top: 3rem;
    }

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

    .skill-group {
        padding: 1.75rem;
    }

    .skill-group ul li {
        padding: 0.6rem 0;
        line-height: 1.5;
    }

    /* Experience Section */
    .experience-timeline::before {
        display: none;
    }

    .experience-item {
        flex-direction: column;
        gap: 1.5rem;
        margin-bottom: 3rem;
    }

    .experience-icon {
        margin: 0 auto;
    }

    .experience-content {
        padding: 2rem;
    }

    .experience-content:hover {
        transform: none;
    }

    .experience-description {
        line-height: 1.8;
    }

    .experience-description li {
        margin-bottom: 1rem;
    }

    .experience-role-group {
        margin-bottom: 2rem;
        padding-bottom: 2rem;
    }

    /* Projects Section */
    .events-subsection {
        margin-bottom: 4rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .event-card {
        min-height: auto;
    }

    .event-image {
        height: 240px;
    }
    
    .event-content {
        padding: 2rem;
    }
    
    .event-title {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }

    .event-description {
        line-height: 1.8;
        margin-bottom: 1.5rem;
    }

    .event-tags {
        gap: 0.75rem;
        margin-top: 1.5rem;
    }

    .event-tag {
        padding: 0.5rem 1rem;
    }

    .featured-projects-subsection {
        margin-top: 4rem;
        padding-top: 3rem;
    }

    .project-card {
        padding: 2rem;
    }

    .project-card h3 {
        margin-bottom: 1.25rem;
    }

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

    .tech-tags {
        gap: 0.75rem;
    }

    /* Skills Section */
    .skills-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .skill-category {
        padding: 2rem;
    }

    .skill-list {
        gap: 1.25rem;
    }

    /* Contact Section */
    .contact-content p {
        line-height: 1.8;
        margin-bottom: 2.5rem;
    }

    .contact-links {
        flex-direction: column;
        gap: 1.25rem;
    }

    .contact-link {
        width: 100%;
        justify-content: center;
        padding: 1.25rem 1.5rem;
    }

    /* Footer */
    footer {
        padding: 2rem 0;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .nav-links {
        gap: 0.35rem;
        font-size: 0.75rem;
    }
    
    .nav-links a {
        padding: 0.25rem 0.35rem;
    }
    
    .logo {
        font-size: 1rem;
    }
    
    nav .container {
        gap: 0.5rem;
    }
}
