/* Global Styles */
:root {
  --primary: #2c2c54; /* Navy */
  --secondary: #ff7675; /* Coral */
  --light: #f1f2f6; /* Light Gray */
  --dark-gray: #636e72; /* Text Gray */
  --white: #ffffff;
  --off-white: #f9f9f9;
}

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

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--primary);
  background-color: var(--white);
}

h1,
h2,
h3,
h4 {
  font-family: 'Georgia', serif;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
  color: var(--primary);
}

h3 {
  font-size: 1.75rem;
}

p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: 6rem 0;
}

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

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--secondary);
  color: var(--white);
  border: none;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.1rem;
  cursor: pointer;
}

.btn:hover {
  background: #e66767;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(230, 103, 103, 0.2);
}

.btn-outline {
  background: transparent;
  color: var(--secondary);
  border: 2px solid var(--secondary);
}

.btn-outline:hover {
  background: var(--secondary);
  color: var(--white);
}

/* Header & Navigation */
.header {
  background: var(--white);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  position: fixed;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
}

.header-scrolled {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-text {
  font-family: 'Georgia', serif;
  font-size: 1.8rem;
  font-weight: 700;
}

.logo-first {
  color: var(--primary);
}

.logo-second {
  color: var(--secondary);
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-item {
  margin-left: 2.5rem;
}

.nav-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--secondary);
  left: 0;
  bottom: -5px;
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--secondary);
}

.nav-link:hover:after {
  width: 100%;
}

/* Hero Section */
.hero {
  background-color: var(--off-white);
  padding: 12rem 0 8rem;
  position: relative;
  overflow: hidden;
}

.hero:before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background-color: var(--secondary);
  opacity: 0.05;
  top: -50px;
  left: -100px;
}

.hero:after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background-color: var(--primary);
  opacity: 0.05;
  bottom: -200px;
  right: -200px;
}

.hero-content {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text {
  flex: 1;
  padding-right: 3rem;
}

.hero-image {
  flex: 1;
  text-align: center;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
}

/* Services Section */
.services {
  background-color: var(--white);
}

.section-header {
  max-width: 800px;
  margin: 0 auto 4rem;
  text-align: center;
}

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

.service-card {
  background: var(--off-white);
  border-radius: 8px;
  padding: 2.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-card:before {
  content: '';
  position: absolute;
  width: 100%;
  height: 5px;
  background: var(--secondary);
  top: 0;
  left: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.service-card:hover:before {
  transform: scaleX(1);
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--secondary);
}

.service-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

/* Process Section */
.process {
  background-color: var(--off-white);
  position: relative;
  overflow: hidden;
}

.process:before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background-color: var(--primary);
  opacity: 0.03;
  top: -200px;
  right: -200px;
}

.process-steps {
  display: flex;
  flex-wrap: wrap;
  margin-top: 3rem;
  position: relative;
}

.process-step {
  flex: 1 1 250px;
  text-align: center;
  padding: 2rem;
  position: relative;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: var(--secondary);
  color: var(--white);
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1.5rem;
}

.step-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

/* Technology Stack Styles */
.tech-container {
  margin-top: 3rem;
}

.tech-category {
  margin-bottom: 3rem;
}

.tech-category h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 1rem;
}

.tech-category h3:before {
  content: '';
  position: absolute;
  width: 4px;
  height: 100%;
  background: var(--secondary);
  left: 0;
  top: 0;
}

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

.tech-item {
  text-align: center;
  transition: all 0.3s ease;
}

.tech-item:hover {
  transform: translateY(-5px);
}

.tech-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.tech-name {
  font-size: 0.9rem;
  font-weight: 600;
}

/* Case Studies Styles */
.cases-container {
  margin-top: 3rem;
}

.case-study {
  display: flex;
  margin-bottom: 3rem;
  background: var(--off-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.case-study:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.case-number {
  background: var(--primary);
  color: var(--white);
  font-size: 2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  min-width: 100px;
}

.case-content {
  padding: 2rem;
  flex: 1;
}

.case-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.case-benefits {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.case-benefits li {
  margin-bottom: 0.5rem;
  position: relative;
}

.case-benefits li::before {
  content: '•';
  color: var(--secondary);
  font-weight: bold;
  display: inline-block;
  width: 1rem;
  margin-left: -1rem;
}

.case-tech {
  font-size: 0.9rem;
  color: var(--dark-gray);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Contact Form Styles - ENHANCED */
.cta {
  background: linear-gradient(135deg, var(--primary) 0%, #3d3d80 100%);
  color: var(--white);
  padding: 5rem 0;
}

.cta h2 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

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

.contact-form-container {
  max-width: 600px;
  margin: 2.5rem auto 0;
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 8px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.form-group {
  position: relative;
}

.form-group.full-width {
  grid-column: span 2;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: var(--white);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder,
.contact-form select {
  color: rgba(255, 255, 255, 0.7);
}

.contact-form input:hover,
.contact-form select:hover,
.contact-form textarea:hover {
  background: rgba(255, 255, 255, 0.15);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(255, 118, 117, 0.3);
}

.contact-form select {
  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='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
}

.contact-form option {
  background-color: var(--primary);
  color: var(--white);
}

.btn-form {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  margin-top: 0.5rem;
  background-color: var(--secondary);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-form:hover {
  background-color: #e66767;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(230, 103, 103, 0.2);
}

/* Error state for form validation */
.contact-form input.error,
.contact-form select.error,
.contact-form textarea.error {
  border-color: #e74c3c;
}

.error-message {
  color: #e74c3c;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  display: none;
}

/* Success message */
.success-message {
  background: rgba(255, 255, 255, 0.2);
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  color: var(--white);
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.success-message h3 {
  margin-bottom: 1rem;
  color: var(--white);
}

/* Footer Styles */
.footer {
  background-color: var(--primary);
  color: var(--light);
  padding: 5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h3 {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-col h3:after {
  content: '';
  position: absolute;
  width: 50px;
  height: 2px;
  background: var(--secondary);
  bottom: 0;
  left: 0;
}

.footer-menu {
  list-style: none;
}

.footer-menu li {
  margin-bottom: 0.75rem;
}

.footer-menu a {
  color: var(--light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-menu a:hover {
  color: var(--secondary);
}

.footer-contact li {
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  list-style: none;
}

.contact-icon {
  margin-right: 0.75rem;
  font-size: 1.2rem;
  color: var(--secondary);
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--secondary);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Responsive Styles */
@media (max-width: 992px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-content {
    flex-direction: column;
  }

  .hero-text {
    padding-right: 0;
    margin-bottom: 3rem;
    text-align: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .case-study {
    flex-direction: column;
  }

  .case-number {
    padding: 1rem;
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .section {
    padding: 4rem 0;
  }

  .tech-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .form-group.full-width {
    grid-column: span 1;
  }
}
