/* Reset & Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;700&family=Cormorant+Garamond:wght@300;400;500;700&family=Noto+Sans+TC:wght@400;500;700&family=Noto+Serif+TC:wght@400;700&display=swap');

:root {
    /* Fonts */
    --font-serif: 'Caveat', 'Noto Serif TC', serif; /* For headings and emphasized text */
    --font-sans: 'Cormorant Garamond', 'Noto Sans TC', serif; /* For body text */

    /* Colors */
    --color-bg-light: #fdfbf7; /* Very light, warm base */
    --color-text-dark: #4a4a4a; /* Main dark text */
    --color-text-medium: #6b5e55; /* Medium warm grey */
    --color-text-light: #8c7b70; /* Lighter warm grey */
    --color-primary-dark: #5a4638; /* Dark earthy brown */
    --color-primary-accent: #8c5e58; /* Muted reddish brown */
    --color-accent-light: #dcbfa3; /* Light, warm accent (like dried mud) */
    --color-accent-light-2: #e6dccb; /* Very light tan */
    --color-sage-green: #c1cfc0; /* Soft sage green */
    --color-pink-ish: #e0cda5; /* Dusty pinkish yellow */

    /* Shadows */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px 0 rgba(0, 0, 0, 0.02);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.01);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.005);
}

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

body {
    font-family: var(--font-sans);
    line-height: 1.7;
    color: var(--color-text-dark);
    background-color: var(--color-bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    text-align: center;
}

.container {
    width: 90%;
    max-width: 1280px; /* Slightly wider for more content */
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

section {
    padding-top: 6rem;
    padding-bottom: 6rem;
    position: relative;
    z-index: 10;
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-serif);
    color: var(--color-primary-dark);
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-title {
    font-size: 3.5rem; /* md:text-4xl from React component */
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
    color: var(--color-primary-dark);
}

.section-title::after {
    content: '';
    display: block;
    width: 3rem;
    height: 3px;
    background-color: var(--color-accent-light);
    margin: 0.5rem auto 0;
    border-radius: 9999px;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-light);
    font-weight: 400;
    margin-bottom: 3rem;
    letter-spacing: 0.05em;
    font-size: 1.1rem;
}

p.paragraph-text {
    color: var(--color-text-medium);
    font-weight: 400;
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    max-width: 48rem; /* Constrain line length */
    margin-left: auto;
    margin-right: auto;
}

.training-background-section .paragraph-text,
.music-training-section .paragraph-text {
    text-align: left;
}

b {
    color: var(--color-primary-dark);
    font-weight: 700;
}

a {
    color: var(--color-primary-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-primary-dark);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
    font-family: var(--font-sans); /* Ensure buttons use body font */
}

.primary-btn {
    background-color: var(--color-primary-dark); /* Dark background */
    color: white; /* White text */
}

.primary-btn:hover {
    background-color: #4a392e; /* A slightly darker shade for hover */
    color: white; /* Ensure text stays white */
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
}

/* Navbar */
.main-navbar {
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 1.5rem 0; /* Default padding */
}

.main-navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0; /* Smaller padding when scrolled */
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wrapper .logo {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    letter-spacing: 0.05em;
}

.main-nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav-list a {
    color: var(--color-text-medium);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 0.25rem;
    font-size: 1.1rem;
}

.main-nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: var(--color-primary-accent);
    transition: width 0.3s ease;
}

.main-nav-list a:hover,
.main-nav-list a.active {
    color: var(--color-primary-accent);
}

.main-nav-list a:hover::after,
.main-nav-list a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none; /* Hidden on larger screens */
    background: none;
    border: none;
    color: var(--color-primary-dark);
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-overlay.open {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-overlay .close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--color-primary-dark);
    font-size: 2rem;
    cursor: pointer;
}

.mobile-nav-overlay ul {
    list-style: none;
    text-align: center;
}

.mobile-nav-overlay li {
    margin-bottom: 1.5rem;
}

.mobile-nav-overlay a {
    font-size: 1.8rem;
    color: var(--color-primary-dark);
    font-weight: 700;
}

.mobile-nav-overlay a:hover {
    color: var(--color-primary-accent);
}


/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden; /* For watercolor blobs */
    padding-top: 8rem; /* Space for fixed navbar */
}

.hero-content-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4rem;
    text-align: left;
    position: relative;
    z-index: 20; /* Ensure content is above watercolor */
}

.hero-text {
    flex: 1;
}

.hero-subtitle {
    font-family: var(--font-serif);
    font-style: normal;
    color: var(--color-primary-accent);
    margin-bottom: 1rem;
    font-size: 2.2rem;
    font-weight: 700;
}

.hero-title {
    font-size: 4.5rem; /* Specific user request */
    margin-bottom: 2rem;
    color: var(--color-primary-dark);
    letter-spacing: 0.05em; /* Specific user request */
    font-weight: 700;
    line-height: 1.2; /* Specific user request */
}

.hero-description {
    font-size: 1.3rem;
    color: var(--color-text-medium);
    font-weight: 400;
    line-height: 1.7;
    max-width: 32rem; /* max-w-2xl */
    margin-bottom: 2.5rem;
}

.hero-image-wrapper {
    flex: 1;
    text-align: center;
    position: relative;
}

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background-color: var(--color-accent-light-2);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.6;
    filter: blur(30px);
}

.profile-image {
    max-width: 100%;
    height: auto;
    border-radius: 1.5rem; /* Retained adjustment */
    border: 4px solid white; /* Retained adjustment */
    box-shadow: var(--shadow-xl);
    display: block; /* Remove extra space below image */
    margin: 0 auto;
}

/* Watercolor Background Simulation */
.watercolor-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
    background-color: var(--color-bg-light); /* Base background color */
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px); /* Simulate blend/blur */
    opacity: 0.6;
    animation: pulse 8s infinite alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background-color: var(--color-accent-light-2); /* e6dccb */
    animation-duration: 8s;
}

.blob-2 {
    top: 20%;
    right: -10%;
    width: 40vw;
    height: 40vw;
    background-color: var(--color-accent-light); /* dcbfa3 */
    opacity: 0.5;
    animation-duration: 10s;
    animation-delay: 1s;
}

.blob-3 {
    bottom: -10%;
    left: 20%;
    width: 45vw;
    height: 45vw;
    background-color: var(--color-sage-green); /* c1cfc0 */
    opacity: 0.5;
    animation-duration: 12s;
    animation-delay: 2s;
}

@keyframes pulse {
    0% { transform: scale(1) translate(0, 0); }
    50% { transform: scale(1.05) translate(10px, 10px); }
    100% { transform: scale(1) translate(0, 0); }
}


/* Placeholder Section */
.placeholder-section {
    padding: 8rem 0;
    text-align: center;
}

/* What is MT Section */
.what-is-mt-section {
    background-color: var(--color-bg-light);
    padding: 6rem 0;
}

.centered-text {
    text-align: center;
    max-width: 48rem; /* Constrain line length */
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

.text-align-right {
    text-align: right;
    max-width: 48rem; /* Keep consistent width with centered-text */
    margin: 0 auto; /* To align within container if max-width is set */
    font-size: 0.95rem; /* Slightly smaller for attribution */
    color: var(--color-text-light);
    margin-top: 0.5rem;
}

/* About Section */
.about-section {
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    margin-bottom: 4rem;
    border-radius: 1.5rem;
    padding: 3rem 0;
}

.about-text-content {
    text-align: left;
}

.about-content-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: center;
    background-color: white; /* Inner white background */
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.about-image-wrapper {
    position: relative;
}

.about-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 1.5rem; /* Adjusted for consistency */
    object-fit: cover;
    box-shadow: var(--shadow-lg);
    opacity: 0.95;
    transition: transform 0.7s ease;
}

.about-image-wrapper:hover .about-image {
    transform: scale(1.03);
}


.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.tag {
    background-color: #f4f1ea;
    color: var(--color-primary-accent);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.025em;
    font-family: var(--font-sans);
}

/* Expertise Section */
.expertise-section {
    background-color: var(--color-bg-light);
    padding: 6rem 0; /* Add padding here for consistency with other sections */
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.expertise-card {
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    text-align: center; /* Center align all content */
}

.expertise-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.expertise-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--color-primary-dark);
    font-weight: 700;
}

.expertise-card p {
    font-size: 0.9rem;
    color: var(--color-text-medium);
    margin-bottom: 1rem;
    font-weight: 300;
}

.icon-wrapper {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto; /* Center the icon wrapper */
    transition: transform 0.3s ease;
}

.expertise-card:hover .icon-wrapper {
    transform: scale(1.1);
}

.icon-wrapper svg {
    width: 1.75rem;
    height: 1.75rem;
    stroke-width: 2px;
}

.bg-medical { background-color: #e8f0fe; color: #5a7b9c; }
.bg-education { background-color: #fdf2f2; color: #c47e76; }
.bg-arts { background-color: #fcf7e6; color: #bba55d; }

.bullet-list {
    list-style: disc;
    padding-left: 0; /* Remove default padding */
    font-size: 0.85rem;
    color: var(--color-text-light);
    line-height: 1.6;
    font-weight: 300;
    text-align: left; /* Keep list text left-aligned */
    display: inline-block; /* Allow the block to be centered */
}


/* Projects Section */
.projects-section-main {
    background-color: var(--color-bg-light);
    padding-bottom: 8rem;
    position: relative;
}
.projects-section-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f8f5f0;
    transform: skewY(2deg);
    transform-origin: top left;
    z-index: -1;
}

.project-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.project-item {
    display: flex;
    background-color: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.project-item:hover {
    box-shadow: var(--shadow-lg);
}

.project-item.reverse {
    flex-direction: row-reverse;
}

.project-image-wrapper {
    flex: 1;
    position: relative;
    min-height: 15rem;
}

.project-image-item {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s ease;
}

.project-item:hover .project-image-item {
    transform: scale(1.05);
}

.project-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(140, 94, 88, 0.2);
    mix-blend-mode: overlay;
}

.project-item.reverse .project-image-wrapper::after {
    background-color: rgba(193, 207, 192, 0.3);
}

.project-item:nth-child(3) .project-image-wrapper::after {
    background-color: rgba(220, 191, 163, 0.3);
}


.project-text-content {
    flex: 1;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.project-category {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-primary-accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-family: var(--font-sans);
    margin-bottom: 0.5rem;
}

.project-text-content h3 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.project-text-content p {
    font-size: 1.05rem;
    color: var(--color-text-medium);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.read-more-link {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    color: var(--color-primary-accent);
}

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

.read-more-link svg {
    margin-left: 0.5rem;
    width: 1rem;
    height: 1rem;
}

/* Contact Section */
.contact-section-main {
    padding-top: 8rem;
    padding-bottom: 8rem;
    background-color: var(--color-bg-light);
}

.contact-info {
    text-align: left;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    border-radius: 1.5rem;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-accent-light-2);
}

.contact-info .section-title,
.contact-info .section-subtitle {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}
.contact-info .section-title::after {
    margin-left: 0;
}

.contact-details {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--color-text-medium);
    font-size: 1.1rem;
}

.detail-item svg, .detail-item .icon-text {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 1rem;
    color: var(--color-primary-accent);
}

.icon-text {
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    font-family: var(--font-sans);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: #f4f1ea;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary-dark);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--color-primary-accent);
    color: white;
    transform: translateY(-2px);
}

.social-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.contact-form .form-group {
    margin-bottom: 1.25rem;
}

.contact-form label {
    display: block;
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
    font-weight: 700;
    text-align: left;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 0.5rem;
    background-color: #fcfbf9;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--color-text-dark);
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary-accent);
    box-shadow: 0 0 0 3px rgba(140, 94, 88, 0.2);
}

.contact-form textarea {
    resize: vertical;
}

.submit-btn {
    width: 100%;
    background-color: var(--color-primary-dark);
    color: white;
    font-weight: 700;
    padding: 0.8rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-md);
}

.submit-btn:hover {
    background-color: #4a392e; /* slightly darker primary dark */
    box-shadow: var(--shadow-lg);
    transform: translateY(-1px);
}


/* Footer Alt (from the React component style) */
.main-footer-alt {
    background-color: var(--color-primary-dark);
    color: var(--color-accent-light);
    padding: 2.5rem 0;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 400;
}


.footer-tagline {
    color: var(--color-text-light);
    margin-top: 0.5rem;
}

/* Interviews Section */
.interviews-section {
    background-color: #f8f5f0; /* A slightly different warm background */
    padding: 5rem 0; /* Reduced padding */
}

.interview-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem; /* A bit more gap for a grid */
    max-width: 64rem; /* Widen the container to fit two columns comfortably */
    margin: 0 auto;
}

.interview-item {
    background-color: var(--color-bg-light);
    border-radius: 0.75rem;
    padding: 1.25rem 1.75rem; /* Reduced padding */
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-accent-light-2);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.interview-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.interview-details {
    text-align: left;
}

.interview-publication {
    font-size: 0.8rem; /* Reduced font size */
    font-weight: 700;
    color: var(--color-primary-accent);
    margin-bottom: 0.25rem;
    font-family: var(--font-sans);
}

.interview-title {
    font-family: var(--font-serif);
    font-size: 1.3rem; /* Reduced font size */
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: 0.25rem;
}

.interview-date {
    font-size: 0.8rem; /* Reduced font size */
    color: var(--color-text-light);
}

.read-more-btn {
    background-color: transparent;
    border: 1px solid var(--color-accent-light);
    color: var(--color-primary-accent);
    padding: 0.4rem 1rem; /* Reduced padding */
    font-weight: 500;
    font-size: 0.9rem; /* Reduced font size */
    white-space: nowrap; /* Prevent button text from wrapping */
}

.read-more-btn:hover {
    background-color: var(--color-accent-light);
    color: var(--color-primary-dark);
}

/* Speaking Engagements Section */
.speaking-engagements-section {
    background-color: #f8f5f0; /* Match interviews section background */
    padding: 5rem 0; /* Reduced padding */
}

.engagements-by-year {
    max-width: 64rem; /* 1024px */
    margin: 0 auto;
    text-align: left;
}

.year-group {
    margin-bottom: 2.5rem; /* Reduced margin */
}

.year-group:last-child {
    margin-bottom: 0;
}

.year-heading {
    font-family: var(--font-serif);
    font-size: 1.8rem; /* Reduced font size */
    color: var(--color-primary-dark);
    margin-bottom: 1.25rem; /* Reduced margin */
    padding-bottom: 0.5rem; /* Reduced padding */
    border-bottom: 2px solid var(--color-accent-light);
    display: inline-block;
}

.engagements-by-year ul {
    list-style: none;
    padding-left: 0;
    columns: 3; /* Using 3 columns */
    column-gap: 2rem; /* Reduced gap */
}

.engagements-by-year li {
    margin-bottom: 0.5rem; /* Reduced margin */
    color: var(--color-text-medium);
    font-size: 1rem; /* Reduced font size */
    break-inside: avoid-column;
    padding: 0.4rem; /* Reduced padding */
    border-radius: 0.25rem;
    transition: background-color 0.2s ease;
}

.engagements-by-year li:hover {
    background-color: var(--color-accent-light-2);
}



/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 2.5rem;
    }
    .hero-text {
        order: 2; /* Text below image on smaller screens */
    }
    .hero-image-wrapper {
        order: 1;
    }
    .hero-title {
        font-size: 3.5rem;
    }
    .hero-description {
        font-size: 1.1rem;
    }

    .about-content-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .about-image-wrapper {
        order: 1;
    }
    .about-text-content {
        order: 2;
        text-align: center;
    }
    .about-text-content .section-title::after {
        margin: 0.5rem auto 0;
    }
    .tag-list {
        justify-content: center;
    }

    .projects-section-main::before {
        transform: skewY(1deg); /* Less skew on smaller screens */
    }

    .project-item, .project-item.reverse {
        flex-direction: column;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .contact-info .section-title,
    .contact-info .section-subtitle {
        text-align: center;
    }
    .contact-info .section-title::after {
        margin: 0.5rem auto 0;
    }
    .contact-details, .social-links {
        justify-content: center;
        text-align: center;
    }
    .detail-item {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .interview-list {
        grid-template-columns: 1fr;
    }

    .main-navbar .nav-links {
        position: relative;
    }
    .main-navbar .main-nav-list {
        display: none; /* Hide desktop nav */
    }
    .main-navbar .menu-toggle {
        display: block; /* Show mobile menu icon */
    }

    .hero-title {
        font-size: 2.8rem;
    }
    .hero-description {
        font-size: 1rem;
    }
    .section-title {
        font-size: 2rem;
    }

    .expertise-grid {
        grid-template-columns: 1fr;
    }

    .project-text-content {
        padding: 2rem;
    }
    .project-text-content h3 {
        font-size: 1.3rem;
    }
    .project-image-wrapper {
        min-height: 12rem;
    }
    .contact-grid {
        padding: 2rem;
    }
    .contact-info .section-title,
    .contact-info .section-subtitle {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .main-navbar.scrolled {
        padding: 0.75rem 0;
    }
    .main-navbar .logo-wrapper .logo {
        font-size: 1.1rem;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-description {
        font-size: 0.95rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    .about-content-grid, .contact-grid {
        padding: 1.5rem;
        gap: 2rem;
    }
    .project-text-content {
        padding: 1.5rem;
    }
    .project-text-content h3 {
        font-size: 1.1rem;
    }
    .project-category {
        font-size: 0.7rem;
    }
    .contact-form input, .contact-form textarea {
        padding: 0.6rem 0.8rem;
    }
}