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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #0a0a0a;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Top Navigation Banner */
.top-banner {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    border-bottom: 2px solid #dc2626;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(220, 38, 38, 0.1);
}

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

.nav-left .logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #dc2626;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.nav-left .logo-text:hover {
    color: #ef4444;
}

.nav-right {
    display: flex;
    gap: 1rem;
}

.nav-btn {
    padding: 0.75rem 1.5rem;
    background-color: #1a1a1a;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    border: 1px solid #404040;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background-color: #dc2626;
    border-color: #dc2626;
    transform: translateY(-2px);
}

.nav-btn.active {
    background-color: #dc2626;
    border-color: #dc2626;
}

/* Main Content */
.main-content {
    flex: 1;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* Homepage Grid Layout */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
}

.logo-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.server-logo {
    width: 100%;
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(220, 38, 38, 0.3));
}

.description-section {
    background-color: #1a1a1a;
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid #404040;
}

.description-section h1 {
    color: #dc2626;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.description-section h2 {
    color: #ef4444;
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.description-section p {
    color: #e5e5e5;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Services List */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.service-item {
    background-color: #0a0a0a;
    padding: 1.25rem;
    border-radius: 8px;
    border: 1px solid #2a2a2a;
    transition: all 0.3s ease;
}

.service-item:hover {
    border-color: #dc2626;
    transform: translateX(5px);
}

.service-name {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.service-desc {
    color: #a3a3a3;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.service-status {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-online {
    background-color: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid #22c55e;
}

.status-offline {
    background-color: rgba(220, 38, 38, 0.15);
    color: #dc2626;
    border: 1px solid #dc2626;
}

/* Specifications */
.specs {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    background-color: #0a0a0a;
    border-radius: 6px;
    border: 1px solid #2a2a2a;
}

.spec-label {
    color: #a3a3a3;
    font-weight: 500;
}

.spec-value {
    color: #ffffff;
    font-weight: 600;
}

/* Camera Page Styles */
.camera-container {
    max-width: 1200px;
    margin: 0 auto;
}

.camera-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.camera-header h1 {
    color: #dc2626;
    font-size: 2.5rem;
    font-weight: 700;
}

.camera-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-indicator {
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1rem;
}

.stream-wrapper {
    position: relative;
    width: 100%;
    background-color: #000000;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #404040;
    margin-bottom: 2rem;
    aspect-ratio: 16 / 9;
}

.stream-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.camera-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.control-btn {
    padding: 0.85rem 1.75rem;
    background-color: #1a1a1a;
    color: #ffffff;
    text-decoration: none;
    border: 1px solid #404040;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    display: inline-block;
}

.control-btn:hover {
    background-color: #dc2626;
    border-color: #dc2626;
    transform: translateY(-2px);
}

.camera-info {
    background-color: #1a1a1a;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #404040;
}

.camera-info h2 {
    color: #ef4444;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background-color: #0a0a0a;
    border-radius: 6px;
    border: 1px solid #2a2a2a;
}

.info-label {
    color: #a3a3a3;
    font-weight: 500;
}

.info-value {
    color: #ffffff;
    font-weight: 600;
}

/* Footer */
footer {
    background-color: #1a1a1a;
    border-top: 2px solid #dc2626;
    padding: 1.5rem;
    text-align: center;
    margin-top: auto;
}

footer p {
    color: #a3a3a3;
    font-size: 0.9rem;
}

/* Mobile Responsive Design */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .logo-section {
        order: 2;
    }

    .description-section {
        order: 1;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }

    .nav-left, .nav-right {
        width: 100%;
        justify-content: center;
    }

    .nav-right {
        flex-direction: column;
        width: 100%;
    }

    .nav-btn {
        width: 100%;
        text-align: center;
    }

    .main-content {
        padding: 2rem 1rem;
    }

    .description-section {
        padding: 1.5rem;
    }

    .description-section h1 {
        font-size: 2rem;
    }

    .description-section h2 {
        font-size: 1.25rem;
    }

    .camera-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .camera-header h1 {
        font-size: 2rem;
    }

    .camera-controls {
        flex-direction: column;
    }

    .control-btn {
        width: 100%;
        text-align: center;
    }

    .camera-info {
        padding: 1.5rem;
    }

    .spec-item, .info-item {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .nav-left .logo-text {
        font-size: 1.25rem;
    }

    .description-section h1 {
        font-size: 1.75rem;
    }

    .camera-header h1 {
        font-size: 1.75rem;
    }

    .server-logo {
        max-width: 200px;
    }
}
