/*
  CirketX website styles
  This stylesheet defines a modern, dark‑themed layout with vibrant green
  accents inspired by circuit traces. The design uses generous whitespace,
  responsive grids and accessible color contrast for a professional appearance.
*/

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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #e2e8f0;
    background-color: #02191c;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #031c1e;
    position: sticky;
    top: 0;
    z-index: 100;
}

header h1 {
    color: #16a34a;
    font-size: 1.5rem;
    font-weight: bold;
}

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

nav ul li a {
    color: #e2e8f0;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

nav ul li a:hover {
    background-color: #033c3b;
}

nav ul li a.button {
    background-color: #16a34a;
    color: #02191c;
    border-radius: 4px;
    font-weight: bold;
}

nav ul li a.button:hover {
    background-color: #0e9a38;
}

.hero {
    background-image: url('assets/hero-bg.png');
    background-size: cover;
    background-position: center;
    color: #ffffff;
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
}

.hero .content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: auto;
}

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

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    background-color: #16a34a;
    color: #02191c;
    padding: 0.75rem 1.5rem;
    margin: 0.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #0e9a38;
}

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

.section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #16a34a;
    font-size: 2rem;
}

/*
  Card grid for capabilities
  Uses a two‑column layout by default and falls back to a single column on narrow screens.
*/
.capabilities .card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (max-width: 640px) {
    .capabilities .card-grid {
        grid-template-columns: 1fr;
    }
}

.card {
    background-color: #031c1e;
    padding: 2rem;
    border-radius: 8px;
    transition: transform 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

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

.card .icon {
    display: block;
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
}

.card h3 {
    color: #16a34a;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.card p {
    color: #cbd5e1;
}

footer {
    background-color: #031c1e;
    color: #94a3b8;
    padding: 2rem;
    text-align: center;
    margin-top: 4rem;
}

footer a {
    color: #16a34a;
    text-decoration: none;
    margin: 0 0.5rem;
}

footer a:hover {
    text-decoration: underline;
}

/* Contact form styles */
form {
    max-width: 600px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

form input,
form textarea {
    padding: 1rem;
    border: none;
    border-radius: 4px;
    background-color: #0c3431;
    color: #e2e8f0;
    font-size: 1rem;
}

form input:focus,
form textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px #16a34a;
}

form button {
    align-self: flex-start;
    background-color: #16a34a;
    color: #02191c;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: #0e9a38;
}

/* Product page */
.product-hero {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
}

.product-hero img {
    max-width: 350px;
    width: 100%;
    border-radius: 8px;
}

.product-hero .info {
    max-width: 600px;
}

.product-hero .info h2 {
    color: #16a34a;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.product-hero .info p {
    margin-bottom: 1.5rem;
    color: #cbd5e1;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.spec-table th,
.spec-table td {
    border: 1px solid #033c3b;
    padding: 0.75rem;
    text-align: left;
}

.spec-table th {
    background-color: #033c3b;
    color: #16a34a;
}

.spec-table tr:nth-child(even) {
    background-color: #031c1e;
}

.spec-table tr:nth-child(odd) {
    background-color: #021e1f;
}

.review {
    background-color: #031c1e;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.review .author {
    color: #16a34a;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.review .rating {
    color: #facc15;
    margin-bottom: 0.5rem;
}