/* --- Global Reset & Variables --- */
:root {
    --primary: #0066cc;
    --primary-dark: #004d99;
    --dark: #0f172a;
    --light-bg: #f8fafc;
    --text: #334155;
    --border: #e2e8f0;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background-color: #ffffff;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Navigation --- */
header {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--dark);
    letter-spacing: -0.5px;
}

nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    margin-left: 24px;
    transition: color 0.2s;
}

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

nav .btn-nav {
    background: var(--dark);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 6px;
}

nav .btn-nav:hover {
    background: var(--primary);
    color: #ffffff;
}

/* --- Hero Section --- */
.hero {
    background: radial-gradient(circle at top right, #f1f5f9 0%, #ffffff 100%);
    padding: 100px 0 80px 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    color: var(--dark);
    margin-bottom: 20px;
    letter-spacing: -1px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 32px auto;
    color: #64748b;
}

.btn-primary {
    display: inline-block;
    background: var(--primary);
    color: #ffffff;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

/* --- Products Section --- */
.products {
    background: var(--light-bg);
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 48px;
}

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

.product-card {
    background: #ffffff;
    padding: 32px;
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

.product-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.product-card h3 {
    color: var(--dark);
    margin-bottom: 12px;
}

/* --- Contact Section --- */
.contact {
    padding: 80px 0;
}

.contact-box {
    max-width: 600px !important;
    text-align: center;
}

.contact-box h2 {
    color: var(--dark);
    margin-bottom: 12px;
}

.contact-box p {
    color: #64748b;
    margin-bottom: 40px;
}

.contact-form {
    text-align: left;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--dark);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.btn-submit {
    width: 100%;
    background: var(--dark);
    color: #ffffff;
    border: none;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-submit:hover {
    background: var(--primary);
}

/* The Pop-up Window Box */
/* Update this specific rule in your styles.css */
#thank-you-modal {
  /* Fixes the position to the absolute center of the screen */
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0; /* Overrides default browser dialog margins */

  /* Your existing styles below */
  width: 90%;
  max-width: 500px;
  padding: 40px;
  border: none;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}


/* Typography inside the pop-up */
#thank-you-modal h3 {
  font-size: 24px;
  margin-top: 0;
}

#thank-you-modal p {
  font-size: 16px;
  color: #555;
}

/* The Dimmed Backdrop Overlay */
#thank-you-modal::backdrop {
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px); /* Modern blur effect */
}

/* The Close Button */
#close-modal-btn {
  margin-top: 20px;
  padding: 10px 24px;
  background-color: #007bff; /* Change this to match your site's brand colour */
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.2s ease;
}

#close-modal-btn:hover {
  background-color: #0056b3;
}


/* --- Footer --- */
footer {
    border-top: 1px solid var(--border);
    padding: 40px 0;
    text-align: center;
    font-size: 0.9rem;
    color: #94a3b8;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.2rem; }
    .product-grid { grid-template-columns: 1fr; }
}
