/* style.css */
/* Mobile-first responsive design */

:root {
  --primary-color: #023047; /* Dark blue */
  --secondary-color: #ffb703; /* Gold */
  --accent-color: #0077b6; /* Medium blue */
  --light-bg: #ffffff; /* Pure white for better contrast */
  --light-bg-alt: #f8f9fa; /* Light grey for cards */
  --dark-bg: #121212; /* Dark grey */
  --dark-bg-alt: #1e1e1e; /* Slightly lighter dark */
  --text-dark: #111111; /* Very dark grey for light backgrounds */
  --text-light: #f9f9f9; /* Off-white for dark backgrounds */
  --text-muted: #666666; /* Muted text */
  --border-color: #e0e0e0; /* Light border */
  --shadow: rgba(0,0,0,0.1);
  --transition: all 0.3s ease;
}

[data-theme="dark"] {
  --primary-color: #1e3a5f; /* Darker blue for dark mode */
  --light-bg: #121212;
  --light-bg-alt: #1e1e1e;
  --dark-bg: #0a0a0a;
  --dark-bg-alt: #2a2a2a;
  --text-dark: #f9f9f9;
  --text-light: #ffffff;
  --text-muted: #cccccc;
  --border-color: #333333;
  --shadow: rgba(255,255,255,0.1);
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  background-color: var(--light-bg);
  color: var(--text-dark);
  transition: var(--transition);
  line-height: 1.6;
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--primary-color);
  color: var(--text-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  z-index: 1000;
  box-shadow: 0 2px 10px var(--shadow);
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition);
  padding: 5px 10px;
  border-radius: 5px;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--secondary-color);
  background-color: rgba(255, 255, 255, 0.1);
}

#theme-toggle {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: var(--transition);
}

#theme-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.hero {
  height: 100vh;
  background: url('https://picsum.photos/1600/900?business') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  text-align: center;
  padding: 20px;
}

.overlay {
  background: rgba(0,0,0,0.5);
  padding: 30px;
  border-radius: 10px;
  max-width: 600px;
  width: 100%;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  font-weight: 400;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.btn {
  background: var(--secondary-color);
  padding: 15px 30px;
  text-decoration: none;
  color: #000000;
  border-radius: 5px;
  font-weight: bold;
  display: inline-block;
  transition: var(--transition);
  border: 2px solid var(--secondary-color);
}

.btn:hover {
  background: #000000;
  color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--shadow);
}

.services, .features, .testimonials, .projects, .contact {
  padding: 60px 20px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.services h2, .features h2, .testimonials h2, .projects h2, .contact h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: var(--primary-color);
  font-weight: 700;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.card {
  background: var(--light-bg-alt);
  padding: 30px;
  border-radius: 10px;
  transition: var(--transition);
  box-shadow: 0 4px 15px var(--shadow);
  color: var(--text-dark);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px var(--shadow);
}

.card h3 {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 15px;
}

.card p {
  color: var(--text-dark);
  font-size: 1rem;
  line-height: 1.6;
}

.icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.feature-card {
  background: var(--light-bg-alt);
  padding: 30px;
  border-radius: 10px;
  transition: var(--transition);
  box-shadow: 0 4px 15px var(--shadow);
  opacity: 0;
  transform: translateY(20px);
  color: var(--text-dark);
}

.feature-card.animate {
  opacity: 1;
  transform: translateY(0);
}

.feature-card h3 {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 15px;
}

.feature-card p {
  color: var(--text-dark);
  font-size: 1rem;
  line-height: 1.6;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.testimonials .slider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

#testimonial {
  font-size: 1.2em;
  max-width: 500px;
  font-style: italic;
  background: var(--light-bg-alt);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px var(--shadow);
  color: var(--text-dark);
}

#testimonial blockquote {
  margin: 0 0 15px 0;
  font-weight: 400;
}

#testimonial cite {
  font-style: normal;
  font-weight: 600;
  color: var(--primary-color);
}

.slider button {
  background: var(--accent-color);
  color: var(--text-light);
  border: none;
  padding: 10px 15px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition);
  box-shadow: 0 2px 5px var(--shadow);
}

.slider button:hover {
  background: #005a8a;
  transform: scale(1.1);
}

.projects .filter-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--primary-color);
  color: var(--text-light);
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
}

.filter-btn.active, .filter-btn:hover {
  background: var(--secondary-color);
  color: #000000;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.project-card {
  background: var(--light-bg-alt);
  border-radius: 10px;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 4px 15px var(--shadow);
  color: var(--text-dark);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px var(--shadow);
}

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

.project-card h3 {
  margin: 20px;
  color: var(--primary-color);
  font-weight: 600;
}

.project-card p {
  margin: 0 20px 20px;
  color: var(--text-dark);
  font-size: 1rem;
  line-height: 1.6;
}

.category {
  display: inline-block;
  background: var(--secondary-color);
  color: #000000;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 0.8rem;
  margin: 0 20px 20px;
  font-weight: 500;
}

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

input, textarea {
  padding: 15px;
  border: 2px solid var(--border-color);
  border-radius: 5px;
  font-size: 1rem;
  transition: var(--transition);
  background: var(--light-bg);
  color: var(--text-dark);
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 5px rgba(0,119,182,0.3);
}

button[type="submit"] {
  background: var(--accent-color);
  color: var(--text-light);
  padding: 15px;
  border: 2px solid var(--accent-color);
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
  font-weight: 600;
}

button[type="submit"]:hover {
  background: #005a8a;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--shadow);
}

#formMessage {
  margin-top: 20px;
  font-weight: 600;
  color: var(--primary-color);
}

footer {
  background: var(--primary-color);
  color: var(--text-light);
  text-align: center;
  padding: 30px 20px;
  font-weight: 400;
}

.socials a {
  color: var(--secondary-color);
  margin: 0 10px;
  text-decoration: none;
  transition: var(--transition);
  font-weight: 500;
}

.socials a:hover {
  color: #e6a100;
  text-decoration: underline;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.modal-content {
  background: var(--light-bg);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  position: relative;
  color: var(--text-dark);
  box-shadow: 0 4px 20px var(--shadow);
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
  font-size: 24px;
  color: var(--text-dark);
  transition: var(--transition);
}

.close:hover {
  color: var(--primary-color);
}

/* Tablet styles */
@media (min-width: 768px) {
  .grid, .features-grid, .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero h1 {
    font-size: 3rem;
  }

  .nav-links {
    display: flex !important;
  }
}

/* Desktop styles */
@media (min-width: 1024px) {
  .grid, .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero h1 {
    font-size: 3.5rem;
  }

  .overlay {
    padding: 50px;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles */
.nav-links a:focus, .btn:focus, .filter-btn:focus, button:focus, input:focus, textarea:focus {
  outline: 3px solid var(--accent-color);
  outline-offset: 2px;
}
