/* Custom Styles for STRUMFI TECH SRL Website */

:root {
  --primary-color: #0d6efd;
  --secondary-color: #6c757d;
  --success-color: #198754;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --dark-color: #212529;
  --light-color: #f8f9fa;
}

/* Global Styles */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  padding-top: 76px; /* Account for fixed navbar */
}

/* Navigation */
.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
}

.navbar-nav .nav-link {
  font-weight: 500;
  margin: 0 0.5rem;
  transition: color 0.3s ease;
}

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

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-section h1 {
  animation: fadeInUp 1s ease-out;
}

.hero-section p {
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-section .btn {
  animation: fadeInUp 1s ease-out 0.4s both;
}

/* Page Header */
.page-header {
  padding: 120px 0 80px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
}

/* Feature Icons */
.feature-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* Service Preview Cards */
.service-preview-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  border: none;
}

.service-preview-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.service-preview-card .card-img-top {
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.service-preview-card:hover .card-img-top {
  transform: scale(1.05);
}

/* Service Cards */
.service-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  position: relative;
  border: none;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.service-icon {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 2;
}

.service-card .card-img-top {
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.service-card:hover .card-img-top {
  transform: scale(1.05);
}

.service-card .card-body {
  padding: 1.5rem;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.service-card .card-title {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 1rem;
}

.service-card .list-unstyled li {
  padding: 0.25rem 0;
  font-size: 0.9rem;
}

.service-card .card-footer {
  background: transparent;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding: 1rem 1.5rem;
  margin-top: 0;
}

/* Contact Form */
.contact-info .contact-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding-bottom: 1.5rem;
}

.contact-info .contact-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-icon {
  width: 40px;
  margin-right: 1rem;
  text-align: center;
}

.contact-icon i {
  font-size: 1.2rem;
}

.company-detail h5 {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Map Container */
.map-container {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.btn {
  border-radius: 8px;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
}

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

.btn-primary:hover {
  background: #0056b3;
  border-color: #0056b3;
  transform: translateY(-2px);
}

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

.btn-warning:hover {
  background: #e0a800;
  border-color: #e0a800;
  color: var(--dark-color);
  transform: translateY(-2px);
}

.btn-outline-light:hover {
  transform: translateY(-2px);
}

.btn-outline-primary:hover {
  transform: translateY(-2px);
}

/* Form Styles */
.form-control,
.form-select {
  border-radius: 8px;
  border: 2px solid #e9ecef;
  padding: 0.75rem 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Cards */
.card {
  border: none;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Social Links */
.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--warning-color);
  color: var(--dark-color) !important;
  transform: translateY(-3px);
}

/* Footer */
footer {
  margin-top: auto;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: none;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

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

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Scroll Effects */
.fade-in-element {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-element.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* Navbar Scroll Effect */
.navbar-scrolled {
  background-color: rgba(13, 110, 253, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section {
    text-align: center;
    padding: 2rem 0;
  }

  .hero-section h1 {
    font-size: 2.5rem;
  }

  .page-header {
    padding: 100px 0 60px;
  }

  .page-header h1 {
    font-size: 2.5rem;
  }

  .service-card,
  .service-preview-card {
    margin-bottom: 2rem;
  }

  .contact-info .contact-item {
    margin-bottom: 2rem;
  }

  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }

  .d-flex.gap-3 {
    flex-direction: column;
    gap: 1rem !important;
  }
}

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

  .page-header h1 {
    font-size: 2rem;
  }

  .feature-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .service-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .service-card .card-img-top,
  .service-preview-card .card-img-top {
    height: 150px;
  }
}

/* Utility Classes */
.text-shadow {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.bg-gradient-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
}

.border-radius-lg {
  border-radius: 15px !important;
}

.shadow-lg-custom {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Focus Styles for Accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .navbar,
  .btn,
  footer,
  .back-to-top {
    display: none !important;
  }

  body {
    padding-top: 0;
  }

  .hero-section,
  .page-header {
    background: white !important;
    color: black !important;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #0056b3;
}
