/* ========================= 
   RESET & BASE 
   ========================= */ 
*, *::before, *::after { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
} 

:root { 
    --bg: #ffffff; 
    --text: #2d2d2d; 
    --primary: #111111; 
    --accent: #666666; 
    --font-heading: 'Outfit', sans-serif; 
    --font-body: 'Inter', sans-serif; 
} 

body { 
    font-family: var(--font-body); 
    background-color: var(--bg); 
    color: var(--text); 
    line-height: 1.8; 
    overflow-x: hidden; 
    -webkit-font-smoothing: antialiased; 
}
html, body {
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}
/* ========================= 
   FONTS
   ========================= */ 
/* inter-300 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  src: url('./fonts/inter-v20-latin/inter-v20-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* inter-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  src: url('./fonts/inter-v20-latin/inter-v20-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* outfit-300 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300;
  src: url('./fonts/outfit-v15-latin/outfit-v15-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* outfit-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400;
  src: url('./fonts/outfit-v15-latin/outfit-v15-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* outfit-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 500;
  src: url('./fonts/outfit-v15-latin/outfit-v15-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* outfit-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700;
  src: url('./fonts/outfit-v15-latin/outfit-v15-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* outfit-900 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 900;
  src: url('./fonts/outfit-v15-latin/outfit-v15-latin-900.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}


/* ========================= 
   SITE HEADER (Sticky/Blur)
   ========================= */ 
.site-header {
    /* Remove opacity: 0 and transform translateY */
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px;
    z-index: 1000;
    display: flex;
    align-items: center;
    
    /* Default State: Transparent background and no border */
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    border-bottom: 1px solid rgba(255, 255, 255, 0);
    
    /* Smooth transition for the background/blur only */
    transition: 0.5s ease, backdrop-filter 0.5s ease, border-bottom 0.4s ease;
}

/* When scrolling, we only add the background/blur */
.site-header.is-visible,
.site-header.menu-open { 
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
/* Desktop Header Layout */
.header-desktop { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 0 5%; 
    width: 100%;
    height: 100%;
}

/* Initial State: Hidden and shifted down */
.full {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
    width: 100%; /* Change from 100vw to 100% */
    margin-left: 0;
    margin-right: 0;
    position: relative;
    overflow: hidden;
}
/* Visible State: Triggered by JS */
.full.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Optional: Stagger the text inside the section */
.full.is-visible .section-text {
    opacity: 1;
    transition: opacity 1s ease 0.4s; /* Delays text slightly after image */
}

.header-desktop .nav-left, 
.header-desktop .nav-right, 
.header-desktop .header-logo-container { flex: 1; }

.header-desktop .header-logo-container { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
}

.header-desktop .header-logo-container img { 
    height: 35px; /* Hard height limit for logo */
    width: auto; 
    display: block;
}

/* Update these specific lines in your CSS */

.header-desktop .nav-left { 
    display: flex; 
    justify-content: flex-start; 
    gap: 1.5rem; /* This adds the missing space between links */
}

.header-desktop .nav-right { 
    display: flex; 
    justify-content: flex-end; 
    gap: 1.5rem; 
}
.header-desktop a { color: rgba(255, 255, 255, 0.75); text-decoration: none; font-weight: 900; font-size: 1rem; text-transform: uppercase; letter-spacing: 1.5px; transition: 0.3s; }
.header-desktop a:hover { color: #fff; }

/* --- Logo Initial State --- */
.header-logo-container img { 
    height: 35px; 
    width: auto; 
    display: block;
    /* NEW: Start invisible and set transition */
    opacity: 0; 
    transition: opacity 0.5s ease; 
}

/* --- Logo Fade-In State --- */
/* This triggers when the JS adds 'is-visible' to the header */
.site-header.is-visible .header-logo-container img,
.site-header.menu-open .header-logo-container img {
    opacity: 1;
}

/* --- Keep Links Always Visible --- */
/* Your current code for links is fine, but ensure they don't have 0 opacity */
.header-desktop a {
    color: rgba(255, 255, 255, 0.75);
    /* ... rest of your styling ... */
    opacity: 1; /* Ensure this stays 1 */
}

/* --- Mobile Specific Adjustment --- */
@media (max-width: 1024px) {
    .header-mobile .header-logo-container img { 
        height: 25px !important;
        opacity: 0; /* Also start hidden on mobile */
        transition: opacity 0.5s ease;
    }
}

/* Mobile Header Layout */
.header-mobile { display: none; width: 100%; }

@media (max-width: 1024px) {
    .header-desktop { display: none; }
    .header-mobile { display: block; padding: 0 5%; }
    .mobile-top-bar { 
        display: flex; 
        justify-content: center; 
        align-items: center; 
        height: 70px; 
        position: relative; 
    }
    .header-mobile .header-logo-container img { 
        height: 25px !important; /* Force smaller logo on mobile */
        width: auto; 
    }
    .burger-menu { 
        position: absolute; 
        right: 0; 
        display: flex; 
        flex-direction: column; 
        gap: 5px; 
        cursor: pointer;
    }
    .burger-menu span { width: 22px; height: 2px; background: white; transition: 0.3s; }
    .mobile-dropdown { 
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.95);
        display: none; 
        flex-direction: column; 
        padding: 2rem 0; 
        gap: 1.5rem; 
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .mobile-dropdown a { color: #fff; text-decoration: none; text-transform: uppercase; font-weight: 900; }
    .site-header.menu-open .mobile-dropdown { display: flex; }
    .site-header.menu-open .burger-menu span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .site-header.menu-open .burger-menu span:nth-child(2) { opacity: 0; }
    .site-header.menu-open .burger-menu span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ========================= 
   KONTAKT OVERLAY (3D Flip)
   ========================= */ 
#contact-overlay { position: fixed; inset: 0; background-color: rgba(0, 0, 0, 0.8); opacity: 0; visibility: hidden; transition: opacity 0.5s ease; z-index: 2000; }
#contact-overlay.active { opacity: 1; visibility: visible; }

#contact-box-wrapper { 
    position: absolute; 
    top: 50%; 
    left: 50%; 
    width: 500px; 
    aspect-ratio: 1.75 / 1; /* Standard business card ratio */
    transform-style: preserve-3d; 
    perspective: 1000px; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
}
#contact-box, #contact-box-back { 
    position: absolute; 
    width: 100%; 
    height: 100%; /* Force height to match the wrapper's aspect ratio */
    backface-visibility: hidden; 
    box-shadow: 0 15px 50px rgba(0,0,0,0.5); 
    border-radius: 4px; /* Slight rounding looks more premium */
}#contact-box { background-color: #111; color: white; }
#contact-box-back { 
    background-color: white; 
    color: black; 
    transform: rotateY(180deg); 
    padding: 2.5rem; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; /* Vertically centers the text block */
    align-items: flex-start; /* Keeps text left-aligned as per your design */
    gap: 0.5rem; /* Tighter gap between contact lines for a cleaner look */
}
#contact-box-wrapper.fly-in { animation: flyInBoxWrapper 1s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards; }
@keyframes flyInBoxWrapper {
    0% { transform: translate(-150%, 150%) rotate(-25deg) rotateY(0deg); }
    100% { transform: translate(-50%, -50%) rotate(0deg) rotateY(0deg); }
}

#contact-box-wrapper.flip { animation: flipCard 0.8s ease forwards; }
@keyframes flipCard {
    0% { transform: translate(-50%, -50%) rotateY(0deg); }
    100% { transform: translate(-50%, -50%) rotateY(180deg); }
}
/* Restrict the logo size on the front of the contact card */
.contact-logo {
    max-width: 60%;  /* Adjust this percentage to your liking */
    height: auto;
    display: block;
    object-fit: contain;
}

/* Ensure the black box container is centering the logo correctly */
#contact-box {
    background-color: #111;
    color: white;
    padding: 2rem; /* Adds a safety margin so the logo can't touch the edges */
    display: flex;
    justify-content: center;
    align-items: center;
}
/* ========================= 
   HERO 
   ========================= */ 
.hero { position: relative; width: 100%; height: 100vh; background: url("assets/header.jpg") center / cover no-repeat; display: flex; justify-content: center; align-items: flex-start; padding-top: 20em; }
.hero-logo { width: 83%; margin-top: -5%; filter: drop-shadow(0 0 15px rgba(0, 0, 0, 0.6)); }

/* ========================= 
   ANIMATED TEXT CENTERING FIX
   ========================= */ 

/* 1. Force the section to use the full viewport width */
#animation-text.section {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    min-height: 80vh;
    padding: 0;
    overflow: hidden; /* Prevents scrollbars if word briefly scales up */
}

/* 2. Increased max-width and added horizontal padding for long words */
#animation-text .section-text {
    flex: 0 0 100%; 
    max-width: 95%; /* Increased from 80% to give more room for long words */
    padding: 0 2.5%; /* Prevents letters from touching screen edges */
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* 3. Ensure the paragraph and span don't have side margins */
#animation-text .section-text p {
    width: 100%;
    max-width: none;
    margin: 0;
    display: flex;
    justify-content: center;
}

/* 4. Refined font-size clamp for German compound words */
#changing-word {
    display: inline-block;
    /* Lowered mid-value from 12vw to 8vw, and max from 8rem to 7rem */
    font-size: clamp(2rem, 8vw, 7rem); 
    font-weight: 900;
    line-height: 1.2;
    white-space: nowrap;
    
    /* Force word to stay within container if it still exceeds screen width */
    max-width: 100%; 
    
    transition: opacity 0.5s ease, transform 0.5s ease, color 0.5s ease;
}

/* ========================= 
   SECTIONS 
   ========================= */ 
/* --- 1. INITIAL STATES (Hidden) --- */

/* Hide the background image initially */
.full .section-image > img {
    opacity: 0;
    transition: opacity 1.5s ease;
}
.section-image::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%; /* Adjust height (e.g., 30% or 50%) of the gradient area */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none; /* Allows clicks to pass through to the image if needed */
    z-index: 5;
}

/* Ensure the text is on top of the gradient */
.section-text {
    position: relative;
    z-index: 15;
}
/* Hide the philosopher face initially */
.phil-mask img {
    opacity: 0 !important;
    transform: translateY(20px);
    /* The 2s delay is set here */
    transition: opacity 1.5s ease 2s, transform 1.5s ease 2s !important;
}

/* Hide the text initially */
.full .section-text {
    opacity: 0;
    transform: translateY(10px);
    /* The 2s delay is set here */
    transition: opacity 1.2s ease 2s, transform 1.2s ease 2s;
}


/* --- 2. ACTIVE STATES (Triggered by reveal.js) --- */

/* Reveal background image immediately */
.full.is-visible .section-image > img {
    opacity: 1;
}

/* Reveal philosopher face after 2 seconds */
.full.is-visible .phil-mask img {
    opacity: 1;
    transform: translateY(0);
}

/* Reveal text after 2 seconds */
.full.is-visible .section-text {
    opacity: 1;
    transform: translateY(0);
}
/* Ensure the section takes up the full browser width */
.full {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    position: relative;
    overflow: hidden;
}

/* Ensure the image container spans the full width */
.section-image {
    width: 100%;
    position: relative;
    /* Ensure no extra space at bottom */
    line-height: 0; 
}
.section-image img:first-child {
    width: 100%;
    height: auto;
    display: block;
}
/* Force the image to cover the full width */
.section-image img {
    width: 100%;
    height: auto;
    display: block; /* Removes unwanted bottom gaps */
    object-fit: cover; /* Ensures it looks good if you set a height */
}
/* ========================= 
   PHILOSOPHER MASK LOGIC
   ========================= */ 

.phil-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    overflow: hidden; 
}

.phil-mask img {
    position: absolute; 
    /* Reduced base width from 35% to 22% for a more natural look */
    width: 22%;         
    height: auto;
    display: block;
    
    opacity: 0 !important;
    transform: translateY(20px);
    transition: opacity 1.5s ease 2s, transform 1.5s ease 2s !important; 
}

.full.is-visible .phil-mask img {
    opacity: 1 !important;
    transform: translateY(0);
}

/* 4. INDIVIDUAL SCALING & POSITIONING */

#aristotle .phil-mask img {
    top: 12%;
    left: 50%; 
    width: 38%; /* Aristotle usually needs to be smaller to fit the chair/bg */
    transform: translateX(-50%)
}

#nietzsche .phil-mask img {
    top: 8%;  
    left: 62%; 
    width: 38%; 
}
#platon .phil-mask img {
    top: 6%;
    left: 50%;  
    width: 40%;
    transform: translateX(-50%)

}
#mic .phil-mask img {
    top: 12%;
    left: 8%;  
    width: 40%;
}

#muhlis .phil-mask img {
    top: 0%;   
    left: 55%;
    width: 40%; /* Kept Socrates larger as requested */
}
/* ========================= 
   PHILOSOPHER QUOTES (OVER IMAGES)
   ========================= */ 

.phil-text {
    position: absolute;
    bottom: 8%; /* Positions it near the bottom over the gradient */
    width: 100%;
    text-align: center;
    z-index: 20;
    padding: 0 10%;
    
    /* Initial state for animation */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.5s ease 2.5s, transform 1.5s ease 2.5s;
}

/* When the section becomes visible, animate the quote in */
.full.is-visible .phil-text {
    opacity: 1;
    transform: translateY(0);
}

.phil-text p {
    color: #fff;
    font-family: var(--font-heading);
    font-size: clamp(1rem, 2vw, 1.5rem); /* Responsive size similar to Platon */
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.4;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); /* Extra depth */
}
/* ========================= 
   FOOTER 
   ========================= */ 
.site-footer { 
    background: #e0e0e0; 
    border-top: 1px solid #ccc; 
    width: 100%;
    overflow: hidden; /* Prevent child elements from leaking out */
}
.footer-content { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    width: 100%;
    max-width: 100vw; /* Hard limit to viewport width */
}
.footer-image img { height: 300px; object-fit: cover; display: block; }
.footer-right { 
    display: flex; 
    flex-direction: column; 
    align-items: flex-end; 
    padding-right: 5%; 
    gap: 1rem; 
    flex-shrink: 1; /* Allows the right side to shrink if space is tight */
    min-width: 0;   /* Prevents flex items from defaulting to auto-width */
}
/* Ensure the email link doesn't wrap or push the box wide */
.footer-socials { 
    display: flex; 
    gap: 1.5rem; 
    flex-wrap: wrap; /* Allows links to wrap to a new line on smaller screens */
    justify-content: flex-end;
}
.footer-socials a { text-decoration: none; color: var(--primary); font-weight: 700; text-transform: uppercase; font-size: 0.85rem; }
.footer-copyright p { font-size: 0.8rem; font-weight: 900; text-transform: uppercase; letter-spacing: 2px; }

/* ========================= 
   HIGHLIGHT ANIMATIONS 
   ========================= */ 
.highlight {
    --marker-color: var(--highlight-color, #fbff00);
    background-image: linear-gradient(var(--marker-color), var(--marker-color));
    background-position: 0 85%;
    background-size: 0% 100%;
    background-repeat: no-repeat;
    
    /* Changed to inline-block ONLY for the pop animation to work */
    /* but we keep it relative to the flow */
    display: inline-block; 
    position: relative;
    transition: background-size 1.2s ease 3s, transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 2.6s;
}
.highlight.active { background-size: 100% 100%; } 
.highlight.pop.active { transform: scale(1.4); font-weight: 700; margin: 0 1.2rem; z-index: 50; border-radius: 2px; } 

.nav-left a img {
    height: 18px; /* Matches the text scale */
    width: auto;
    display: inline-block;
    vertical-align: middle; /* Aligns with text like "Presse" */
    filter: brightness(0) invert(1); /* Makes black PNGs white */
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
/* Update the general section text container */
.section-text {
    width: 100%;
    /* We remove the fixed pixel max-width and let the paragraph control the size */
    margin: 6rem auto; 
    padding: 0 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Specific styling for the paragraphs */
.section-text p {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.2rem, 2.5vw, 2.2rem); 
    font-weight: 300;
    line-height: 1.6;
    color: var(--text);
    max-width: 45ch; 
    margin: 0 auto;
    
    /* CHANGE THESE LINES: */
    overflow-wrap: normal; /* Prevents splitting words anywhere */
    hyphens: none;         /* Prevents the browser from adding dashes (-) */
}
#muhlis .section-text p img {
    height: 1.8em !important;
    width: auto !important;
    display: block;
    margin: 1rem auto 0 auto; 
    opacity: 1;

    /* THE FIX: Nudge the logo to the right */
    /* Adjust the 0.5ch (half-character width) up or down if needed */
    transform: translateX(1ch); 
}
/* 1. Container Positioning */
#muhlis .phil-text {
    bottom: auto;
    top: 60%;
    left: 15%;
    width: 45%;
    text-align: left;
    transform: translateY(-50%); /* Keeps container centered */
    z-index: 20;
    opacity: 1; /* Container is always "there", only children animate */
}

#muhlis .phil-text p {
    font-size: clamp(2rem, 5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.2; /* Changed from 1.1 to 1.2 for better spacing */
    text-transform: uppercase;
    color: #fff;
    margin: 0;
}

/* 3. Word Animation Logic */
#muhlis .phil-text .word {
    display: inline-block;
    vertical-align: baseline; /* Keeps words on a clean line */
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    margin-right: 0.25em; /* Adds natural spacing between words */
}

.full#muhlis.is-visible .phil-text .word {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Delays */
#muhlis .phil-text .word:nth-child(1) { transition-delay: 2.5s; }
#muhlis .phil-text .word:nth-child(2) { transition-delay: 2.7s; }
#muhlis .phil-text .word:nth-child(3) { transition-delay: 2.9s; }
#muhlis .phil-text .word:nth-child(4) { transition-delay: 3.1s; }
#muhlis .phil-text .word:nth-child(5) { transition-delay: 3.3s; }
#muhlis .phil-text .word:nth-child(6) { transition-delay: 3.5s; }

/* 4. Philosopher Name Style & Animation */
#muhlis .philosopher-name {
    display: block;
    font-size: 1.2rem; 
    font-weight: 500;
    letter-spacing: 4px;
    margin-top: 20px;
    opacity: 0;
    transition: opacity 1s ease 4.2s;
}

.full#muhlis.is-visible .philosopher-name {
    opacity: 0.8;
}
/* ========================= 
   MOBILE (Up to 1024px) 
   ========================= */ 
@media (max-width: 1024px) { 

#contact-box-wrapper { 
        width: 90%; 
        max-width: 400px;
        aspect-ratio: 1.6 / 1; /* Slightly taller for mobile readability */
        margin: 0 auto; 
    }
    #contact-box-back {
        padding: 1.5rem;
    }
.hero-logo {
    filter: none;
    margin-top: -30%;
    filter: brightness(0.2);
}
    .footer-content { flex-direction: column; }
    .footer-image img { height: auto; width: 100%; }
    .footer-right { align-items: center; padding: 2rem 0; }
    .phil-text {
        bottom: 5%;
        padding: 0 5%;
    }
    .phil-text p {
        font-size: 1.3rem;
        letter-spacing: 1px;
    }
    /* 1. Container: Align left and pull slightly away from the edge */
    #muhlis .phil-text {
        left: 10%;           /* Pulls text slightly more to the center-left */
        width: 40%;          /* Prevents text from hitting the right edge */
        text-align: left;    /* Forces left alignment */
        top: 70%; 
        transform: translateY(-50%);
    }
    
    /* 2. Text: Reduce the size and fix line height */
    #muhlis .phil-text p {
        line-height: 1 !important; 
        /* Smaller scale: Min 1.4rem, mid 7vw, max 2.2rem */
        font-size: clamp(1.4rem, 7vw, 2.2rem); 
        text-align: left;    /* Ensures the paragraph itself aligns left */
    }

    /* 3. Words: Ensure they flow naturally with the left alignment */
    #muhlis .word {
        display: inline-block;
        font-size: inherit;
        line-height: inherit;
        margin-right: 0.2em; /* Adds a clean gap between the words */
    }

    /* 4. Name: Match the left alignment */
    #muhlis .philosopher-name {
        margin-top: 15px;
        text-align: left;    /* Changed from center to left */
        font-size: 0.75rem;  /* Slightly smaller name to match smaller quote */
        transition: opacity 1s ease 4.2s;

    }

    #animation-text.section {
        min-height: 40vh; /* Reduced from 80vh */
        margin-top: 2rem;
        margin-bottom: 2rem;
    }
    .phil-text p{
        font-size: 0.8rem;
        font-weight: 500;
    }
    #mic .phil-text p{
        font-size: 0.6rem;
    }
}




