/* Section Containers*/
#about {
    padding: 100px 20px 40px;
    min-height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
}

#summary, #education, #hobbies, #achievements {
    background: #2a2a2a;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 40px;
    transition: transform 0.1 ease;
}

#summary:hover, #education:hover, #hobbies:hover, #achievements:hover {
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.2);
}

/* Section Headings */
#about h2 {
    font-size: 2.5rem;
    color: cyan;
    text-align: center;
    margin-bottom: 40px;
}

#about h3 {
    font-size: 1.8rem;
    color: #fff;
    border-bottom: 2px solid cyan;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

#about h4 {
    font-size: 1.5rem;
    color: cyan;
    margin-bottom: 15px;
}

/* Links Styling */
#about a {
    color: cyan;
    text-decoration: none;
    transition: color 0.3s ease;
}

#about a:hover { color: #ff6600; }

/* Summary Section */
#summary p {
    font-size: 1.1rem;
    color: #ccc;
    line-height: 1.6;
}

/* Education Section */
.education-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.edu-box {
    background: #333;
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.edu-box p:first-of-type {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    line-height: 1.4;
}

.edu-box p:not(:first-of-type) {
    font-size: 0.95rem;
    margin: 4px 0;
    line-height: 1.4;
    color: #cccccc;
}

/* Hobbies and Interests Dropdown Container */
.dropdown-container {
    display: grid;
    grid-template-columns: repeat(5, auto);
    gap: 15px;
    width: 100%;
    margin-top: 20px;
}

.dropdown { position: relative; }

.dropbtn {
    background: #333;
    color: white;
    padding: 12px;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    text-align: center;
    width: 100%;
    transition: background-color 0.2s ease;
}

.dropbtn:hover {
    background-color: cyan;
    color: black
}

/* Dropdown Content Styling */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #333;
    margin-top: 10px;
    padding: 20px;
    border-radius: 5px;
    width: 400px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 5;
    left: 50%; 
    transform: translateX(-50%);
}

.dropdown-content p {
    color: #cccccc;
    font-size: 1rem;
    padding: 5px 0;
    line-height: 1.2;
}

/* Achievements Section */
#achievements p, #achievements ul {
    font-size: 1.1rem;
    color: #ccc;
    line-height: 1.6;
}

#achievements ul {
    list-style-type: square;
    padding-left: 20px;
}

#achievements ul li { margin-bottom: 10px; }

/* Responsive Design */
@media (max-width: 768px) {
    #about { padding: 80px 15px 30px; }
    #about h2 { font-size: 2rem; }
    #about h3 { font-size: 1.5rem; }
    .education-container { grid-template-columns: 1fr; }
    .dropdown-container { grid-template-columns: repeat(2, 1fr); }    
    .dropdown-content { width: 250px; }
}

@media (max-width: 480px) {
    #about { padding: 60px 10px 20px; }
    .dropdown-container { grid-template-columns: 1fr; }
    #about h2 { font-size: 1.8rem; }
    #about h3 { font-size: 1.5rem; }
    #about h4 { font-size: 1.2rem; }
    #about p, #about li, #about ul { font-size: 0.8rem; }    
    .dropdown-content {
        position: relative;
        margin-top: 5px;
        width: 100%;
        left: 0;
        transform: none;
    }
}
