/* ====================
   WEB DEVELOPMENT SERVICE PAGE STYLES
   ==================== */

/* ====================
   SERVICE HERO SECTION
   ==================== */

.service-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: white !important;
  padding: 100px 0 !important;
  text-align: center !important;
  position: relative !important;
}

.service-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.service-hero-content {
  position: relative !important;
  z-index: 2 !important;
  max-width: 800px;
  margin: 0 auto;
}

.service-hero h1 {
  font-size: 3.5rem !important;
  font-weight: 700 !important;
  margin-bottom: 20px !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.service-hero p {
  font-size: 1.3rem !important;
  margin-bottom: 0 !important;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ====================
   SERVICE INTRODUCTION SECTION
   ==================== */

.service-intro {
  padding: 80px 0;
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
}

.intro-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.intro-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 30px;
  position: relative;
}

.intro-content h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 2px;
}

.intro-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 0;
}

/* ====================
   SERVICE DETAILS SECTION
   ==================== */

.service-details {
  padding: 80px 0;
  background: #f8f9fa;
}

.service-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 50px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

.service-main h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 20px;
  position: relative;
}

.service-main p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 30px;
}

/* Service Features */
.service-features {
  margin-bottom: 50px;
}

.service-features h3 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 25px;
  position: relative;
}

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

.feature-item {
  text-align: center;
  padding: 30px 20px;
  background: #ffffff;
  border-radius: 15px;
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  background: #fff;
}

.feature-icon {
  font-size: 2.5rem;
  color: #667eea;
  margin-bottom: 15px;
  display: block;
}

.feature-item h4 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 10px;
}

.feature-item p {
  font-size: 1rem;
  line-height: 1.6;
  color: #666;
}

/* Technologies Section */
.technologies {
  margin-bottom: 50px;
}

.technologies h3 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 25px;
  position: relative;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
}

.tech-item {
  text-align: center;
  padding: 20px 15px;
  background: #f8f9fa;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.tech-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.tech-item i {
  font-size: 2rem;
  color: #667eea;
  margin-bottom: 10px;
  display: block;
}

.tech-item span {
  font-size: 0.9rem;
  font-weight: 500;
  color: #555;
}

/* Service Sidebar */
.service-sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding-top: 0;
}

.sidebar-card {
  background: #fff;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e9ecef;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sidebar-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.sidebar-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 20px;
  position: relative;
}

.sidebar-card h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 2px;
}

.why-choose-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.why-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 3px solid #667eea;
  transition: all 0.3s ease;
  line-height: 1.6;
}

.why-item:hover {
  background: #e9ecef;
  transform: translateX(5px);
}

.why-item i {
  color: #667eea;
  font-size: 1rem;
  min-width: 20px;
  text-align: center;
}

.why-item span {
  color: #333;
  font-weight: 500;
  font-size: 0.95rem;
}

.related-services {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.related-services a {
  color: #666;
  text-decoration: none;
  font-size: 1rem;
  padding: 10px 15px;
  border-radius: 8px;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.related-services a:hover {
  color: #667eea;
  background-color: #f8f9fa;
  border-left-color: #667eea;
  transform: translateX(5px);
}

/* ====================
   PORTFOLIO SECTION
   ==================== */

.portfolio-section {
  padding: 80px 0;
  background: #fff;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 15px;
}

.section-header p {
  font-size: 1.2rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 50px;
  justify-items: center;
}

.portfolio-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.portfolio-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-content {
  text-align: center;
  color: white;
  padding: 20px;
}

.portfolio-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.portfolio-content p {
  font-size: 1rem;
  margin-bottom: 15px;
}

.portfolio-cta {
  text-align: center;
}

/* ====================
   CTA SECTION
   ==================== */

.cta-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 80px 0;
  text-align: center;
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ====================
   FAQ SECTION
   ==================== */

.faq-section {
  padding: 80px 0;
  background: #f8f9fa;
}

.faq-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;  /* 60% FAQ, 40% Form */
  gap: 40px;
  align-items: start;
  max-width: 1200px; /* Limit overall width */
  margin: 0 auto; /* Center the layout */
  align-items: stretch; /* Make columns equal height */
}

.faq-column {
  max-width: 100%;
}

.faq-container {
  background: #fff;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e9ecef;
  height: 100%; /* Make container fill column height */
  display: flex;
  flex-direction: column;
}

.faq-item {
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.faq-item:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.faq-question i {
  color: #667eea;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 20px 20px;
}

.faq-item.active .faq-answer {
  display: block;
  padding: 20px;
}

.faq-answer p {
  padding-top: 20px;
  line-height: 1.6;
  color: #666;
}

.faq-form {
  background: #fff;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e9ecef;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Make form fill column height */
  display: flex;
  flex-direction: column;
}

.faq-form:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.faq-form h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 10px;
  position: relative;
}

.faq-form h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 2px;
}

.faq-form p {
  color: #666;
  margin-bottom: 25px;
  line-height: 1.5;
  font-size: 0.95rem;
}

/* Contact Form Styles */
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  transform: translateY(-2px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #999;
  font-style: italic;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667eea' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M6 9l6 6l6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 20px;
  padding-right: 50px;
}

.quote-submit-btn {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 18px 30px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
  margin-top: 10px;
}

.quote-submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
  background: linear-gradient(135deg, #5a6fd8 0%, #6b5b95 100%);
}

.quote-submit-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 3px 15px rgba(102, 126, 234, 0.2);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #667eea;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

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

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: #b8c1ec;
}

.contact-item i {
  color: #667eea;
  font-size: 1.1rem;
  margin-right: 8px;
}

/* ====================
   BUTTON STYLES
   ==================== */

.btn {
  display: inline-block;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
  background: transparent;
  color: #667eea;
  border: 2px solid #667eea;
}

.btn-secondary:hover {
  background: #667eea;
  color: white;
}

.btn-outline {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}

.btn-outline:hover {
  background: #fff;
  color: #667eea;
}

.btn-block {
  width: 100%;
  grid-column: 1 / -1;
}

/* ====================
   RESPONSIVE DESIGN
   ==================== */

@media (max-width: 992px) {
  .service-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .contact-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .service-hero h1 {
    font-size: 2.5rem;
  }
  
  .service-main h2 {
    font-size: 2rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .tech-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}


/* ====================
   SERVICE INTRO SECTION - Centered heading & description
   ==================== */

.service-intro {
  padding: 70px 20px;
  background: #fff;
  border-bottom: 1px solid #f0f0f5;
}

.service-intro .container {
  max-width: 860px;
  margin: 0 auto;
}

.intro-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.intro-content h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 25px;
  line-height: 1.3;
  position: relative;
  display: inline-block;
}

.intro-content h2::after {
  content: "";
  display: block;
  width: 70px;
  height: 4px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 2px;
  margin: 16px auto 0 auto;
}

.intro-content p {
  font-size: 1.08rem;
  line-height: 1.85;
  color: #555;
  max-width: 720px;
  margin: 0 auto;
}


/* ====================
   FAQ SECTION - Clean white background (service pages only)
   ==================== */

.faq-section {
    background: #f8f9fa !important;
}

.faq-question {
    background: #ffffff !important;
    color: #1a1a2e !important;
    border-bottom: 1px solid #e9ecef !important;
}

.faq-question:hover {
    background: #f5f5f5 !important;
    color: #667eea !important;
}

.faq-question h3 {
    color: #1a1a2e !important;
}

.faq-question:hover h3 {
    color: #667eea !important;
}

.faq-question i {
    color: #667eea !important;
}

.faq-item {
    background: #ffffff !important;
    border: 1px solid #e9ecef !important;
    border-radius: 10px !important;
    margin-bottom: 12px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
    overflow: hidden !important;
}

.faq-item.active {
    border-color: #667eea !important;
}

.faq-answer {
    background: #fafafa !important;
    color: #555 !important;
}


/* ====================
   FAQ + FORM EQUAL SPLIT LAYOUT
   ==================== */

.faq-section .container,
.faq-section > .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.faq-layout {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 40px !important;
    align-items: start !important;
}

.faq-column,
.faq-form {
    width: 100% !important;
    max-width: 100% !important;
    flex: unset !important;
}

.faq-container,
.faq-form {
    height: 100% !important;
    box-sizing: border-box !important;
}

@media (max-width: 768px) {
    .faq-layout {
        grid-template-columns: 1fr !important;
    }
}


/* ====================
   FAQ SECTION - Reset contact-container top margin so form starts at same level as FAQs
   ==================== */

.faq-layout .contact-container,
.faq-layout .faq-column .contact-container {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}


/* ====================
   CTA SECTION - White buttons
   ==================== */

.cta-section .btn,
.cta-section .btn-primary,
.cta-section .btn-secondary,
.cta-section .cta-buttons a {
    background: #ffffff !important;
    color: #667eea !important;
    border: 2px solid #ffffff !important;
    font-weight: 700 !important;
}

.cta-section .btn:hover,
.cta-section .btn-primary:hover,
.cta-section .btn-secondary:hover,
.cta-section .cta-buttons a:hover {
    background: transparent !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15) !important;
}
