/* Top Bar */
.top-bar {
    display: flex;
    align-items: center;
    background-color: var(--dark-bg);
    color: var(--text-light);
    justify-content: space-between;
    padding: 15px 10%;
    font-size: 14px;
}

.contact-email a {
    display: flex;
    align-items: center;
    color: var(--text-light);
    gap: 12px;
}

.contact-email a:hover {
    opacity: 0.7;
    color: #67d293;
}

.social-icons {
    display: flex;
    gap: 35px;
}

.social-icons a {
    color: var(--text-light);
    font-size: 16px;
}

.social-icons a:hover { transform: scale(1.3); }
.social-icons a:hover .fa-linkedin-in { color: #0077b5; }
.social-icons a:hover .fa-facebook-f { color: #1877f2; }
.social-icons a:hover .fa-youtube { color: #ff0000; }

/* Navbar */
.navbar {
    display: flex;
    font-family: Arial, Helvetica, sans-serif; /* Clean sans-serif */
    font-size: 18px; /* Scaled text */
    align-items: center;
    background-color: white;
    justify-content: space-between;
    padding: 10px 40px; /* Spacious padding */
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); /* Subtle shadow similar to screenshot gradient look */
    position: relative;
    z-index: 1000;
}

.nav-logo {
    display: flex;
    align-items: center;
    padding-left: 0; /* Removing extra padding */
}

/* Logo Sizing */
.nav-logo img { 
    height: 90px; /* Bigger logo as in screenshot */
    width: 90px;
    object-fit: cover;
    display: block; 
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* Shadow for depth */
}

.nav-links {
    display: flex;
    align-items: baseline; /* Aligns text perfectly regardless of element type */
    flex-grow: 1;
    justify-content: space-between; /* Extend from left to right */
    padding-left: 50px; /* Spacing from logo */
    padding-right: 0;
    flex-wrap: nowrap; /* Prevent wrapping so it stays on one line */
    gap: 0; /* Let space-between handle distribution */
}

/* Adjust font size for wider screens to fill space nicely */
@media (min-width: 1400px) {
    .navbar {
        font-size: 20px;
        padding: 15px 50px;
    }
}

/* Ensure responsiveness keeps it looking good without breaking */
@media (max-width: 1200px) {
    .navbar {
        font-size: 16px; /* Slightly smaller font to fit all items */
        padding: 10px 20px;
    }
    .nav-links {
        padding-left: 20px;
    }
}

.nav-links a {
    color: #000; /* Solid black */
    text-decoration: underline; /* Always underlined */
    text-underline-offset: 4px; /* Space between text and underline */
    text-decoration-thickness: 1px;
    font-weight: 400; /* Regular weight, not bold */
    position: relative;
    padding-bottom: 5px;
    white-space: nowrap;
    margin: 0;
}

/* The teal bar for hover/active state (matches the bar under Home) */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -8px; /* Positioned well below the text */
    left: 0;
    width: 0;
    height: 3px; /* Thickness of the teal bar */
    background-color: #0cbdb4; /* Teal color */
    transition: width 0.3s ease;
}

.nav-links a:hover::after { width: 100%; opacity: 1; }
.menu-toggle { display: none; }

/* Hamburger Menu Icon Base Styles */
.menu-toggle .bar {
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background: #333;
    display: block;
    border-radius: 2px;
}

/* Footer */
.footer {
    background-color: var(--footer-bg);
    color: var(--text-light);
    padding: 50px 0 20px;
    font-size: 14px;
}

.footer-container {
    display: flex;
    align-items: center; /* Original was center, maybe align-items: flex-start better for wrap */
    width: 90%;
    margin: 0 auto 40px;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-logo-section img { 
    width: 150px; /* Fixed width for circle */
    height: 150px; /* Fixed height for circle */
    object-fit: cover; /* Crop to fit if not square */
    border-radius: 50%; 
}

.footer h3 {
    color: var(--primary);
    font-size: 18px;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: 700;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 40px;
}

.footer-links-grid a {
    color: var(--text-light);
    border-bottom: 1px solid white;
    padding-bottom: 2px;
    width: max-content;
}

.footer-links-grid a:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.footer-email a {
    display: flex;
    align-items: center;
    color: var(--text-light);
    text-decoration: underline;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 16px;
}

.footer-connect {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-connect a {
    display: flex;
    align-items: center;
    background-color: white;
    color: #2c2c2c; /* Hardcoded specifically for footer icons */
    width: 40px;
    height: 40px;
    border-radius: 50%;
    justify-content: center;
    font-size: 18px;
}

.footer-connect a:hover {
    transform: translateY(-3px);
    background-color: var(--primary);
    color: var(--text-light);
}

.copyright {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 20px;
    margin-top: 20px;
    color: #aaa;
    font-size: 12px;
}

/* Response Layout */
@media (max-width: 960px) {
    .top-bar {
        flex-direction: column;
        gap: 10px;
        padding: 10px 5%;
    }
    
    .navbar {
        padding: 15px 5%;
        flex-wrap: wrap; /* Important for flex items to wrap */
    }

    .nav-logo {
        padding-left: 0;
        margin-bottom: 0;
    }

    .menu-toggle {
        display: block;
        cursor: pointer;
    }

    /* Hamburger Animation */
    .menu-toggle.is-active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.is-active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.is-active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-links {
        display: none;
        width: 100%;
        text-align: center;
        padding: 20px 0;
        flex-direction: column;
        background-color: white;
        position: absolute;
        top: 100%;
        left: 0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        border-top: 1px solid #eee;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        display: block;
        padding: 15px 0;
        width: 100%;
        margin: 0;
        border-bottom: 1px solid #f5f5f5;
    }

    .nav-links a:hover {
        background-color: #f9f9f9;
        /* Remove the underline effect on mobile as it handles it differently */
    }
    
    .nav-links a::after {
        display: none; 
    }

    .footer-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .footer-links-grid {
        gap: 10px 20px;
    }
}

/* Dropdown Container */
.dropdown {
    position: relative;
    display: inline-block;
    margin: 0;
}

/* Dropdown Button (styled like other nav links) */
.dropbtn {
    color: black;
    text-decoration: underline;
    text-underline-offset: 4px;
    font-weight: 400;
    padding: 0;
    padding-bottom: 5px;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
    font-size: inherit;
    vertical-align: baseline; /* Ensures it sits on the same line as text */
}

/* Hover state for Dropdown button - same teal bar effect needs to apply to the parent .dropdown usually, or we style the btn similarly */
.dropdown:hover .dropbtn::after {
    width: 100%;
}

.dropbtn::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: #0cbdb4;
    transition: width 0.3s ease;
}

/* Remove underline from dropbtn arrow if possible - CSS tricky for just icon unless wrapped */
.dropbtn:hover {
    color: black; /* Keep black text */
}

/* Subtly colored and shaped arrow for the dropdown */
.dropdown-arrow {
    color: #0cbdb4; /* Teal chevron */
    font-size: 0.7em; /* Smaller chevron */
    margin-left: 6px;
    vertical-align: baseline; /* Avoid pushing the line-height */
    position: relative;
    top: -2px; /* Visual adjustment only */
    display: inline-block; 
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 220px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1000;
    top: 100%;
    margin-top: 10px; /* Slight offset to match the gap */
    left: 0;
    border-top: 3px solid #0cbdb4;
}

/* Invisible bridge to prevent dropdown from closing when moving mouse over the gap */
.dropdown-content::before {
    content: '';
    position: absolute;
    top: -20px; /* Covers the 10px margin plus some buffer */
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}

/* Links inside the dropdown */
.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none; /* No underline for items */
    display: block;
    text-align: left;
    margin: 0; /* Override nav link margins */
    border-bottom: 1px solid #eee;
    font-size: 16px; /* Smaller font for inner items */
}

/* Removes the teal bar from dropdown items since they shouldn't have it */
.dropdown-content a::after {
    display: none;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {
    background-color: #0cbdb4; /* Green background */
    color: white; /* White text */
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content,
.dropdown.active .dropdown-content {
    display: block;
}

/* Mobile Responsive Dropdown Override */
@media screen and (max-width: 768px) {
    .dropdown {
        width: 100%;
        display: block;
        margin: 0;
    }

    .dropbtn {
        display: block;
        width: 100%;
        padding: 15px 0; /* Match other nav links */
        border-bottom: 1px solid #f5f5f5;
    }

    .dropdown-content {
        position: static;
        width: 100%;
        box-shadow: none;
        border-top: none;
        background-color: #f9f9f9;
    }

    /* Disable hover-to-show on mobile */
    .dropdown:hover .dropdown-content {
        display: none;
    }

    /* Enable click-to-show (via JS .active class) */
    .dropdown.active .dropdown-content {
        display: block;
    }

    .dropdown-content a {
        background-color: #f0f0f0; /* Indented look background */
        font-size: 0.95em;
        color: #555;
    }

    .dropdown-content a:hover {
        background-color: #0cbdb4;
        color: white;
    }
}

/* Page Header with Translate Button */
.page-header-flex {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.page-header-flex .bio-title {
    margin-bottom: 0; /* Remove default margin when in flex */
}

/* Google Translate Widget Customization */
#google_translate_element {
    display: inline-block;
    vertical-align: middle;
}

/* Ensure the widget doesn't have weird margins */
.goog-te-gadget-simple {
    margin: 0 !important;
}

/* Hero Section Specifics */
.translate-hero {
    margin-bottom: 20px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .page-header-flex {
        align-items: center; /* keep centered on mobile too if possible, or left */
        flex-wrap: wrap; 
        gap: 15px;
    }
}

