/* Global Styles */
:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --gray-color: #95a5a6;
    --success-color: #2ecc71;
}

* {
    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: #f9f9f9;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--dark-color);
}

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

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 600;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--primary-color);
}

nav ul li a.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 5px;
}

.cart-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
}

.cart-btn:hover {
    background-color: #2980b9;
    color: white;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/software1.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 100px 0;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Featured Products */
.featured-products, .all-products {
    padding: 60px 0;
}

.featured-products h2, .all-products h2, .testimonials h2, .newsletter h2, .about-header h2, .products-header h2, .contact-header h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--dark-color);
    font-size: 2rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.product-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.footer-card {
    background-color: #bdc3c7;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 0px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}
.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-card h3 {
    padding: 15px 15px 5px;
    color: var(--dark-color);
}

.product-card .price {
    padding: 0 15px;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.product-card p {
    padding: 0 15px 15px;
    color: var(--gray-color);
}

.product-card button {
    margin: 0 15px 15px;
    width: calc(100% - 30px);
}

/* Testimonials */
.testimonials {
    background-color: var(--light-color);
    padding: 60px 0;
    text-align: center;
}

.testimonial {
    max-width: 800px;
    margin: 0 auto 30px;
    padding: 30px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial p {
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-style: italic;
}

.testimonial .author {
    font-weight: bold;
    color: var(--dark-color);
}

/* Newsletter */
.newsletter {
    padding: 60px 0;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
}

.newsletter h2 {
    color: white;
}

.newsletter p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.newsletter form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 5px 0 0 5px;
    font-size: 1rem;
}

.newsletter button {
    border-radius: 0 5px 5px 0;
    background-color: var(--dark-color);
}

.newsletter button:hover {
    background-color: #1a252f;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 0;
}

.footer-section {
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-section p, .footer-section a {
    color: #bdc3c7;
    margin-bottom: 10px;
    display: block;
    text-decoration: none;
}

.footer-section a:hover {
    color: white;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    font-size: 1.5rem;
    color: #bdc3c7;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #34495e;
    margin-top: 30px;
    color: #bdc3c7;
    font-size: 0.9rem;
}

/* About Page Styles */
.about-header, .products-header, .contact-header {
    padding: 80px 0;
    background-color: var(--light-color);
}

.our-story {
    padding: 60px 0;
}

.our-story .container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.story-content {
    flex: 1;
}

.story-image {
    flex: 1;
}

.story-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.our-mission {
    padding: 60px 0;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
}

.our-mission p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.8;
}

.our-team {
    padding: 60px 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.team-member {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
}

.team-member h4 {
    color: var(--dark-color);
    margin-bottom: 5px;
}

.team-member .position {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.our-values {
    padding: 60px 0;
    background-color: var(--light-color);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.value-card {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.value-card:hover {
    transform: translateY(-10px);
}

.value-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.value-card h4 {
    color: var(--dark-color);
    margin-bottom: 15px;
}

/* Products Page Styles */
.filter-options {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.filter-options select {
    padding: 10px 15px;
    border-radius: 5px;
    border: 1px solid #ddd;
    background-color: white;
    font-size: 1rem;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.pagination a {
    color: var(--dark-color);
    padding: 8px 16px;
    text-decoration: none;
    border: 1px solid #ddd;
    margin: 0 4px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.pagination a.active {
    background-color: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
}

.pagination a:hover:not(.active) {
    background-color: #ddd;
}

/* Contact Page Styles */
.contact-content .container {
    display: flex;
    gap: 40px;
}

.contact-info, .contact-form {
    flex: 1;
}

.info-card {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.info-card i {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.info-card h4 {
    color: var(--dark-color);
    margin-bottom: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.faq {
    padding: 60px 0;
    background-color: var(--light-color);
}

.faq-item {
    margin-bottom: 15px;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.faq-question {
    width: 100%;
    padding: 20px;
    text-align: left;
    border: none;
    background-color: white;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question i {
    transition: transform 0.3s;
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
}

.faq-answer.active {
    padding: 0 20px 20px;
    max-height: 500px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }

    nav ul {
        margin-top: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li {
        margin: 5px 10px;
    }

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

    .our-story .container, .contact-content .container {
        flex-direction: column;
    }

    .story-image, .contact-info, .contact-form {
        margin-top: 30px;
    }

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