/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

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

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #f0f0f0;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #f0f0f0;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    padding: 5px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    /* Ensure button doesn't submit forms or navigate */
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    /* Ensure button is above other elements */
    position: relative;
    z-index: 1001;
    /* Prevent any accidental interactions on desktop */
    pointer-events: none;
}

/* Enable pointer events only on mobile */
@media (max-width: 768px) {
    .nav-toggle {
        pointer-events: auto;
    }
}

.nav-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-toggle:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.hamburger {
    width: 100%;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
    border-radius: 3px;
    pointer-events: none; /* Prevent hamburger spans from receiving click events */
}

.nav-toggle.active .hamburger:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active .hamburger:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .hamburger:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 70px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
}

.btn-primary {
    background-color: #ff6b6b;
    color: white;
}

.btn-primary:hover {
    background-color: #ee5a5a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

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

/* Content Sections */
.content-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.content-grid {
    display: grid;
    gap: 40px;
}

.text-content {
    max-width: 800px;
    margin: 0 auto;
}

.text-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #333;
    text-align: center;
}

.text-content h3 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem 0;
    color: #667eea;
}

.text-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.text-content strong {
    color: #ff6b6b;
    font-weight: 600;
}

/* Blockquote Styles */
blockquote {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin: 2rem 0;
    position: relative;
    font-style: italic;
}

blockquote::before {
    content: '"';
    font-size: 3rem;
    position: absolute;
    top: -10px;
    left: 15px;
    opacity: 0.5;
}

/* Enhanced blockquote for human rights page */
.content-section blockquote {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    padding: 30px;
    font-size: 1.1rem;
}

.content-section blockquote::before {
    font-size: 4rem;
    left: 20px;
    opacity: 0.3;
}

.call-to-action {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    color: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    margin-top: 3rem;
}

.call-to-action h2,
.call-to-action h3 {
    color: white;
    margin-bottom: 1rem;
}

/* Stats Section */
.stats-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.stats-section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

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

.stat-item {
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: #ff6b6b;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 40px 0;
}

.footer p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
        /* Make touch target larger for mobile */
        min-width: 44px;
        min-height: 44px;
        /* Ensure it's always on top */
        z-index: 1002;
        /* Better touch handling */
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2);
        touch-action: manipulation;
    }

    .nav-menu {
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        padding: 20px 0;
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.3s ease;
        z-index: 999;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        /* Ensure menu doesn't interfere with toggle button */
        pointer-events: none;
        /* Hide completely when closed */
        visibility: hidden;
    }

    .nav-menu.nav-menu-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
        visibility: visible;
    }

    .nav-menu li {
        margin: 10px 0;
        text-align: center;
    }

    .nav-link {
        display: block;
        padding: 15px 20px;
        font-size: 1.1rem;
        /* Make touch targets larger */
        min-height: 44px;
        line-height: 1.2;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .text-content h2 {
        font-size: 2rem;
    }

    .text-content h3 {
        font-size: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .container {
        padding: 0 15px;
    }
    
    /* Human Rights Page Mobile Styles */
    .response-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons .btn {
        width: 100%;
    }
    
    .cultural-analysis,
    .ai-solution {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .call-to-action {
        padding: 20px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

/* Meta Page and Human Rights Page Shared Styles */
.insight-box,
.reference-box {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin: 3rem 0;
}

.insight-box h3,
.insight-box h4,
.reference-box h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.research-findings {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin: 2rem 0;
}

.research-findings h4 {
    color: #667eea;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.research-findings ul {
    list-style: none;
    padding: 0;
}

.research-findings li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.research-findings li:last-child {
    border-bottom: none;
}

.research-findings strong {
    color: #ff6b6b;
}

.research-citation {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    margin: 2rem 0;
}

.research-citation h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.research-citation strong {
    color: #f0f0f0;
}

.research-citation em {
    color: #cce5ff;
}

.experimental-evidence {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-top: 1rem;
}

.experimental-evidence h5 {
    color: #667eea;
    margin-bottom: 1rem;
}

.experimental-evidence ul {
    margin: 0;
}

cite {
    display: block;
    text-align: right;
    margin-top: 1rem;
    font-style: normal;
    opacity: 0.8;
}

.call-to-action ul {
    list-style: none;
    padding: 0;
}

.call-to-action li {
    padding: 5px 0;
    position: relative;
    padding-left: 20px;
}

.call-to-action li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #fff;
    font-weight: bold;
}

/* Link Styles */
a {
    text-decoration: none;
    color: #80BA8E;
    transition: color 0.3s ease;
}

a:hover {
    text-decoration: underline;
}

/* Footer links */
.footer a {
    color: #cce5ff;
    font-weight: 500;
}

.footer a:hover {
    color: #fff;
}

/* Human Rights Page Specific Styles */
.response-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 3rem 0;
}

.response-item {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-left: 4px solid #ff6b6b;
}

.response-item h3 {
    color: #ff6b6b;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.statistical-note {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin: 3rem 0;
    border-left: 4px solid #667eea;
}

.statistical-note h3 {
    color: #667eea;
    margin-bottom: 1rem;
}

.cultural-analysis {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 15px;
    margin: 3rem 0;
}

.cultural-analysis h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.cultural-analysis p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.legal-revenge-framework {
    background: #fff3cd;
    padding: 30px;
    border-radius: 10px;
    margin: 3rem 0;
    border-left: 4px solid #ffc107;
}

.legal-revenge-framework h3 {
    color: #856404;
    margin-bottom: 1rem;
}

.revenge-outcomes {
    display: grid;
    gap: 20px;
    margin-top: 2rem;
}

.outcome-item {
    background: rgba(220, 53, 69, 0.1);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #dc3545;
}

.outcome-item h4 {
    color: #dc3545;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.ai-solution {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 40px;
    border-radius: 15px;
    margin: 3rem 0;
}

.ai-solution h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.solution-features {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.solution-features li {
    padding: 10px 0;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.solution-features li:last-child {
    border-bottom: none;
}

.transparency-note {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 10px;
    margin-top: 2rem;
    backdrop-filter: blur(10px);
}

.transparency-note h4 {
    color: white;
    margin-bottom: 1rem;
}

.github-links {
    margin-top: 1.5rem;
}

.action-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.action-buttons .btn {
    flex: 1;
    min-width: 180px;
}

/* Override blockquote styles for human rights page */
.highlight-quote {
    color: #ffff00 !important;
    text-decoration: underline !important;
    text-decoration-color: #ffff00 !important;
    text-decoration-thickness: 2px !important;
    text-shadow: 0 0 8px rgba(255, 255, 0, 0.6) !important;
    font-weight: 900 !important;
    font-size: 1.2em !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}
