/* Pages Common CSS - Tech Theme (Light Version) */
body {
  font-family: 'Inter', Arial, sans-serif;
  background: #ffffff;
  color: #1f2937;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  overflow-x: hidden;
  letter-spacing: 0.2px;
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(99, 102, 241, 0); }
  100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.fade-in-up {
  animation: fadeInUp 1s cubic-bezier(.4,0,.2,1) both;
}

.fade-in {
  animation: fadeIn 1.2s cubic-bezier(.4,0,.2,1) both;
}

/* Common Page Header - Tech Theme */
.page-header {
  min-height: 50vh;
  background: #f9fafb;
  color: #1f2937;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 160px 0 80px 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 30% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
  z-index: 1;
}

.page-header::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(99, 102, 241, 0.1)" stroke-width="0.5"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)" /></svg>') repeat;
  z-index: 1;
  opacity: 0.3;
}

.page-header-content {
  max-width: 800px;
  text-align: center;
  margin: 0 2rem;
  position: relative;
  z-index: 3;
  animation: fadeInUp 1.2s cubic-bezier(.4,0,.2,1) both;
}

.page-header-content h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin: 0 0 1rem 0;
  letter-spacing: -2px;
  line-height: 1.2;
  background: linear-gradient(90deg, #6366f1, #8b5cf6, #d946ef);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientFlow 5s ease infinite;
}

.page-header-content p {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  margin-top: 1.5rem;
  opacity: 0.9;
  line-height: 1.7;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #4b5563;
}

/* Tech Element Decorations */
.tech-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  overflow: hidden;
}

.tech-element {
  position: absolute;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.2);
  filter: blur(40px);
  opacity: 0.5;
  animation: float 6s ease-in-out infinite;
}

.tech-element:nth-child(1) {
  width: 300px;
  height: 300px;
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.tech-element:nth-child(2) {
  width: 200px;
  height: 200px;
  top: 50%;
  right: 15%;
  animation-delay: 1s;
}

.tech-element:nth-child(3) {
  width: 150px;
  height: 150px;
  bottom: 20%;
  left: 20%;
  animation-delay: 2s;
}

/* Content Section - Tech Theme */
.page-section {
  background: #ffffff;
  padding: 120px 0 100px 0;
  position: relative;
  overflow: hidden;
}

.page-section.alternate {
  background: #f9fafb;
}

.page-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.05) 0%, transparent 40%);
  z-index: 1;
}

.page-section-container {
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 5rem;
  flex-wrap: wrap;
  padding: 0 2rem;
  position: relative;
  z-index: 3;
}

.page-section-image {
  flex: 1 1 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.page-section-image::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
  border-radius: 20px;
  filter: blur(60px);
  z-index: -1;
  transform: rotate(-5deg);
  transition: all 0.5s ease-out;
}

.page-section-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(99, 102, 241, 0.1);
  transition: all 0.5s ease;
}

.page-section-container:hover .page-section-image img {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 30px 60px rgba(99, 102, 241, 0.15), 0 0 0 1px rgba(99, 102, 241, 0.2);
}

.page-section-content {
  flex: 1 1 400px;
  position: relative;
}

.page-section-content h2 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
  letter-spacing: -1px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-section-content h2::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  border-radius: 3px;
  transition: width 0.4s ease;
}

.page-section-container:hover .page-section-content h2::after {
  width: 120px;
}

.page-section-content p {
  font-size: clamp(1.05rem, 2vw, 1.15rem);
  color: #4b5563;
  margin-bottom: 2rem;
  line-height: 1.8;
  margin-top: 1.5rem;
}

.page-btn {
  padding: 1em 2.5em;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.05rem;
  transition: all 0.3s cubic-bezier(.4,0,.2,1);
  border: none;
  display: inline-block;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  letter-spacing: 0.5px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  color: #fff;
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.25);
}

.page-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-100%);
  transition: all 0.3s;
  z-index: 1;
}

.page-btn span {
  position: relative;
  z-index: 2;
}

.page-btn:hover {
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.4);
  transform: translateY(-3px);
}

.page-btn:hover::before {
  transform: translateX(0);
}

/* Card Grid Section */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 3;
}

.tech-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(229, 231, 235, 0.8);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 2.5rem 2rem;
  transition: all 0.4s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.tech-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  transition: all 0.4s ease;
  transform: scaleX(0);
  transform-origin: left;
}

.tech-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.3);
}

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

.tech-card img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1.8rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.5s ease;
  border: 2px solid rgba(99, 102, 241, 0.2);
}

.tech-card:hover img {
  transform: scale(1.05);
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.6);
}

.tech-card h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1rem;
  position: relative;
  transition: all 0.3s ease;
}

.tech-card p {
  font-size: 1.05rem;
  color: #4b5563;
  line-height: 1.7;
  margin-top: 0.5rem;
}

/* Contact Form */
.contact-form-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 3;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #4b5563;
}

.form-control {
  width: 100%;
  padding: 1rem 1.2rem;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid rgba(99, 102, 241, 0.3);
  background: #ffffff;
  color: #1f2937;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.form-control::placeholder {
  color: #9ca3af;
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.submit-btn {
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 1em 2.5em;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.25);
  position: relative;
  overflow: hidden;
}

.submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-100%);
  transition: all 0.3s;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.4);
}

.submit-btn:hover::before {
  transform: translateX(0);
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .page-section {
    padding: 100px 0 80px;
  }
  
  .page-section-container {
    gap: 4rem;
  }
}

@media (max-width: 900px) {
  .page-section-container {
    flex-direction: column;
    gap: 4rem;
  }
  
  .page-section-content {
    text-align: center;
    order: 1;
  }
  
  .page-section-content h2::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .page-section-image {
    order: 2;
    margin: 0 auto;
    width: 100%;
  }
  
  .page-section.alternate .page-section-content {
    order: 1;
  }
  
  .page-section.alternate .page-section-image {
    order: 2;
  }
  
  .cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .page-header {
    padding: 140px 0 60px 0;
  }
  
  .page-section {
    padding: 80px 0 60px;
  }
  
  .contact-form-container {
    padding: 0 1.5rem;
  }
}

@media (max-width: 480px) {
  .page-header {
    padding: 120px 0 40px 0;
  }
  
  .page-section {
    padding: 60px 0 40px;
  }
  
  .page-section-container {
    padding: 0 1.2rem;
    gap: 3rem;
  }
  
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1.2rem;
  }
  
  .tech-card {
    padding: 2rem 1.5rem;
  }
  
  .contact-form-container {
    padding: 0 1rem;
  }
} 