/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

/* Header and Navigation */
header {
    background-color: #1a1a1a;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #ffd700;
}

/* Hero Section */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.5rem;
    max-width: 800px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Categories Section */
.categories {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.categories h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.category-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.category-card h3 {
    padding: 1rem;
    font-size: 1.5rem;
}

.category-card p {
    padding: 0 1rem 1rem;
    color: #666;
}

/* Featured Weapons Section */
.featured-weapons {
    padding: 5rem 2rem;
    background-color: #fff;
}

.featured-weapons h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.weapon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.weapon-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.weapon-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.weapon-card h3 {
    padding: 1rem;
    font-size: 1.5rem;
}

.specs {
    padding: 0 1rem;
    background-color: #f8f8f8;
}

.specs p {
    margin: 0.5rem 0;
    color: #666;
}

.description {
    padding: 1rem;
    color: #666;
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 3rem 2rem 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: #ffd700;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .categories h2,
    .featured-weapons h2 {
        font-size: 2rem;
    }
}

/* New styles for detailed weapon pages */
.category-header {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
                url('images/hero-bg.jpg') center/cover;
    color: #fff;
    text-align: center;
    padding: 8rem 2rem 4rem;
    margin-bottom: 2rem;
}

.category-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.weapons-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.weapon-detail-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.weapon-image {
    padding: 2rem;
    background: #f8f8f8;
}

.weapon-image img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.weapon-info {
    padding: 2rem;
}

.weapon-info h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

.specs h3, .description h3 {
    color: #1a1a1a;
    margin: 1.5rem 0 1rem;
}

.specs ul, .description ul {
    list-style-position: inside;
    margin-left: 1rem;
}

.specs li, .description li {
    margin: 0.5rem 0;
    color: #666;
}

.description p {
    margin-bottom: 1rem;
    color: #666;
}

/* Responsive design for detailed pages */
@media (max-width: 768px) {
    .weapon-detail-card {
        grid-template-columns: 1fr;
    }
    
    .category-header h1 {
        font-size: 2rem;
    }
    
    .weapon-info h2 {
        font-size: 1.5rem;
    }
}

/* Chat Widget Styles */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.chat-button {
    background-color: #1a1a1a;
    color: white;
    border-radius: 50px;
    padding: 12px 20px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.chat-button:hover {
    background-color: #333;
}

.chat-box {
    position: absolute;
    bottom: 60px;
    right: 0;
    width: 300px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: none;
    overflow: hidden;
}

.chat-box.active {
    display: block;
}

.chat-header {
    background-color: #1a1a1a;
    color: white;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h4 {
    margin: 0;
    color: white;
}

.close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.chat-messages {
    height: 250px;
    padding: 10px;
    overflow-y: auto;
}

.message {
    margin-bottom: 10px;
    max-width: 80%;
}

.message p {
    padding: 8px 12px;
    border-radius: 15px;
    margin: 0;
}

.received {
    align-self: flex-start;
}

.received p {
    background-color: #f1f1f1;
}

.sent {
    margin-left: auto;
}

.sent p {
    background-color: #1a1a1a;
    color: white;
}

.chat-input {
    display: flex;
    padding: 10px;
    border-top: 1px solid #eee;
}

.chat-input input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 8px 12px;
    margin-right: 10px;
}

.send-message {
    background-color: #1a1a1a;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 15px;
    cursor: pointer;
}

.send-message:hover {
    background-color: #333;
}

/* Add these to your existing chat styles */
.typing p {
    display: flex;
    align-items: center;
    column-gap: 4px;
}

.typing p::after {
    content: "";
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: #333;
    animation: typing 1.5s infinite;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
    30% {
        transform: translateX(0) scale(2.5);
        opacity: 0.5;
    }
}

.powered-by {
    text-align: center;
    padding: 5px;
    color: #666;
    font-size: 0.8rem;
    border-top: 1px solid #eee;
}

.chat-messages::-webkit-scrollbar {
    width: 5px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Contact Section & Newsletter Signup */
.contact-section {
    background: #fff;
    padding: 4rem 2rem;
    max-width: 700px;
    margin: 4rem auto 0 auto;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}
.contact-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #1a1a1a;
}
.contact-newsletter-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.newsletter-form {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    background: #f8f8f8;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.form-group {
    display: flex;
    flex-direction: column;
}
.form-group label {
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}
.form-group input {
    padding: 0.7rem 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    transition: border 0.2s;
}
.form-group input:focus {
    border: 1.5px solid #ffd700;
    outline: none;
}
.newsletter-form button {
    background: #ffd700;
    color: #1a1a1a;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}
.newsletter-form button:hover {
    background: #e6c200;
}
.newsletter-success {
    text-align: center;
    font-size: 1.1rem;
}

@media (max-width: 600px) {
    .contact-section {
        padding: 2rem 0.5rem;
    }
    .newsletter-form {
        padding: 1rem;
    }
} 