/* Extracted styles from index.html */
:root {
    --bg: #ffffff;
    --fg: #111;
    --accent: #0a84ff;
    --accent-gradient: linear-gradient(135deg, #0a84ff, #00e5ff);
    --shadow: 0 6px 18px rgba(10, 10, 10, .08);
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(255, 255, 255, 0.2);
    --neon-glow: 0 0 10px rgba(10, 132, 255, 0.5),
        0 0 20px rgba(10, 132, 255, 0.3),
        0 0 30px rgba(10, 132, 255, 0.1);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #f0f4ff 0%, #f9f9fb 50%, #ffffff 100%);
    background-attachment: fixed;
    color: var(--fg);
    line-height: 1.4;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(10, 132, 255, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(0, 229, 255, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 20;
    transition: all 0.3s ease;
}

header:hover {
    background: var(--glass-bg);
    box-shadow: var(--neon-glow);
}

.brand {
    font-weight: 800;
    font-size: 1.2rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    color: transparent;
    position: relative;
    text-decoration: none;
    padding: 0.5rem 0;
}

.brand::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
}

.brand:hover::after {
    width: 100%;
}

/* Navigation styles */
.navbar {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
}

.nav-item {
    position: relative;
    perspective: 1000px;
}

.nav-item a {
    color: var(--fg);
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    display: block;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    background: transparent;
}

.nav-item a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--accent-gradient);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.nav-item a:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--neon-glow);
}

.nav-item a:hover::before {
    width: 300px;
    height: 300px;
}

/* Dropdown styles */
.dropdown {
    position: relative;
}

.dropdown-trigger::after {
    content: "▾";
    margin-left: 0.3rem;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: inline-block;
}

.dropdown:hover .dropdown-trigger::after {
    transform: rotate(180deg) translateY(-2px);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    min-width: 220px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1),
        inset 0 0 0 1px var(--glass-border);
    list-style: none;
    padding: 0.75rem;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 20px) rotateX(-15deg);
    transform-origin: top center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    pointer-events: none;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid var(--glass-border);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0) rotateX(0);
    pointer-events: auto;
}

.dropdown-menu li {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.dropdown:hover .dropdown-menu li {
    opacity: 1;
    transform: translateY(0);
}

.dropdown-menu li:nth-child(1) {
    transition-delay: 0.1s;
}

.dropdown-menu li:nth-child(2) {
    transition-delay: 0.15s;
}

.dropdown-menu li:nth-child(3) {
    transition-delay: 0.2s;
}

.dropdown-menu li:nth-child(4) {
    transition-delay: 0.25s;
}

.dropdown-menu a {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin: 0.2rem 0;
    background: transparent;
    transition: all 0.3s ease;
}

.dropdown-menu a:hover {
    background: var(--accent-gradient);
    color: white;
    transform: translateX(5px);
    box-shadow: var(--neon-glow);
}

/* Mobile menu button */
.mobile-menu {
    display: none;
    background: transparent;
    border: 2px solid var(--accent);
    padding: 0.6rem;
    cursor: pointer;
    color: var(--accent);
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mobile-menu::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--accent-gradient);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.mobile-menu:hover::before {
    width: 300px;
    height: 300px;
}

.mobile-menu:hover {
    color: white;
    border-color: transparent;
    box-shadow: var(--neon-glow);
}

.menu-icon {
    font-size: 1.5rem;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.mobile-menu.open .menu-icon {
    transform: rotate(90deg);
}

/* Responsive styles */
@media (max-width: 768px) {
    .mobile-menu {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--glass-bg);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--neon-glow);
        border-top: 1px solid var(--glass-border);
    }

    .nav-menu.open {
        display: flex;
        animation: slideDown 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    }

    @keyframes slideDown {
        0% {
            opacity: 0;
            transform: translateY(-20px);
        }

        100% {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(255, 255, 255, 0.1);
        margin: 0.5rem 0;
        padding: 0.5rem;
        border-left: 2px solid var(--accent);
        border-radius: 0 8px 8px 0;
    }

    .nav-item {
        width: 100%;
        opacity: 0;
        transform: translateX(-20px);
    }

    .nav-menu.open .nav-item {
        animation: slideIn 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    }

    @keyframes slideIn {
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .nav-menu.open .nav-item:nth-child(1) {
        animation-delay: 0.1s;
    }

    .nav-menu.open .nav-item:nth-child(2) {
        animation-delay: 0.2s;
    }

    .nav-menu.open .nav-item:nth-child(3) {
        animation-delay: 0.3s;
    }

    .nav-menu.open .nav-item:nth-child(4) {
        animation-delay: 0.4s;
    }

    .nav-menu.open .nav-item:nth-child(5) {
        animation-delay: 0.5s;
    }

    .nav-menu.open .nav-item:nth-child(6) {
        animation-delay: 0.6s;
    }

    .nav-menu.open .nav-item:nth-child(7) {
        animation-delay: 0.7s;
    }

    .nav-item a {
        padding: 0.75rem 1rem;
    }
}

/* Page sections styling */
main {
    padding: 1.25rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Home section styles */
.home-section {
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 2rem 0;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    margin-bottom: 6rem;
    padding-top: 2rem;
}

/* Headshot styles */
.headshot-container {
    position: relative;
    width: 300px;
    height: 300px;
    perspective: 1000px;
}

.headshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: var(--shadow);
    border: 3px solid var(--glass-border);
}

.typed-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.typed-headshot {
    margin-top: 2rem;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 16px rgba(10, 132, 255, 0.15);
    padding: 0.75rem 2rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow);
    letter-spacing: 0.04em;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    user-select: none;
    min-height: 3.5rem;
    display: inline-block;
    animation: fadeInUp 0.8s ease-out;
    position: relative;
    white-space: nowrap;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.typed-headshot:hover {
    text-shadow: 0 4px 24px rgba(10, 132, 255, 0.35), 
                0 8px 32px rgba(0, 229, 255, 0.2);
    transform: scale(1.05) translateY(-2px);
    box-shadow: var(--neon-glow), 
               0 10px 30px rgba(10, 132, 255, 0.2);
}

/* Styled cursor for Typed.js */
.typed-headshot::after {
    content: '';
    display: inline-block;
    animation: typedCursor 0.7s infinite;
    margin-left: 0.1em;
}

[data-theme="dark"] .typed-headshot {
    text-shadow: 0 2px 24px rgba(59, 130, 246, 0.25);
}

.headshot:hover {
    transform: translateY(-10px) rotateY(10deg);
    box-shadow: var(--neon-glow),
        0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: transparent;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.modal-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 12px;
    transform: scale(0.8);
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.modal-close:hover {
    transform: rotate(90deg);
}

/* Media section styles */
.media-section {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--glass-border);
    margin: 6rem auto 0;
    align-self: center;
}

.media-section h2 {
    color: var(--fg);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Custom audio player */
.custom-audio {
    width: 100%;
    height: 40px;
    border-radius: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

/* Custom video player */
.video-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
    border-radius: 12px;
    overflow: hidden;
    background: black;
}

.custom-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

/* Footer styles */
.social-footer {
    margin-top: auto;
    padding: 2rem 0;
    text-align: center;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    backdrop-filter: blur(5px);
    border: 1px solid var(--glass-border);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--neon-glow);
    background: var(--accent-gradient);
}

.social-svg {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
    /* Assuming the SVGs are dark by default */
    filter: brightness(0) saturate(100%);
}

[data-theme="dark"] .social-svg {
    /* Make SVG white in dark mode */
    filter: brightness(0) saturate(100%) invert(1);
}

.social-icon:hover .social-svg {
    /* Make SVG white when parent is hovered */
    filter: brightness(0) saturate(100%) invert(1);
    transform: scale(1.1);
}

[data-theme="dark"] .social-icon:hover .social-svg {
    /* Keep SVG white on hover in dark mode */
    filter: brightness(0) saturate(100%) invert(1);
    transform: scale(1.1);
}

.footer-text {
    color: var(--fg);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive design */
@media (max-width: 768px) {
    .headshot-container {
        width: 250px;
        height: 250px;
    }

    .media-section {
        padding: 1rem;
    }

    .social-icons {
        gap: 1rem;
    }

    .social-icon {
        width: 35px;
        height: 35px;
    }
}

.section-dropdown {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    border: 1px solid #eef2f6;
    overflow: hidden;
}

.section-dropdown summary {
    padding: 1.5rem;
    cursor: pointer;
    position: relative;
    list-style: none;
    display: flex;
    align-items: center;
    transition: background-color 0.2s ease;
}

.section-dropdown summary::-webkit-details-marker {
    display: none;
}

.section-dropdown summary::after {
    content: "▾";
    position: absolute;
    right: 1.5rem;
    transform: rotate(0);
    transition: transform 0.3s ease;
    color: var(--accent);
    font-size: 1.2em;
}

.section-dropdown[open] summary::after {
    transform: rotate(180deg);
}

.section-dropdown summary:hover {
    background: #f8f9fb;
}

.section-dropdown .content {
    padding: 0 1.5rem 1.5rem;
    animation: slideDown 0.3s ease-out;
}

.section-dropdown h1,
.section-dropdown h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--fg);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* small helper for focus outline on links inside menu */
.menu a:focus {
    outline: 3px solid rgba(10, 132, 255, .18);
    border-radius: 4px;
}
