/*
 * Defenso website styles
 * A modern dark‑themed design with vibrant accents
 */

/* CSS variables for easy theme management */
:root {
  --bg-primary: #001F3F; /* Deep navy for dark backgrounds */
  --bg-secondary: #011627; /* Slightly lighter dark section */
  --text-light: #F4F4F8; /* Light text color for contrast */
  --accent: #2EC4B6; /* Teal accent color */
  --accent-hover: #3DD9CB; /* Hover state for buttons */
  --card-bg: rgba(255, 255, 255, 0.05); /* Translucent card background */
  --card-bg-hover: rgba(255, 255, 255, 0.08);
}

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

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  background-color: var(--bg-primary);
  color: var(--text-light);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 10px;
}

p {
  font-weight: 300;
  color: var(--text-light);
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  position: relative;
  z-index: 2;
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  background-image: url('images/hero.png');
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--text-light);
  text-align: center;
}

.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(1, 22, 39, 0.65); /* Dark overlay for readability */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  font-weight: 300;
}

.btn {
  display: inline-block;
  background-color: var(--accent);
  color: var(--bg-primary);
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: var(--accent-hover);
}

/* Sections */
section {
  padding: 80px 0;
}

.about {
  background-color: var(--bg-secondary);
}

.services {
  background-color: var(--bg-primary);
}

.why {
  background-color: var(--bg-secondary);
}

.contact {
  background-color: var(--bg-primary);
}

/* Headings */
section h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  text-align: center;
}

/* Service Cards */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  background-color: var(--card-bg-hover);
}

.service-card .icon {
  /* Reset font-based sizing and prepare space for images */
  margin-bottom: 15px;
  text-align: center;
}

/* Image icons within service cards */
.service-card .icon img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  display: inline-block;
}
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.service-card p {
  font-weight: 300;
  line-height: 1.5;
  color: var(--text-light);
}

/* Why Choose Us */
.why-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
}

.why-item {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
}

.why-item h4 {
  color: var(--accent);
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.why-item p {
  font-weight: 300;
  line-height: 1.5;
}

/* Contact Section */
.contact-info {
  /* Arrange contact details vertically and center them */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
}

.contact-info p {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 600px;
  margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
  padding: 12px 15px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  background-color: var(--card-bg);
  color: var(--text-light);
  outline: none;
  transition: background-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  background-color: rgba(255, 255, 255, 0.08);
}

.contact-form ::placeholder {
  color: rgba(244, 244, 248, 0.7);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form button {
  align-self: center;
  background-color: var(--accent);
  color: var(--bg-primary);
  padding: 12px 30px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: var(--accent-hover);
}

.form-message {
  margin-top: 20px;
  color: var(--accent);
  font-weight: 600;
  text-align: center;
}

.hidden {
  display: none;
}

/* Footer */
footer {
  background-color: var(--bg-secondary);
  padding: 20px 0;
  text-align: center;
  font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 10px;
    margin-top: 10px;
  }
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
  .service-card h3 {
    font-size: 1.2rem;
  }
}