/* General Styles */
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: #F9F9F9;
    color: #2D3748;
}

header {
    background: #4FD1C5;
    color: #fff;
    padding: 1rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

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

header nav h1 {
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
}

/* Navigation Links */
.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
    height: auto; /* Default for desktop */
    overflow: hidden; /* Hide content when collapsed */
    transition: height 0.3s ease, padding 0.3s ease;
}

.nav-links li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

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

/* Navigation Toggle Button */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #fff;
    cursor: pointer;
}

/* About Section */
#about {
    border-left: 5px solid #FF7E79;
    padding: 1rem;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.about-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #4FD1C5;
    flex-shrink: 0;
}

.about-container p {
    flex: 1;
    font-size: 1.2rem;
    line-height: 1.8;
}

/* General Section Styling */
section {
    padding: 2rem 1rem;
    max-width: 800px;
    margin: 2rem auto;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    background: #fff;
}

h2 {
    margin-bottom: 1rem;
    color: #4FD1C5;
}

/* Section Borders */

#education {
    border-left: 5px solid #f6cc91;
}

#skills {
    border-left: 5px solid #f691b3;
}

#academic {
    border-left: 5px solid #9484eb;
}

#projects {
    border-left: 5px solid #FFE066;
}

#extracurricular {
    border-left: 5px solid #FFA0D8;
}

#contact {
    border-left: 5px solid #74FFE9;
}

/* Toggle List Styling */
.toggle-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toggle-title {
    cursor: pointer;
    font-weight: bold;
    color: #2f7a54;
    margin-bottom: 0.5rem;
    display: block;
    transition: color 0.3s ease;
}

.toggle-title:hover {
    color: #FFE066;
}

.toggle-content {
    display: none;
    margin-top: 0.5rem;
    padding-left: 1rem;
    border-left: 2px solid #E2E8F0;
    color: #2D3748;
    animation: fade-in 0.3s ease-out forwards;
}

.toggle-content.visible {
    display: block;
}

/* Fade-In Animation */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        align-items: center;
        height: 0; /* Start collapsed */
        padding: 0;
        background: #4FD1C5;
    }

    .nav-links.active {
        height: auto; /* Expands to fit content */
        padding: 1rem 0;
    }

    .nav-toggle {
        display: block;
    }

    /* Adjust header */
    header nav {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    header nav h1 {
        font-size: 1.8rem;
    }

    /* About section adjustments */
    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .about-photo {
        margin: 0 auto;
    }

    .about-container p {
        font-size: 1rem;
    }

    /* Section styling adjustments */
    section {
        padding: 1.5rem 1rem;
        max-width: 90%;
    }

    h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    header nav h1 {
        font-size: 1.5rem;
    }

    .about-photo {
        width: 120px;
        height: 120px;
    }

    .about-container p {
        font-size: 0.9rem;
    }

    section {
        padding: 1rem;
    }

    h2 {
        font-size: 1.2rem;
    }
}

/* Cursor Trail */
/* General Trail Styles */
.trail {
    position: absolute;
    pointer-events: none;
    opacity: 0.8;
    animation: fade-out 1s ease-out forwards;
    transform-origin: center;
}

.trail.four-point {
    clip-path: polygon(50% 0%, 65% 35%, 100% 50%, 65% 65%, 50% 100%, 35% 65%, 0% 50%, 35% 35%);
    background-color: #FF7E79;
}

.trail.five-point {
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    background-color: #4FD1C5;
}

@keyframes fade-out {
    from {
        opacity: 0.8;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.5);
    }
}

.fade-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-section.visible {
    opacity: 1;
    transform: translateY(0);
}
