/* Landing Page Styles */

:root {
    --bg-color: #050505;
    --text-color: #f0f0f0;
    --accent-color: #ff3b30;
    /* Vibrant Red for emphasis */
    --secondary-text: #888;
    --border-color: rgba(255, 255, 255, 0.1);
    /* Subtler border */

    --container-width: 1400px;
    /* Wider for editorial feel */
    --section-spacing: 160px;
    /* More breathing room */

    --bg-paper-yellow: #ffce00;
    /* User requested specific yellow color */
    --text-color-dark: #222;
    /* Dark text for light background */
}

/* Theme Transitions */
.theme-transition-wrapper {
    background-color: var(--bg-paper-yellow);
    position: relative;
    z-index: 10;
    margin-top: -60px;
    padding-top: 120px;
    border-radius: 40px 40px 0 0;
    box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.3);
    padding-bottom: 120px;
    margin-bottom: -1px;
    /* Fix potential pixel gap */
    overflow: hidden;
    /* Ensure big images don't scroll horizontally */
}

.light-theme {
    background-color: var(--bg-paper-yellow);
    color: var(--text-color-dark);
}

.light-theme h3.section-title,
.light-theme p,
.light-theme li {
    color: var(--text-color-dark);
    border-color: rgba(0, 0, 0, 0.1);
    /* Softer border for light theme */
}

.light-theme .btn-primary {
    background-color: var(--text-color-dark);
    color: var(--bg-paper-yellow);
}

.light-theme .btn-primary:hover {
    background-color: transparent;
    color: var(--text-color-dark);
    border-color: var(--text-color-dark);
}

.light-theme .btn-secondary {
    color: #666;
}

.light-theme .btn-secondary:hover {
    color: var(--text-color-dark);
}

/* Artistic Images */
.artistic-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    /* Above border (z-1) but below content (z-10) */
    overflow: hidden;
}

.art-img {
    position: absolute;
    opacity: 1;
    filter: none;
    transition: transform 0.5s ease;
}

.art-img:hover {
    transform: scale(1.02);
}

/* Specific Image Placements (Adjust top/left percentages based on layout) */
.img-float-1 {
    top: 15%;
    /* Moved down to avoid header text */
    right: -2%;
    /* Less aggressive right overlap */
    width: 32vw;
    /* Reduced from 36vw to prevent cấn chữ */
    transform: rotate(15deg);
    opacity: 1;
    mix-blend-mode: normal;
    /* Show clearly */
}

.img-float-2 {
    bottom: -5%;
    /* Pushed further down */
    left: -5%;
    /* Pushed further left */
    width: 30vw;
    /* Scaled 120% from 25vw */
    transform: rotate(-25deg);
    /* More aggressive angle */
    mix-blend-mode: normal;
    /* Show clearly */
    opacity: 1;
}

.img-float-3 {
    top: 35%;
    left: -2%;
    /* Only slightly cropped on the left edge */
    width: 32vw;
    /* Scaled up significantly, well over 120% of original */
    transform: rotate(5deg);
    opacity: 1;
}

/* Wall & Sign Artistic Cutout */
.img-wall-sign {
    position: absolute;
    bottom: 50px;
    /* Position in the footer void */
    left: 10%;
    /* Center-left alignment */
    width: 35vw;
    max-width: 600px;
    transform: rotate(-2deg);
    opacity: 1;
    mix-blend-mode: normal;
    /* Show clearly */
    /* Soft edges mask can stay or be removed if user wants full clarity. Keeping mask for shape integration but removing color filters. */
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
    filter: none;
    z-index: 1;
    /* Slightly above background layer */
}


body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    line-height: 1.7;
    /* Increased for editorial feel */
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

/* Typography Overrides */
h1.hero-title {
    margin-bottom: 40px;
    display: flex;
    justify-content: flex-start;
}

.hero-logo {
    width: 52vw;
    /* Scaled down 80% from 65vw */
    max-width: 720px;
    /* Scaled down 80% from 900px */
    height: auto;
    display: block;
}

h2.tagline {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 300;
    color: var(--text-color);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.frame-number {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--secondary-text);
    display: block;
    margin-bottom: 20px;
}

/* Sections General */
.frame-section {
    padding: var(--section-spacing) 0;
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: auto;
    /* Allow children to escape base stacking context */
}

/* Elevate section content above artistic images */
.frame-section>* {
    position: relative;
    z-index: 10;
}

/* Frame Header positioning */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 80px;
    /* Default margin for regular sections */
}

h3.section-title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--secondary-text);
    margin: 0;
    padding: 0;
    border: none;
}

p.lead {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    font-weight: 300;
    max-width: 800px;
    margin-bottom: 40px;
}

.hero-description {
    font-size: 1.2rem;
    max-width: 400px;
    color: var(--secondary-text);
    margin-bottom: 60px;
}

.hero-caption {
    position: absolute;
    bottom: 40px;
    right: 40px;
    font-size: 0.9rem;
    color: var(--secondary-text);
    font-family: var(--font-serif);
    font-style: italic;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 20px 40px;
    border: 1px solid var(--border-color);
    font-family: var(--font-display);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.1em;
    margin-right: 20px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--text-color);
    color: var(--bg-color);
}

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

.btn-primary:hover {
    background: var(--accent-color);
    color: var(--text-color);
    border-color: var(--accent-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--secondary-text);
    border: none;
    padding-left: 0;
}

/* Yellow Theme Button */
.btn-yellow {
    background-color: transparent;
    color: var(--bg-paper-yellow);
    border-color: var(--bg-paper-yellow);
}

.btn-yellow:hover {
    background-color: var(--bg-paper-yellow);
    color: var(--bg-color);
    /* Dark text on hover */
}

/* Yellow Text Accent */
.text-accent-yellow {
    color: #f5ec4e;
}

@keyframes blinkAccent {

    0%,
    100% {
        color: var(--text-color);
    }

    50% {
        color: #f5ec4e;
    }
}

.blink-anim {
    animation: blinkAccent 2s infinite ease-in-out;
}

.btn-secondary:hover {
    color: var(--text-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-bottom: 0;
    /* Remove bottom border, use top borders instead */
    padding-top: 100px;
}

/* About & Editorial Grid */
.editorial-layout {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 40px;
}

.about-text {
    grid-column: 4 / 12;
    /* Wider, offset left for modern feel */
    font-size: 1.2rem;
    line-height: 1.7;
    /* Match body line-height */
    color: var(--secondary-text);
}

.lead-paragraph {
    font-size: 2rem;
    line-height: 1.4;
    margin-bottom: 50px;
    font-family: var(--font-display);
    font-weight: 300;
    color: var(--text-color);
    letter-spacing: normal;
}

/* Research Focus - Masonry */
.research-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 60px;
}

.research-item {
    border-left: 1px solid var(--border-color);
    padding: 0 40px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.research-item.offset-top {
    margin-top: 120px;
    /* Create staggered/masonry effect */
}

.item-icon {
    display: block;
    margin-bottom: 20px;
}

.research-item h4 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-color);
    font-weight: 400;
}

.research-item p {
    color: var(--secondary-text);
    font-size: 1.2rem;
    /* Normalize with .about-text */
    line-height: 1.7;
}

/* Framework */
.framework-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.framework-list li {
    font-size: clamp(2rem, 4vw, 3.5rem);
    border-bottom: 1px solid var(--border-color);
    padding: 30px 0;
    color: var(--text-color-dark);
    /* Dark grey/black for contrast on yellow */
    font-family: var(--font-display);
    font-weight: 300;
    transition: all 0.4s ease;
    cursor: default;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
}

.framework-list .list-num {
    font-size: 1.2rem;
    font-weight: 400;
    font-family: var(--font-display);
    margin-right: 40px;
    opacity: 0.3;
    transition: inherit;
}

.framework-list li:hover {
    color: #000000;
    /* Pure black elegant hover effect */
    padding-left: 20px;
}

.framework-list li:hover .list-num {
    opacity: 1;
}

.footer-center-mark {
    display: flex;
    justify-content: center;
    align-items: center;
    /* Centered in the middle column */
}

.footer-mark-logo {
    height: 120px;
    /* Scaled 200% from 60px */
    width: auto;
    opacity: 1;
    /* Full opacity */
    filter: none;
    /* Show original colors/brightness */
}

/* Community */
.community-content {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.community-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 60px 0;
}

.community-list li {
    font-size: 1.1rem;
    color: #555555;
    padding: 15px 30px;
    border: 1px solid #555555;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.community-list li:hover {
    background: #000000;
    color: var(--bg-paper-yellow);
    border-color: #000000;
}

.cta-subtext {
    display: block;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #555555;
    /* Darker grey for better contrast on yellow */
    font-family: var(--font-serif);
    font-style: italic;
}

/* Footer */
footer {
    padding: 80px 0;
    display: grid;
    /* Use grid for precise 3-column layout */
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    /* Center vertically */
}

/* Override .section-header margin within footer */
footer .section-header {
    margin-bottom: 0;
    justify-content: flex-start;
}

.footer-meta {
    font-size: 0.9rem;
    color: var(--secondary-text);
    margin-top: 10px;
}

.footer-contact {
    /* Match .section-title style */
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    justify-content: flex-end;
    /* Push to right */
    text-align: right;
    color: var(--text-color-dark);
    /* Changed from secondary-text to text-color-dark for black color */
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Responsive */
@media (max-width: 1024px) {
    .editorial-layout {
        display: block;
    }

    .about-text {
        width: 100%;
        max-width: 100%;
    }

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

    .research-item {
        border-left: 0;
        border-top: 1px solid var(--border-color);
        padding: 40px 0;
        min-height: auto;
    }

    .research-item.offset-top {
        margin-top: 0;
    }

    .container {
        padding: 0 20px;
    }

    h1.hero-title {
        margin-top: 60px;
    }
}