/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.8;
    background-color: #121212; /* Dark background */
    color: #EAEAEA; /* Light grey text for contrast */
    padding: 20px;
}
/* Heading Styles */
h1, h2, h3, h4 {
    color: #9B59B6; /* Purple accent for headings */
    font-family: 'Montserrat', sans-serif; /* Modern font for headings */
    letter-spacing: 1px;
}
/* Header and Navigation */
header {
    background-color: #1C1C1C; /* Slightly lighter grey for header */
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Soft shadow */
}
nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
}
nav ul li {
    margin: 0 15px;
}
nav ul li a {
    color: #EAEAEA; /* Light text for navigation */
    text-decoration: none;
    font-size: 18px;
    text-transform: uppercase;
    font-weight: 500;
    transition: color 0.3s, transform 0.3s ease;
}
nav ul li a:hover {
    color: #9B59B6; /* Purple accent on hover */
    transform: scale(1.1);
}
nav ul li a.active {
    font-weight: bold;
    color: #9B59B6;
}
/* Hero Section */
#hero {
    background: linear-gradient(135deg, #1C1C1C, #3A3A3A); /* Gradient background */
    color: #EAEAEA;
    padding: 80px 20px;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.hero-text h1 {
    font-size: 4rem; /* Bigger for more impact */
    margin-bottom: 20px;
    font-weight: 600;
}
.hero-text p {
    font-size: 1.3rem;
    line-height: 1.8;
}
/* Content Sections */
section {
    padding: 40px 30px; /* More padding for each section */
    margin: 50px 0;
    border-radius: 10px;
    background-color: #2A2A2A; /* Slightly lighter dark grey */
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2); /* Subtle shadow */
}
section h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #9B59B6;
}
section p, section ul {
    font-size: 1.1rem;
    color: #C1C1C1; /* Light grey for content text */
}
section article {
    margin-bottom: 20px;
}
section article h4 {
    font-size: 1.4rem;
    margin-top: 10px;
    color: #9B59B6;
}
/* Support Groups Section */
#support ul {
    padding-left: 20px;
    list-style-type: disc;
}
#support ul li a {
    font-size: 1.1rem;
    color: #EAEAEA;
    transition: color 0.3s;
}
#support ul li a:hover {
    color: #9B59B6;
}
/* FAQ Section */
details {
    margin-bottom: 15px;
    padding: 15px;
    background-color: #3A3A3A; /* Darker background */
    border: 1px solid #666666;
    border-radius: 8px;
    transition: background-color 0.3s, transform 0.3s;
}
details:hover {
    background-color: #444444; /* Hover effect */
    transform: scale(1.03);
}
details summary {
    font-weight: 600;
    font-size: 1.2rem;
    color: #9B59B6; /* Purple for summary */
}
/* Footer */
footer {
    background-color: #1C1C1C;
    color: #EAEAEA;
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px;
    border-top: 1px solid #444444;
}
footer p {
    margin-bottom: 10px;
}
footer a {
    color: #EAEAEA;
    text-decoration: none;
}
footer a:hover {
    text-decoration: underline;
    color: #9B59B6; /* Purple on hover */
}
/* Contact Us Section */
#contact {
    background-color: #2A2A2A;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    margin-top: 40px;
    max-width: 900px;
    margin: 40px auto;
}
.contact-info {
    text-align: center;
    margin-bottom: 40px;
}
.contact-info h2 {
    font-size: 2.5rem;
    color: #9B59B6;
}
.contact-info p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #C1C1C1;
}
.contact-details {
    margin-bottom: 30px;
}
.contact-details h3 {
    font-size: 1.8rem;
    color: #9B59B6;
}
.contact-details p {
    font-size: 1.2rem;
    color: #C1C1C1;
}
.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.contact-form label {
    font-weight: 600;
    color: #EAEAEA;
}
.contact-form input, .contact-form textarea {
    padding: 12px;
    border: 1px solid #444444;
    border-radius: 8px;
    font-size: 1rem;
    width: 100%;
    background-color: #2A2A2A;
    color: #EAEAEA;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: #9B59B6;
}
.contact-form .btn-submit {
    background-color: #9B59B6;
    color: white;
    padding: 14px 24px;
    font-size: 1.2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.contact-form .btn-submit:hover {
    background-color: #8E44AD; /* Slightly darker purple */
}
/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    nav ul {
        flex-direction: column;
    }
    nav ul li {
        margin: 10px 0;
    }
    .hero-text h1 {
        font-size: 2.2rem;
    }
    .hero-text p {
        font-size: 1.1rem;
    }
    section h2 {
        font-size: 2rem;
    }
    footer {
        font-size: 0.9rem;
    }
    /* Contact Form Mobile Styling */
    .contact-form form {
        gap: 10px;
    }
}

/* Section Expansion */
section.expanded {
    background-color: #444444;
    transition: background-color 0.3s ease-in-out;
}

/* Pedigree Chart Styling */
.pedigree-container {
    text-align: center;
    margin: 40px 0;
}
.pedigree-container img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    margin: 20px 0;
} 

/* New Additions (from first CSS) */

/* Header & Navigation */
header {
    background-color: #1C1C1C;
    padding: 20px;
    text-align: center;
}
.nav-container {
    display: flex;
    justify-content: center;
    gap: 15px;
}
.nav-container button {
    background-color: #9B59B6;
    border: none;
    padding: 10px 15px;
    color: white;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}
.nav-container button:hover {
    background-color: #8E44AD;
}
.nav-container .active {
    background-color: #6C3483;
}

/* Toggle Buttons */
.toggle-btn {
    background-color: #9B59B6;
    border: none;
    padding: 12px;
    font-size: 18px;
    color: white;
    width: 100%;
    text-align: left;
    border-radius: 8px;
    margin: 10px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.toggle-btn:hover {
    background-color: #8E44AD; /* Darker purple on hover */
}
.toggle-btn:focus {
    outline: none;
    background-color: #6C3483; /* Active focus state */
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
}
.modal-content {
    background-color: #2A2A2A;
    padding: 40px;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.modal-header h2 {
    color: #9B59B6;
}
.modal-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #EAEAEA;
    cursor: pointer;
    transition: color 0.3s ease;
}
.modal-close-btn:hover {
    color: #9B59B6;
}
.modal-body {
    font-size: 1.2rem;
    color: #C1C1C1;
}
.modal-footer {
    margin-top: 20px;
    text-align: right;
}
.modal-footer button {
    background-color: #9B59B6;
    color: white;
    padding: 12px 20px;
    font-size: 1.1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.modal-footer button:hover {
    background-color: #8E44AD;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #2A2A2A;
    min-width: 160px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 8px;
}
.dropdown:hover .dropdown-content {
    display: block;
}
.dropdown-content a {
    color: #EAEAEA;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}
.dropdown-content a:hover {
    background-color: #3A3A3A;
    color: #9B59B6;
}

/* Tooltip */
.tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
}
.tooltip .tooltiptext {
    visibility: hidden;
    background-color: #9B59B6;
    color: #EAEAEA;
    text-align: center;
    border-radius: 6px;
    padding: 8px 12px;
    position: absolute;
    z-index: 1;
    bottom: 125%; /* Position above */
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}
.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}
/* Navigation Button Styles */
.nav-button {
    background-color: #9B59B6; /* Purple button background */
    color: #EAEAEA; /* Light text */
    padding: 12px 20px; /* Spacious padding */
    font-size: 18px; /* Adjust font size */
    border: none;
    border-radius: 8px; /* Rounded corners */
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease; /* Smooth transitions */
}

.nav-button:hover {
    background-color: #8E44AD; /* Slightly darker purple on hover */
    transform: scale(1.05); /* Button grows slightly when hovered */
}

.nav-button.active {
    background-color: #6C3483; /* Darker purple for active state */
    font-weight: bold; /* Make active button stand out */
}

/* For the active state when a button is selected */
.nav-button.active:hover {
    background-color: #8E44AD; /* Hover effect on active button */
    transform: scale(1.05); /* Active button can still have hover effect */
}

/* Add fade-in animations */
section {
    opacity: 0;
    transform: translateY(30px); /* Start with a small offset */
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
section.visible {
    opacity: 1;
    transform: translateY(0); /* Reset position */
}

/* Button Hover Effect */
.nav-button:hover {
    background-color: #8E44AD; 
    transform: scale(1.05);
}

/* Tooltip Microinteraction */
.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s;
}