/* styles.css - Creative Colorful MBTI Design */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
}

:root {
    --primary: #FF6B6B;
    --secondary: #4ECDC4;
    --accent1: #FFD166;
    --accent2: #06D6A0;
    --accent3: #118AB2;
    --dark: #1A535C;
    --light: #F7FFF7;
    --purple: #9B5DE5;
    --pink: #F15BB5;
    --gradient1: linear-gradient(135deg, #FF6B6B, #FF8E53);
    --gradient2: linear-gradient(135deg, #4ECDC4, #06D6A0);
    --gradient3: linear-gradient(135deg, #9B5DE5, #F15BB5);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 15px 40px rgba(0, 0, 0, 0.15);
}

body {
    background: linear-gradient(135deg, #F7FFF7 0%, #E8F4F8 100%);
    color: #333;
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 2;
}

/* MBTI Big Header */
.mbti-header {
    background: var(--gradient3);
    padding: 30px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
    margin-bottom: 20px;
}

.mbti-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: cover;
}

.mbti-container {
    position: relative;
    z-index: 2;
}

.mbti-letter {
    display: inline-block;
    font-size: 5rem;
    font-weight: 900;
    margin: 0 15px;
    color: white;
    text-shadow: 3px 3px 0 rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

.mbti-letter:nth-child(1) { 
    color: #FF6B6B; 
    animation-delay: 0s;
}
.mbti-letter:nth-child(2) { 
    color: #4ECDC4; 
    animation-delay: 0.2s;
}
.mbti-letter:nth-child(3) { 
    color: #FFD166; 
    animation-delay: 0.4s;
}
.mbti-letter:nth-child(4) { 
    color: #9B5DE5; 
    animation-delay: 0.6s;
}

.mbti-subtitle {
    font-size: 1.5rem;
    color: white;
    margin-top: 10px;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* Navigation */
.navbar {
    background: white;
    padding: 15px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--primary);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark);
    text-decoration: none;
    background: var(--gradient1);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 25px;
    position: relative;
}

.nav-menu a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    padding: 10px 15px;
    border-radius: 25px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient1);
    transition: all 0.4s ease;
    z-index: -1;
}

.nav-menu a:hover::before {
    left: 0;
}

.nav-menu a:hover, .nav-menu a.active {
    color: white;
    transform: translateY(-3px);
}

.nav-menu a i {
    font-size: 1.1rem;
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
}

/* Personality Banner */
.personality-banner {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin: 40px auto;
    max-width: 1000px;
    padding: 30px;
}

.personality-type {
    flex: 1;
    padding: 40px 30px;
    border-radius: 25px;
    text-align: center;
    transition: all 0.4s ease;
    cursor: pointer;
    box-shadow: var(--shadow);
    min-height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.personality-type::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
    z-index: 1;
}

.personality-type > * {
    position: relative;
    z-index: 2;
}

.personality-type:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: var(--shadow-heavy);
}

.enfp {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 50%, #FF6B6B 100%);
    color: white;
    border: 4px solid #FF8E53;
}

.intj {
    background: linear-gradient(135deg, #4ECDC4 0%, #06D6A0 50%, #4ECDC4 100%);
    color: white;
    border: 4px solid #06D6A0;
}

.type-image-container {
    margin-bottom: 25px;
    position: relative;
    width: 250px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.type-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
    transition: all 0.5s ease;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    backdrop-filter: blur(10px);
}

.type-label {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 30px;
    border-radius: 25px;
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    min-width: 180px;
    text-align: center;
}

.enfp .type-label {
    background: rgba(255, 107, 107, 0.9);
}

.intj .type-label {
    background: rgba(78, 205, 196, 0.9);
}

.type-desc {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 20px 0 30px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    backdrop-filter: blur(5px);
}

.type-traits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
    max-width: 300px;
}

.trait {
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1.1rem;
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.trait:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

/* Floating Shapes */
.floating-shapes {
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: floatShape 20s infinite linear;
}

.shape1 {
    width: 300px;
    height: 300px;
    background: var(--primary);
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.shape2 {
    width: 200px;
    height: 200px;
    background: var(--secondary);
    bottom: 20%;
    right: 10%;
    animation-delay: 5s;
}

.shape3 {
    width: 150px;
    height: 150px;
    background: var(--accent1);
    top: 50%;
    left: 80%;
    animation-delay: 10s;
}

.shape4 {
    width: 250px;
    height: 250px;
    background: var(--purple);
    bottom: 10%;
    left: 70%;
    animation-delay: 15s;
}

@keyframes pulse-glow {
    0%, 100% { 
        filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3)) brightness(1);
    }
    50% { 
        filter: drop-shadow(0 15px 30px rgba(0,0,0,0.4)) brightness(1.1);
    }
}

.enfp .type-image {
    animation: pulse-glow 3s ease-in-out infinite;
}

.intj .type-image {
    animation: pulse-glow 3s ease-in-out infinite 1.5s;
}

@media (max-width: 992px) {
    .type-image-container {
        width: 200px;
        height: 200px;
    }
    
    .type-label {
        font-size: 1.5rem;
        min-width: 150px;
        padding: 8px 20px;
    }
    
    .type-desc {
        font-size: 1.5rem;
    }
    
    .personality-banner {
        gap: 30px;
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .personality-banner {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    
    .personality-type {
        width: 90%;
        min-height: 450px;
    }
    
    .type-image-container {
        width: 180px;
        height: 180px;
    }
    
    .type-traits {
        gap: 10px;
    }
    
    .trait {
        padding: 8px 15px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .type-image-container {
        width: 150px;
        height: 150px;
    }
    
    .type-label {
        font-size: 1.3rem;
        min-width: 130px;
        padding: 6px 15px;
    }
    
    .type-desc {
        font-size: 1.3rem;
    }
    
    .personality-type {
        padding: 30px 20px;
        min-height: 400px;
    }
}

/* Sections */
.section {
    margin-bottom: 60px;
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.section:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-heavy);
}

.section-header {
    margin-bottom: 30px;
    text-align: center;
}

.section-header h2 {
    color: var(--dark);
    font-size: 2.2rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.section-header h2 i {
    color: var(--primary);
    font-size: 2rem;
}

.section-subtitle {
    color: var(--accent3);
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.section-underline {
    height: 4px;
    width: 100px;
    background: var(--gradient1);
    margin: 0 auto;
    border-radius: 2px;
}

/* Content Boxes */
.content-box {
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    border-left: 5px solid var(--primary);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.05);
}

/* Research Questions */
.research-questions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.question-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-top: 5px solid var(--secondary);
}

.question-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.question-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--gradient1);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-weight: 900;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.question-card h3 {
    color: var(--dark);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* Team Info */
.team-info {
    margin-top: 30px;
    padding: 25px;
    background: var(--gradient2);
    border-radius: 15px;
    color: white;
}

.team-info h4 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.team-members {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.member {
    text-align: center;
}

.member-avatar {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: var(--secondary);
    font-size: 2.5rem;
}

.member-name {
    font-weight: 600;
    font-size: 1.2rem;
}

/* Methodology Steps */
.methodology-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.step {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.step:hover {
    transform: scale(1.05);
}

.step-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient3);
    color: white;
    border-radius: 50%;
    line-height: 60px;
    font-size: 1.5rem;
    font-weight: 900;
    margin: 0 auto 15px;
}

.analysis-parts {
    display: flex;
    gap: 30px;
    margin: 30px 0;
}

.part-card {
    flex: 1;
    padding: 25px;
    border-radius: 15px;
    color: white;
    text-align: center;
    box-shadow: var(--shadow);
}

.part-a {
    background: var(--gradient1);
}

.part-b {
    background: var(--gradient2);
}

.part-card h4 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

/* Excel Files Section */
.excel-files-section {
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    border: 2px dashed var(--secondary);
}

.excel-files-section h3 {
    color: var(--dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.8rem;
}

.excel-files-section h3 i {
    color: #1D6F42;
}

.excel-files-section .section-subtitle {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 30px;
    text-align: center;
}

/* Excel Files Grid */
.excel-files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

/* Excel File Card */
.excel-file {
    background: white;
    border-radius: 15px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.excel-file::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: #1D6F42;
    transition: width 0.3s ease;
}

.excel-file:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-heavy);
    border-color: #1D6F42;
}

.excel-file:hover::before {
    width: 100%;
    opacity: 0.1;
}

.excel-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #1D6F42, #2e8b57);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
    z-index: 2;
}

.excel-file:hover .excel-icon {
    transform: rotate(15deg) scale(1.1);
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
}

.excel-content {
    flex: 1;
    z-index: 2;
}

.excel-content h4 {
    color: var(--dark);
    margin-bottom: 8px;
    font-size: 1.4rem;
    transition: color 0.3s ease;
}

.excel-file:hover .excel-content h4 {
    color: #1D6F42;
}

.excel-content p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 12px;
    line-height: 1.5;
}

.file-details {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
}

.file-size {
    background: var(--gradient2);
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-weight: 600;
}

.file-type {
    background: #f0f0f0;
    color: #666;
    padding: 5px 15px;
    border-radius: 15px;
    font-weight: 600;
}

.download-btn {
    width: 50px;
    height: 50px;
    background: var(--gradient1);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
    z-index: 2;
    opacity: 0;
    transform: translateX(20px);
}

.excel-file:hover .download-btn {
    opacity: 1;
    transform: translateX(0);
}

.download-btn:hover {
    background: var(--gradient3);
    transform: scale(1.1);
}

/* Data Notes */
.data-notes {
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    border-left: 5px solid var(--accent3);
}

.data-notes i {
    color: var(--accent3);
    font-size: 1.8rem;
    margin-top: 3px;
}

.data-notes p {
    margin: 0;
    color: #2c3e50;
    font-size: 1rem;
    line-height: 1.6;
}

/* Responsive Design for Excel Files */
@media (max-width: 1200px) {
    .excel-files-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .excel-files-grid {
        grid-template-columns: 1fr;
    }
    
    .excel-file {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px;
    }
    
    .excel-icon {
        width: 80px;
        height: 80px;
        font-size: 3rem;
    }
    
    .download-btn {
        opacity: 1;
        transform: translateX(0);
        position: absolute;
        bottom: -15px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .file-details {
        justify-content: center;
    }
    
    .data-notes {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .excel-files-section {
        padding: 20px;
    }
    
    .excel-files-section h3 {
        font-size: 1.5rem;
    }
    
    .excel-content h4 {
        font-size: 1.2rem;
    }
}

/* Tables */
.ack-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.ack-table th, .ack-table td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.ack-table th {
    background: var(--gradient1);
    color: white;
    font-weight: 600;
}

.ack-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.ack-table tr:hover {
    background-color: #e9ecef;
}

.member-cell {
    font-weight: 600;
}

.member-highlight {
    display: flex;
    align-items: center;
    gap: 15px;
}

.member-highlight i {
    font-size: 1.8rem;
    color: var(--primary);
}

.student-id {
    font-size: 0.9rem;
    color: #666;
    font-weight: normal;
}

/* GenAI Usage */
.genai-usage {
    display: flex;
    gap: 30px;
    margin: 30px 0;
}

.genai-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.genai-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient3);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.genai-note {
    background: linear-gradient(135deg, #fff9db, #ffe066);
    padding: 20px;
    border-radius: 15px;
    border-left: 5px solid #ffd43b;
    display: flex;
    align-items: center;
    gap: 15px;
}

.genai-note i {
    font-size: 2rem;
    color: #f08c00;
}

/* Figures */
.figure-container {
    margin: 40px 0;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.figure-container:hover {
    border-color: var(--secondary);
    box-shadow: var(--shadow-heavy);
}

.highlight-figure {
    border: 3px solid var(--accent1);
    background: linear-gradient(135deg, #fff9db, white);
}

.figure-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.figure-badge {
    background: var(--gradient1);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.9rem;
}

.figure-title {
    color: var(--dark);
    font-size: 1.5rem;
    margin: 0;
}

.figure-subtitle {
    color: var(--accent3);
    font-size: 1.2rem;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 500;
}

.figure-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 25px auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border: 2px solid #eee;
    transition: all 0.3s ease;
}

.figure-image:hover {
    transform: scale(1.02);
}

.figure-analysis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.analysis-point {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid var(--primary);
}

.point-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient1);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* Figure Grid */
.figure-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.figure-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

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

.figure-insight {
    background: var(--gradient2);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.figure-insight i {
    font-size: 1.5rem;
}

/* Similarity Insights */
.similarity-insights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.insight-card {
    padding: 25px;
    border-radius: 15px;
    color: white;
}

.insight-good {
    background: var(--gradient2);
}

.insight-bad {
    background: var(--gradient1);
}

.insight-card h4 {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
}

/* Accuracy Breakdown */
.accuracy-breakdown {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 30px 0;
}

.accuracy-metric {
    text-align: center;
}

.metric-value {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 10px;
}

.metric-label {
    font-size: 1.1rem;
    color: #666;
    font-weight: 500;
}

.figure-conclusion {
    background: linear-gradient(135deg, #e9ecef, #f8f9fa);
    padding: 20px;
    border-radius: 10px;
    margin-top: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-left: 5px solid var(--accent1);
}

.figure-conclusion i {
    font-size: 2rem;
    color: var(--accent1);
}

/* Key Questions */
.key-questions {
    margin-top: 50px;
}

.comparison-notes {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 25px 0;
}

.note-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.note-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.social { background: var(--primary); }
.mixed { background: var(--accent1); }
.similar { background: var(--secondary); }

/* Differentiating Table */
.differentiating-table {
    margin-top: 30px;
    overflow-x: auto;
}

.diff-table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: var(--shadow);
    border-radius: 10px;
    overflow: hidden;
}

.diff-table th {
    background: var(--gradient3);
    color: white;
    padding: 20px;
    text-align: left;
    font-weight: 600;
}

.diff-table td {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.diff-table tr:hover {
    background-color: #f8f9fa;
}

.top-diff {
    background: linear-gradient(135deg, #fff9db, #ffe066) !important;
}

.rank-badge {
    display: inline-block;
    width: 35px;
    height: 35px;
    background: var(--gradient1);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 35px;
    font-weight: 900;
}

.answer-badge {
    display: inline-block;
    padding: 8px 15px;
    background: var(--gradient2);
    color: white;
    border-radius: 20px;
    font-weight: 600;
}

.answer-badge.mixed {
    background: var(--accent1);
}

.score-badge {
    display: inline-block;
    padding: 10px 20px;
    background: var(--gradient1);
    color: white;
    border-radius: 25px;
    font-weight: 900;
    font-size: 1.1rem;
}

/* Part B Styles */
.note-box {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-left: 5px solid var(--accent3);
}

.note-box i {
    font-size: 2rem;
    color: var(--accent3);
}

.subsection {
    margin: 40px 0 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--secondary);
}

.subsection h3 {
    color: var(--dark);
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Figure Gallery */
.figure-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.gallery-item {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
}

.gallery-item:hover {
    transform: translateY(-10px);
}

.figure-mini-header {
    margin-bottom: 15px;
}

.figure-mini-badge {
    display: inline-block;
    background: var(--gradient2);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.gallery-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-top: 10px;
}

/* Analysis Cards */
.analysis-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.analysis-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    display: flex;
    gap: 20px;
    transition: all 0.3s ease;
}

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

.analysis-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient1);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.analysis-content h4 {
    color: var(--dark);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

/* Accuracy Analysis */
.accuracy-section {
    margin: 40px 0;
}

.accuracy-item {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.accuracy-item.highlight {
    border: 3px solid var(--accent2);
}

.accuracy-item.warning {
    border: 3px solid #ff6b6b;
}

.accuracy-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.accuracy-badge {
    background: var(--gradient2);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.9rem;
}

.accuracy-badge.warning {
    background: var(--gradient1);
}

.accuracy-badge.small {
    padding: 5px 15px;
    font-size: 0.8rem;
}

.accuracy-image {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.accuracy-explanation {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-top: 25px;
    border-left: 5px solid var(--secondary);
}

.accuracy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.accuracy-card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

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

.accuracy-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.accuracy-card-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    margin: 15px 0;
}

/* Additional Figures */
.additional-figures {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-top: 40px;
}

.figure-mini {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    width: 200px;
}

.mini-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    margin-top: 15px;
}

/* Conclusion */
.conclusion-box {
    background: linear-gradient(135deg, #1A535C, #2d728f);
    color: white;
    border: none;
}

.conclusion-main {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
}

.conclusion-icon {
    font-size: 4rem;
    color: var(--accent1);
}

.conclusion-content h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: white;
}

.conclusion-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.conclusion-point {
    text-align: center;
    padding: 25px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.conclusion-point i {
    font-size: 2.5rem;
    color: var(--accent1);
    margin-bottom: 15px;
}

.conclusion-point h4 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1A535C, #2d728f);
    color: white;
    padding: 50px 0 30px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-logo {
    margin-bottom: 30px;
}

.mbti-mini span {
    display: inline-block;
    font-size: 2.5rem;
    font-weight: 900;
    margin: 0 5px;
}

.mbti-mini span:nth-child(1) { color: #FF6B6B; }
.mbti-mini span:nth-child(2) { color: #4ECDC4; }
.mbti-mini span:nth-child(3) { color: #FFD166; }
.mbti-mini span:nth-child(4) { color: #9B5DE5; }

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.footer-copyright {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-note {
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-note i {
    color: #FF6B6B;
    margin-right: 5px;
}

/* Analysis Hero */
.analysis-hero {
    background: var(--gradient3);
    padding: 60px 20px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
    border-radius: 0 0 30px 30px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.2);
}

.hero-content p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.stat {
    background: rgba(255, 255, 255, 0.2);
    padding: 20px 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    min-width: 120px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 5px;
}

.hero-graphic {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.graphic-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.circle1 {
    width: 200px;
    height: 200px;
    top: -100px;
    right: -100px;
}

.circle2 {
    width: 150px;
    height: 150px;
    bottom: -75px;
    left: 20%;
}

.circle3 {
    width: 100px;
    height: 100px;
    top: 30%;
    left: 10%;
}

/* Responsive Design */
@media (max-width: 992px) {
    .mbti-letter {
        font-size: 4rem;
        margin: 0 10px;
    }
    
    .research-questions,
    .methodology-steps,
    .analysis-parts,
    .genai-usage {
        grid-template-columns: 1fr;
    }
    
    .team-members,
    .excel-placeholder,
    .hero-stats {
        flex-direction: column;
        align-items: center;
    }
    
    .figure-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        transition: all 0.3s ease;
        box-shadow: var(--shadow-heavy);
        z-index: 999;
    }
    
    .nav-menu.show {
        left: 0;
    }
    
    .nav-menu li {
        margin: 10px 0;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .mbti-letter {
        font-size: 3rem;
        margin: 0 5px;
    }
    
    .personality-banner {
        flex-direction: column;
        align-items: center;
    }
    
    .personality-type {
        width: 90%;
    }
    
    .section {
        padding: 25px;
    }
    
    .accuracy-breakdown,
    .comparison-notes,
    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .figure-analysis,
    .similarity-insights,
    .analysis-points,
    .conclusion-points {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .mbti-letter {
        font-size: 2.5rem;
    }
    
    .mbti-subtitle {
        font-size: 1rem;
    }
    
    .section {
        padding: 20px;
    }
    
    .content-box {
        padding: 20px;
    }
    
    .figure-container {
        padding: 20px;
    }
    
    .accuracy-metric {
        margin-bottom: 20px;
    }
}
/* Zoom Functionality Styles */

/* Zoomable Image Container */
.zoomable-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin: 20px 0;
    cursor: zoom-in;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.zoomable-image-container:hover {
    border-color: var(--primary);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.zoomable {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

/* Zoom Controls */
.zoom-controls {
    position: absolute;
    bottom: 15px;
    right: 15px;
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.zoomable-image-container:hover .zoom-controls {
    opacity: 1;
}

.zoom-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--primary);
    border-radius: 50%;
    color: var(--primary);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.zoom-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.zoom-btn:active {
    transform: scale(0.95);
}

.mini-controls {
    bottom: 10px;
    right: 10px;
}

.mini-controls .zoom-btn {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
}

/* Fullscreen Zoom Modal */
.zoom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    opacity: 0;
    animation: fadeIn 0.3s forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary), var(--accent1));
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid rgba(255,255,255,0.2);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.modal-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    overflow: auto;
    background: #f8f9fa;
    position: relative;
}

.modal-body img {
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
    transition: transform 0.3s ease;
    cursor: grab;
}

.modal-body img:active {
    cursor: grabbing;
}

.modal-controls {
    padding: 20px 30px;
    background: white;
    border-top: 1px solid #eee;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.modal-btn {
    padding: 12px 25px;
    background: var(--gradient2);
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.modal-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.modal-btn:active {
    transform: translateY(0);
}

.modal-btn:nth-child(1) { background: var(--gradient1); }
.modal-btn:nth-child(2) { background: var(--gradient3); }
.modal-btn:nth-child(3) { background: var(--gradient2); }
.modal-btn:nth-child(4) { background: linear-gradient(135deg, #118AB2, #073B4C); }

.modal-footer {
    padding: 15px 30px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 0.9rem;
}

.zoom-level, .image-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

#zoomLevel {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

#imageDimensions {
    font-family: monospace;
    background: #e9ecef;
    padding: 3px 8px;
    border-radius: 4px;
}

/* Responsive adjustments for zoom */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        height: 95vh;
    }
    
    .modal-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .modal-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .modal-footer {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .zoom-controls {
        opacity: 1; /* Always show on mobile */
        background: rgba(255, 255, 255, 0.8);
        padding: 5px;
        border-radius: 20px;
    }
    
    .mini-controls .zoom-btn {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
}

/* Touch device improvements */
@media (hover: none) and (pointer: coarse) {
    .zoomable-image-container {
        cursor: pointer;
    }
    
    .zoom-controls {
        opacity: 1;
        background: rgba(255, 255, 255, 0.9);
        padding: 5px;
        border-radius: 20px;
        box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    }
    
    .zoom-btn {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
}

/* Custom scrollbar for modal body */
.modal-body::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--dark);
}