/* Modern Styles for 3D Print Co. Website - 2025 Edition */

/* Custom Variables */
:root {
    --primary-color: #5e17eb; /* Changed to modern purple */
    --primary-dark: #4912c5;
    --primary-light: #7b41f5;
    --primary-light-bg: rgba(94, 23, 235, 0.1);
    --secondary-color: #111827;
    --accent-color: #00d4ff;
    --dark-color: #0f172a;
    --light-color: #f8fafc;
    --light-gray: #f1f5f9;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --danger-color: #ef4444;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --info-color: #0ea5e9;
    --border-radius-sm: 0.25rem;
    --border-radius: 0.5rem;
    --border-radius-lg: 1rem;
    --border-radius-xl: 1.5rem;
    --box-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --box-shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --box-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --box-shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --transition-fast: all 0.2s ease;
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  }
  
  /* Global Styles */
  body {
    font-family: var(--font-family);
    color: var(--gray-700);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: #ffffff;
  }
  
  h1, h2, h3, h4, h5, h6 {
    color: var(--gray-900);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.2;
  }
  
  a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
  }
  
  a:hover {
    color: var(--primary-dark);
  }
  
  /* Typography */
  .display-4 {
    font-weight: 800;
    letter-spacing: -0.05em;
  }
  
  .lead {
    font-weight: 400;
    color: var(--gray-600);
  }
  
  .section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
  }
  
  .section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-500);
    max-width: 800px;
    margin: 0 auto;
  }
  
  .text-white-80 {
    color: rgba(255, 255, 255, 0.8);
  }
  
  /* Badges */
  .badge {
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 50rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
  }
  
  .bg-primary-light {
    background-color: var(--primary-light-bg);
  }
  
  .text-primary {
    color: var(--primary-color) !important;
  }
  
  /* Buttons */
  .btn {
    border-radius: var(--border-radius);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    text-transform: none;
    letter-spacing: 0;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
  }
  
  .btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    z-index: -1;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.3s ease;
  }
  
  .btn:hover::after {
    transform: scaleY(1);
  }
  
  .btn-lg {
    padding: 1rem 2rem;
    font-size: 1.05rem;
  }
  
  .btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 14px rgba(94, 23, 235, 0.25);
  }
  
  .btn-primary:hover, 
  .btn-primary:focus {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(94, 23, 235, 0.35);
  }
  
  .btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
  }
  
  .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  }
  
  /* Forms */
  .form-control, .form-select {
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-300);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: var(--box-shadow-sm);
  }
  
  .form-control:focus, .form-select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(94, 23, 235, 0.15);
  }
  
  .form-floating label {
    padding: 0.75rem 1rem;
  }
  
  .form-floating>.form-control:focus~label,
  .form-floating>.form-control:not(:placeholder-shown)~label {
    color: var(--primary-color);
    opacity: 0.8;
    transform: scale(0.85) translateY(-0.75rem) translateX(0.15rem);
  }
  
  /* Hero Section */
  .hero-section {
    background-color: var(--dark-color);
    padding: 8rem 0 6rem;
    overflow: hidden;
  }
  
  .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.8) 100%);
    z-index: 0;
  }
  
  .hero-image-container {
    position: relative;
    z-index: 1;
  }
  
  .hero-image {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-lg);
    transition: var(--transition);
    transform: perspective(1000px) rotateY(-5deg);
  }
  
  .hero-shape-1 {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80%;
    height: 80%;
    background: linear-gradient(to bottom right, var(--primary-color), var(--accent-color));
    border-radius: var(--border-radius-lg);
    z-index: -1;
    opacity: 0.2;
    transform: rotate(-5deg);
  }
  
  .hero-shape-2 {
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 70%;
    height: 70%;
    background: linear-gradient(to top left, var(--primary-color), var(--accent-color));
    border-radius: var(--border-radius-lg);
    z-index: -1;
    opacity: 0.15;
    transform: rotate(5deg);
  }
  
  .hero-bottom-shape {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background-color: #fff;
    clip-path: polygon(0 100%, 100% 100%, 100% 0);
    z-index: 1;
  }
  
  /* Services Section */
  .services-section {
    position: relative;
    z-index: 1;
  }
  
  .service-card {
    background-color: #fff;
    border-radius: var(--border-radius-lg);
    padding: 2.5rem 2rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
  }
  
  .service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--primary-light));
    z-index: -1;
  }
  
  .service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-lg);
  }
  
  .service-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary-light-bg);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: var(--transition);
  }
  
  .service-card:hover .service-icon {
    background-color: var(--primary-color);
    color: white;
    transform: rotate(10deg);
  }
  
  .service-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--gray-900);
  }
  
  .service-description {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    font-size: 1rem;
  }
  
  .service-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 600;
  }
  
  .service-link:hover {
    color: var(--primary-dark);
  }
  
  .service-link i {
    transition: var(--transition);
  }
  
  .service-link:hover i {
    transform: translateX(5px);
  }
  
  /* Process Section */
  .process-card {
    background-color: #fff;
    border-radius: var(--border-radius-lg);
    padding: 2.5rem 2rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    position: relative;
    text-align: center;
  }
  
  .process-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-lg);
  }
  
  .process-number {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background-color: var(--primary-light-bg);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
  }
  
  .process-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
    margin: 0 auto 1.5rem;
    transition: var(--transition);
  }
  
  .process-card:hover .process-icon {
    background-color: var(--primary-color);
    color: white;
    transform: rotate(10deg) scale(1.1);
  }
  
  .process-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--gray-900);
  }
  
  .process-description {
    color: var(--gray-600);
    font-size: 0.95rem;
  }
  
  /* Materials Section */
  .materials-image-container {
    position: relative;
    margin-bottom: 2rem;
  }
  
  .materials-image-container img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-lg);
    position: relative;
    z-index: 1;
  }
  
  .materials-shape {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 60%;
    height: 60%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: var(--border-radius-lg);
    z-index: 0;
    opacity: 0.15;
  }
  
  .materials-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.25rem;
    border-radius: 50rem;
    color: var(--primary-color);
    font-weight: 600;
    box-shadow: var(--box-shadow);
    z-index: 2;
  }
  
  .material-item {
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: var(--box-shadow-sm);
    transition: var(--transition);
  }
  
  .material-item:hover {
    transform: translateX(5px);
    box-shadow: var(--box-shadow);
  }
  
  .material-icon {
    margin-right: 1rem;
    font-size: 1rem;
  }
  
  .material-text {
    font-weight: 500;
    color: var(--gray-800);
  }
  
  /* Stats Section */
  .stats-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    position: relative;
    overflow: hidden;
  }
  
  .stats-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 0;
  }
  
  .stats-card {
    text-align: center;
    padding: 1.5rem;
    position: relative;
    z-index: 1;
    transition: var(--transition);
  }
  
  .stats-card:hover {
    transform: translateY(-10px);
  }
  
  .stats-icon {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
  }
  
  .stats-number {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    line-height: 1.2;
    margin-bottom: 0.5rem;
  }
  
  .stats-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 0;
  }
  
  /* Testimonial Section */
  .testimonial-card {
    background-color: #fff;
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    position: relative;
  }
  
  .testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-lg);
  }
  
  .testimonial-rating {
    margin-bottom: 1.5rem;
    color: var(--warning-color);
    font-size: 1.1rem;
  }
  
  .testimonial-text {
    font-style: italic;
    color: var(--gray-700);
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1rem;
    border-left: 3px solid var(--primary-color);
  }
  
  .testimonial-profile {
    display: flex;
    align-items: center;
  }
  
  .testimonial-avatar {
    width: 45px;
    height: 45px;
    background-color: var(--primary-light-bg);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 1rem;
  }
  
  .testimonial-info {
    flex: 1;
  }
  
  .testimonial-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
  }
  
  .testimonial-position {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 0;
  }
  
  /* Contact Section */
  .contact-section {
    position: relative;
    overflow: hidden;
  }
  
  .contact-card {
    background-color: #fff;
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    box-shadow: var(--box-shadow-lg);
  }
  
  /* Navbar Customization */
  .navbar {
    background-color: var(--dark-color);
    box-shadow: var(--box-shadow);
    padding: 1rem 0;
    transition: var(--transition);
  }
  
  .navbar.scrolled {
    padding: 0.75rem 0;
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
  }
  
  .navbar-brand {
    font-weight: 800;
    font-size: 1.75rem;
    color: var(--primary-color) !important;
    letter-spacing: -0.025em;
  }
  
  .navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: var(--transition);
    position: relative;
  }
  
  .navbar-dark .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
  }
  
  .navbar-dark .navbar-nav .nav-link:hover::after,
  .navbar-dark .navbar-nav .nav-link:focus::after,
  .navbar-dark .navbar-nav .nav-link.active::after {
    width: 70%;
  }
  
  .navbar-dark .navbar-nav .nav-link:hover,
  .navbar-dark .navbar-nav .nav-link:focus,
  .navbar-dark .navbar-nav .nav-link.active {
    color: white;
  }
  
  /* Footer Customization */
  .footer {
    background-color: var(--dark-color);
    padding: 5rem 0 2rem;
    color: white;
    position: relative;
    overflow: hidden;
  }
  
  .footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  }
  
  .footer h5 {
    color: white;
    margin-bottom: 1.5rem;
    font-weight: 600;
    position: relative;
    display: inline-block;
  }
  
  .footer h5::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
  }
  
  .footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    display: inline-block;
    margin-bottom: 0.5rem;
  }
  
  .footer a:hover {
    color: white;
    transform: translateX(5px);
  }
  
  /* Counter Animation */
  @keyframes countUp {
    from { content: "0"; }
    to { content: attr(data-target); }
  }
  
  /* Animation for the pulsate button */
  @keyframes pulsate {
    0% {
      box-shadow: 0 0 0 0 rgba(94, 23, 235, 0.7);
    }
    70% {
      box-shadow: 0 0 0 10px rgba(94, 23, 235, 0);
    }
    100% {
      box-shadow: 0 0 0 0 rgba(94, 23, 235, 0);
    }
  }
  
  .btn-pulsate {
    animation: pulsate 2s infinite;
  }
  
  /* Animations */
  .fade-in {
    animation: fadeIn 1s ease-out;
  }
  
  .slide-up {
    animation: slideUp 0.8s ease-out;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  @keyframes slideUp {
    from { 
      transform: translateY(50px);
      opacity: 0;
    }
    to { 
      transform: translateY(0);
      opacity: 1;
    }
  }
  
  /* Responsive Adjustments */
  @media (max-width: 992px) {
    .hero-section {
      padding: 6rem 0 4rem;
      text-align: center;
    }
    
    .hero-section h1 {
      font-size: 2.8rem;
    }
    
    .hero-section img {
      margin-top: 2rem;
    }
    
    .section-title {
      font-size: 2.2rem;
    }
    
    .stats-number {
      font-size: 2.5rem;
    }
    
    .contact-card {
      padding: 2rem;
    }
  }
  
  @media (max-width: 768px) {
    .hero-section h1 {
      font-size: 2.5rem;
    }
    
    .section-title {
      font-size: 2rem;
    }
    
    .service-card, .process-card, .testimonial-card {
      padding: 2rem 1.5rem;
    }
    
    .stats-number {
      font-size: 2rem;
    }
  }
  
  @media (max-width: 576px) {
    .hero-section {
      padding: 5rem 0 3rem;
    }
    
    .hero-section h1 {
      font-size: 2.2rem;
    }
    
    .section-title {
      font-size: 1.8rem;
    }
    
    .service-icon, .process-icon {
      width: 60px;
      height: 60px;
      font-size: 1.5rem;
    }
    
    .service-title, .process-title {
      font-size: 1.3rem;
    }
    
    .contact-card {
      padding: 1.5rem;
    }
  }