/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #ffffff;
  color: #343a40;
  line-height: 1.6;
  transition: background-color 0.3s, color 0.3s;
}

body.dark {
  background-color: #121212;
  color: #f1f1f1;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  padding: 2rem 0;
}

/* Navbar */
.navbar {
  background-color: #ffffff;
  border-bottom: 1px solid #e1e1e1;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background-color 0.3s, border-color 0.3s;
}

body.dark .navbar {
  background-color: #1e1e1e;
  border-color: #333;
}

/* Updated container flex for navbar */
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative; /* for absolute nav links on mobile */
}

.logo {
  font-weight: bold;
  font-size: 1.5rem;
  color: #0077ff;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav-links a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: #343a40;
  font-weight: 500;
  transition: color 0.3s;
}

body.dark .nav-links a {
  color: #f1f1f1;
}

.nav-links a:hover {
  color: #0077ff;
}

/* Hamburger styles */
.hamburger {
  display: none; /* hidden on desktop */
  cursor: pointer;
  flex-direction: column;
  justify-content: space-around;
  width: 25px;
  height: 20px;
  background: none;
  border: none;
  padding: 0;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #333;
  border-radius: 2px;
  transition: all 0.3s;
}

/* Dark Mode Toggle next to hamburger */
.toggle-darkmode {
  margin-left: 0; /* remove left margin */
  margin-right: -45%; /* space between toggle and hamburger */
  cursor: pointer;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  transition: background-color 0.3s;
}

.toggle-darkmode, .nav-links {
  display: inline-flex;
  align-items: center;
}

.toggle-darkmode img {
  width: 20px;
  height: 20px;
}

.toggle-darkmode:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

body.dark .toggle-darkmode:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero {
  background-color: #f8f9fa;
  padding: 4rem 0;
  text-align: center;
  transition: background-color 0.3s;
}

body.dark .hero {
  background-color: #1a1a1a;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn-primary {
  background-color: #0077ff;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s;
}

.btn-primary:hover {
  background-color: #005fcc;
}

/* Highlights */
.highlights .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.card {
  background-color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 2rem;
  text-align: center;
  transition: background-color 0.3s, border-color 0.3s;
}

body.dark .card {
  background-color: #1e1e1e;
  border-color: #333;
}

.card h3 {
  margin-bottom: 1rem;
  color: #0077ff;
}

/* CTA Strip */
.cta-strip {
  background-color: #eef5ff;
  padding: 2rem 0;
  text-align: center;
  transition: background-color 0.3s;
}

body.dark .cta-strip {
  background-color: #2a2a2a;
}

.btn-outline {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  border: 2px solid #0077ff;
  color: #0077ff;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s, color 0.3s;
}

.btn-outline:hover {
  background-color: #0077ff;
  color: white;
}

/* Footer */
.footer {
  background-color: #f8f9fa;
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.9rem;
  border-top: 1px solid #e1e1e1;
  transition: background-color 0.3s, border-color 0.3s;
}

body.dark .footer {
  background-color: #1a1a1a;
  border-color: #333;
}

.footer-links {
  margin-top: 0.5rem;
}

.footer-links a {
  margin: 0 1rem;
  font-size: 0.85rem;
  color: #343a40;
  text-decoration: none;
  transition: color 0.3s;
}

body.dark .footer-links a {
  color: #f1f1f1;
}

.footer-links a:hover {
  color: #0077ff;
}

/* Services Section */
.services-section {
  text-align: center;
  padding: 3rem 1rem;
}

.services-section h1 {
  font-size: 1.9rem;
}

.section-intro {
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  color: #555;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: 1px solid #eee;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card h2 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: #0077ff;
}

.service-card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.371);
  cursor: default;
}

/* Dark mode support */
body.dark .service-card {
  background: #1f1f1f;
  border: 1px solid #333;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

body.dark .service-card h2 {
  color: #0077ff;
}

body.dark .service-card p {
  color: #bbb;
}

/* Portfolio Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.portfolio-item {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.452);
  transition: transform 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.portfolio-item img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  color: white;
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  text-align: center;
  transition: opacity 0.4s ease;
}

.portfolio-overlay h2 {
  color: #0077ff;
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

/* Dark mode tweak */
body.dark .portfolio-overlay {
  background: rgba(255,255,255,0.1);
}

/* Contact Layout */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  margin-top: 2rem;
}

.contact-form label {
  display: block;
  margin-bottom: 1rem;
  font-weight: 500;
}

body.dark .contact-form input {
  background-color: #5f5f5f;
}

body.dark .contact-form select {
  background-color: #5f5f5f;
}

body.dark .contact-form textarea {
  background-color: #5f5f5f;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  margin-top: 0.25rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  font-size: 1rem;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #0077ff;
}

.contact-form .btn {
  margin-top: 1rem;
}

.contact-side {
  background: #fafafa;
  padding: 2rem 2.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  max-width: 360px;
  font-family: 'Inter', sans-serif;
  color: #222;
  line-height: 1.4;
}

.contact-side h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #0077ff;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.icon {
  font-size: 24px;
  color: #0077ff;
  flex-shrink: 0;
  width: 30px;
  text-align: center;
  margin-top: 4px; /* aligns icon with text block */
}

.contact-text strong {
  display: block;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
}

.contact-text a,
.contact-text span {
  font-size: 1rem;
  color: #444;
  text-decoration: none;
  word-break: break-word; /* in case email is long */
}

.contact-text a:hover {
  color: #005fcc;
  text-decoration: underline;
}

.icon {
  font-size: 24px; /* bigger icons */
  color: #0077ff;
  flex-shrink: 0;
  width: 30px; /* makes sure text aligns nicely */
  text-align: center;
}

body.dark .contact-side {
  background: #1e1e1e;
}

body.dark .contact-side a {
  color: #6ECF89;
}

.contact-form button {
  background-color: #0077ff;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.contact-form button:hover {
  background-color: #005fcc;
  transform: translateY(-2px);
}

.contact-form button:active {
  background-color: #004799;
  transform: translateY(0);
}

body.dark .section-intro {
  color: #b4b4b4;
}

body.dark .contact-text strong {
  color: #bdbaba;
}

body.dark .contact-text span {
  color: #eaeaea;
}

/*Pricing Section*/
.pricing {
  background-color: #efefef;
  text-align: center;
  padding: 3rem 1rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark .pricing {
  background-color: #121212;
  color: #f1f1f1;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #ffffff;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: 1px solid #eee;
  transition: background-color 0.3s ease, color 0.3s ease,
              transform 0.2s ease, box-shadow 0.2s ease;
  color: #00142bd4;
}

body.dark .pricing-card {
  background: #1e1e1e;
  border-color: #333;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
  color: #ddd;
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.371);
  cursor: default;
}

body.dark .pricing-card:hover {
  box-shadow: 0 6px 16px rgba(255, 255, 255, 0.2);
}

.pricing-card h3 {
  font-size: 1.5rem;
}

.cost {
  display: flex;
  justify-content: center;
  gap: 2%;
  color: #0077ff;
}

body.dark .cost {
  color: #3399ff;
}

.cost-info {
  color: #00142bd4;
  font-size: 1rem;
}

body.dark .cost-info {
  color: #ccc;
}

.crossout {
  color: #39393977;
  text-decoration: line-through;
}

body.dark .crossout {
  color: #888;
}

.divider {
  height: 2px;
  background-color: #0077ff;
  width: 100%;
  margin: 20px 0;
}

body.dark .divider {
  background-color: #3399ff;
}

.pricing-description {
  text-align: left;
  font-size: 1rem;
  padding-left: 5%;
  list-style-type: none;
}

.pricing-description li {
  position: relative;
  padding: 2% 0 2% 25px;
  color: #343a40;
}

body.dark .pricing-description li {
  color: #ccc;
}

.pricing-description li::before {
  content: '✔';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #28a745;
  font-weight: bold;
}

body.dark .pricing-description li::before {
  color: #6ecf89;
}

.card-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.request {
  margin-top: auto;
  cursor: auto;
  padding-top: 5px;
}

.request-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: 2px solid #0077ff;
  color: #0077ff;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s, color 0.3s;
}

.request-btn:hover {
  background-color: #0077ff;
  color: white;
}

/* Custom Website */
.custom-request {
  background: #ffffff;
  padding: 2.5rem 2rem;
  max-width: 600px;
  margin: 3rem auto;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  color: #00142bd4;
  font-family: 'Inter', sans-serif;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark .custom-request {
  background: #1e1e1e;
  color: #ddd;
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.1);
}

.custom-request h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #0077ff;
}

/* New: Fieldset styling */
.custom-request fieldset {
  border: 1px solid #0077ff;
  border-radius: 8px;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  background: #f9faff;
  transition: background-color 0.3s ease;
}

body.dark .custom-request fieldset {
  background: #252525;
  border-color: #3399ff;
}

.custom-request legend {
  font-weight: 700;
  font-size: 1.15rem;
  color: #0077ff;
  padding: 0 0.5rem;
  margin-left: 0.5rem;
  width: auto;
}

.custom-request label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  user-select: none;
  margin-bottom: 0.7rem;
  color: inherit;
}

.custom-request input[type="checkbox"] {
  margin-right: 10px;
  width: 18px;
  height: 18px;
  accent-color: #0077ff;
  cursor: pointer;
  flex-shrink: 0;
}

.summary {
  background: #f8f9fa;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  min-height: 70px;
  color: #343a40;
}

body.dark .summary {
  background: #2a2a2a;
  color: #ccc;
}

.summary h3 {
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: #0077ff;
}

.summary ul {
  list-style: none;
  padding-left: 1rem;
}

.summary ul li {
  margin-bottom: 0.3rem;
  font-weight: 500;
}

.request-btn {
  display: block;
  margin: 0 auto;
  padding: 0.75rem 2rem;
  border: 2px solid #0077ff;
  color: #0077ff;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  background: transparent;
  transition: background-color 0.3s, color 0.3s;
  user-select: none;
}

.request-btn:hover {
  background-color: #0077ff;
  color: white;
}

.feature-category {
  margin-bottom: 1.2rem;
  border-top: 1px solid #0077ff33;
  padding-top: 0.8rem;
}

.feature-category h4 {
  color: #0077ff;
  margin-bottom: 0.5rem;
  font-weight: 700;
  font-size: 1.1rem;
}

.extra-info-fieldset {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 15px;
  background-color: #fff;
  margin-bottom: 20px;
}

.extra-info-legend {
  font-weight: bold;
  font-size: 1.1rem;
  color: #333;
  padding: 0 8px;
}

.extra-info-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: #555;
}

.extra-info-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  background-color: #fff;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
  transition: border-color 0.3s, box-shadow 0.3s;
  resize: none; /* Disable manual resizing */
  overflow: hidden; /* Hide scrollbar */
}

.extra-info-textarea:focus {
  border-color: #28a745;
  box-shadow: 0 0 5px rgba(40, 167, 69, 0.3);
  outline: none;
}

body.dark .extra-info-textarea {
  background-color: #5f5f5f;
}



/* Mobile styles */
@media (max-width: 768px) {
  /* Hamburger visible */
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 60px;
    right: 0;
    background: white;
    flex-direction: column;
    width: 200px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: none;  /* hide by default */
    z-index: 999;
  }
  
  .nav-links.open {
    display: flex;  /* show when open */
  }

  /* Nav links vertical spacing */
  .nav-links a {
    margin-left: 0;
    padding: 10px 0;
  }

  .contact-layout {
    grid-template-columns: 1fr; /* one column on mobile */
  }

  .contact-side {
    max-width: 100%; /* full width instead of fixed */
  }
}
