/* Custom Styles for Laili Mohamed Translation Landing Page */

:root {
  --cream: #f4f0e3;
  --cream-dark: #e8e2d0;
  --primary-color: #2d4a3e;
  --primary-light: #3d6354;
  --primary-dark: #1e332b;
  --accent-color: #8b7355;
  --accent-light: #a68b6a;
  --text-dark: #2d2d2d;
  --text-muted: #5a5a5a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  color: var(--text-dark);
  line-height: 1.7;
  background-color: #fafaf7;
}

/* Cream background sections */
.bg-cream {
  background-color: var(--cream) !important;
}

.bg-cream-dark {
  background-color: var(--cream-dark) !important;
}

/* Override Bootstrap primary color */
.bg-primary {
  background-color: var(--primary-color) !important;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.text-primary {
  color: var(--primary-color) !important;
}

.border-primary {
  border-color: var(--primary-color) !important;
}

.bg-primary-subtle {
  background-color: var(--cream) !important;
}

/* Accent color overrides */
.text-accent {
  color: var(--accent-color) !important;
}

.bg-accent-subtle {
  background-color: rgba(139, 115, 85, 0.12) !important;
}

/* Smooth transitions */
.card,
.btn,
.navbar-nav .nav-link,
.domain-card {
  transition: all 0.3s ease;
}

/* Navbar styling */
.navbar {
  transition: box-shadow 0.3s ease;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

.navbar-brand {
  font-size: 1.3rem;
}

.nav-link {
  font-weight: 500;
  color: var(--text-dark) !important;
  padding: 0.5rem 1rem !important;
}

.nav-link:hover {
  color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  position: relative;
}

.hero-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.min-vh-80 {
  min-height: 80vh;
}

.hero-card {
  max-width: 350px;
  margin: 0 auto;
}

.icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.icon-circle-lg {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Service Cards */
.icon-box {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.1) !important;
}

/* Domain Cards */
.domain-card {
  transition: all 0.3s ease;
}

.domain-card:hover {
  transform: translateX(5px);
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1) !important;
}

/* Experience Timeline */
.experience-timeline {
  position: relative;
  padding-left: 30px;
}

.experience-timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary-color), #e2e8f0);
}

.experience-item {
  position: relative;
}

.experience-dot {
  position: absolute;
  left: -30px;
  top: 24px;
  width: 14px;
  height: 14px;
  background-color: var(--primary-color);
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px rgba(45, 74, 62, 0.2);
  z-index: 1;
}

.experience-content {
  margin-left: 10px;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.experience-content:hover {
  transform: translateX(5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
}

/* Credentials Section */
.credential-card {
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.credential-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  background-color: #fff !important;
}

.credential-icon {
  transition: transform 0.3s ease;
}

.credential-card:hover .credential-icon {
  transform: scale(1.1);
}

.memberships-bar {
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.membership-badge {
  transition: all 0.3s ease;
}

.membership-badge:hover {
  transform: translateY(-2px);
}

.membership-badge:hover .shadow-sm {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12) !important;
}

/* About Section */
.about-image-wrapper {
  position: relative;
  padding: 20px;
}

.about-shape {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.1;
  transform: rotate(-3deg);
}

.about-card {
  position: relative;
  z-index: 1;
}

.profile-icon {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Why Choose Me */
.icon-check {
  width: 32px;
  height: 32px;
  min-width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

/* Process Section */
.step-number {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
}

.process-step {
  position: relative;
}

@media (min-width: 992px) {
  .process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 30px;
    right: -15%;
    width: 30%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
  }
}

/* Modern Contact Form */
.form-card {
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.form-floating > .form-control,
.form-floating > .form-select {
  height: calc(3.2rem + 2px);
  border-radius: 0.75rem;
  border: 1.5px solid #e2e8f0;
  background-color: #f8fafc;
  transition: all 0.2s ease;
}

.form-floating > .form-control:focus,
.form-floating > .form-select:focus {
  border-color: var(--primary-color);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(45, 74, 62, 0.1);
}

.form-floating > label {
  padding: 0.85rem 1rem;
  color: #64748b;
  font-size: 0.9rem;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label {
  transform: scale(0.8) translateY(-0.6rem) translateX(0.15rem);
  color: var(--primary-color);
  font-weight: 500;
}

.form-floating > textarea.form-control {
  height: 120px;
}

#contact .btn-primary {
  border-radius: 0.75rem;
  font-size: 1rem;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
}

#contact .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(45, 74, 62, 0.3);
}

.contact-strip {
  font-size: 0.9rem;
}

.contact-strip a:hover {
  color: var(--primary-color) !important;
}

/* Social Links */
.social-links {
  margin-top: 1rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #fff;
  color: var(--primary-color);
  border: 2px solid #e2e8f0;
  font-size: 1.2rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(45, 74, 62, 0.3);
}

.social-link.proz-link {
  width: auto;
  padding: 0 16px;
  border-radius: 22px;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}

.social-link.proz-link svg {
  width: 18px;
  height: 18px;
}

/* Footer Social Links */
.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-social-link:hover {
  background-color: var(--cream);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

/* Success animation */
.success-icon {
  animation: scaleIn 0.4s ease;
}

@keyframes scaleIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Footer */
footer a:hover {
  color: #fff !important;
}

/* Form styling */
.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(45, 74, 62, 0.25);
}

/* Custom button styles */
.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1.05rem;
}

/* Badge styling */
.badge.rounded-pill {
  font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .hero-section .display-4 {
    font-size: 2.2rem;
  }
  
  .min-vh-80 {
    min-height: auto;
  }
}

@media (max-width: 767px) {
  .hero-section .lead {
    font-size: 1rem;
  }
  
  section {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
}

/* Animation for elements */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card, .domain-card {
  animation: fadeInUp 0.6s ease-out;
}
