/* 
================================================
  FLUX BASE SYSTEMS - Global Styles
================================================
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Colors - Light Theme */
  --color-bg: #f8fafc;
  --color-text: #0f172a;
  --color-text-light: #f8fafc;
  --color-primary: #026caa;
  --color-secondary: #163355;
  --color-accent: #06b6d4;
  --color-external-btn: #0f172a;
  --color-external-btn-text: #ffffff;
  --color-surface: rgba(255, 255, 255, 0.7);
  --color-surface-border: rgba(255, 255, 255, 0.5);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  --gradient-text: linear-gradient(to right, var(--color-primary), var(--color-accent));

  /* Typography */
  --font-main: 'Inter', sans-serif;

  /* Shadows */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.12);
  --shadow-2xl: 0 50px 100px -20px rgba(0, 0, 0, 0.25), 0 30px 60px -30px rgba(0, 0, 0, 0.3);
  --shadow-neon: 0 0 25px rgba(2, 108, 170, 0.6);
  --shadow-glow: 0 0 40px rgba(2, 108, 170, 0.3);

  /* Radius */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --radius-2xl: 2.5rem;
  --radius-3xl: 3.5rem;
  --radius-4xl: 5rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

[data-theme="dark"] {
  /* Colors - Dark Theme */
  --color-bg: #030712;
  --color-text: #f9fafb;
  --color-primary: #0284c7;
  --color-secondary: #163355;
  --color-accent: #38bdf8;
  --color-surface: rgba(17, 24, 39, 0.85);
  /* Increased opacity for better glass effect */
  --color-surface-border: rgba(255, 255, 255, 0.2);
  /* Brighter border */
  --shadow-neon: 0 0 35px rgba(2, 132, 199, 0.7);
  --color-external-btn: #ffffff;
  --color-external-btn-text: #0f172a;
}

/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Typography Utilities */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  margin-bottom: 1rem;
  color: inherit;
  opacity: 0.8;
}

a {
  text-decoration: none;
  color: var(--color-primary);
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

main {
  overflow-x: hidden;
  position: relative;
  width: 100%;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.text-center {
  text-align: center;
}

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white !important;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-neon);
}

.btn-outline {
  background: transparent;
  color: var(--color-text) !important;
  border: 1px solid var(--color-surface-border);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: var(--color-surface);
  transform: translateY(-2px);
}

/* Glassmorphism */
.glass {
  background: var(--color-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-surface-border);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-lg);
}

.glass-card {
  padding: 2rem;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.glass-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    var(--shadow-lg),
    0 0 40px rgba(2, 108, 170, 0.3),
    0 0 80px rgba(2, 108, 170, 0.12),
    0 0 0 1px rgba(2, 108, 170, 0.3);
  border-color: rgba(2, 108, 170, 0.4) !important;
}

/* Premium Glass & Glow Utilities */
.premium-glass {
  background: var(--color-surface);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--color-surface-border);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
  isolation: isolate;
}

.glow-card {
  position: relative;
  transition: all var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.glow-card:hover {
  box-shadow: 0 0 0 1px rgba(2, 108, 170, 0.4), 0 0 40px rgba(2, 108, 170, 0.25), 0 20px 60px rgba(0, 0, 0, 0.15);
  border-color: rgba(2, 108, 170, 0.45) !important;
}

.border-glow {
  border: 1px solid rgba(2, 108, 170, 0.2);
  box-shadow: 0 0 15px rgba(2, 108, 170, 0.1);
  transition: all var(--transition-normal);
}

.border-glow:hover {
  border-color: var(--color-primary);
  box-shadow: 0 0 30px rgba(2, 108, 170, 0.3);
}

.pulse-glow {
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(2, 108, 170, 0.4);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(2, 108, 170, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(2, 108, 170, 0);
  }
}

.animated-bg-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  background: var(--color-primary);
  filter: blur(120px);
  opacity: 0.2;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  animation: moveGlow 15s linear infinite alternate;
}

@keyframes moveGlow {
  0% {
    transform: translate(-10%, -10%);
  }

  100% {
    transform: translate(50%, 40%);
  }
}

/* Team Card Specifics */
.team-card {
  position: relative;
  overflow: hidden;
  padding: 0 !important;
  border-radius: var(--radius-lg);
  min-height: 450px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.team-img-container {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  z-index: 1;
}

.team-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.team-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to top, rgba(3, 7, 18, 0.95) 0%, rgba(3, 7, 18, 0.7) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  text-align: center;
  transform: translateY(30px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  color: white;
}

.team-card:hover .team-overlay {
  opacity: 1;
  transform: translateY(0);
}

.team-card:hover .team-img-container img {
  transform: scale(1.1);
}

.team-details-bottom {
  padding: 1.5rem;
  text-align: center;
  background: linear-gradient(to top, rgb(0 0 0 / 70%) 0%, transparent 100%);
  transition: opacity var(--transition-normal);
  position: relative;
  z-index: 3;
}

.team-card:hover .team-details-bottom {
  opacity: 0;
}

.team-info h4 {
  margin-bottom: 0.25rem;
  font-size: 1.5rem;
  color: var(--color-text-light);
}

.team-info .role {
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  display: block;
}

.team-info p {
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0.9;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.team-socials {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
}

.team-socials a {
  color: white;
  transition: all var(--transition-fast);
  opacity: 0.8;
}

.team-socials a:hover {
  color: var(--color-accent);
  transform: translateY(-3px);
  opacity: 1;
}

/* Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all var(--transition-normal);
  padding: 1.5rem 0;
}

.header.scrolled {
  padding: 1rem 0;
  background: var(--color-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-surface-border);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  color: var(--color-primary);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--color-text);
  font-weight: 500;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: var(--gradient-primary);
  transition: width var(--transition-fast);
}

.nav-link:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 1.5rem;
  cursor: pointer;
}

.theme-toggle {
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: background var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  background: var(--color-surface-border);
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-control {
  width: 100%;
  padding: 1rem 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-surface-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-family: var(--font-main);
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* HERO Floating Mockup */
.hero-mockup-float {
  animation: heroFloat 3s ease-in-out infinite;
  will-change: transform;
}

@keyframes heroFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-14px);
  }
}


.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Decorative Background Elements */
.bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  opacity: 0.5;
  animation: floatParticle 10s ease-in-out infinite alternate;
}

@keyframes floatParticle {
  0% {
    transform: translateY(0) scale(1);
  }

  100% {
    transform: translateY(-30px) scale(1.05);
  }
}

.bg-shape-1 {
  top: -10%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: var(--color-primary);
}

.bg-shape-2 {
  bottom: -10%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: var(--color-secondary);
  opacity: 0.3;
  animation-duration: 15s;
  animation-direction: alternate-reverse;
}

@media (max-width: 768px) {
  .bg-shape-1 {
    top: -5%;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
  }
  .bg-shape-2 {
    bottom: -5%;
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    width: 350px;
    height: 350px;
  }
  
  /* Reset animations that move them horizontally to prevent them breaking out of center */
  @keyframes floatParticle {
    0% { transform: translate(-50%, 0) scale(1); }
    100% { transform: translate(-50%, -30px) scale(1.05); }
  }
}

.particle {
  position: absolute;
  background: var(--gradient-primary);
  border-radius: 50%;
  filter: blur(8px);
  z-index: 0;
  opacity: 0.4;
  animation: floatSmall 8s ease-in-out infinite;
}

@keyframes floatSmall {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(15px, -20px);
  }
}

/* Swiper Customizations */
.swiper-pagination-bullet-active {
  background: var(--color-primary) !important;
}

.swiper-button-next,
.swiper-button-prev {
  color: white !important;
  /* White for better visibility on dark backgrounds */
  filter: drop-shadow(0 0 5px rgba(2, 132, 199, 0.5));
}

/* Footer */
.footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-surface-border);
  padding: 4rem 0 2rem;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: inherit;
  opacity: 0.7;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--color-primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--color-surface-border);
  opacity: 0.6;
  font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 992px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--color-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2rem;
    border-bottom: 1px solid var(--color-surface-border);
    box-shadow: var(--shadow-md);
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 4rem 0;
  }
}

/* Portfolio & Filtering Styles */
.portfolio-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-full);
  background: var(--color-surface);
  border: 1px solid var(--color-surface-border);
  color: var(--color-text);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  backdrop-filter: blur(10px);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--gradient-primary);
  color: white !important;
  border-color: transparent;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 350px), 1fr));
  gap: 2.5rem;
}

.portfolio-item {
  display: block;
  /* For filtering logic */
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item.hidden {
  display: none;
  opacity: 0;
  transform: scale(0.9);
}

.portfolio-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--color-surface-border);
}

.portfolio-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.1),
    var(--shadow-neon),
    0 0 50px rgba(2, 108, 170, 0.2);
  border-color: var(--color-primary);
  z-index: 10;
}

.portfolio-img-wrapper {
  position: relative;
  height: 250px;
  overflow: hidden;
  background: var(--color-surface-border);
}

.portfolio-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.portfolio-card:hover .portfolio-img-wrapper img {
  transform: scale(1.15) rotate(1deg);
}

.portfolio-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.portfolio-category {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-primary);
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  display: block;
}

.portfolio-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.portfolio-desc {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* User Reviews Section */
.project-reviews {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-surface-border);
}

.review-item {
  margin-bottom: 1rem;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.review-stars {
  color: #fbbf24;
  display: flex;
  gap: 0.125rem;
}

.review-author {
  font-weight: 600;
  font-size: 0.9rem;
}

.review-text {
  font-size: 0.875rem;
  font-style: italic;
}

/* External Link Buttons */
.btn-external {
  background: var(--color-external-btn);
  color: var(--color-external-btn-text) !important;
  border: 1px solid var(--color-surface-border);
  font-weight: 700;
  box-shadow: var(--shadow-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-external:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: var(--shadow-lg), 0 10px 40px rgba(2, 108, 170, 0.4);
  background: var(--gradient-primary);
  color: white !important;
  border-color: transparent;
}

.external-cta-section {
  position: relative;
  overflow: hidden;
  padding: 8rem 0;
  background: radial-gradient(circle at center, rgba(2, 108, 170, 0.15) 0%, transparent 70%);
}

.external-cta-card {
  background: var(--color-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--color-surface-border);
  padding: 5rem 2rem;
  border-radius: var(--radius-3xl);
  text-align: center;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-2xl);
  max-width: 1000px;
  margin: 0 auto;
}

.feature-deep-dive {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
  margin-bottom: 8rem;
}

.feature-deep-dive:nth-child(even) {
  direction: rtl;
}

.feature-deep-dive:nth-child(even)>div {
  direction: ltr;
}

.mockup-container {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
  border: 1px solid var(--color-surface-border);
  background: var(--color-surface);
  transition: transform 0.6s ease;
}

.mockup-container:hover {
  transform: scale(1.02);
}

/* Page Header for Portfolio */
.page-header {
  padding: 10rem 0 6rem;
  text-align: center;
  background: radial-gradient(circle at top, rgba(2, 108, 170, 0.1), transparent);
}

/* Showcase Cards for Deep Dives */
.showcase-card {
  background: var(--color-surface);
  border: 1px solid var(--color-surface-border);
  border-radius: var(--radius-3xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  box-sizing: border-box;
  box-shadow: var(--shadow-xl);
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  margin: 0 auto 5rem auto;
  /* center and space */
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.showcase-card:hover {
  transform: translateY(-12px);
  /* box-shadow glow DOES render outside overflow:hidden - this is the correct approach */
  box-shadow:
    0 25px 50px -5px rgba(0, 0, 0, 0.18),
    0 0 50px rgba(2, 108, 170, 0.35),
    0 0 120px rgba(2, 108, 170, 0.18),
    0 0 0 1px rgba(2, 108, 170, 0.45);
  border-color: rgba(2, 108, 170, 0.55);
}

/* Inner wrapper clips overflow cleanly */
.showcase-card>.showcase-image {
  border-radius: var(--radius-3xl) var(--radius-3xl) 0 0;
  overflow: hidden;
}

.showcase-image {
  width: 100%;
  height: 450px;
  background: linear-gradient(135deg, rgba(2, 108, 170, 0.05), rgba(6, 182, 212, 0.05));
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--color-surface-border);
}

.showcase-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.showcase-card:hover .showcase-image img {
  transform: scale(1.06);
}

.showcase-content {
  padding: 4rem;
  overflow-wrap: break-word;
  word-break: break-word;
}

.showcase-features-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 1.25rem;
  margin: 0;
}

.showcase-feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all var(--transition-fast);
  min-width: 0;
  overflow-wrap: anywhere;
}

.showcase-feature-item:hover {
  border-color: rgba(2, 108, 170, 0.3) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(2, 108, 170, 0.1);
}

.showcase-feature-item svg {
  color: #10b981;
  flex-shrink: 0;
}

/* Immersive CTA Section */
.immersive-cta-section {
  padding: 10rem 0;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 0%, rgba(2, 108, 170, 0.12), transparent 70%),
    radial-gradient(ellipse at 80% 100%, rgba(6, 182, 212, 0.08), transparent 60%);
}

.immersive-cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(2, 108, 170, 0.18), transparent 55%),
    radial-gradient(circle at 30% 70%, rgba(6, 182, 212, 0.12), transparent 55%);
  pointer-events: none;
}

.cta-glass-box {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid rgba(2, 108, 170, 0.25);
  padding: 7rem 5rem;
  border-radius: var(--radius-4xl);
  text-align: center;
  box-shadow:
    0 40px 120px rgba(0, 0, 0, 0.2),
    0 0 60px rgba(2, 108, 170, 0.15),
    0 0 120px rgba(2, 108, 170, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  width: 100%;
  position: relative;
  z-index: 5;
}

[data-theme="light"] .cta-glass-box {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(2, 108, 170, 0.2);
  box-shadow:
    0 40px 120px rgba(0, 0, 0, 0.08),
    0 0 60px rgba(2, 108, 170, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Advanced Feature Cards */
.feature-grid-card {
  background: var(--color-surface);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--color-surface-border);
  padding: 3rem;
  border-radius: var(--radius-2xl);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.feature-grid-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(2, 108, 170, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
}

.feature-grid-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  border-radius: var(--radius-full) var(--radius-full) 0 0;
  z-index: 2;
}

.feature-grid-card:hover {
  transform: translateY(-14px);
  border-color: rgba(2, 108, 170, 0.4);
  box-shadow:
    0 30px 60px -12px rgba(0, 0, 0, 0.2),
    0 0 40px rgba(2, 108, 170, 0.25),
    0 0 80px rgba(2, 108, 170, 0.12),
    0 0 0 1px rgba(2, 108, 170, 0.3);
}

.feature-grid-card:hover::before {
  opacity: 1;
}

.feature-grid-card:hover::after {
  transform: scaleX(1);
}

.feature-grid-card>* {
  position: relative;
  z-index: 1;
}

.feature-icon-wrapper {
  width: 64px;
  height: 64px;
  background: rgba(2, 108, 170, 0.08);
  border: 1px solid rgba(2, 108, 170, 0.12);
  color: var(--color-primary);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feature-grid-card:hover .feature-icon-wrapper {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
  transform: scale(1.15) rotate(-5deg);
  box-shadow: 0 12px 30px rgba(2, 108, 170, 0.4);
}

.feature-grid-card h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.feature-grid-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  opacity: 0.75;
  margin-bottom: 0;
}

/* OptiBill Page Responsive */
@media (max-width: 768px) {
  .showcase-content {
    padding: 2.5rem 1.5rem;
  }

  .cta-glass-box {
    padding: 4rem 1.5rem;
  }

  .feature-grid-card {
    padding: 2rem;
  }

  .showcase-features-list {
    grid-template-columns: 1fr;
  }

  .immersive-cta-section {
    padding: 5rem 0;
  }
}

@media (max-width: 480px) {
  .cta-glass-box {
    padding: 3rem 1.25rem;
    border-radius: var(--radius-2xl);
  }

  .showcase-content {
    padding: 2rem 1.25rem;
  }
}

/* Responsive product grid and header fixes */
@media (max-width: 992px) {
  .container.nav {
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: space-between;
  }

  .glass-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 768px) {
  .product-grid-layout {
    grid-template-columns: 1fr !important;
    max-width: 400px; /* Small width but suitable for tablet/mobile */
    margin: 0 auto;   /* Center it */
  }
  .product-card-image {
    height: 185px !important;
  }
}

.product-card-image {
  height: 275px;
}

.product-grid-layout {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  align-items: start;
}