/* Custom styles */
body {
    font-family: 'Inter', sans-serif;
    background-color: #0f172a; /* Fallback background */
    color: #e2e8f0;
    margin: 0;
    overflow-x: hidden;
}
/* Animated Gradient text */
.text-gradient-animated {
    background: linear-gradient(90deg, #2dd4bf, #a78bfa, #2dd4bf);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradient-flow 5s linear infinite;
}

@keyframes gradient-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Simple Text Gradient (Non-animated) */
.text-gradient {
     background: linear-gradient(to right, #2dd4bf, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Hero Section Styling */
#home {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background-color: #05080f; /* Base color for behind the canvas */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 1rem;
}

/* Canvas Styling */
#starfield-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Behind content */
    display: block;
}

/* Ensure content is above the canvas */
 #home > div {
     position: relative;
     z-index: 1;
 }

 /* Contact Section Gradient */
 #contact {
     background: linear-gradient(145deg, #1e293b, #0f172a);
     position: relative;
     overflow: hidden;
 }
 #contact::before {
     content: '';
     position: absolute;
     top: 0; left: 0; right: 0; bottom: 0;
     background-image: radial-gradient(circle at 10% 10%, rgba(45, 212, 191, 0.1) 0%, transparent 30%),
                       radial-gradient(circle at 90% 80%, rgba(167, 139, 250, 0.1) 0%, transparent 30%);
     animation: background-pulse 10s ease-in-out infinite alternate;
     z-index: 0;
 }
 @keyframes background-pulse {
      0% { opacity: 0.5; transform: scale(1); }
      100% { opacity: 1; transform: scale(1.05); }
 }
 #contact > div {
      position: relative;
      z-index: 1;
 }

 /* --- Updated Navigation Bar Styling --- */
 header {
     /* UPDATED: Reduced alpha for more transparency (0.65), Increased blur (24px) */
     background-color: rgba(15, 23, 42, 0.65); /* bg-slate-900 with 65% opacity */
     backdrop-filter: blur(24px);
     -webkit-backdrop-filter: blur(24px); /* Safari support */
     position: sticky;
     top: 0;
     z-index: 50;
     /* Optional: Add a subtle border to define edges */
     /* border-bottom: 1px solid rgba(51, 65, 85, 0.5); */ /* slate-700/50 */
 }

 /* Logo Hover Effect */
 header .logo-link img {
      transition: transform 0.3s ease, filter 0.3s ease;
 }
 header .logo-link:hover img {
      transform: scale(1.05);
      filter: brightness(1.1);
 }

 /* Desktop Nav Link Hover Effect - Pill Background */
 .nav-link {
      position: relative;
      /* UPDATED: Adjusted padding slightly for balance with larger header padding */
      padding: 0.5rem 1.25rem; /* py-2 px-5 */
      border-radius: 9999px; /* rounded-full */
      transition: color 0.3s ease, background-color 0.3s ease;
      z-index: 1;
 }

 .nav-link:hover {
      color: #ffffff; /* text-white */
      /* UPDATED: Slightly less opaque hover background */
      background-color: rgba(30, 41, 59, 0.6); /* bg-slate-800 with 60% opacity */
 }

 /* Mobile Menu Link Hover */
 .mobile-nav-link:hover {
      background-color: #334155; /* bg-slate-700 */
      color: #ffffff; /* text-white */
 }
 /* --- End Navigation Bar Styling --- */


 /* Custom gradient border button with enhanced hover */
.btn-gradient {
    position: relative;
    background: linear-gradient(to right, #2dd4bf, #a78bfa);
    color: #ffffff;
    padding: 0.8rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-align: center;
    display: inline-block;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    overflow: hidden;
    z-index: 1;
    border: none;
}

.btn-gradient::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to right, #14b8a6, #8b5cf6);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: -1;
    border-radius: inherit;
}

.btn-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), 0 0 15px rgba(45, 212, 191, 0.3), 0 0 15px rgba(167, 139, 250, 0.3);
}

.btn-gradient:hover::before {
    opacity: 1;
}

/* Secondary Button Style */
.btn-outline-gradient {
    position: relative;
    color: #e2e8f0;
    padding: calc(0.8rem - 2px) calc(2rem - 2px);
    border-radius: 0.5rem;
    font-weight: 600;
    text-align: center;
    display: inline-block;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background-clip: padding-box;
    background-color: #1e293b;
    z-index: 1;
}

.btn-outline-gradient::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(to right, #2dd4bf, #a78bfa);
    z-index: -1;
    border-radius: inherit;
    transition: opacity 0.3s ease;
}

.btn-outline-gradient:hover {
    background-color: transparent;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}


/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Section padding */
section:not(#home) {
    padding: 6rem 1rem;
}

@media (min-width: 768px) {
    section:not(#home) {
        padding: 8rem 2rem;
    }
    #home {
         padding: 8rem 2rem;
    }
}
 /* Fade-in animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced Service Card Hover */
.service-card {
    background-color: #1e293b;
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #334155;
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(120deg, #2dd4bf, #a78bfa);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    border-radius: inherit;
    filter: blur(10px);
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.2), 0 4px 6px -4px rgba(0,0,0,0.1);
    border-color: transparent;
}

 .service-card:hover::after {
    opacity: 0.6;
 }

.service-card-content {
    position: relative;
    z-index: 1;
}

/* Icon styling */
.service-icon svg {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
}

/* Pricing Card Styling */
.pricing-card {
    background-color: #1e293b;
    border-radius: 0.75rem;
    padding: 2.5rem 2rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    border: 1px solid #334155;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card.highlighted {
    border-color: transparent;
    transform: scale(1.05);
    position: relative;
    z-index: 10;
}

.pricing-card.highlighted::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(120deg, #2dd4bf, #a78bfa);
    z-index: -1;
    border-radius: inherit;
    padding: 2px;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.pricing-card ul {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.pricing-card ul li {
    display: flex;
    align-items: start;
    margin-bottom: 0.75rem;
    color: #cbd5e1;
    font-size: 0.9rem;
    text-align: left;
}

.pricing-card ul li svg {
    width: 1.2rem;
    height: 1.2rem;
    margin-right: 0.5rem;
    color: #2dd4bf;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

/* Input focus styling */
input:focus, textarea:focus {
    box-shadow: 0 0 0 2px #1e293b, 0 0 0 4px #2dd4bf;
    outline: none;
    border-color: transparent;
}