/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #121212;
  color: #e0e0e0;
  line-height: 1.6;
  overflow-x: hidden;
}
a {
  text-decoration: none;
  color: inherit;
}

/* Navbar */

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #f5f5f5;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}
.nav-links li a {
  color: #e0e0e0;
  transition: color 0.3s ease;
}
.nav-links li a:hover {
  color: #bbb;
}

/* Hero */
.hero {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100%;
  background-image: url("../images/cover.jpg");
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero-overlay {
  height: 100%;
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 80px;
}
.hero-text {
  text-align: center;
  padding: 2rem;
  border-radius: 12px;
  background: rgba(18, 18, 18, 0.7);
  max-width: 700px;
}
.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #f5f5f5;
}
.hero-text p {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: #ccc;
}
.btn {
  padding: 0.75rem 1.5rem;
  background-color: #444;
  color: #f5f5f5;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}
.btn:hover {
  background-color: #666;
}

/* Main Content */
main {
  padding: 2rem;
  width: 100%;
  margin-top: calc(100vh + 2rem);
  position: relative;
  background-color: #121212;
  z-index: 2;
}
.section {
  margin: 8rem 0;
}
.section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: #f0f0f0;
}
/* Uniform Card Layout */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  background-color: #1b1b1b;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card:hover {
  transform: translateY(-4px);
}
.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.card h3 {
  padding: 1rem 1rem 0.5rem;
  color: #f5f5f5;
}
.card p {
  padding: 0 1rem 1rem;
  font-size: 0.95rem;
  color: #bbb;
}
.center-text {
  text-align: center;
  max-width: 800px;
  margin: 1rem auto 2rem;
  font-size: 1rem;
  color: #bbb;
}
.center-button {
  display: flex;
  justify-content: center;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
.service-card {
  background-color: #1c1c1c;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  transition: transform 0.3s ease;
}
.service-card:hover {
  transform: translateY(-5px);
}
.service-card img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 1rem;
}

/* Projects */
.project-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}
.project-card {
  max-width: 300px;
}
.project-card img {
  width: 100%;
  border-radius: 6px;
}
.caption {
  text-align: center;
  font-size: 0.9rem;
  color: #aaa;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;   /* ✅ Centers the grid */
  justify-items: center; /* ✅ Ensures cards are centered inside */
}
.pricing-card {
  width: 100%;
  max-width: 360px; /* ✅ Prevents stretching too wide */
  background: #1a1a1a;
  border-radius: 10px;
  overflow: hidden;
  color: #e0e0e0;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
}
.pricing-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.card-content h3 {
  color: #f5f5f5;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.toggle-btn {
  background-color: #444;
  border: none;
  padding: 0.5rem 1rem;
  font-weight: bold;
  color: #f5f5f5;
  cursor: pointer;
  margin-top: auto;
  border-radius: 5px;
}
.card-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
  padding-top: 0;
  opacity: 0.2;
}
.card-details.open {
  max-height: 1500px;
  padding-top: 1rem;
  opacity: 1;
}
.card-details h4 {
  color: #f0f0f0;
  margin-top: 1rem;
  font-size: 1.1rem;
}
.card-details li {
  color: #bbb;
  margin-bottom: 0.4rem;
}
.card-note {
  font-style: italic;
  color: #888;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}
.contact-btn {
  margin-top: 1rem;
  display: inline-block;
  background: #444;
  color: #f5f5f5;
  padding: 0.4rem 1rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
}

/* Contact Drawer */
.contact-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  top: 0;
  background: #1a1a1a;
  color: #e0e0e0;
  z-index: 999;
  display: none;
  overflow: hidden;
}
.contact-drawer.open {
  display: block;
}
.drawer-content {
  max-width: 700px;
  margin: 2rem auto;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  background: #1a1a1a;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}
.drawer-content h3 {
  color: #f5f5f5;
  margin-bottom: 1rem;
}
.drawer-content input,
.drawer-content textarea,
.drawer-content select {
  padding: 0.5rem;
  background: #2a2a2a;
  color: #e0e0e0;
  border: 1px solid #444;
  border-radius: 5px;
}
.drawer-content button[type="submit"] {
  background: #444;
  color: #f5f5f5;
  padding: 0.6rem 1rem;
  border: none;
  font-weight: bold;
  cursor: pointer;
  border-radius: 5px;
}
.close-drawer {
  margin-top: 1rem;
  background: transparent;
  color: #aaa;
  border: none;
  text-decoration: underline;
  cursor: pointer;
}
fieldset {
  border: 1px solid #333;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 6px;
}
legend {
  font-weight: bold;
  color: #f5f5f5;
  padding: 0 0.5rem;
}
label {
  display: block;
  margin: 0.3rem 0;
  font-size: 0.95rem;
  color: #ccc;
}

/* Animations */
.fade-in,
.slide-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 2.5s ease-out;
}
.fade-in.show,
.slide-in.show {
  opacity: 1;
  transform: translateY(0);
}
.story-card {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}
.story-card img {
  width: 100%;
  max-width: 400px;
  border-radius: 8px;
}
.story-card div {
  flex: 1;
  min-width: 280px;
}
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.step img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 6px;
}
.step h3 {
  margin-top: 0.75rem;
  color: #f5f5f5;
}
.step p {
  color: #bbb;
  font-size: 0.95rem;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  text-align: center;
}
.value-box {
  background-color: #1c1c1c;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.value-box h3 {
  color: #f5f5f5;
  margin-bottom: 0.5rem;
}
.value-box p {
  color: #bbb;
  font-size: 0.95rem;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
  width: 50rem;
  margin-left: auto;
  margin-right: auto;
}
.contact-form label {
  font-weight: bold;
}
.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  border: none;
  border-radius: 4px;
  background-color: #222;
  color: #e0e0e0;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid #666;
}
.no-header {
  margin-top: 0;
}
/* Footer */
footer {
  text-align: center;
  padding: 1rem;
  background-color: transparent;
  color: #888;
  width: 100%;
  margin-top: 4rem;
}
/* NAVIGATION STYLES */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  width: 100%;
  background-color: rgba(18, 18, 18, 0.85);
  border-bottom: 1px solid #333;
  position: relative;
  z-index: 1000;
}
.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #f5f5f5;
  white-space: nowrap;
  flex-shrink: 0;
  margin-right: 1rem;
}
.nav-links li a {
  color: #e0e0e0;
  font-size: 1rem;
  transition: color 0.3s ease;
}
.nav-links li a:hover {
  color: #bbb;
}
/* Toggle Buttons */
.nav-toggle {
  display: none;
  font-size: 1.8rem;
  color: #e0e0e0;
  cursor: pointer;
  z-index: 1001;
}
#hamburger,
#closeBtn {
  font-size: 2rem;
}
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    background: #111;
    width: 100%;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
  }
  .nav-links.open {
    transform: translateY(0%);
  }
  .nav-links li {
    margin: 1.5rem 0;
    font-size: 1.5rem;
  }
  #hamburger,
  #closeBtn {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    z-index: 1002;
  }
}
@media (max-width: 768px){
  .pricing-grid{
    /* one column, fixed column width */
    grid-template-columns: minmax(280px, 360px);
    justify-content: center;      /* center the column */
    justify-items: center;        /* center card inside the cell */
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .pricing-card{
    width: 100%;
    max-width: 360px;             /* prevents edge-to-edge look */
  }
}
@media (max-width: 768px){
  .contact-form{
    max-width: 315px;        /* pleasant mobile width */
  }
  /* tighten the paragraph above the form too */
  .center-text{
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
