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

:root {
    --primary-red: #dc2626;
    --secondary-red: #b91c1c;
    --dark-red: #991b1b;
    --light-red: #fca5a5;
    --primary-black: #0a0a0a;
    --secondary-black: #1a1a1a;
    --tertiary-black: #2a2a2a;
    --light-gray: #d1d5db;
    --medium-gray: #6b7280;
    --white: #ffffff;
    --shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--secondary-black) 100%);
    color: var(--white);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(220, 38, 38, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(220, 38, 38, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Header Styles */
.header {
    text-align: center;
    padding: 60px 0 40px;
    border-bottom: 1px solid var(--tertiary-black);
    margin-bottom: 60px;
}

.title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-red), var(--light-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.title i {
    color: var(--primary-red);
    -webkit-text-fill-color: var(--primary-red);
    animation: pulse 2s ease-in-out infinite alternate;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--medium-gray);
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* Section Styles */
.section {
    margin-bottom: 80px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.section-title::after {
    content: '';
    flex-grow: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-red), transparent);
    margin-left: 20px;
}

.section-title i {
    color: var(--primary-red);
    font-size: 2rem;
}

/* Device Grid */
.device-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Device Card Styles */
.device-card {
    background: linear-gradient(145deg, var(--secondary-black), var(--tertiary-black));
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.device-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.device-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-red);
}

.device-card:hover::before {
    opacity: 1;
}

.device-card.primary {
    border-color: var(--primary-red);
    box-shadow: 0 0 30px rgba(220, 38, 38, 0.3);
}

/* Device Header */
.device-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.device-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
}

/* Device Badge */
.device-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.device-badge.primary {
    background: var(--primary-red);
    color: var(--white);
}

.device-badge.secondary {
    background: var(--medium-gray);
    color: var(--white);
}

.device-badge.server {
    background: linear-gradient(45deg, var(--primary-red), var(--dark-red));
    color: var(--white);
}

.device-badge.mobile {
    background: var(--tertiary-black);
    color: var(--light-red);
    border: 1px solid var(--primary-red);
}

/* Specifications */
.device-specs {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.spec-item:hover {
    padding-left: 10px;
    border-color: var(--primary-red);
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-item i {
    font-size: 1.2rem;
    color: var(--primary-red);
    width: 20px;
    text-align: center;
}

.spec-label {
    font-weight: 500;
    color: var(--medium-gray);
    min-width: 80px;
}

.spec-value {
    font-weight: 600;
    color: var(--white);
    flex-grow: 1;
}

/* Footer */
.footer {
    background: var(--primary-black);
    border-top: 1px solid var(--tertiary-black);
    padding: 40px 0;
    margin-top: 80px;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-content p {
    color: var(--medium-gray);
    font-size: 0.9rem;
}

.footer-stats {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-stats span {
    color: var(--light-gray);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-stats i {
    color: var(--primary-red);
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.05);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.device-card {
    animation: slideIn 0.6s ease-out forwards;
}

.device-card:nth-child(1) { animation-delay: 0.1s; }
.device-card:nth-child(2) { animation-delay: 0.2s; }
.device-card:nth-child(3) { animation-delay: 0.3s; }

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header {
        padding: 40px 0 30px;
        margin-bottom: 40px;
    }
    
    .title {
        flex-direction: column;
        gap: 10px;
    }
    
    .device-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .device-card {
        padding: 20px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .footer-stats {
        gap: 15px;
    }
    
    .device-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .spec-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .spec-label {
        min-width: auto;
    }
}