/* Fix for navbar covering content */
.about-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 30px;
    padding-top: 100px; /* Add space for fixed navbar */
}

.skills-section {
    max-width: 900px;
    margin: 80px auto 0;
    padding: 40px 30px;
}

.projects-section {
    max-width: 1200px;
    margin: 80px auto 0;
    padding: 40px 30px;
}

/* Mobile fix */
@media (max-width: 768px) {
    .about-section {
        padding: 30px 20px;
        padding-top: 90px; /* Space for navbar on mobile */
    }
}

@media (max-width: 480px) {
    .about-section {
        padding: 20px 15px;
        padding-top: 90px; /* Space for navbar on mobile */
    }
}

/* ================================
   ABOUT PAGE STYLES
   ================================ */

/* Section Base */
.section {
    min-height: 100vh;
    padding: 120px 60px 80px;
}

/* ================================
   ABOUT ME SECTION
   ================================ */


.about-section h1 {
    font-size: 48px;
    margin-bottom: 30px;
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.about-section h1::after {
    content: "";
    width: 60px;
    height: 4px;
    background: var(--accent);
    position: absolute;
    left: 0;
    bottom: -8px;
}

.about-section p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--secondary);
    margin-bottom: 25px;
}

/* Anime List */
.about-section ol {
    padding-left: 0;
    list-style: none;
    margin-top: 20px;
}

.about-section li {
    font-size: 16px;
    margin: 12px 0;
    padding: 15px 20px;
    background: white;
    border-left: 4px solid var(--accent);
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.about-section li:hover {
    transform: translateX(10px);
    background: #f4f1e8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ================================
   SKILLS SECTION
   ================================ */

.skills-section {
    max-width: 900px;
    margin: 80px auto 0;
    padding: 40px 30px;
}

.skills-section h1 {
    font-size: 48px;
    margin-bottom: 50px;
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.skills-section h1::after {
    content: "";
    width: 60px;
    height: 4px;
    background: var(--accent);
    position: absolute;
    left: 0;
    bottom: -8px;
}

.skill {
    margin: 25px 0;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.skill-name {
    font-weight: 600;
    color: var(--primary);
    font-size: 16px;
}

.skill-percent {
    font-size: 14px;
    color: var(--accent);
    font-weight: 600;
}

.skill-bar {
    height: 12px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.skill-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    border-radius: 10px;
    transition: width 1s ease;
    position: relative;
}

.skill-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

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

/* ================================
   PROJECTS SECTION - INTERACTIVE CARDS
   ================================ */

.projects-section {
    max-width: 1200px;
    margin: 80px auto 0;
    padding: 40px 30px;
}

.projects-section h1 {
    font-size: 48px;
    margin-bottom: 50px;
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.projects-section h1::after {
    content: "";
    width: 60px;
    height: 4px;
    background: var(--accent);
    position: absolute;
    left: 0;
    bottom: -8px;
}

.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

/* Uiverse Style Card */
.project-card {
    position: relative;
    background: white;
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    border: 2px solid transparent;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(162, 123, 92, 0.1), rgba(44, 57, 48, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.project-card:hover::before {
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 35px rgba(162, 123, 92, 0.25);
    border-color: var(--accent);
}

/* Project Image */
.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-card:hover .project-image {
    transform: scale(1.1);
}

/* Project Content */
.project-content {
    padding: 25px;
    position: relative;
    z-index: 1;
}

.project-card h3 {
    color: var(--primary);
    margin-bottom: 12px;
    font-size: 22px;
    font-weight: 700;
    transition: color 0.3s ease;
}

.project-card:hover h3 {
    color: var(--accent);
}

.project-card p {
    color: var(--secondary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Project Tags */
.project-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.project-tag {
    padding: 5px 12px;
    background: var(--bg);
    color: var(--primary);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.project-card:hover .project-tag {
    background: var(--accent);
    color: white;
}

/* Project Link */
.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.project-link:hover {
    gap: 12px;
}

.project-link svg {
    width: 16px;
    height: 16px;
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */

@media (max-width: 1024px) {
    .projects {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

/* Mobile fix */
@media (max-width: 768px) {
    .section {
        padding: 100px 25px 60px;
    }

    .about-section {
        padding: 30px 20px;
        padding-top: 110px; /* Increased for mobile */
    }

    .skills-section,
    .projects-section {
        padding: 30px 20px;
    }

    .about-section h1,
    .skills-section h1,
    .projects-section h1 {
        font-size: 36px;
    }

    .about-section p {
        font-size: 16px;
    }

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

@media (max-width: 480px) {
    .about-section {
        padding: 20px 15px;
        padding-top: 120px; /* Even more space for smaller mobile screens */
    }

    .about-section h1,
    .skills-section h1,
    .projects-section h1 {
        font-size: 28px;
    }

    .about-section p {
        font-size: 15px;
    }

    .about-section li {
        font-size: 14px;
        padding: 12px 15px;
    }

    .project-image {
        height: 180px;
    }

    .project-content {
        padding: 20px;
    }

    .project-card h3 {
        font-size: 18px;
    }

    .project-card p {
        font-size: 14px;
    }
}