/* YOUR EXISTING CSS CODE - COPY IT AS-IS */
/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #ec4899;
    --accent: #f59e0b;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --light: #f8fafc;
    --dark: #1e293b;
    --gray: #64748b;
    --gray-light: #e2e8f0;
    --border-radius: 16px;
    --shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.15);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    --gradient-secondary: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 2.25rem;
    color: var(--dark);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--gray);
}

/* ===== NAVIGATION ===== */
.site-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 100%;
}

.logo {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 1rem;
}

/* ===== BUTTONS ===== */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: 'Inter', sans-serif;
    position: relative;
    overflow: hidden;
}

.button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.button:hover::before {
    left: 100%;
}

.button-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.button-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
}

.button-secondary-nav {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
    font-weight: 600;
}

.button-secondary-nav:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* ===== CARDS ===== */
.card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2.5rem;
    margin-bottom: 2rem;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

/* ===== HERO SECTION ===== */
.hero-section {
    padding: 6rem 0 4rem;
    text-align: center;
    background: var(--gradient-primary);
    color: white;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.hero-section::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 1000 1000"><polygon fill="rgba(255,255,255,0.1)" points="0,1000 1000,0 1000,1000"/></svg>');
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: white;
    -webkit-text-fill-color: white;
}

.hero-subtitle {
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto 3rem;
    opacity: 0.95;
    color: white;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
}

.stat {
    text-align: center;
    background: rgba(255, 255, 255, 0.2);
    padding: 1.5rem 2rem;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
}

.stat-number {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 600;
}

/* ===== UPLOAD SECTION ===== */
.upload-section {
    margin-bottom: 4rem;
    padding: 0 5%;
}

.upload-card {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.upload-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.upload-card h2 {
    margin-bottom: 1rem;
    font-size: 2.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.upload-card p {
    margin-bottom: 2.5rem;
    color: var(--gray);
    font-size: 1.2rem;
}

.category-select-wrapper {
    margin-bottom: 2rem;
    text-align: left;
}

.form-label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--dark);
    font-size: 1.1rem;
}

.category-select {
    width: 100%;
    padding: 1rem;
    border-radius: var(--border-radius);
    border: 2px solid var(--gray-light);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background: white;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%236366f1%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem top 50%;
    background-size: 0.65rem auto;
}

.category-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.file-input-wrapper {
    margin-bottom: 2rem;
    position: relative;
}

.file-input {
    position: absolute;
    opacity: 0;
    width: 0.1px;
    height: 0.1px;
}

.file-label {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.75rem;
    background: var(--gradient-primary);
    color: white;
    padding: 1.2rem 2.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    font-size: 1.1rem;
    border: 2px dashed transparent;
}

.file-label:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.file-name {
    display: block;
    font-size: 1rem;
    color: var(--gray);
    font-weight: 500;
}

/* ===== RESULTS SECTION - BALANCED COLUMN LAYOUT ===== */
.results-section {
    padding: 0 5% 4rem;
}

.results-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: stretch;
    min-height: 500px;
}

.results-left, .results-right {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Left Column - Image + Score */
.uploaded-image-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 2rem;
    height: 100%;
}

.uploaded-image-card h3 {
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    min-height: 300px;
}

.uploaded-image {
    max-width: 100%;
    max-height: 300px;
    width: auto;
    height: auto;
    display: block;
    transition: var(--transition);
}

.uploaded-image:hover {
    transform: scale(1.02);
}

.overall-score-display {
    padding: 1.5rem;
    background: linear-gradient(135deg, #1e3a8a 0%, #3730a3 100%);
    border-radius: var(--border-radius);
    color: white;
    margin-top: auto;
}

.score-badge {
    margin-bottom: 1rem;
}

.score-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
}

.score-total {
    font-size: 1.5rem;
    color: #e0e7ff;
    font-weight: 600;
}

.score-label {
    font-size: 1.2rem;
    color: #f8fafc;
    font-weight: 600;
    margin: 0;
}

/* Score Rating Styles */
.score-rating {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
}

.rating-poor {
    background: #fee2e2;
    color: #dc2626;
    border: 2px solid #fecaca;
}

.rating-moderate {
    background: #fef3c7;
    color: #d97706;
    border: 2px solid #fde68a;
}

.rating-good {
    background: #d1fae5;
    color: #059669;
    border: 2px solid #a7f3d0;
}

.rating-excellent {
    background: #dbeafe;
    color: #2563eb;
    border: 2px solid #93c5fd;
}

/* Right Column - Navigation Buttons - IMPROVED LAYOUT */
.results-right {
    display: flex;
    align-items: stretch;
}

.navigation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    width: 100%;
    align-content: stretch;
}

.nav-button {
    background: white;
    border: 2px solid var(--gray-light);
    border-radius: var(--border-radius);
    padding: 2.5rem 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    min-height: 160px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.nav-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-button:hover::before {
    transform: scaleX(1);
}

.nav-button:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.nav-button.active {
    border-color: var(--primary);
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    transform: translateY(-2px);
}

.nav-button.active::before {
    transform: scaleX(1);
}

.nav-icon {
    font-size: 3rem;
    transition: var(--transition);
    margin-bottom: 0.5rem;
}

.nav-button:hover .nav-icon {
    transform: scale(1.2) rotate(5deg);
}

.nav-text {
    font-weight: 700;
    color: var(--dark);
    font-size: 1.2rem;
    line-height: 1.3;
}

/* ===== BACK TO NAVIGATION ARROW ===== */
.back-to-nav {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    display: none;
}

.back-arrow {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: var(--shadow);
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.back-arrow:hover {
    transform: translateY(-2px);
    background: var(--primary-dark);
}

/* ===== CONTENT SECTIONS ===== */
.content-sections {
    padding: 0 5%;
}

.content-section {
    margin-bottom: 4rem;
    scroll-margin-top: 2rem;
}

.section-title {
    margin-bottom: 1rem;
    text-align: center;
    font-size: 2.5rem;
}

.section-subtitle {
    color: var(--gray);
    margin-bottom: 2.5rem;
    text-align: center;
    font-size: 1.2rem;
}

.chart-container {
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    height: 400px;
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-light);
}

/* ===== HISTOGRAM/BAR CHART ===== */
.chart-container canvas {
    max-width: 100%;
    height: 100% !important;
}

/* ===== CRITERIA SCORES GRID ===== */
.criteria-scores-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.criteria-score-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    transition: var(--transition);
    border-left: 4px solid var(--primary);
    position: relative;
    cursor: pointer;
    text-align: center;
}

.criteria-score-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-left-color: var(--secondary);
}

.criteria-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.criteria-name {
    font-weight: 600;
    color: var(--dark);
    font-size: 1.1rem;
    text-align: center;
}

.criteria-score {
    font-weight: 700;
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== ADVICE POPUP TOOLTIP ===== */
.advice-popup {
    position: fixed;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border: 2px solid var(--primary);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    max-width: 300px;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    font-size: 0.9rem;
}

.advice-popup.show {
    opacity: 1;
    transform: translateY(-5px);
}

.advice-popup h4 {
    color: var(--primary);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.advice-popup ul {
    margin: 0;
    padding-left: 1.2rem;
}

.advice-popup li {
    margin-bottom: 0.5rem;
    line-height: 1.4;
    color: var(--dark);
}

/* ===== PLATFORM GRID ===== */
.platform-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.platform-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 2px solid transparent;
}

.platform-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
}

.platform-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.platform-card.active {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border: 2px solid var(--primary);
}

.platform-card.active::before {
    height: 8px;
}

.platform-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    transition: var(--transition);
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.platform-card:hover .platform-icon {
    transform: scale(1.1) rotate(5deg);
}

.platform-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.platform-score {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.platform-rationale {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.5;
}

.platform-rationale-preview {
    font-size: 0.85rem;
    color: var(--gray);
    line-height: 1.4;
    margin-top: 0.5rem;
}

/* ===== PLATFORM RATIONALE DISPLAY ===== */
.platform-rationale-display {
    margin: 2rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-left: 6px solid var(--primary);
    transition: var(--transition);
    display: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.platform-rationale-display.show {
    display: block;
    animation: fadeInUp 0.5s ease-out;
}

/* Platform-specific colors */
.platform-facebook::before { background: #1877F2; }
.platform-facebook .platform-icon { border: 3px solid #1877F2; }

.platform-instagram::before { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.platform-instagram .platform-icon { border: 3px solid #E4405F; }

.platform-youtube::before { background: #FF0000; }
.platform-youtube .platform-icon { border: 3px solid #FF0000; }

.platform-twitter::before { background: #1DA1F2; }
.platform-twitter .platform-icon { border: 3px solid #1DA1F2; }

.platform-google::before { background: linear-gradient(45deg, #4285F4, #34A853, #FBBC05, #EA4335); }
.platform-google .platform-icon { border: 3px solid #4285F5; }

/* ===== SCREENING REPORT ===== */
.screening-report {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.screening-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    background: var(--light);
    border-radius: 12px;
    transition: var(--transition);
    border-left: 4px solid var(--primary);
}

.screening-item:hover {
    transform: translateX(8px);
    background: white;
    box-shadow: var(--shadow);
}

.screening-item .key {
    font-weight: 600;
    color: var(--dark);
}

.screening-item .value {
    font-weight: 700;
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
}

.screening-item .value.yes {
    color: var(--success);
    background: rgba(16, 185, 129, 0.1);
}

.screening-item .value.no {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

/* ===== ERROR SECTION ===== */
.error-section {
    background: #fee2e2;
    border-left: 6px solid var(--danger);
    border-radius: var(--border-radius);
    margin: 0 5% 2rem 5%;
}

/* ===== FOOTER ===== */
.site-footer {
    text-align: center;
    padding: 3rem 5%;
    color: var(--gray);
    margin-top: 4rem;
    border-top: 1px solid var(--gray-light);
    background: white;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-reveal {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* ===== LOADING STATES ===== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.loading-overlay.show {
    opacity: 1;
    pointer-events: all;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.loading-text {
    font-size: 1.1rem;
    color: var(--dark);
    font-weight: 600;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .platform-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .results-container {
        gap: 2rem;
    }
    
    .navigation-grid {
        gap: 1rem;
    }
    
    .nav-button {
        padding: 2rem 1rem;
        min-height: 140px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 20px;
    }
    
    .criteria-scores-grid {
        grid-template-columns: 1fr;
    }
    
    .platform-grid {
        grid-template-columns: 1fr;
    }
    
    .screening-report {
        grid-template-columns: 1fr;
    }
    
    .results-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .results-left {
        position: static;
    }
    
    .navigation-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-button {
        min-height: 120px;
        padding: 1.5rem 1rem;
    }
    
    .nav-icon {
        font-size: 2.5rem;
    }
    
    .chart-container {
        height: 300px;
    }
    
    .content-sections,
    .upload-section,
    .results-section {
        padding: 0 20px;
    }
    
    .advice-popup {
        max-width: 250px;
        font-size: 0.8rem;
    }
    
    .criteria-score-card {
        padding: 1.5rem;
    }
    
    .platform-rationale-display {
        padding: 1.5rem;
    }
    
    .platform-card {
        min-height: 240px;
        padding: 1.5rem;
    }
    
    .back-to-nav {
        bottom: 1rem;
        right: 1rem;
    }
    
    .back-arrow {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .platform-grid {
        grid-template-columns: 1fr;
    }
    
    .platform-card {
        min-height: 200px;
    }
    
    .nav-button {
        padding: 1.5rem 1rem;
        min-height: 100px;
    }
    
    .nav-icon {
        font-size: 2rem;
    }
    
    .nav-text {
        font-size: 1rem;
    }
    
    .score-number {
        font-size: 2.5rem;
    }
    
    .score-total {
        font-size: 1.2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
}