/* Main content styling */
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 113px;
    max-width: 1200px;
    margin: 0 auto;
    font-family: Inter, sans-serif;
    overflow-x: hidden;
}

.project-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.project-button {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Visit website button */
.visit-button {
    background: linear-gradient(135deg, #0459BC, #017BFF);
    color: white;
    border: 2px solid transparent;
}

.visit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(4, 89, 188, 0.3);
}

/* Github button */
.github-button {
    background: #24292e;
    color: white;
    border: 2px solid transparent;
}

.github-button:hover {
    background: #2c3238;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(36, 41, 46, 0.3);
}

/* TestFlight button */
.testflight-button {
    background: linear-gradient(135deg, #000000, #2c2c2c);
    color: white;
    border: 2px solid #007AFF;
}

.testflight-button:hover {
    background: linear-gradient(135deg, #1a1a1a, #3c3c3c);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 122, 255, 0.3);
}

/* Click animation for all buttons */
.project-button:active {
    transform: scale(0.95);
}

/* Add icons */
.github-button::before {
    content: "📂 ";
}

.testflight-button::before {
    content: "📱 ";
}

.visit-button::before {
    content: "🔗 ";
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .project-button {
        padding: 6px 16px;
        font-size: 14px;
    }
}

section {
    width: 80%;
    margin: 2rem auto;
    padding: 2rem;
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

section:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

h2 {
    color: #000;
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #0459BC;
    text-align: left;
}

/* Experience and Project Items */
.experience-item, .project-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #F8F9FA;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.experience-item:hover, .project-item:hover {
    background: #F2F2F2;
}

.experience-item h3, .project-item h3 {
    color: #0459BC;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    margin-top: 0;
    font-weight: 500;
}

.experience-item p, .project-item p {
    margin: 0.5rem 0;
    line-height: 1.6;
    color: #333;
}

.experience-item ul {
    list-style-type: none;
    padding-left: 0;
    margin-top: 1rem;
    margin-bottom: 0;
}

.experience-item li {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.experience-item li::before {
    content: "•";
    color: #0459BC;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Skills Section */
#skills {
    width: 80%;
    margin: 2rem auto;
    padding: 2rem;
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

#skills:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

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

.skill-category {
    background: #F8F9FA;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background: #F2F2F2;
}

.skill-category h3 {
    color: #0459BC;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(4, 89, 188, 0.2);
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #E9ECEF;
    color: #495057;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.skill-tag.primary {
    background: rgba(4, 89, 188, 0.1);
    color: #0459BC;
    border-color: rgba(4, 89, 188, 0.2);
}

.skill-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background: rgba(4, 89, 188, 0.15);
    color: #0459BC;
}

/* Courses Section */
#courses .courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.course-category {
    background: #F8F9FA;
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background: #F2F2F2;
}

.course-category h3 {
    color: #0459BC;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(4, 89, 188, 0.2);
}

.course-category ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.course-category li {
    padding: 0.5rem 0;
    color: #333;
    transition: transform 0.2s ease;
}

.course-category li:hover {
    transform: translateX(5px);
}

/* Projects See All Button */
.see-all-projects {
    margin: 2rem 0 1rem 0;
    text-align: center;
}

.see-all-btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: #0459BC;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.see-all-btn:hover {
    background-color: #034794;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(4, 89, 188, 0.2);
}

/* Countdown Timer */
#countdown {
    font-size: 2rem;
    font-weight: 500;
    color: #0459BC;
    margin: 1rem 0;
    font-family: 'Italiana', sans-serif;
}

/* Responsive Design */
@media screen and (max-width: 1193px) {
    .skills-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center; /* Centers the items in the row */
        gap: 1.5rem; /* Maintains spacing between items */
    }

    .skill-category:nth-child(3) {
        margin-left: auto;
        margin-right: auto;
    }
}

@media screen and (min-width: 768px) {
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media screen and (max-width: 768px) {
    section {
        width: 90%;
        padding: 1.5rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .experience-item h3, .project-item h3 {
        font-size: 1.25rem;
    }

    #courses .courses-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .course-category {
        padding: 1.25rem;
    }
}

@media screen and (max-width: 480px) {
    section {
        width: 95%;
        padding: 1rem;
    }

    .experience-item, .project-item {
        padding: 1rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .see-all-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.95rem;
    }

    #courses .courses-grid {
        grid-template-columns: 1fr;
    }
    
    .course-category {
        padding: 1rem;
    }
    
    .course-category h3 {
        font-size: 1.1rem;
    }

    #skills {
        width: 95%;
        padding: 1rem;
    }
    
    .skill-category {
        padding: 1rem;
    }
    
    .skill-tag {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
}