/* Base styles and components */

/* Mobile Navigation */
.mobile-navigation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--light-bg);
  z-index: 999;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

[data-theme="dark"] .mobile-navigation {
  background: var(--dark-bg);
}

.mobile-navigation.active {
  transform: translateX(0);
}

.mobile-nav-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: inherit;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.mobile-nav-panel.active {
  transform: translateX(0);
}

.mobile-nav-panel.slide-left {
  transform: translateX(-100%);
}

.mobile-nav-panel.slide-right {
  transform: translateX(100%);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  min-height: 80px;
}

.mobile-nav-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-dark);
}

.mobile-nav-back,
.mobile-nav-close {
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  color: var(--text-dark);
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 1.2rem;
}

.mobile-nav-back:hover,
.mobile-nav-close:hover {
  background: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .mobile-nav-back:hover,
[data-theme="dark"] .mobile-nav-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.mobile-nav-list {
  flex: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 1.5rem;
  border: none;
  background: none;
  color: var(--text-dark);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 1px solid var(--border-color);
}

.mobile-nav-item:hover,
.mobile-nav-item:focus {
  background: rgba(0, 0, 0, 0.05);
  outline: none;
}

[data-theme="dark"] .mobile-nav-item:hover,
[data-theme="dark"] .mobile-nav-item:focus {
  background: rgba(255, 255, 255, 0.05);
}

.mobile-nav-item i {
  font-size: 1rem;
  opacity: 0.6;
}

.mobile-nav-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.theme-toggle.mobile {
  width: 100%;
  height: 50px;
  border-radius: 25px;
  background: rgba(0, 0, 0, 0.05);
  justify-content: flex-start;
  padding: 0 1rem;
  gap: 0.75rem;
}

[data-theme="dark"] .theme-toggle.mobile {
  background: rgba(255, 255, 255, 0.05);
}

.theme-toggle.mobile .theme-text {
  font-weight: 500;
}

/* Desktop Navigation */
.nav-link {
  color: var(--text-light) !important;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.header-transparent.scrolled .nav-link {
  color: var(--text-dark) !important;
}

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

.dropdown-menu {
  border: none;
  box-shadow: var(--shadow);
  border-radius: 12px;
  padding: 0.5rem 0;
  background: var(--light-bg);
}

[data-theme="dark"] .dropdown-menu {
  background: var(--dark-bg);
}

.dropdown-item {
  padding: 0.75rem 1.5rem;
  color: var(--text-dark);
  transition: var(--transition);
}

.dropdown-item:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--primary-color);
}

[data-theme="dark"] .dropdown-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Buttons */
.btn {
  border-radius: 50px;
  padding: 0.75rem 2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border: none;
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 0, 128, 0.3);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
}

.btn-outline-light:hover {
  background: white;
  color: var(--text-dark);
  transform: translateY(-2px);
}

/* Service Cards */
.service-card {
  background: var(--light-bg);
  border-radius: 20px;
  padding: 2rem;
  height: 100%;
  transition: var(--transition);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .service-card {
  background: var(--dark-bg);
  border-color: rgba(255, 255, 255, 0.1);
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
}

.service-blue::before {
  background: var(--secondary-color);
}

.service-orange::before {
  background: var(--accent-orange);
}

.service-pink::before {
  background: var(--primary-color);
}

.service-purple::before {
  background: var(--accent-purple);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow);
}

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: white;
}

.service-blue .service-icon {
  background: var(--secondary-color);
}

.service-orange .service-icon {
  background: var(--accent-orange);
}

.service-pink .service-icon {
  background: var(--primary-color);
}

.service-purple .service-icon {
  background: var(--accent-purple);
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.service-card p {
  color: var(--text-muted);
  margin: 0;
}

/* Services Section Background */
.services-grid {
  background: var(--light-bg);
}

[data-theme="dark"] .services-grid {
  background: var(--dark-bg);
}

/* Section Styles */
.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

/* Work Items */
.work-item {
  background: var(--light-bg);
  border-radius: 20px;
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.work-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow);
}

.work-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.work-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.work-item:hover .work-image img {
  transform: scale(1.1);
}

.work-content {
  padding: 1.5rem;
}

.work-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.work-content p {
  color: var(--text-muted);
  margin: 0;
}

/* Footer */
.footer {
  background: var(--dark-bg);
  color: var(--text-light);
}

[data-theme="dark"] .footer {
  background: #000000;
}

.footer-brand h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}
.footer-brand {
  h3.lead {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 0.3rem;
  }
  p {
    color: var(--alfa-color-light-70);
    margin-bottom: 1rem;
    word-break: break-word;
  }
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-color);
}

.footer-developer {
  display: flex;
  align-items: center;
  justify-content: end;
  img {
    margin-left: 0.5rem;
    height: 36px;
  }
}

.contact-email {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
}

.contact-phone {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

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

.social-links a:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 2rem 0 1rem;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

/* Responsive Design */
@media (max-width: 991.98px) {
  .footer {
    text-align: center;
    .social-links {
      justify-content: center;
    }
  }

  .hero-title {
    font-size: clamp(2rem, 6vw, 3rem);
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .hero-cta .btn {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 767.98px) {
  .footer {
    text-align: center;
    .social-links {
      justify-content: center;
    }
  }
  .service-card {
    padding: 1.5rem;
  }

  .work-content {
    padding: 1rem;
  }
}

/* Focus styles for accessibility */
.mobile-nav-item:focus,
.mobile-nav-back:focus,
.mobile-nav-close:focus,
.theme-toggle:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Work With Us Section */
.work-with-us {
  background: var(--light-bg);
}

[data-theme="dark"] .work-with-us {
  background: var(--dark-bg);
  h2 {
    color: var(--text-light);
  }
  p {
    color: var(--text-muted);
  }
}

.collaboration-option {
  background: var(--light-bg);
  border: 2px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
  height: 100%;
  transition: var(--transition);
  text-align: center;
}

.collaboration-option:hover {
  border-color: var(--primary-color);
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.collaboration-option h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.collaboration-option p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.collaboration-option ul {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  text-align: left;
}

.collaboration-option li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.collaboration-option li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}
