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

body {
    font-family: 'Courier New', monospace;
    background: #0B3A67;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px;
    margin: 0;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    max-width: 500px;
    width: 100%;
}

/* Logo Styles */
.logo {
    display: flex;
    justify-content: center;
}

.logo-image {
    height: 480px;
    width: auto;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    max-width: 100%;
}

/* Form Styles */
.email-form {
    width: 100%;
    max-width: 400px;
}

.input-group {
    display: flex;
    gap: 8px;
    width: 100%;
    margin-bottom: 20px;
}

.input-group input[type="email"] {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid #3f51b5;
    background: #0d1421;
    color: #ffffff;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    border-radius: 0;
    outline: none;
    transition: border-color 0.2s ease;
}

.input-group input[type="email"]:focus {
    border-color: #f44336;
}

.input-group input[type="email"]::placeholder {
    color: #9e9e9e;
}

.submit-btn {
    padding: 16px 32px;
    background: #E3362C;
    color: #ffffff;
    border: 2px solid #d32f2f;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 0;
    transition: background-color 0.2s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.submit-btn:hover {
    background: #d32f2f;
}

.submit-btn:active {
    background: #b71c1c;
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-text {
    transition: opacity 0.3s ease;
}

.btn-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.submit-btn.loading .btn-text {
    opacity: 0;
}

.submit-btn.loading .btn-loading {
    opacity: 1;
}

.loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Message Styles */
.message {
    padding: 16px 20px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    border: 2px solid;
    border-radius: 0;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(-10px);
}

.message.show {
    opacity: 1;
    transform: translateY(0);
}

.message.success {
    background: #0d1421;
    color: #4caf50;
    border-color: #4caf50;
}

.message.error {
    background: #0d1421;
    color: #f44336;
    border-color: #f44336;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        gap: 30px;
        padding: 0 20px;
    }
    
    .logo-image {
        height: 360px;
    }
    
    .input-group {
        flex-direction: column;
        gap: 8px;
    }
    
    .submit-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        gap: 25px;
        padding: 0 15px;
    }
    
    .logo-image {
        height: 300px;
    }
    
    .input-group input[type="email"] {
        font-size: 14px;
        padding: 12px 16px;
    }
    
    .submit-btn {
        font-size: 14px;
        padding: 12px 24px;
    }
}

/* Device-specific optimizations */
@media (max-width: 320px) {
    .logo-image {
        height: 240px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-image {
        image-rendering: pixelated;
        image-rendering: -moz-crisp-edges;
        image-rendering: crisp-edges;
    }
}

/* Touch devices */
@media (hover: none) and (pointer: coarse) {
    .submit-btn {
        min-height: 44px;
        padding: 14px 24px;
    }
    
    .input-group input[type="email"] {
        min-height: 44px;
        padding: 14px 16px;
    }
}

/* Project Section */
.project-section {
    margin-top: 60px;
    padding: 40px 20px;
    max-width: 800px;
    width: 100%;
}

.project-content {
    background: #E3362C;
    border: 3px solid #d32f2f;
    border-radius: 0;
    padding: 30px;
    box-shadow: 
        0 0 0 2px #ffffff,
        0 0 0 4px #E3362C,
        0 8px 16px rgba(0, 0, 0, 0.3);
    position: relative;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.project-content::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    background: #ffffff;
    z-index: -1;
    border: 2px solid #d32f2f;
}

.project-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 1.8rem;
    font-weight: normal;
    text-align: center;
    margin-bottom: 30px;
    color: #ffffff;
    text-shadow: 2px 2px 0px #000000;
    line-height: 1.4;
}

.project-description {
    font-family: 'Press Start 2P', monospace;
    color: #ffffff;
    line-height: 1.6;
    font-size: 0.7rem;
    text-shadow: 1px 1px 0px #000000;
}

.project-description p {
    margin-bottom: 20px;
    text-shadow: 1px 1px 0px #000000;
}

.project-description h3 {
    font-family: 'Press Start 2P', monospace;
    font-size: 1rem;
    font-weight: normal;
    margin: 30px 0 15px 0;
    color: #ffffff;
    text-shadow: 2px 2px 0px #000000;
    line-height: 1.4;
}

.project-description ul {
    margin: 20px 0;
    padding-left: 20px;
}

.project-description li {
    margin-bottom: 20px;
    text-shadow: 1px 1px 0px #000000;
    font-size: 0.7rem;
    line-height: 1.8;
}

.project-description li strong {
    color: #ffffff;
    font-size: 0.7rem;
    text-shadow: 2px 2px 0px #000000;
}

.coming-soon {
    text-align: center;
    margin-top: 30px;
}

.coming-soon-text {
    font-family: 'Press Start 2P', monospace;
    background: #ffffff;
    color: #E3362C;
    padding: 12px 24px;
    border: 3px solid #000000;
    border-radius: 0;
    font-weight: normal;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 
        0 0 0 2px #ffffff,
        0 0 0 4px #E3362C,
        0 4px 8px rgba(0, 0, 0, 0.3);
    display: inline-block;
    line-height: 1.4;
    text-shadow: none;
}

/* Responsive adjustments for project section */
@media (max-width: 768px) {
    .project-section {
        margin-top: 40px;
        padding: 20px 15px;
    }
    
    .project-content {
        padding: 20px;
    }
    
    .project-title {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }
    
    .project-description {
        font-size: 0.6rem;
    }
    
    .project-description li {
        font-size: 0.6rem;
    }
    
    .project-description li strong {
        font-size: 0.6rem;
    }
}

@media (max-width: 600px) {
    .project-section {
        margin-top: 30px;
        padding: 15px 10px;
    }
    
    .project-content {
        padding: 15px;
    }
    
    .project-title {
        font-size: 1.2rem;
    }
    
    .project-description h3 {
        font-size: 0.8rem;
    }
    
    .project-description {
        font-size: 0.5rem;
    }
    
    .project-description li {
        font-size: 0.5rem;
    }
    
    .project-description li strong {
        font-size: 0.5rem;
    }
    
    .coming-soon-text {
        font-size: 0.6rem;
        padding: 10px 20px;
    }
}