:root {
    --primary-start: #00a3a3;
    --primary-end: #00cccc;
    --secondary-start: #ff5a5a;
    --secondary-end: #ff8c8c;
    --light-bg: #f0f4f8;
    --light-card: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 240, 240, 0.95));
    --text-dark: #1a2526;
    --text-light: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    --border: 1px solid rgba(0, 0, 0, 0.05);
}

body {
    background-color: var(--light-bg);
    font-family: 'Inter', sans-serif;
    margin: 0;
    line-height: 1.6;
}

.navbar {
    background: linear-gradient(135deg, var(--primary-start), var(--primary-end));
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1100;
    box-shadow: var(--shadow);
}

.navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    color: var(--text-light) !important;
    font-size: 1.8rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.3s ease;
}

.nav-link:hover {
    color: var(--secondary-end) !important;
    transform: translateY(-2px);
}

.dropdown-menu {
    background: linear-gradient(135deg, rgba(0, 163, 163, 0.9), rgba(0, 204, 204, 0.9));
    border: none;
    border-radius: 0 0 10px 10px;
}

.dropdown-item {
    color: var(--text-light) !important;
    font-weight: 500;
    transition: background 0.3s ease, color 0.3s ease;
}

.dropdown-item:hover {
    background: rgba(255, 90, 90, 0.2) !important;
    color: var(--secondary-end) !important;
}

.search-bar .form-control {
    border-radius: 25px 0 0 25px;
    border: none;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.95);
    transition: box-shadow 0.3s ease;
}

.search-bar .form-control:focus {
    box-shadow: 0 0 10px rgba(0, 163, 163, 0.3);
}

.search-bar .btn {
    background: linear-gradient(135deg, var(--secondary-start), var(--secondary-end));
    border: none;
    border-radius: 0 25px 25px 0;
    padding: 12px 20px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.search-bar .btn:hover {
    background: linear-gradient(135deg, var(--secondary-end), #ffaaaa);
    transform: scale(1.05);
}

.profile-header {
    background: linear-gradient(135deg, var(--primary-start), var(--primary-end));
    color: var(--text-light);
    padding: 50px 20px;
    text-align: center;
    border-radius: 0 0 20px 20px;
    box-shadow: var(--shadow);
    animation: fadeIn 0.5s ease-in;
}

.profile-img {
    width: 240px;
    height: 300px;
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.profile-header:hover .profile-img {
    transform: scale(1.03);
}

.profile-name {
    font-family: 'Poppins', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.profile-professions {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 15px;
}

.profile-details {
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 1.1rem;
    margin-top: 10px;
    flex-wrap: wrap;
}

.profile-details span {
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 10px;
    border-radius: 15px;
    font-weight: 500;
}

.content-section {
    padding: 40px 20px;
    background: var(--light-card);
    border: var(--border);
    border-radius: 15px;
    margin: 30px 0;
    box-shadow: var(--shadow);
    animation: fadeIn 0.5s ease-in;
    backdrop-filter: blur(5px);
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 25px;
    position: relative;
    display: flex;
    align-items: center;
}

.section-title i {
    margin-right: 12px;
    color: var(--primary-start);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-start), var(--secondary-end));
    border-radius: 2px;
}

.social-links {
    margin-top: 20px;
    text-align: center;
}

.btn-social {
    margin: 0 10px;
    padding: 12px 25px;
    font-size: 1rem;
    border-radius: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-light);
    display: inline-flex;
    align-items: center;
}

.btn-social i {
    margin-right: 8px;
}

.btn-social.team-social {
    padding: 8px 12px;
    font-size: 0.9rem;
    margin: 5px;
}

.btn-facebook {
    background: #3b5998;
    box-shadow: 0 2px 5px rgba(59, 89, 152, 0.3);
}

.btn-facebook:hover {
    background: #2a4373;
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(59, 89, 152, 0.5);
}

.btn-instagram {
    background: #e1306c;
    box-shadow: 0 2px 5px rgba(225, 48, 108, 0.3);
}

.btn-instagram:hover {
    background: #b72558;
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(225, 48, 108, 0.5);
}

.btn-linkedin {
    background: #0077b5;
    box-shadow: 0 2px 5px rgba(0, 119, 181, 0.3);
}

.btn-linkedin:hover {
    background: #005582;
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(0, 119, 181, 0.5);
}

.known-for-grid,
.awards-grid,
.profile-grid,
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.known-for-card,
.award-card,
.profile-card,
.team-card {
    background: var(--light-card);
    border: var(--border);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
    backdrop-filter: blur(5px);
}

.known-for-card:hover,
.award-card:hover,
.profile-card:hover,
.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--primary-start);
}

.known-for-card h6,
.award-card h6,
.profile-card h5,
.team-card h5 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.known-for-card p,
.award-card p,
.profile-card p,
.team-card p {
    color: var(--text-dark);
    opacity: 0.8;
    font-size: 0.95rem;
}

.profile-card img,
.team-card img {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.filmography-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 20px;
    background: var(--light-card);
    border: var(--border);
    border-radius: 12px;
    max-height: 400px;
    overflow-y: auto;
    display: block;
}

.filmography-table th,
.filmography-table td {
    padding: 14px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.filmography-table th {
    background: linear-gradient(135deg, var(--primary-start), var(--primary-end));
    color: var(--text-light);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    position: sticky;
    top: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.filmography-table tr:hover {
    background: rgba(0, 163, 163, 0.05);
}

.filter-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-btn {
    background: var(--secondary-start);
    color: var(--text-light);
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.filter-btn:hover {
    background: var(--secondary-end);
    transform: scale(1.05);
}

.contact-form .form-control {
    border-radius: 10px;
    border: var(--border);
    padding: 12px 15px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.95);
    transition: box-shadow 0.3s ease;
}

.contact-form .form-control:focus {
    box-shadow: 0 0 10px rgba(0, 163, 163, 0.3);
    border-color: var(--primary-start);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn-submit {
    background: linear-gradient(135deg, var(--primary-start), var(--primary-end));
    color: var(--text-light);
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 500;
    transition: background 0.3s ease, transform 0.3s ease;
}

.contact-form .btn-submit:hover {
    background: linear-gradient(135deg, var(--primary-end), var(--primary-start));
    transform: scale(1.05);
}

.policy-section,
.mission-section {
    margin-bottom: 30px;
    padding: 15px;
    border-left: 4px solid var(--primary-start);
    background: rgba(255, 255, 255, 0.5);
    border-radius: 0 8px 8px 0;
    transition: background 0.3s ease;
}

.policy-section:hover,
.mission-section:hover {
    background: rgba(255, 255, 255, 0.8);
}

.policy-section h3,
.mission-section h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.policy-section h3 i,
.mission-section h3 i {
    margin-right: 10px;
    color: var(--primary-start);
}

.policy-section p,
.mission-section p {
    color: var(--text-dark);
    opacity: 0.8;
    font-size: 1rem;
}

.hero-section {
    background: linear-gradient(135deg, var(--primary-start), var(--primary-end));
    color: var(--text-light);
    padding: 60px 20px;
    text-align: center;
    border-radius: 0 0 20px 20px;
    box-shadow: var(--shadow);
    animation: fadeIn 0.5s ease-in;
    margin-bottom: 30px;
}

.hero-section h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    margin-bottom: 15px;
}

.hero-section p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
}

.cta-section {
    text-align: center;
    padding: 40px 20px;
    background: var(--light-card);
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin: 30px 0;
}

.cta-section h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.cta-section .btn-cta {
    background: linear-gradient(135deg, var(--secondary-start), var(--secondary-end));
    color: var(--text-light);
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 500;
    transition: background 0.3s ease, transform 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.cta-section .btn-cta i {
    margin-right: 8px;
}

.cta-section .btn-cta:hover {
    background: linear-gradient(135deg, var(--secondary-end), var(--secondary-start));
    transform: scale(1.05);
}

.toc-container {
    position: sticky;
    top: 100px;
    background: var(--light-card);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    backdrop-filter: blur(5px);
}

.toc-container h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.toc-container ul {
    list-style: none;
    padding: 0;
}

.toc-container li {
    margin-bottom: 10px;
}

.toc-container a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.toc-container a:hover,
.toc-container a.active {
    color: var(--primary-start);
    padding-left: 10px;
}

.toc-container a:focus {
    outline: 2px solid var(--primary-start);
    outline-offset: 2px;
    border-radius: 4px;
}

.collapsible-header {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.collapsible-header i {
    transition: transform 0.3s ease;
}

.collapsible-header.active i {
    transform: rotate(90deg);
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 10px;
}

.collapsible-content.active {
    max-height: 500px;
    /* Adjust based on content */
    padding: 10px;
}

.footer {
    background: linear-gradient(135deg, var(--primary-start), var(--primary-end));
    color: var(--text-light);
    padding: 30px 0;
    text-align: center;
    margin-top: 40px;
    box-shadow: var(--shadow);
}

.footer a {
    color: var(--secondary-start);
    text-decoration: none;
    margin: 0 15px;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer a:hover {
    color: var(--secondary-end);
    transform: translateY(-2px);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .profile-img {
        width: 200px;
        height: 250px;
    }

    .profile-name {
        font-size: 2.2rem;
    }

    .profile-details {
        flex-direction: column;
        gap: 8px;
    }

    .profile-details span {
        font-size: 0.95rem;
        padding: 4px 8px;
    }

    .filmography-table th,
    .filmography-table td {
        font-size: 0.9rem;
        padding: 10px;
    }

    .known-for-grid,
    .awards-grid,
    .profile-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .filter-container {
        flex-direction: column;
        gap: 5px;
    }

    .content-section {
        padding: 30px 15px;
        margin: 20px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .policy-section h3,
    .mission-section h3 {
        font-size: 1.5rem;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .toc-container {
        position: static;
        top: auto;
    }
}


.known-for-img {
    width: 100% !important;
    max-height: 200px;
    border-radius: 10px;
    object-fit: contain !important;
    /* Changed from cover to contain to preserve full image */
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: block;
    /* Ensure image behaves as a block element */
}

.known-for-card:hover .known-for-img {
    transform: scale(1.03);
}

@media (max-width: 768px) {
    .known-for-img {
        max-height: 150px;
    }
}