:root{
  --primary: #5b5bff;
  --primary-dark: #0d6efd;
  --secondary: #ff6b9d;
  --success: #4caf50;
  --warning: #ffc107;
  --dark: #1a1a2e;
  --light: #f8f9fa;
  --white: #ffffff;
  --border-radius: 16px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--light);
  color: #333;
  line-height: 1.6;
}

/* ========== NAVBAR ========== */
.navbar {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  box-shadow: 0 4px 20px rgba(91, 91, 255, 0.15);
  border-bottom: none;
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white) !important;
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  transition: transform 0.3s ease;
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.navbar-brand img {
  height: 36px;
  width: 36px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.8) !important;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  margin: 0 0.3rem;
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--white) !important;
}

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

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

/* ========== HERO SECTION ========== */
.hero {
  background: linear-gradient(135deg, #ffffff 0%, #f0f5ff 50%, #fff5e6 100%);
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
  min-height: 600px;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(91, 91, 255, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -5%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 107, 157, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .lead {
  font-size: 1.3rem;
  color: #6c757d;
  margin-bottom: 2rem;
  max-width: 600px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  border: none;
  border-radius: 50px;
  padding: 0.85rem 2.2rem;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(91, 91, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(91, 91, 255, 0.4);
}

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

.btn-outline-secondary:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

.hero-visual {
  position: relative;
  animation: float 3s ease-in-out infinite;
}

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

.mockup {
  background: linear-gradient(135deg, var(--white) 0%, #f6f9ff 100%);
  border-radius: var(--border-radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 350px;
  position: relative;
  overflow: hidden;
}

.mockup::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(91, 91, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

/* ========== SECTION DIVIDER ========== */
.section-header {
  text-align: center;
  margin: 4rem 0 3rem 0;
  position: relative;
  padding: 2rem 0;
}

.section-header::before,
.section-header::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 15%;
  height: 2px;
  background: linear-gradient(to right, transparent, #ddd);
}

.section-header::before {
  left: 0;
}

.section-header::after {
  right: 0;
  background: linear-gradient(to left, transparent, #ddd);
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.5px;
  text-transform: uppercase;
  margin: 0;
}

.section-header .subtitle {
  color: #999;
  font-size: 0.95rem;
  margin-top: 0.5rem;
  letter-spacing: 1px;
}

/* ========== FEATURES SECTION ========== */
.features-section {
  padding: 4rem 0;
}

.card {
  border: 2px solid #e9ecef;
  border-radius: var(--border-radius);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
  overflow: hidden;
  background: var(--white);
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(91, 91, 255, 0.1), transparent);
  transition: left 0.6s ease;
}

.card:hover::before {
  left: 100%;
}

.card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(91, 91, 255, 0.15);
}

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

.card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: inline-block;
}

.card-title {
  color: var(--dark);
  font-weight: 800;
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.card-text {
  color: #6c757d;
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ========== SERVICES SECTION ========== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.service-card {
  background: linear-gradient(135deg, var(--white) 0%, #fafbff 100%);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 24px 48px rgba(91, 91, 255, 0.2);
  border-color: var(--primary);
}

.service-card img {
  width: 80px;
  height: 80px;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
  transition: transform 0.3s ease;
}

.service-card:hover img {
  transform: scale(1.1) rotate(5deg);
}

/* ========== COMPANY INFO SECTION ========== */
.company-info {
  background: linear-gradient(135deg, var(--white) 0%, #f9faff 100%);
  border-radius: var(--border-radius);
  border: 2px solid #e9ecef;
  padding: 3rem;
  margin-top: 3rem;
}

.company-info h3 {
  color: var(--dark);
  font-weight: 800;
  font-size: 1.8rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--primary);
  display: inline-block;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.info-item {
  padding: 1.5rem;
  background: var(--white);
  border-radius: 12px;
  border-left: 4px solid var(--primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.info-item:hover {
  transform: translateX(4px);
  box-shadow: 0 8px 20px rgba(91, 91, 255, 0.1);
}

.info-item dt {
  font-weight: 800;
  color: var(--primary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.info-item dd {
  color: var(--dark);
  font-size: 1.1rem;
  margin: 0;
  line-height: 1.6;
}

/* ========== CONTACT FORM SECTION ========== */
.contact-section {
  padding: 4rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.form-label {
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.7rem;
  font-size: 0.95rem;
}

.form-control {
  border-radius: 12px;
  border: 2px solid #e9ecef;
  padding: 1rem;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(91, 91, 255, 0.1);
  outline: none;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
}

.form-alert {
  border-radius: 12px;
  border: none;
  padding: 1rem 1.5rem;
  font-weight: 600;
}

.alert-success {
  background: #d1f2eb;
  color: #0b5345;
  border-left: 4px solid #17a2b8;
}

.alert-danger {
  background: #f8d7da;
  color: #721c24;
  border-left: 4px solid #dc3545;
}

.contact-info {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  color: var(--white);
}

.contact-info h5 {
  font-weight: 800;
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

.contact-info p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
  font-size: 0.95rem;
}

.contact-info strong {
  display: block;
  margin-bottom: 0.3rem;
}

/* ========== FOOTER ========== */
footer {
  background: linear-gradient(135deg, var(--dark) 0%, #252f45 100%);
  color: var(--white);
  padding: 3rem 0 1.5rem;
  border-top: 1px solid rgba(91, 91, 255, 0.2);
}

footer small {
  opacity: 0.7;
  font-size: 0.9rem;
}

footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 600;
}

footer a:hover {
  color: var(--primary);
  text-shadow: 0 0 10px rgba(91, 91, 255, 0.5);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero .lead {
    font-size: 1.1rem;
  }

  .hero-visual {
    margin-top: 2rem;
  }

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

  .section-header::before,
  .section-header::after {
    width: 10%;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .section-header {
    margin: 2.5rem 0 2rem 0;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

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

  .btn {
    width: 100%;
    text-align: center;
  }

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

@media (max-width: 576px) {
  .hero {
    padding: 3rem 0;
    min-height: auto;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .hero .lead {
    font-size: 1rem;
  }

  .mockup {
    min-height: 250px;
  }

  .section-header h2 {
    font-size: 1.3rem;
  }
}
