/* --- Variables --- */
:root {
    --primary-color: #0F2A44;
    /* Deep Navy */
    --secondary-color: #2E3440;
    /* Muted Slate Grey-Blue */
    --muted-gold: #C9A24D;
    /* Muted Gold */
    --background-color: #FFFFFF;
    --text-color: #1a1a1a;
    --light-text: #666;
    --border-color: #e0e0e0;
    --white: #ffffff;

    --font-stack: 'Inter', system-ui, -apple-system, sans-serif;

    --nav-height: 70px;
    /* Slightly smaller for mobile */
    --section-padding: 60px 0;

    --transition-speed: 0.3s;
}

@media (min-width: 768px) {
    :root {
        --nav-height: 80px;
        --section-padding: 80px 0;
    }
}

/* --- Reset & Base --- */
html,
body {
    overflow-x: hidden;
    width: 100%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-stack);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed) ease;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 4px;
    transition: all var(--transition-speed) ease;
    cursor: pointer;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-align: center;
    width: 100%;
    /* Full width on mobile */
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .btn {
        width: auto;
        margin-bottom: 0;
        padding: 14px 32px;
        font-size: 1rem;
    }
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

@media (min-width: 768px) {
    .btn-secondary {
        margin-left: 1rem;
    }
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* --- Scroll Progress --- */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 1001;
    background: transparent;
}

.scroll-progress-bar {
    height: 100%;
    background: var(--muted-gold);
    width: 0%;
}

/* --- Navigation --- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: background-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    background-color: var(--primary-color);
    /* Better readability on mobile by default */
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) {
    nav {
        background-color: var(--primary-color);

        /* Transparent on desktop until scroll */
        box-shadow: none;
    }

    nav.scrolled {
        background-color: var(--primary-color);
        backdrop-filter: blur(10px);
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    }
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;

}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.5px;
    z-index: 1002;
    /* Above mobile menu overlay */
    display: flex;
    align-items: center;
}

.logo svg {
    transition: transform var(--transition-speed);
}

.logo:hover svg {
    transform: scale(1.1);
}

@media (min-width: 768px) {
    .logo {
        font-size: 1.5rem;
    }
}

/* Mobile Menu Styles */
.nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 70%;
    max-width: 300px;
    background-color: var(--primary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    padding-top: var(--nav-height);
    z-index: 1001;
}

.nav-links.nav-active {
    transform: translateX(0%);
}

.nav-links li {
    margin: 1.5rem 0;
    opacity: 0;
    /* Animated in with JS */
}

@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

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

/* Desktop Menu Styles override */
@media (min-width: 768px) {
    .nav-links {
        position: static;
        height: auto;
        width: auto;
        background: transparent;
        flex-direction: row;
        transform: none;
        box-shadow: none;
        padding: 0;
        gap: 30px;
    }

    .nav-links li {
        margin: 0;
        opacity: 1;
    }
}

.nav-link {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--white);
    position: relative;
}

@media (min-width: 768px) {
    .nav-link {
        font-size: 0.95rem;
        opacity: 0.8;
    }

    .nav-link:hover,
    .nav-link.active {
        opacity: 1;
        color: var(--muted-gold);
    }

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: -4px;
        left: 0;
        width: 0;
        height: 2px;
        background-color: var(--muted-gold);
        transition: width var(--transition-speed) ease;
    }

    .nav-link:hover::after,
    .nav-link.active::after {
        width: 100%;
    }
}

/* Hamburger Menu */
.mobile-menu-toggle {
    display: block;
    cursor: pointer;
    z-index: 1002;
    padding: 10px;
    /* Increase touch target */
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--white);
    margin: 6px 0;
    transition: all 0.3s ease;
}

/* Hamburger Animation to X */
.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }
}

/* --- Sections General --- */
.section {
    min-height: auto;
    /* Allow content to dictate height on mobile if needed */
    display: flex;
    align-items: center;
    position: relative;
    padding: 4rem 0;
    /* Reduced padding for mobile */
}

@media (min-width: 768px) {
    .section {
        min-height: 100vh;
        padding: var(--nav-height) 0;
    }
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: left;
    position: relative;
    display: inline-block;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.5rem;
        margin-bottom: 3rem;
    }
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
}

@media (min-width: 768px) {
    .section-title::after {
        width: 60px;
        bottom: -10px;
    }
}

/* --- Hero Section --- */
.hero-section {
    justify-content: flex-start;
    align-items: center;
    /* Center vertically on mobile too */
    padding-top: calc(var(--nav-height) + 2rem);
    min-height: 100vh;
    /* Ensure hero is always full height */

    /* Deep Navy Solid Background */
    background-color: var(--primary-color);
}

.hero-content {
    z-index: 2;
    max-width: 800px;
    position: relative;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
    line-height: 1.1;
    color: var(--white);
    /* Ensure title is white on dark bg */
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4rem;
        margin-bottom: 1.5rem;
        letter-spacing: -1px;
    }
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #cbd5e1;
    /* Lighter secondary color for contrast */
    font-weight: 500;
    margin-bottom: 1rem;
    line-height: 1.4;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

.hero-desc {
    font-size: 1rem;
    color: #e2e8f0;
    /* Very light text for description */
    margin-bottom: 2rem;
    max-width: 600px;
}

@media (min-width: 768px) {
    .hero-desc {
        font-size: 1.125rem;
        margin-bottom: 2.5rem;
    }
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (min-width: 480px) {
    .hero-cta {
        flex-direction: row;
        align-items: center;
    }

    .btn {
        width: auto;
        margin-bottom: 0;
    }
}

/* Updated Button Styles for Dark Background */
.hero-cta .btn-primary {
    background-color: transparent;
    color: var(--muted-gold);
    border: 2px solid var(--muted-gold);
}

.hero-cta .btn-primary:hover {
    background-color: var(--muted-gold);
    color: var(--primary-color);
}

.hero-cta .btn-secondary {
    border-color: var(--white);
    color: var(--white);
}

.hero-cta .btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        align-items: center;
    }
}

.about-text p {
    margin-bottom: 1.25rem;
    color: var(--text-color);
    font-size: 1rem;
}

@media (min-width: 768px) {
    .about-text p {
        margin-bottom: 1.5rem;
        font-size: 1.05rem;
    }
}

.about-highlights {
    display: grid;
    grid-template-columns: 1fr;
    /* Stack on mobile */
    gap: 1rem;
}

@media (min-width: 480px) {
    .about-highlights {
        grid-template-columns: 1fr 1fr;
        /* 2 cols on tablet */
    }
}

.highlight-block {
    background: transparent;
    padding: 1.5rem 0;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    transition: transform var(--transition-speed) ease;
}

.highlight-block:last-child {
    border-bottom: none;
}

@media (min-width: 768px) {
    .highlight-block {
        padding: 2rem 1rem 2rem 0;
    }
}

.highlight-block:hover {
    transform: translateX(5px);
}

.highlight-title {
    display: block;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .highlight-title {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
}

.highlight-subtext {
    font-weight: 400;
    color: var(--light-text);
    font-size: 0.95rem;
    line-height: 1.5;
}

@media (min-width: 768px) {
    .highlight-subtext {
        font-size: 1rem;
    }
}

/* --- Advisory Section --- */
.advisory-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 600px) {
    .advisory-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
    }
}

.advisory-card {
    background: #fff;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .advisory-card {
        padding: 2.5rem;
    }
}

.advisory-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(15, 42, 68, 0.1);
    transform: translateY(-5px);
}

.card-icon {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

@media (min-width: 768px) {
    .card-icon {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }
}

.advisory-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
    .advisory-card h3 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
}

.advisory-card p {
    color: var(--light-text);
    font-size: 0.9rem;
}

@media (min-width: 768px) {
    .advisory-card p {
        font-size: 0.95rem;
    }
}

/* --- Experience Section --- */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 1rem 0;
}

/* Mobile Timeline: All on right of line (or standard list) */
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    /* Line on left for mobile */
    width: 2px;
    height: 100%;
    background: var(--border-color);
    transform: none;
}

@media (min-width: 768px) {
    .timeline::before {
        left: 50%;
        transform: translateX(-50%);
    }
}

.timeline-item {
    padding: 1rem 1rem 1rem 3rem;
    /* Indent for line */
    position: relative;
    width: 100%;
    text-align: left;
    box-sizing: border-box;
    left: 0;
}

@media (min-width: 768px) {
    .timeline-item {
        width: 50%;
        padding: 1rem 2rem;
    }

    .timeline-item:nth-child(odd) {
        left: 0;
        text-align: right;
    }

    .timeline-item:nth-child(even) {
        left: 50%;
        text-align: left;
    }
}

.timeline-dot {
    position: absolute;
    width: 14px;
    height: 14px;
    background: var(--primary-color);
    border-radius: 50%;
    top: 1.5rem;
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px var(--border-color);
    z-index: 2;
    left: 14px;
    /* Align with left line */
}

@media (min-width: 768px) {
    .timeline-dot {
        width: 16px;
        height: 16px;
        left: auto;
        /* Reset left */
    }

    .timeline-item:nth-child(odd) .timeline-dot {
        right: -8px;
    }

    .timeline-item:nth-child(even) .timeline-dot {
        left: -8px;
    }
}

.timeline-content h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

@media (min-width: 768px) {
    .timeline-content h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
}

.timeline-content p {
    font-size: 0.8rem;
    color: var(--light-text);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.timeline-content p:last-child {
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .timeline-content p {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
}

/* --- Insights Section --- */
.insights-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 600px) {
    .insights-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }
}

.blog-card {
    background: #fff;
    border-bottom: 2px solid transparent;
    transition: all var(--transition-speed) ease;
}

.blog-card:hover {
    border-bottom-color: var(--primary-color);
}

.card-content {
    padding: 1rem 0;
}

@media (min-width: 768px) {
    .card-content {
        padding: 1.5rem 0;
    }
}

.blog-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
    .blog-card h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
}

.blog-card .excerpt {
    color: var(--light-text);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

@media (min-width: 768px) {
    .blog-card .excerpt {
        margin-bottom: 1.5rem;
        font-size: 0.95rem;
    }
}

.read-more {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
}

@media (min-width: 768px) {
    .read-more {
        font-size: 0.9rem;
    }
}

.read-more:hover {
    text-decoration: underline;
}

/* --- Contact Section --- */
.contact-container {
    text-align: center;
    max-width: 800px;
}

.contact-intro {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    padding: 0 10px;
}

@media (min-width: 768px) {
    .contact-intro {
        font-size: 1.25rem;
        margin-bottom: 3rem;
    }
}

.contact-form {
    display: grid;
    gap: 1rem;
    text-align: left;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .contact-form {
        gap: 1.5rem;
        margin-bottom: 4rem;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color var(--transition-speed);
    width: 100%;
    /* Full width mobile */
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.submit-btn {
    width: 100%;
    margin-top: 1rem;
}

.social-links {
    margin-top: 2rem;
}

.linkedin-icon {
    color: var(--primary-color);
    transition: transform var(--transition-speed);
    display: inline-block;
}

.linkedin-icon:hover {
    transform: scale(1.1);
}

/* --- Footer --- */
footer {
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--light-text);
    font-size: 0.8rem;
}

@media (min-width: 768px) {
    footer {
        padding: 2rem 0;
        font-size: 0.9rem;
    }
}

/* --- Animations / Utilities --- */
.fade-in,
.fade-in-up,
.fade-in-left,
.fade-in-right {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in {
    transform: translateY(20px);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-up {
    transform: translateY(30px);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    transform: translateX(0);
}

/* Disable directional transitions on mobile for simplicity */
@media (min-width: 768px) {
    .fade-in-left {
        transform: translateX(-40px);
    }
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    transform: translateX(0);
}

/* Disable directional transitions on mobile for simplicity */
@media (min-width: 768px) {
    .fade-in-right {
        transform: translateX(40px);
    }
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}