:root {
    --pip-boy-green: #2ec927;
    --pip-boy-dark: #0a2d0a;
    --pip-boy-light: #52ff4f;
    --rust-color: #8b4513;
    --metal-gray: #2c3539;
}

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

body {
    font-family: 'Share Tech Mono', monospace;
    background-color: #1a1a1a;
    color: var(--pip-boy-green);
    line-height: 1.6;
    position: relative;
}

.pip-boy-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15) 0px,
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 1000;
}

header {
    background-color: var(--pip-boy-dark);
    padding: 1rem;
    border-bottom: 2px solid var(--pip-boy-green);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
}

.logo a {
    color: var(--pip-boy-light);
    text-decoration: none;
    text-shadow: 0 0 10px var(--pip-boy-green);
}

.logo a:hover {
    color: var(--pip-boy-light);
    text-shadow: 0 0 15px var(--pip-boy-green);
}

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

nav a {
    color: var(--pip-boy-green);
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

nav a:hover {
    color: var(--pip-boy-light);
    text-shadow: 0 0 10px var(--pip-boy-green);
}

.hero-section {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
                url('images/hero-bg.jpg') center/cover;
    position: relative;
}

.hero-content {
    z-index: 1;
}

.glitch-text {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: glitch 1s infinite;
    text-shadow: 0 0 15px var(--pip-boy-green);
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--pip-boy-light);
}

.tagline {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--pip-boy-green);
    font-style: italic;
}

@keyframes glitch {
    0% { transform: translate(0) }
    20% { transform: translate(-2px, 2px) }
    40% { transform: translate(-2px, -2px) }
    60% { transform: translate(2px, 2px) }
    80% { transform: translate(2px, -2px) }
    100% { transform: translate(0) }
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--pip-boy-dark);
    color: var(--pip-boy-green);
    text-decoration: none;
    border: 2px solid var(--pip-boy-green);
    border-radius: 4px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: var(--pip-boy-green);
    color: var(--pip-boy-dark);
    box-shadow: 0 0 20px var(--pip-boy-green);
}

.features-section {
    padding: 4rem 2rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.feature-card {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    padding: 2rem;
    background-color: var(--pip-boy-dark);
    border: 2px solid var(--pip-boy-green);
    border-radius: 8px;
    text-align: center;
}

.pip-boy-frame {
    position: relative;
    padding: 1rem;
}

.pip-boy-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid var(--pip-boy-green);
    animation: frameScan 2s linear infinite;
}

@keyframes frameScan {
    0% { clip-path: polygon(0 0, 100% 0, 100% 0, 0 0) }
    100% { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%) }
}

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

.products-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    text-shadow: 0 0 10px var(--pip-boy-green);
}

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

.product-card {
    background-color: var(--pip-boy-dark);
    border: 2px solid var(--pip-boy-green);
    padding: 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px var(--pip-boy-green);
}

.product-image {
    width: 100%;
    height: 200px;
    background-color: var(--metal-gray);
    margin-bottom: 1rem;
    border: 1px solid var(--pip-boy-green);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.price {
    font-size: 1.5rem;
    color: var(--pip-boy-light);
    margin: 1rem 0;
}

.features-list {
    list-style: none;
    margin: 1rem 0;
}

.features-list li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.features-list li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--pip-boy-light);
}

.buy-button {
    display: block;
    width: 100%;
    padding: 1rem;
    background-color: transparent;
    color: var(--pip-boy-green);
    text-decoration: none;
    border: 2px solid var(--pip-boy-green);
    text-align: center;
    transition: all 0.3s ease;
}

.buy-button:hover {
    background-color: var(--pip-boy-green);
    color: var(--pip-boy-dark);
}

footer {
    background-color: var(--pip-boy-dark);
    padding: 2rem;
    border-top: 2px solid var(--pip-boy-green);
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    color: var(--pip-boy-green);
    text-decoration: none;
    margin: 0 1rem;
}

.footer-links a:hover {
    color: var(--pip-boy-light);
    text-shadow: 0 0 5px var(--pip-boy-green);
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    nav ul {
        gap: 1rem;
    }
    
    .feature-card {
        min-width: 100%;
    }
}

/* Boot sequence animation */
@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.boot-terminal {
    font-family: 'Share Tech Mono', monospace;
    white-space: pre-wrap;
    line-height: 1.5;
}
