/* Premium TechNova Main Styles - Modified Version */
:root {
    /* Color palette based on navbar */
    --primary-color: #0062ff;
    --primary-light: #4d8bff;
    --primary-dark: #004ecb;
    --secondary-color: #2d3748;
    --accent-color: #38b2ac;
    --text-dark: #1a202c;
    --text-light: #f7fafc;
    --text-muted: #718096;
    --bg-light: #f8fafc;
    --bg-dark: #1a202c;
    --border-color: #e2e8f0;
    --success-color: #48bb78;
    --warning-color: #ecc94b;
    --danger-color: #e53e3e;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s ease;
  }
  
  /* Base Styles */
  body {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    overflow-x: hidden;
  }
  
  h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
  }
  
  .h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
  }
  
  .h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
  }
  
  .h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
  }
  
  .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
  }
  
  .section {
    padding: 3rem 0;
    position: relative;
  }
  
  /* Header Styling for Overlay Effect */
  .header {
    box-shadow: var(--shadow-sm);
    position: fixed; /* Changed from sticky to fixed */
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
  }
  
  /* Enhanced Hero Section */
  .service-hero {
    background: linear-gradient(120deg, #001e54 0%, #0047b3 50%, #0062ff 100%);
    color: var(--text-light);
    padding: 8rem 0 6rem; /* Added top padding to account for navbar */
    position: relative;
    overflow: hidden;
  }
  
  .service-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='rgba(255,255,255,0.05)' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.4;
  }
  
  .service-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(0, 30, 84, 0.4), transparent);
  }
  
  .hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 10;
  }
  
  .hero-title {
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
  }
  
  .has-before {
    position: relative;
  }
  
  .hero-title .has-before {
    color: #ffffff;
    font-weight: 700;
    padding: 0 0.25rem;
    position: relative;
    z-index: 1;
  }
  
  .hero-title .has-before::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(56, 178, 172, 0.6);
  }
  
  .hero-text {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  }
  
  /* New Service Cards Grid Layout */
  .services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns on desktop */
    gap: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .service-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05), 0 3px 6px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
    border: 1px solid rgba(226, 232, 240, 0.8);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
  }
  
  .service-card::before {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(0, 98, 255, 0.08) 0%, rgba(0, 98, 255, 0) 70%);
    top: -75px;
    right: -75px;
    border-radius: 50%;
    z-index: 0;
  }
  
  .service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08), 0 5px 10px rgba(0, 0, 0, 0.04);
  }
  
  .service-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    z-index: 1;
    position: relative;
  }
  
  .service-title {
    margin-bottom: 1rem;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
  }
  
  .service-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    height: 3px;
    width: 50px;
    background: linear-gradient(to right, var(--primary-color), var(--primary-light));
    border-radius: 3px;
  }
  
  .service-text {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    line-height: 1.7;
  }
  
  .service-feature-list {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
    flex-grow: 1; /* Make the list take up available space */
  }
  
  .service-feature-list li {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
  }
  
  .service-feature-list li ion-icon {
    color: var(--primary-color);
    margin-right: 0.75rem;
    font-size: 1.25rem;
    flex-shrink: 0;
  }
  
  /* Premium Buttons */
  .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    text-align: center;
    align-self: flex-start; /* Align button to the start */
    margin-top: auto; /* Push button to bottom of card */
  }
  
  .btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
  }
  
  .btn-primary:hover {
    background-color: var(--primary-dark);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
  }
  
  .btn-secondary {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    border: 1px solid rgba(0, 98, 255, 0.2);
  }
  
  .btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
  }
  
  /* CTA Section */
  .cta {
    background-color: var(--secondary-color);
    color: var(--text-light);
    position: relative;
    padding: 4rem 0;
  }
  
  .has-bg-image {
    position: relative;
    z-index: 1;
  }
  
  .has-bg-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: -1;
  }
  
  .cta-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
  }
  
  .section-subtitle {
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
  }
  
  .section-subtitle.has-before::before {
    content: "";
    width: 30px;
    height: 2px;
    background-color: var(--accent-color);
    display: inline-block;
  }
  
  .section-title {
    margin-bottom: 1.5rem;
  }
  
  .cta-text {
    margin-bottom: 2rem;
    opacity: 0.9;
  }

  
  /* Footer */
  .footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding-top: 5rem;
  }
  
  .footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
  }
  
  .footer-brand {
    margin-bottom: 2rem;
  }
  
  .logo {
    color: var(--text-light);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: inline-block;
    text-decoration: none;
  }
  
  .footer-text {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    line-height: 1.6;
  }
  
  .social-list {
    display: flex;
    gap: 1rem;
    list-style: none;
    padding: 0;
  }
  
  .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border-radius: 50%;
    transition: var(--transition);
    text-decoration: none;
  }
  
  .social-link:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
  }
  
  .footer-list-title {
    color: var(--text-light);
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
  }
  
  .footer-list-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    height: 2px;
    width: 40px;
    background-color: var(--primary-color);
  }
  
  .footer-list ul {
    list-style: none;
    padding: 0;
  }
  
  .footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 0.75rem;
    transition: var(--transition);
  }
  
  .footer-link:hover {
    color: var(--text-light);
    transform: translateX(5px);
  }
  
  .footer-bottom {
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
  }
  
  .footer-bottom-list {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    padding: 0;
  }
  
  .footer-bottom-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
  }
  
  .footer-bottom-link:hover {
    color: var(--text-light);
  }
  
  /* Back to Top Button */
  .back-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    z-index: 20;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    text-decoration: none;
  }
  
  .back-top-btn.active {
    opacity: 1;
    visibility: visible;
  }
  
  .back-top-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
  }
  
  /* Responsive Design */
  @media (max-width: 991px) {
    .service-card-large, 
    .service-card-large.alternate {
      flex-direction: column;
      gap: 2rem;
      padding: 2rem;
    }
    
    .service-icon {
      margin: 0 auto;
    }
    
    .footer-bottom {
      flex-direction: column;
      text-align: center;
    }
  }
  
  @media (max-width: 768px) {
    .section {
      padding: 2.5rem 0;
    }
    
    .service-hero {
      padding: 5rem 0;
    }
    
    .hero-title, .section-title {
      font-size: clamp(1.5rem, 4vw, 2rem);
    }
    
    .footer-top {
      grid-template-columns: 1fr;
      gap: 2rem;
    }
  }
  
  @media (max-width: 480px) {
    .section {
      padding: 2rem 0;
    }
    
    .service-hero {
      padding: 3.5rem 0;
    }
    
    .service-card-large {
      padding: 1.5rem;
    }
    
    .btn {
      padding: 0.75rem 1.5rem;
      font-size: 0.9rem;
    }
    
    .back-top-btn {
      width: 40px;
      height: 40px;
      bottom: 1rem;
      right: 1rem;
    }
  }
  @media (max-width: 767px) {
    /* Change service grid to single column on mobile */
    .services-grid {
      grid-template-columns: 1fr; /* Single column for mobile */
    }
  }