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

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #ffffff 100%);
    min-height: 100vh;
    color: #1e3a8a;
}

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

header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15), 0 2px 10px rgba(30, 58, 138, 0.1);
    border-bottom: 1px solid rgba(30, 58, 138, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    font-family: 'Asimovian', sans-serif;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #1e3a8a;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 50%;
    border: 2px solid #1e3a8a;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #1e3a8a;
}

/* Hero Section - Complete Rebuild */
.hero-section {
    position: relative;
    width: 100%;
    height: 70vh;
    margin-top: 0;
    padding-top: 80px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Video Background */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Video Overlay */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 58, 138, 0.3);
    z-index: 2;
}

/* Hero Content Container */
.hero-container {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.hero-content {
    color: white;
    background: rgba(0, 0, 0, 0.4);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(5px);
}

.hero-avatar {
    margin-bottom: 2rem;
}

.hero-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    object-fit: cover;
    animation: heroFloat 3s ease-in-out infinite;
}

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

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: bold;
    animation: heroTitleBounce 2s ease-in-out infinite;
}

@keyframes heroTitleBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-details {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-motto {
    font-size: 1rem;
    margin-bottom: 2.5rem;
    opacity: 0.8;
    font-style: italic;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-button {
    display: inline-block;
    background: linear-gradient(45deg, #1e3a8a, #3b82f6);
    color: white;
    padding: 18px 36px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.4);
    text-shadow: none;
}

.hero-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.5);
}

.btn {
    display: inline-block;
    background: linear-gradient(45deg, #1e3a8a, #3b82f6);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1e3a8a;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.about {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}

.photo-container {
    width: 100%;
    height: 300px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.3);
    background: white;
}

.landon-photo {
    max-width: 100%;
    max-height: 100%;
    border-radius: 15px;
    object-fit: contain;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.6;
}

.platform-experience-section {
    background: rgba(255, 255, 255, 0.9);
}

.platform-experience-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.subsection-title {
    font-size: 1.8rem;
    color: #1e3a8a;
    margin-bottom: 2rem;
    text-align: center;
    border-bottom: 3px solid #3b82f6;
    padding-bottom: 0.5rem;
}

.platform-side .platform-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.platform-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.platform-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.platform-card h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #1e3a8a;
}

.stars-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.star {
    font-size: 1.5rem;
}

.large-star {
    font-size: 2rem;
}

.gavel-icon {
    font-size: 2.5rem;
    text-align: center;
    margin-top: 1rem;
}

.books-icon {
    font-size: 2.5rem;
    text-align: center;
    margin-top: 1rem;
}

.smiley-icon {
    font-size: 2.5rem;
    text-align: center;
    margin-top: 1rem;
}

.experience-side .experience-timeline {
    max-width: 100%;
}

.timeline-item {
    background: white;
    padding: 1.5rem;
    margin: 1rem 0;
    border-radius: 10px;
    border-left: 4px solid #3b82f6;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

.timeline-year {
    font-size: 1.1rem;
    font-weight: bold;
    color: #1e3a8a;
    margin-bottom: 0.5rem;
}

.timeline-item h4 {
    font-size: 1.3rem;
    color: #1e3a8a;
    margin-bottom: 0.5rem;
}

.interactive-section {
    background: rgba(255, 255, 255, 0.8);
}

.game-section {
    background: rgba(255, 255, 255, 0.9);
}

.game-container {
    text-align: center;
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.game-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.score, .lives, .level {
    font-size: 1.2rem;
    font-weight: bold;
    color: #1e3a8a;
}

#gameCanvas {
    border: 3px solid #1e3a8a;
    border-radius: 10px;
    background: linear-gradient(180deg, #87ceeb 0%, #90ee90 50%, #98fb98 100%);
    display: block;
    margin: 0 auto;
    max-width: 100%;
}

#snakeCanvas {
    border: 3px solid #1e3a8a;
    border-radius: 10px;
    background: #2d5016;
    display: block;
    margin: 0 auto;
    max-width: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.game-instructions {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #666;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.high-scores-section {
    margin-top: 2rem;
    background: rgba(30, 58, 138, 0.05);
    padding: 1.5rem;
    border-radius: 15px;
    border: 2px solid rgba(30, 58, 138, 0.1);
}

.high-scores-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.high-scores-section h4 {
    color: #1e3a8a;
    margin: 0;
    font-size: 1.3rem;
}

#timeframeSelector {
    padding: 0.5rem;
    border: 2px solid #1e3a8a;
    border-radius: 8px;
    background: white;
    color: #1e3a8a;
    font-weight: 600;
    cursor: pointer;
}

.no-scores {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
}

.high-scores-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.score-entry {
    display: grid;
    grid-template-columns: 40px 1fr 80px 60px;
    align-items: center;
    background: white;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

.score-entry:hover {
    transform: translateX(5px);
}

.score-entry .rank {
    font-weight: bold;
    color: #1e3a8a;
}

.score-entry .player-name {
    font-weight: 600;
    color: #333;
}

.score-entry .score {
    font-weight: bold;
    color: #16a34a;
    text-align: right;
}

.score-entry .level {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
}

.vote-counter {
    text-align: center;
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
}

.campaign-progress {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e5e7eb;
}

.campaign-progress h4 {
    color: #1e3a8a;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    margin: 1rem 0;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(45deg, #16a34a, #22c55e);
    border-radius: 10px;
    width: 0%;
    transition: width 0.5s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.4) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.campaign-progress p {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.vote-count {
    font-size: 3rem;
    color: #1e3a8a;
    font-weight: bold;
    margin: 1rem 0;
}

.vote-btn {
    background: linear-gradient(45deg, #1e3a8a, #3b82f6);
    border: none;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.vote-btn:hover {
    transform: scale(1.05);
}

.message-board {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.message-form {
    margin-bottom: 1rem;
}

.name-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    margin-bottom: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.name-input:focus {
    outline: none;
    border-color: #3b82f6;
}

.message-input {
    max-height: 320px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-family: inherit;
    font-size: 1rem;
    min-height: 5px;
    background: white;
}

.message-input .ql-editor {
    min-height: 200px;
    max-height: 300px;
    font-family: inherit;
    font-size: 1rem;
    padding: 2px;
}

.message-input .ql-container {
    height: 30px;
    max-height: 300px;
}

.message-input .ql-toolbar {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom: 1px solid #e0e0e0;
}

.message-input .ql-container {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.message-input:focus-within {
    border-color: #3b82f6;
}

.messages {
    max-height: 500px;
    overflow-y: auto;
    margin-top: 1rem;
}

.message {
    background: #f0f0f0;
    padding: 1rem;
    margin: 0.5rem 0;
    border-radius: 10px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

footer {
    background: #1e3a8a;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid white;
    object-fit: cover;
}

.floating-emojis {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: -1;
}

.emoji {
    position: absolute;
    font-size: 2rem;
    animation: floatUp 5s infinite linear;
}

@keyframes floatUp {
    from {
        transform: translateY(100vh) rotate(0deg);
        opacity: 1;
    }
    to {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes confettiFall {
    to {
        transform: translateY(100vh) rotate(360deg);
    }
}

@keyframes levelUpPulse {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

@keyframes ultraFlash {
    0%, 100% { opacity: 0; }
    25% { opacity: 0.4; }
    50% { opacity: 0.1; }
    75% { opacity: 0.3; }
}

@keyframes ultraShake {
    0%, 100% { transform: translateX(0); }
    10% { transform: translateX(-5px); }
    20% { transform: translateX(5px); }
    30% { transform: translateX(-3px); }
    40% { transform: translateX(3px); }
    50% { transform: translateX(-2px); }
    60% { transform: translateX(2px); }
    70% { transform: translateX(-1px); }
    80% { transform: translateX(1px); }
    90% { transform: translateX(-1px); }
}

/* Game Modal Styles */
.game-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

.game-modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 100%);
    margin: 10% auto;
    padding: 2.5rem;
    border: 3px solid #1e3a8a;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease;
    text-align: center;
}

.game-modal-content h2 {
    color: #1e3a8a;
    margin-bottom: 1rem;
    font-size: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.game-modal-content p {
    color: #333;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    white-space: pre-line;
}

.modal-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #1e3a8a;
    border-radius: 10px;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.modal-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.modal-btn {
    min-width: 120px;
    padding: 12px 24px;
}

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

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Snake Selection Styles */
.snake-selection {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.snake-selection h3 {
    color: #1e3a8a;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.snake-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.snake-option {
    background: white;
    border: 3px solid #e0e0e0;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.snake-option:hover {
    transform: translateY(-5px);
    border-color: #1e3a8a;
    box-shadow: 0 5px 15px rgba(30, 58, 138, 0.2);
}

.snake-option.selected {
    border-color: #1e3a8a;
    background: linear-gradient(135deg, #f0f4ff 0%, #ffffff 100%);
    box-shadow: 0 5px 20px rgba(30, 58, 138, 0.3);
}

.snake-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.snake-option h4 {
    color: #1e3a8a;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.snake-option p {
    color: #666;
    font-size: 0.85rem;
    margin: 0;
}

.ability-cooldown {
    font-size: 1rem;
    font-weight: bold;
    color: #1e3a8a;
    padding: 0.5rem;
    background: rgba(30, 58, 138, 0.1);
    border-radius: 8px;
    text-align: center;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    /* Mobile Hero Section */
    .hero-section {
        height: 90vh;
        margin-top: 70px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .hero-details {
        font-size: 1rem;
    }
    
    .hero-motto {
        font-size: 0.9rem;
    }
    
    .hero-button {
        padding: 15px 30px;
        font-size: 1.1rem;
    }
    
    .hero-image {
        width: 100px;
        height: 100px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    /* Mobile Platform/Experience Section */
    .platform-experience-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .platform-side .platform-grid {
        grid-template-columns: 1fr;
    }

    #gameCanvas {
        width: 100%;
        height: 300px;
    }

    #snakeCanvas {
        width: 100%;
        height: 300px;
    }

    .game-info {
        flex-direction: column;
        text-align: center;
    }
}