/* Research Page - Professional Styling with Montserrat & Open Sans */

/* Research Hero Section */
.research-hero {
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.95) 0%, rgba(45, 74, 124, 0.9) 100%),
                url('https://images.unsplash.com/photo-1559757148-5c350d0d3c56?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80') no-repeat center center;
    background-size: cover;
    color: white;
    padding: 8rem 0 4rem;
    text-align: center;
    margin-top: 70px;
}

.research-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    font-family: 'Montserrat', sans-serif;
}

.research-hero-subtitle {
    font-size: 1.3rem;
    color: #f4e4a6;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
    font-family: 'Open Sans', sans-serif;
}

/* Research Introduction */
.research-intro {
    padding: 5rem 0;
    background: #f8fafc;
    text-align: center;
}

.research-intro-content {
    max-width: 800px;
    margin: 0 auto;
}

.research-intro .section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #1a365d;
    font-family: 'Montserrat', sans-serif;
}

.research-intro-text {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #4a5568;
    font-family: 'Open Sans', sans-serif;
}

/* Intersectionality Section */
.intersectionality-section {
    padding: 5rem 0;
    background: white;
}

.intersectionality-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.intersectionality-text .section-title {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: #1a365d;
    font-family: 'Montserrat', sans-serif;
}

.intersectionality-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #4a5568;
    margin-bottom: 1.5rem;
    font-family: 'Open Sans', sans-serif;
}

.intersectionality-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.intersectionality-graphic {
    position: relative;
    width: 300px;
    height: 300px;
}

.intersection-circle {
    position: relative;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #f4e4a6, #d4af37);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.circle-core {
    font-weight: 600;
    color: #1a365d;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
}

.intersection-line {
    position: absolute;
    background: #1a365d;
    height: 2px;
    transform-origin: center;
    transition: all 0.3s ease;
}

.intersection-line.race {
    width: 120px;
    transform: rotate(0deg);
    top: 50%;
    left: 100px;
}

.intersection-line.gender {
    width: 120px;
    transform: rotate(45deg);
    top: 50%;
    left: 100px;
}

.intersection-line.class {
    width: 120px;
    transform: rotate(90deg);
    top: 50%;
    left: 100px;
}

.intersection-line.immigration {
    width: 120px;
    transform: rotate(135deg);
    top: 50%;
    left: 100px;
}

.intersection-line::after {
    content: attr(class);
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: #1a365d;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
    text-transform: capitalize;
}

/* C Factor Section */
.cfactor-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #10b981 0%, #0d9c6d 100%);
    color: white;
}

.cfactor-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.cfactor-header .section-title {
    color: white;
    margin-bottom: 1.5rem;
    font-family: 'Montserrat', sans-serif;
}

.cfactor-icon {
    font-size: 4rem;
    margin-bottom: 2rem;
    color: #f4e4a6;
}

.cfactor-text {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #f4e4a6;
    margin-bottom: 1.5rem;
    font-family: 'Open Sans', sans-serif;
}

/* Research Goals Section */
.research-goals {
    padding: 5rem 0;
    background: #f8fafc;
}

.research-goals .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.research-goals .section-title {
    font-size: 2.5rem;
    color: #1a365d;
    margin-bottom: 1rem;
    font-family: 'Montserrat', sans-serif;
}

.research-goals .section-subtitle {
    font-size: 1.2rem;
    color: #4a5568;
    margin-bottom: 1.5rem;
    font-family: 'Open Sans', sans-serif;
}

.goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.goal-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-top: 4px solid #d4af37;
}

.goal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.goal-icon {
    width: 70px;
    height: 70px;
    background: #f4e4a6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #1a365d;
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.goal-card:hover .goal-icon {
    background: #d4af37;
    transform: scale(1.1);
}

.goal-title {
    font-size: 1.3rem;
    color: #1a365d;
    margin-bottom: 1rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.goal-description {
    color: #4a5568;
    line-height: 1.6;
    font-family: 'Open Sans', sans-serif;
}

/* Commitment Section */
.commitment-section {
    padding: 5rem 0;
    background: white;
    text-align: center;
}

.commitment-icon {
    font-size: 4rem;
    margin-bottom: 2rem;
    color: #d4af37;
}

.commitment-section .section-title {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: #1a365d;
    font-family: 'Montserrat', sans-serif;
}

.commitment-text {
    font-size: 1.3rem;
    line-height: 1.7;
    color: #4a5568;
    max-width: 700px;
    margin: 0 auto;
    font-family: 'Open Sans', sans-serif;
    font-weight: 500;
}

/* Research CTA Section */
.research-cta {
    background: linear-gradient(135deg, #1a365d 0%, #2d4a7c 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.research-cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.research-cta .cta-title {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    font-family: 'Montserrat', sans-serif;
}

.research-cta .cta-text {
    font-size: 1.2rem;
    color: #f4e4a6;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    font-family: 'Open Sans', sans-serif;
}

.research-cta .btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 8px;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}

.research-cta .btn-primary {
    background: #d4af37;
    color: #1a365d;
    border: 2px solid #d4af37;
}

.research-cta .btn-primary:hover {
    background: transparent;
    color: #d4af37;
    transform: translateY(-2px);
}

.research-cta .btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.research-cta .btn-secondary:hover {
    background: white;
    color: #1a365d;
    transform: translateY(-2px);
}

/* Section Divider */
.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #d4af37, #10b981);
    margin: 0 auto 2rem;
    border-radius: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .research-hero-title {
        font-size: 2.5rem;
    }
    
    .research-hero-subtitle {
        font-size: 1.1rem;
    }
    
    .intersectionality-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .intersectionality-graphic {
        order: -1;
    }
    
    .goals-grid {
        grid-template-columns: 1fr;
    }
    
    .research-cta .cta-title {
        font-size: 2rem;
    }
    
    .research-cta .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .research-cta .btn {
        margin: 0;
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .research-hero {
        padding: 6rem 0 3rem;
    }
    
    .research-hero-title {
        font-size: 2rem;
    }
    
    .intersectionality-graphic {
        width: 250px;
        height: 250px;
    }
    
    .intersection-circle {
        width: 150px;
        height: 150px;
    }
    
    .intersection-line {
        width: 90px;
    }
    
    .intersection-line.race,
    .intersection-line.gender,
    .intersection-line.class,
    .intersection-line.immigration {
        width: 90px;
        left: 75px;
    }
    
    .goal-card {
        padding: 2rem 1.5rem;
    }
}

/* Animation for goal cards on scroll */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.goal-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

/* Stagger animation for goal cards */
.goal-card:nth-child(1) { animation-delay: 0.1s; }
.goal-card:nth-child(2) { animation-delay: 0.2s; }
.goal-card:nth-child(3) { animation-delay: 0.3s; }
.goal-card:nth-child(4) { animation-delay: 0.4s; }

/* JS-related Styles for Research Page */

/* Preloader Transition */
#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* Mobile Navigation */
.nav-menu.active {
    right: 0;
}

.nav-toggle.active .toggle-bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.nav-toggle.active .toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .toggle-bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Header Scroll Effect */
.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Scroll to Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background-color: #d4af37;
    color: #1a365d;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.scroll-top-btn.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    background-color: #f4e4a6;
    transform: translateY(-2px);
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 80%;
        height: calc(100vh - 70px);
        background-color: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 3rem;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }
    
    .nav-list {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .nav-toggle {
        display: flex;
    }
}

/* Enhanced intersection line transitions */
.intersection-line {
    transition: all 0.3s ease !important;
}

/* Framework text expansion */
.cfactor-text.expanded {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #f4e4a6;
}

/* Goal card transitions */
.goal-card {
    transition: all 0.3s ease !important;
}

/* Loading animation for intersection graphic */
.intersection-circle {
    transition: transform 0.3s ease;
}

/* Responsive adjustments for animations */
@media (max-width: 480px) {
    .intersection-line {
        transition: all 0.2s ease !important;
    }
}