/* History Page Specific Styles */

/* History Hero Section */
.history-hero {
    padding: 60px 20px;
    text-align: center;
    background: radial-gradient(ellipse at center, var(--cream) 0%, var(--dark-cream) 100%);
    position: relative;
}

.history-hero-content {
    max-width: 1000px;
    margin: 0 auto;
}

.history-title {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: 6px;
    margin-bottom: 10px;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    animation: historyTitleSlide 1.5s ease;
    font-family: 'Oswald', sans-serif;
}

@keyframes historyTitleSlide {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.history-subtitle {
    font-size: 1.5rem;
    color: var(--secondary-color);
    font-style: italic;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.history-intro {
    max-width: 800px;
    margin: 0 auto;
}

.history-lead {
    font-size: 1.2rem;
    line-height: 1.8;
    padding: 25px;
    background: white;
    border-left: 4px solid var(--accent-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Timeline Section */
.timeline-section {
    padding: 60px 20px;
    background: linear-gradient(135deg, #2a2a2a 0%, var(--primary-color) 100%);
    color: var(--cream);
}

.timeline-section .section-header h2 {
    color: var(--cream);
}

.timeline-container {
    max-width: 1000px;
    margin: 50px auto;
    position: relative;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent-color);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 45%;
    margin-bottom: 50px;
    opacity: 0;
    transition: all 0.6s ease;
}

.timeline-item.animate-visible {
    opacity: 1;
}

.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.left.animate-visible {
    animation: slideFromLeft 0.6s ease forwards;
}

.timeline-item.right {
    left: 55%;
    text-align: left;
}

.timeline-item.right.animate-visible {
    animation: slideFromRight 0.6s ease forwards;
}

@keyframes slideFromLeft {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideFromRight {
    from {
        transform: translateX(50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.timeline-content {
    padding: 20px;
    background: rgba(0,0,0,0.3);
    border: 2px solid var(--accent-color);
    position: relative;
}

.timeline-content h3 {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 10px;
    font-family: 'Oswald', sans-serif;
}

.timeline-content h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--cream);
}

.timeline-dot {
    position: absolute;
    top: 20px;
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    z-index: 1;
}

.timeline-item.left .timeline-dot {
    right: -62px;
}

.timeline-item.right .timeline-dot {
    left: -62px;
}

/* Founder Section */
.founder-section {
    padding: 60px 20px;
    background: var(--cream);
}

.founder-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: center;
}

.founder-image {
    position: relative;
}

.founder-image img {
    width: 100%;
    height: auto;
    border: 10px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.founder-placeholder {
    padding: 100px 20px;
    background: linear-gradient(45deg, #f0f0f0 25%, #e0e0e0 25%, #e0e0e0 50%, #f0f0f0 50%, #f0f0f0 75%, #e0e0e0 75%);
    background-size: 20px 20px;
    text-align: center;
    border: 10px solid var(--primary-color);
}

.founder-bio h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.founder-bio p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--text-dark);
}

.ford-quote {
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(135deg, white 0%, var(--dark-cream) 100%);
    border-left: 4px solid var(--accent-color);
    position: relative;
}

.ford-quote p {
    font-size: 1.4rem;
    font-style: italic;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.ford-quote cite {
    display: block;
    text-align: right;
    color: var(--secondary-color);
    font-weight: 600;
}

/* Innovation Section */
.innovation-section {
    padding: 60px 20px;
    background: var(--dark-cream);
}

.innovation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.innovation-card {
    background: white;
    padding: 30px;
    text-align: center;
    border: 3px solid var(--secondary-color);
    transition: all 0.3s ease;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
}

.innovation-card.animate-visible {
    animation: fadeInUp 0.6s ease forwards;
}

.innovation-card:nth-child(1).animate-visible { animation-delay: 0.1s; }
.innovation-card:nth-child(2).animate-visible { animation-delay: 0.2s; }
.innovation-card:nth-child(3).animate-visible { animation-delay: 0.3s; }
.innovation-card:nth-child(4).animate-visible { animation-delay: 0.4s; }

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

.innovation-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

.innovation-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.innovation-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

/* Legacy Section */
.legacy-section {
    padding: 60px 20px;
    background: white;
}

.legacy-content {
    max-width: 1200px;
    margin: 0 auto;
}

.legacy-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.stat-card {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #2a2a2a 100%);
    color: var(--cream);
    border: 3px solid var(--accent-color);
    transform: scale(0);
    transition: transform 0.5s ease;
}

.stat-card.animate-visible {
    animation: statPop 0.6s ease forwards;
}

@keyframes statPop {
    to {
        transform: scale(1);
    }
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent-color);
    margin-bottom: 10px;
    font-family: 'Oswald', sans-serif;
}

.stat-label {
    font-size: 1rem;
    letter-spacing: 1px;
}

.legacy-text {
    padding: 40px;
    background: var(--cream);
    border: 2px solid var(--secondary-color);
}

.legacy-text p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--text-dark);
}

/* Call to Action */
.history-cta {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #2a2a2a 100%);
    text-align: center;
    color: var(--cream);
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    letter-spacing: 3px;
    font-family: 'Oswald', sans-serif;
}

.cta-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    font-style: italic;
}

.cta-button {
    display: inline-block;
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 20px 50px;
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-decoration: none;
    text-transform: uppercase;
    font-family: 'Oswald', sans-serif;
    border: 3px solid var(--accent-color);
    transition: all 0.3s ease;
    animation: ctaPulse 2s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

@keyframes ctaPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 10px 30px rgba(212, 175, 55, 0.5);
    }
}

.cta-button:hover {
    background: transparent;
    color: var(--accent-color);
    transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .timeline-line {
        left: 30px;
    }

    .timeline-item {
        width: calc(100% - 60px);
        left: 60px !important;
        text-align: left !important;
    }

    .timeline-item .timeline-dot {
        left: -40px !important;
        right: auto !important;
    }

    .founder-container {
        grid-template-columns: 1fr;
    }

    .history-title {
        font-size: 2.5rem;
    }
}

/* Newspaper Ad Section Styles */
.newspaper-section {
    padding: 60px 20px;
    background: white;
}

.newspaper-container {
    max-width: 1200px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.newspaper-image-wrapper {
    position: relative;
    border: 10px solid var(--primary-color);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    background: var(--cream);
    padding: 10px;
}

.newspaper-image {
    width: 100%;
    height: auto;
    display: block;
}

.newspaper-caption {
    background: var(--primary-color);
    color: var(--cream);
    padding: 15px;
    text-align: center;
    font-style: italic;
    letter-spacing: 1px;
    margin-top: 10px;
}

.newspaper-analysis {
    padding: 20px;
}

.newspaper-analysis h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
}

.newspaper-text-block {
    background: linear-gradient(135deg, var(--cream) 0%, white 100%);
    padding: 30px;
    border-left: 5px solid var(--accent-color);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    position: relative;
}

.newspaper-text-block::before {
    content: '📰';
    position: absolute;
    top: -15px;
    left: 20px;
    font-size: 2rem;
    background: white;
    padding: 0 10px;
}

.newspaper-analysis-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-dark);
    font-style: italic;
    font-weight: 500;
}

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

/* Workers Section Styles */
.workers-section {
    padding: 60px 20px;
    background: var(--dark-cream);
}

.factory-showcase {
    margin: 40px 0;
}

.factory-container {
    max-width: 100%;
}

.factory-image-wrapper {
    position: relative;
    background: var(--primary-color);
    padding: 20px;
}

.factory-image {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.factory-caption {
    background: var(--primary-color);
    color: var(--cream);
    padding: 20px;
    text-align: center;
    font-size: 1.3rem;
    font-style: italic;
    letter-spacing: 2px;
    border-top: 3px solid var(--accent-color);
}

.workers-analysis-container {
    max-width: 1000px;
    margin: 60px auto;
    text-align: center;
}

.workers-analysis-container h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.analysis-text-block {
    background: linear-gradient(135deg, var(--cream) 0%, white 100%);
    padding: 50px;
    border-left: 6px solid var(--accent-color);
    border-right: 6px solid var(--accent-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
}

.analysis-main {
    font-size: 1.4rem;
    line-height: 2;
    color: var(--text-dark);
    font-weight: 500;
    text-align: justify;
    font-style: italic;
}

.workers-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 50px auto;
}

.workers-section .stat-box {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2a2a2a 100%);
    padding: 30px;
    text-align: center;
    border: 3px solid var(--accent-color);
    color: var(--cream);
    transition: transform 0.3s ease;
}

.workers-section .stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.4);
}

.workers-section .stat-value {
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent-color);
    margin-bottom: 10px;
    font-family: 'Oswald', sans-serif;
}

.workers-section .stat-description {
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Points Popup Styles */
.ask-points-btn {
    background: linear-gradient(45deg, var(--accent-color), gold);
    color: var(--primary-color);
    border: 3px solid var(--primary-color);
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    letter-spacing: 1px;
    animation: pulseGlow 2s ease-in-out infinite;
    transition: all 0.3s ease;
    font-family: 'Oswald', sans-serif;
}

.ask-points-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.5);
}

.points-popup-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.points-popup-content {
    background: linear-gradient(135deg, var(--cream) 0%, white 100%);
    padding: 50px;
    border-radius: 15px;
    border: 5px solid var(--accent-color);
    text-align: center;
    max-width: 500px;
    animation: bounceIn 0.5s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.points-popup-content h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 2rem;
}

.points-question {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin: 30px 0;
    font-weight: bold;
    letter-spacing: 1px;
}

.points-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.points-yes, .points-no {
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    border: 3px solid;
    transition: all 0.3s ease;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 1px;
}

.points-yes {
    background: linear-gradient(45deg, #4CAF50, #8BC34A);
    color: white;
    border-color: #4CAF50;
}

.points-yes:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(76, 175, 80, 0.5);
}

.points-no {
    background: linear-gradient(45deg, #f44336, #e91e63);
    color: white;
    border-color: #f44336;
}

.points-no:hover {
    transform: scale(0.95);
    opacity: 0.8;
}

@keyframes confettiFall {
    to {
        top: 100%;
        transform: rotate(360deg);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
    20%, 40%, 60%, 80% { transform: translateX(10px); }
}

@keyframes popIn {
    0% {
        transform: translate(-50%, -50%) scale(0);
    }
    80% {
        transform: translate(-50%, -50%) scale(1.1);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    }
    50% {
        box-shadow: 0 0 40px rgba(212, 175, 55, 0.8);
    }
}

@keyframes bannerBounce {
    0% {
        transform: translateX(-50%) translateY(-20px) scale(0);
    }
    50% {
        transform: translateX(-50%) translateY(0) scale(1.1);
    }
    100% {
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

@keyframes bannerPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Show Work Controls */
.show-work-controls {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    align-items: center;
    z-index: 9999;
}

.show-work-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--cream);
    border: 2px solid var(--accent-color);
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0.1;
    transition: all 0.3s ease;
}

.show-work-btn:hover {
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.5);
}

.nav-work-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--secondary-color);
    color: var(--cream);
    border: 2px solid var(--accent-color);
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.nav-work-btn:hover {
    opacity: 1;
    transform: scale(1.1);
    background: var(--accent-color);
    color: var(--primary-color);
}

/* Student Work Highlighting */
.student-work {
    position: relative;
    transition: all 0.3s ease;
}

.student-work.highlighted {
    background: linear-gradient(90deg,
        rgba(255, 215, 0, 0.3) 0%,
        rgba(255, 215, 0, 0.5) 50%,
        rgba(255, 215, 0, 0.3) 100%);
    padding: 5px;
    border-radius: 3px;
    animation: pulseHighlight 2s ease-in-out infinite;
}

@keyframes pulseHighlight {
    0%, 100% {
        box-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    }
}

.student-work.highlighted::after {
    content: attr(data-source);
    position: absolute;
    top: -25px;
    left: 0;
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 2px 8px;
    font-size: 0.8rem;
    border-radius: 3px;
    font-weight: bold;
    opacity: 0;
    animation: fadeInLabel 0.5s ease forwards;
}

@keyframes fadeInLabel {
    to {
        opacity: 1;
    }
}