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

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

/* Dell Optiplex Grill Pattern */
.grill-pattern {
    background:
        repeating-linear-gradient(
            0deg,
            #2a2a2a,
            #2a2a2a 3px,
            #1f1f1f 3px,
            #1f1f1f 6px
        );
}

nav {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 1rem 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
    border-bottom: 1px solid #404040;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav a {
    color: #c0c0c0;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

nav a:hover {
    color: #ffffff;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    margin-right: auto;
}

.logo a {
    color: #ffffff;
    text-decoration: none;
}

.logo a:hover {
    color: #ffffff;
}

.hero {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    padding: 4rem 2rem;
    text-align: center;
    color: white;
    border-bottom: 2px solid #404040;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background:
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 20px,
            rgba(64, 64, 64, 0.1) 20px,
            rgba(64, 64, 64, 0.1) 22px
        );
    pointer-events: none;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
    color: #b0b0b0;
}

.cta-button {
    background: linear-gradient(135deg, #505050 0%, #3a3a3a 100%);
    color: #ffffff;
    padding: 1rem 3rem;
    border: 1px solid #606060;
    border-radius: 3px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    position: relative;
    z-index: 1;
}

.cta-button:hover {
    background: linear-gradient(135deg, #5a5a5a 0%, #454545 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.build-of-day {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.build-of-day > h2 {
    color: #c0c0c0;
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 600;
}

.build-card {
    background: linear-gradient(135deg, #2a2a2a 0%, #232323 100%);
    border-radius: 3px;
    padding: 3rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.6);
    border: 1px solid #404040;
    position: relative;
}

.build-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 20px;
    background:
        repeating-linear-gradient(
            0deg,
            #808080,
            #808080 5px,
            #606060 5px,
            #606060 10px
        );
}

.build-card h2, .build-card h3 {
    color: #e0e0e0;
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 600;
}

.build-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.spec-item {
    background: linear-gradient(135deg, #1f1f1f 0%, #1a1a1a 100%);
    padding: 1.5rem;
    border-radius: 3px;
    border-left: 3px solid #606060;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.spec-label {
    color: #909090;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.spec-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: #e0e0e0;
}

.price-breakdown {
    margin: 2rem 0;
    background: linear-gradient(135deg, #1f1f1f 0%, #1a1a1a 100%);
    padding: 1.5rem;
    border-radius: 3px;
    border-left: 3px solid #606060;
}

.price-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    color: #b0b0b0;
    font-size: 0.95rem;
}

.price-item:not(:last-child) {
    border-bottom: 1px solid #2a2a2a;
}

.price-item.total {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e0e0e0;
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 2px solid #404040;
}

.price-tag {
    background: linear-gradient(135deg, #3a3a3a 0%, #2d2d2d 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 3px;
    font-size: 2rem;
    font-weight: 600;
    display: inline-block;
    margin: 2rem 0;
    border: 1px solid #505050;
}

.features {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #c0c0c0;
    font-weight: 600;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: linear-gradient(135deg, #2a2a2a 0%, #232323 100%);
    padding: 2rem;
    border-radius: 3px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #404040;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 12px;
    background:
        repeating-linear-gradient(
            0deg,
            #808080,
            #808080 5px,
            #606060 5px,
            #606060 10px
        );
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.6);
    border-color: #606060;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #909090;
}

.feature-card h3 {
    color: #c0c0c0;
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-card p {
    color: #a0a0a0;
}

footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    color: #909090;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
    border-top: 1px solid #404040;
}

.loading {
    text-align: center;
    padding: 2rem;
    color: #808080;
}

.view-build-btn {
    background: linear-gradient(135deg, #505050 0%, #3a3a3a 100%);
    color: #ffffff;
    padding: 1rem 2rem;
    border-radius: 3px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: 1px solid #606060;
    display: inline-block;
    margin-top: 1.5rem;
}

.view-build-btn:hover {
    background: linear-gradient(135deg, #5a5a5a 0%, #454545 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.last-updated {
    color: #808080;
    font-size: 0.85rem;
    margin-top: 1rem;
    font-style: italic;
}

/* Floating Optiplex PCs Animation */
.floating-pcs-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.floating-pc {
    position: absolute;
    right: -100px; /* Start off-screen to the right */
    animation: floatLeftward linear infinite;
    opacity: 0.15;
    filter: blur(0.5px);
}

@keyframes floatLeftward {
    0% {
        right: -100px;
        opacity: 0;
    }
    5% {
        opacity: 0.15;
    }
    95% {
        opacity: 0.15;
    }
    100% {
        right: 100%;
        opacity: 0;
    }
}

/* Tiny Optiplex PC Styles */
.tiny-optiplex {
    width: 50px;
    height: 100px;
    background: #2a2a2a;
    border-radius: 2px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    position: relative;
    border: 1px solid #1a1a1a;
    border-bottom: 4px solid #1a1a1a;
}

.tiny-top {
    height: 6px;
    background: linear-gradient(180deg, #3a3a3a 0%, #2a2a2a 100%);
    border-bottom: 1px solid #1a1a1a;
}

.tiny-drives {
    padding: 2px;
}

.tiny-drive {
    height: 7px;
    background: linear-gradient(180deg, #4a4a4a 0%, #3a3a3a 50%, #2a2a2a 100%);
    border: 1px solid #1a1a1a;
    border-radius: 1px;
    margin-bottom: 2px;
}

.tiny-drive-small {
    height: 5px;
    background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
    border: 1px solid #0a0a0a;
    border-radius: 1px;
}

.tiny-control {
    padding: 2px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 8px;
    background: #2a2a2a;
    border-bottom: 1px solid #1a1a1a;
}

.tiny-port {
    width: 3px;
    height: 3px;
    background: #0a0a0a;
    border: 1px solid #3a3a3a;
    border-radius: 50%;
}

.tiny-mesh {
    height: 60px;
    background: linear-gradient(135deg, #e0e0e0 0%, #d0d0d0 50%, #c8c8c8 100%);
    position: relative;
    overflow: hidden;
}

.tiny-mesh::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.3) 0px,
            rgba(0, 0, 0, 0.3) 1px,
            transparent 1px,
            transparent 3px
        );
}

.tiny-mesh::after {
    content: 'OPTIPLEX';
    position: absolute;
    top: 15%;
    left: 35%;
    transform: translate(-50%, -50%);
    font-size: 5px;
    font-weight: 700;
    color: #2a2a2a;
    letter-spacing: 0.5px;
    font-family: 'Impact', 'Arial Black', sans-serif;
}

.tiny-bottom {
    height: 5px;
    background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
}

/* Ensure hero content is above floating PCs */
.hero h1,
.hero p,
.hero .cta-button {
    position: relative;
    z-index: 1;
}

/* ============================================
   MOBILE RESPONSIVE STYLES
   ============================================ */

/* Tablets and smaller (768px and below) */
@media (max-width: 768px) {
    nav {
        padding: 1rem 1rem;
    }

    nav ul {
        gap: 1rem;
        flex-wrap: wrap;
    }

    .logo {
        font-size: 1.2rem;
    }

    .hero {
        padding: 3rem 1.5rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

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

    .cta-button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    .build-of-day {
        padding: 0 1.5rem;
        margin: 3rem auto;
    }

    .build-of-day > h2 {
        font-size: 1.8rem;
    }

    .build-card {
        padding: 2rem 1.5rem;
    }

    .build-specs {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .features {
        padding: 0 1.5rem;
        margin: 3rem auto;
    }

    .features h2 {
        font-size: 2rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .price-tag {
        font-size: 1.5rem;
        padding: 0.8rem 1.5rem;
    }
}

/* Mobile devices (480px and below) */
@media (max-width: 480px) {
    nav {
        padding: 0.8rem 1rem;
    }

    nav ul {
        gap: 0.5rem;
        font-size: 0.9rem;
    }

    .logo {
        font-size: 1rem;
    }

    .hero {
        padding: 2rem 1rem;
    }

    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .cta-button {
        padding: 0.7rem 1.5rem;
        font-size: 0.95rem;
    }

    .build-of-day {
        padding: 0 1rem;
        margin: 2rem auto;
    }

    .build-of-day > h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .build-card {
        padding: 1.5rem 1rem;
    }

    .build-card h2, .build-card h3 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .build-card::before {
        width: 12px;
    }

    .spec-item {
        padding: 1rem;
    }

    .spec-value {
        font-size: 1rem;
    }

    .price-breakdown {
        padding: 1rem;
    }

    .price-item {
        font-size: 0.85rem;
    }

    .price-tag {
        font-size: 1.2rem;
        padding: 0.7rem 1.2rem;
    }

    .features {
        padding: 0 1rem;
        margin: 2rem auto;
    }

    .features h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .feature-grid {
        gap: 1rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .feature-card::before {
        width: 8px;
    }

    .feature-icon {
        font-size: 2.5rem;
    }

    .feature-card h3 {
        font-size: 1.1rem;
    }

    .feature-card p {
        font-size: 0.95rem;
    }

    .view-build-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }

    footer {
        padding: 1.5rem 1rem;
        font-size: 0.9rem;
    }

    /* Hide floating PCs on small mobile for performance */
    .floating-pc {
        display: none;
    }
}

/* Very small mobile devices (360px and below) */
@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    nav ul {
        gap: 0.3rem;
        font-size: 0.85rem;
    }

    .build-of-day > h2,
    .features h2 {
        font-size: 1.4rem;
    }

    .cta-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}