/* Base Styles & Variables */
:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --secondary: #8b5cf6;
    --accent: #ec4899;
    --success: #10b981;
    --warning: #f59e0b;
    --text: #000000;
    --text-light: #333333;
    --bg: #ffffff;
    --bg-secondary: #f8f9fa;
    --card-bg: #ffffff;
    --border: #e5e7eb;
    --border-color: rgba(0, 0, 0, 0.1);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --heading-color: #000000;
  }
  
  /* Dark Theme */
  .dark-theme {
    --bg: #000000;
    --bg-secondary: #000000;
    --card-bg: #111111;
    --text: #ffffff;
    --text-light: #e5e7eb;
    --text-muted: #9ca3af;
    --border: #2d3748;
    --border-color: rgba(255, 255, 255, 0.1);
    --primary: #3b82f6;
    --primary-rgb: 59, 130, 246;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --primary-hover: #60a5fa;
    --primary-gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --secondary: #8b5cf6;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --card-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    --heading-color: #ffffff;
  }
  
  /* Global Styles */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    transition: background-color 0.3s ease, color 0.3s ease;
    min-height: 100vh;
    overflow-x: hidden;
  }
  
  .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    overflow-x: hidden;
  }
  
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  
  /* Typography */
  h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--heading-color);
  }
  
  p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
  }
  
  a {
    text-decoration: none;
    color: var(--primary);
    transition: all 0.3s ease;
  }
  
  a:hover {
    color: var(--primary-dark);
  }
  
  /* Buttons */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
  }
  
  .btn i {
    margin-right: 0.5rem;
  }
  
  .btn-primary {
    background-color: var(--primary);
    color: rgb(255, 255, 255);
    border-color: var(--primary);
  }
  
  .btn-primary:hover {
    background-color: rgb(255, 255, 255);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  }
  
  .btn-outline {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary);
  }
  
  .btn-outline:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
  }
  
  /* Hero Section */
  .hero-section {
    position: relative;
    padding: 11rem 2rem;
    background: #ffffff;
    color: #000000;
    overflow: hidden;
  }
  
  .dark-theme .hero-section {
    background: #000000;
    color: #ffffff;
  }
  
  .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
  }
  
  .hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: inherit;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
    color: inherit;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 0.2s forwards;
  }
  
  .cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 0.4s forwards;
  }
  
  .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 1;
    pointer-events: none;
  }

  /* Clients Section */
  .clients-section {
    padding: 0.5rem 0.5;
    background-color: var(--bg);
    position: relative;
    overflow: hidden;
  }

  .clients-slider {
    display: flex;
    align-items: center;
    width: max-content;
    padding: 2rem 0;
    animation: scroll 40s linear infinite;
    white-space: nowrap;
  }

  .client-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
  }

  .client-logo:hover {
    opacity: 1;
  }

  .client-logo img {
    max-width: 150px;
    max-height: 90px;
    width: auto;
    height: auto;
    object-fit: contain;
  }

  @keyframes scroll {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-50%);
    }
  }

  @media (max-width: 1200px) {
    .clients-slider {
      animation-duration: 50s;
    }
    
    .client-logo {
      padding: 0 1.5rem;
    }
    
    .client-logo img {
      max-width: 100px;
      max-height: 50px;
    }
  }

  @media (max-width: 768px) {
    .clients-slider {
      animation-duration: 60s;
    }
    
    .client-logo {
      padding: 0 1rem;
    }
    
    .client-logo img {
      max-width: 80px;
      max-height: 40px;
    }
  }
  
  /* Section Styles */
  .section-header {
    text-align: center;
    margin-bottom: 4rem;
  }
  
  .section-subtitle {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
  }
  
  .section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
  }
  
  .section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    margin: 1.5rem auto 0;
    border-radius: 2px;
  }
  
  /* Services Grid */
  .services-section {
    padding: 6rem 0;
    background-color: var(--bg);
    position: relative;
    overflow: hidden;
  }
  
  .services-section .container > h2 {
    color: var(--text);
    margin-bottom: 1rem;
  }
  
  .services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 600px;
    background: transparent;
    pointer-events: none;
    z-index: 0;
  }
  
  /* Enhanced Service Cards */
  .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2.5rem;
    margin: 4rem 0;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  
  .service-card {
    position: relative;
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    transform-style: preserve-3d;
    transform: translateZ(0);
    will-change: transform, box-shadow;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    color: var(--text);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
  }
  
  .service-card:hover {
    transform: translateY(-10px) translateZ(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
  }
  
  .service-card:hover::before {
    transform: scaleX(1);
  }
  
  .service-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
  }
  
  .dark-theme .service-image {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  }
  
  .service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.45, 0.45, 0.95);
    will-change: transform;
    backface-visibility: hidden;
  }
  
  .service-card:hover .service-image img {
    transform: scale(1.1);
  }
  
  .service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
      to bottom, 
      rgba(0,0,0,0.1) 0%, 
      rgba(0,0,0,0.8) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 16px 16px 0 0;
    backdrop-filter: blur(2px);
  }
  
  .service-card:hover .service-overlay {
    opacity: 1;
  }
  
  .service-overlay .service-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.8rem;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.1);
  }
  
  .service-card:hover .service-overlay .service-icon {
    transform: translateY(0);
  }
  
  .service-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    background: var(--card-bg);
    border-radius: 0 0 16px 16px;
  }
  
  .service-card h3 {
    font-size: 1.6rem;
    margin: 0 0 1rem 0;
    color: var(--heading-color);
    position: relative;
    padding-bottom: 0.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
  }
  
  .service-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-gradient);
    transition: width 0.4s ease;
    border-radius: 2px;
  }
  
  .service-card:hover h3::after {
    width: 80px;
  }
  
  .service-card p {
    color: var(--text-muted);
    margin: 0 0 1.5rem 0;
    line-height: 1.7;
    flex-grow: 1;
    font-size: 1.02rem;
    letter-spacing: -0.01em;
  }
  
  .service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    position: relative;
  }
  
  .service-features::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 3px;
  }
  
  .service-features li {
    display: flex;
    align-items: center;
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.5;
    padding: 0.25rem 0;
    position: relative;
    padding-left: 1.75rem;
  }
  
  .service-features i {
    position: absolute;
    left: 0;
    top: 0.35rem;
    color: var(--primary);
    font-size: 0.8rem;
    background: rgba(var(--primary-rgb), 0.1);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(var(--primary-rgb), 0.2);
  }
  
  .service-card:hover .service-features i {
    background: var(--primary);
    color: white;
    transform: rotate(360deg);
    box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.3);
  }
  
  .service-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    margin-top: auto;
    transition: all 0.3s ease;
    position: relative;
    width: fit-content;
    padding: 0.5rem 0;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    letter-spacing: -0.01em;
  }
  
  .service-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
  }
  
  .service-link i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
  }
  
  .service-card:hover .service-link {
    color: var(--primary);
  }
  
  .service-card:hover .service-link::after {
    transform: scaleX(1);
    transform-origin: left;
  }
  
  .service-card:hover .service-link i {
    transform: translateX(5px);
  }
  
  .service-link i {
    margin-left: 0.5rem;
    font-size: 0.9em;
    transition: transform 0.3s ease;
  }
  
  /* Card Hover Effects */
  .service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.03) 0%, rgba(139, 92, 246, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
    pointer-events: none;
    border-radius: 16px;
  }
  
  .service-card:hover::after {
    opacity: 1;
  }
  
  /* Dark Mode Specific Styles */
  .dark-theme .service-card {
    background: #111111;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }
  
  .dark-theme .service-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  }
  
  .dark-theme .service-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(59, 130, 246, 0.2);
  }
  
  /* Responsive Adjustments */
  @media (min-width: 1600px) {
    .services-grid {
      grid-template-columns: repeat(3, 1fr);
      max-width: 1400px;
      margin: 4rem auto;
    }
    
    .service-card {
      transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    }
    
    .service-card:hover {
      transform: translateY(-12px) translateZ(20px);
      box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    }
  }
  
  @media (max-width: 1200px) {
    .services-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 2rem;
    }
    
    .hero-title {
      font-size: 2.8rem;
    }
  }
  
  @media (max-width: 768px) {
    .services-grid {
      grid-template-columns: 1fr;
      gap: 2rem;
      padding: 0 1rem;
    }
    
    .service-card {
      max-width: 100%;
      margin: 0 auto;
    }
    
    .hero-title {
      font-size: 2.2rem;
      margin-bottom: 1rem;
    }
    
    .hero-subtitle {
      font-size: 1.1rem;
    }
    
    .service-content {
      padding: 1.5rem;
    }
    
    .service-features {
      grid-template-columns: 1fr;
    }
    
    .service-features::before {
      top: -8px;
    }
    
    .service-card {
      padding: 2rem;
    }
    
    .service-icon {
      width: 70px;
      height: 70px;
      font-size: 1.75rem;
    }
  }
  
  @media (max-width: 480px) {
    .services-section {
      padding: 4rem 0;
    }
    
    .service-card {
      border-radius: 12px;
    }
    
    .service-image {
      height: 180px;
      border-radius: 12px 12px 0 0;
    }
    
    .service-overlay {
      border-radius: 12px 12px 0 0;
    }
    
    .service-content {
      padding: 1.25rem;
      border-radius: 0 0 12px 12px;
    }
    
    .service-card h3 {
      font-size: 1.3rem;
      margin-bottom: 0.75rem;
    }
    
    .service-card p {
      font-size: 0.95rem;
      margin-bottom: 1.25rem;
    }
    
    .service-features li {
      font-size: 0.9rem;
      padding-left: 1.5rem;
    }
    
    .service-features i {
      width: 18px;
      height: 18px;
      font-size: 0.7rem;
    }
    
    .hero-title {
      font-size: 1.8rem;
      line-height: 1.2;
    }
    
    .hero-subtitle {
      font-size: 1rem;
      margin-bottom: 2rem;
    }
  }
  
  /* Add subtle animation to cards on load */
  @keyframes cardEntrance {
    from {
      opacity: 0;
      transform: translateY(30px) scale(0.95);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
  
  .service-card {
    animation: cardEntrance 0.6s ease-out forwards;
    animation-delay: calc(var(--index) * 0.1s);
    opacity: 0;
  }
 
  
  /* Features Section */
  .features-section {
    padding: 6rem 0;
    background-color: #ffffff;
  }
  
  .dark-theme .features-section {
    background-color: #000000;
  }
  
  .features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
  }
  
  .feature-content {
    max-width: 500px;
  }
  
  .feature-list {
    margin-top: 2rem;
  }
  
  .feature-item {
    display: flex;
    margin-bottom: 2rem;
  }
  
  .feature-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 1rem;
    flex-shrink: 0;
  }
  
  .feature-item h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text);
  }
  
  .feature-item p {
    margin-bottom: 0;
    color: var(--text-light);
  }
  
  .feature-image {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  }
  
  .feature-image img {
    border-radius: 1rem;
    transition: transform 0.5s ease;
  }
  
  .feature-image:hover img {
    transform: scale(1.05);
  }
  
  /* CTA Section */
  .cta-section {
    padding: 6rem 0;
    background: #ffffff;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease;
  }

  .dark-theme .cta-section {
    background: #000000;
  }
  
  /* Removed gradient overlay */
  
  .cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
  }
  
  .cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
  }
  
  .cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: var(--text-light);
  }
  
  /* Animations */
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Responsive Styles */
  @media (max-width: 1024px) {
    .features-grid {
      grid-template-columns: 1fr;
      gap: 3rem;
    }
    
    .feature-content {
      max-width: 100%;
    }
    
    .feature-image {
      max-width: 600px;
      margin: 0 auto;
    }
  }
  
  @media (max-width: 768px) {
    .hero-title {
      font-size: 2.75rem;
    }
    
    .section-title {
      font-size: 2rem;
    }
    
    .services-grid {
      grid-template-columns: 1fr;
    }
    
    .cta-buttons {
      flex-direction: column;
      gap: 1rem;
    }
    
    .btn {
      width: 100%;
    }
  }
  
  @media (max-width: 480px) {
    .hero-title {
      font-size: 2.25rem;
    }
    
    .hero-subtitle {
      font-size: 1.1rem;
    }
    
    .section-title {
      font-size: 1.75rem;
    }
    
    .service-card {
      padding: 1.5rem;
    }
  }
  
  /* Utility Classes */
  .text-center {
    text-align: center;
  }
  
  .mb-0 {
    margin-bottom: 0;
  }
  
  .mt-0 {
    margin-top: 0;
  }
  
  /* Dark mode toggle animation */
  @keyframes spin {
    to {
      transform: rotate(360deg);
    }
  }
  
  .theme-toggle-btn {
    transition: transform 0.3s ease;
  }
  
  .theme-toggle-btn:hover {
    transform: rotate(30deg);
  }
  
  /* Smooth scrolling */
  html {
    scroll-behavior: smooth;
  }

  /* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: rgba(59, 130, 246, 0.8);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 2px solid transparent;
    transform: translateY(20px);
  }
  
  .back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  .back-to-top:hover {
    background-color: #3b82f6;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.3);
  }
  
  .back-to-top i {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
  }
  
  .back-to-top:hover i {
    transform: translateY(-2px);
  }
  
  /* Dark theme adjustments */
  .dark-theme .back-to-top {
    background-color: rgba(59, 130, 246, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
  }
  
  .dark-theme .back-to-top:hover {
    background-color: #3b82f6;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  }
  
  /* Responsive adjustments */
  @media (max-width: 768px) {
    .back-to-top {
      width: 44px;
      height: 44px;
      bottom: 20px;
      right: 20px;
    }
    
    .back-to-top i {
      font-size: 1.1rem;
    }
  }