/* Global Styles */
:root {
    --primary-color: #1a1a2e;
    --secondary-color: #16213e;
    --accent-color: #e94560;
    --text-color: #f1f1f1;
    --text-secondary: #b0b0b0;
    --card-bg: #222831;
    --hover-color: #0f3460;
}

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

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--primary-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

h1, h2, h3, h4 {
    margin-bottom: 1rem;
    line-height: 1.3;
}

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

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

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-weight: 500;
}

.btn:hover {
    background-color: #d13652;
    color: white;
    transform: translateY(-2px);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Header & Navigation */
header {
    background-color: var(--secondary-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

#main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
}

.logo h1 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    margin: 0 1rem;
    position: relative;
}

.nav-links a.active {
    color: var(--accent-color);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background-color: transparent;
    color: var(--text-color);
    padding: 0;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--secondary-color);
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 4px;
    overflow: hidden;
}

.dropdown-content a {
    color: var(--text-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    margin: 0;
}

.dropdown-content a:hover {
    background-color: var(--hover-color);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 2px 0;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    height: 80vh;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('../images/cinema-bg.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1rem;
}

.hero-content {
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.hero-content h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

/* Overview Section */
.overview {
    background-color: var(--secondary-color);
    padding: 4rem 0;
}

.overview h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.2rem;
}

.overview p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: var(--text-secondary);
}

.overview-cards {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.card {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 2rem;
    flex: 1;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.card ul {
    padding-left: 1.5rem;
    margin-top: 1rem;
}

.card li {
    margin-bottom: 0.5rem;
}

/* Page Header */
.page-header {
    background-color: var(--secondary-color);
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.page-header p {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-secondary);
}

/* Methodology Page Styles */
.methodology-content {
    padding: 3rem 0;
}

.methodology-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.methodology-card h2 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.methodology-card p, 
.methodology-card li {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.methodology-card ul,
.methodology-card ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.tool-item h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.tool-item ul {
    list-style-type: disc;
    padding-left: 1.5rem;
}

/* Conclusion Page Styles */
.conclusion-content {
    padding: 3rem 0;
}

.conclusion-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.conclusion-card h2 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

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

.finding-item h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.finding-item p {
    color: var(--text-secondary);
}

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

.implication-item h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.implication-item ul {
    padding-left: 1.5rem;
    color: var(--text-secondary);
}

.implication-item li {
    margin-bottom: 0.5rem;
}

.conclusion-card ul {
    padding-left: 1.5rem;
    color: var(--text-secondary);
}

.conclusion-card li {
    margin-bottom: 0.5rem;
}

/* Team Page Styles */
.team-content {
    padding: 3rem 0;
}

.team-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.team-intro p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.team-member {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.member-photo {
    height: 200px;
    background-color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-photo {
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    color: var(--accent-color);
    font-size: 3rem;
    font-weight: bold;
}

.member-info {
    padding: 1.5rem;
}

.member-info h3 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.member-role {
    color: var(--text-color);
    font-weight: 500;
    margin-bottom: 1rem;
}

.member-bio {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.member-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.member-skills span {
    background-color: var(--secondary-color);
    color: var(--text-secondary);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.acknowledgments {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.acknowledgments h2 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.acknowledgments p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.acknowledgments ul {
    padding-left: 1.5rem;
    color: var(--text-secondary);
}

.acknowledgments li {
    margin-bottom: 0.5rem;
}

.view-all {
    text-align: center;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: var(--text-secondary);
}

.preview-img {
    width: 100%;
    height: 200px;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
}

#revenue-budget-preview,
#genre-ratings-preview,
#popularity-preview {
    width: 100%;
    height: 100%;
}

/* Popularity Timeline Visualization Styles */
#d3-popularity-timeline {
    position: relative;
    width: 100%;
    height: 500px;
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#d3-popularity-timeline .line {
    fill: none;
    stroke: #2196F3;
    stroke-width: 2;
}

#d3-popularity-timeline .data-point {
    cursor: pointer;
    transition: all 0.2s ease;
}

#d3-popularity-timeline .tooltip {
    font-size: 12px;
    line-height: 1.4;
    z-index: 1000;
}

#d3-popularity-timeline .grid line {
    stroke: #ddd;
}

#d3-popularity-timeline .chart-title {
    font-family: 'Roboto', sans-serif;
    fill: #333;
}

#d3-popularity-timeline .x-label,
#d3-popularity-timeline .y-label {
    font-family: 'Roboto', sans-serif;
    fill: #666;
}

#d3-popularity-timeline .legend text {
    font-family: 'Roboto', sans-serif;
    fill: #333;
    font-size: 12px;
}