:root {
  /* Colors */
  --color-primary: #7a9cc6;
  --color-primary-hover: #627dab;
  --color-secondary: #bfcde7;
  --color-bg-light: #e8ebf5;
  --color-bg-dark: #d9dfee;
  --color-bg: linear-gradient(135deg, #e8ebf5 0%, #d9dfee 100%);
  --color-text: #2c3e50;
  --color-text-muted: #56668c;
  --color-white: #ffffff;
  --color-dark-blue: #49649f;
  --color-dark-blue-hover: #415589;
  --color-scrollbar-track: #d0d6e1;

  /* Shadows */
  --shadow-primary: 0 12px 40px rgba(122, 156, 198, 0.5);
  --shadow-primary-hover: 0 12px 30px rgba(98, 125, 171, 0.8);
  --shadow-neumorphic-light: 16px 16px 40px rgba(171, 180, 200, 0.4);
  --shadow-neumorphic-dark: -16px -16px 40px rgba(255, 255, 255, 0.95);

  /* Font & Typography */
  --font-family-base: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-weight-normal: 400;
  --font-weight-bold: 700;
  --font-weight-heavy: 900;
  --letter-spacing-base: 0.06em;

  /* Border Radius */
  --radius-large: 80px;
  --radius-medium: 32px;
  --radius-small: 14px;
  --radius-pill: 60px;

  /* Transition Timing */
  --transition-ease: cubic-bezier(0.4, 0, 0.2, 1);

  /* Breakpoints */
  --breakpoint-medium: 768px;
  --breakpoint-small: 480px;
}

/* ===================
   Global Styles
=================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  transition: all 0.35s var(--transition-ease);
}

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family-base);
  font-size: 100%;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  min-height: 100vh;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-scrollbar-track);
  border-radius: 6px;
}
::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 6px;
  transition: background-color 0.3s ease;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary-hover);
}

/* Anchor */
a {
  color: inherit;
  cursor: pointer;
  transition: color 0.3s ease;
}
a:hover,
a:focus-visible {
  color: var(--color-primary);
  outline: none;
}

/* Button Reset */
button {
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  user-select: none;
  outline-offset: 3px;
}

/* Utility Containers */
.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.25rem;
  padding-block: 0;
  width: 100%;
  box-sizing: border-box;
}

/* Typography */
h1 {
  font-weight: var(--font-weight-heavy);
  font-size: clamp(2.4rem, 4vw + 1rem, 4rem);
  letter-spacing: var(--letter-spacing-base);
  line-height: 1.2;
  margin-bottom: 1.25rem;
  color: #4d699dd2;
  text-shadow: 0 3px 12px rgba(72, 90, 113, 0.65);
  transition: color 0.3s ease;
}

p {
  font-weight: var(--font-weight-normal);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  margin-bottom: 1.5rem;
  color: var(--color-text-muted);
  line-height: 1.75;
}

/* Mobile adjustments for product cards and navbar brand */
@media (max-width: 576px) {
 

 /* Navbar brand fix: prevent cutting off on small screens */
  .navbar-brand.custom-logo {
    font-size: 1.4rem !important;
    white-space: normal;
    line-height: 1.2;
  }
  .navbar-brand.custom-logo img {
    height: 1.2em;
  }
}




/* Hero Section */
.hero-section {
  background: linear-gradient(270deg, var(--color-primary), var(--color-secondary), #c1cadf, var(--color-primary));
  background-size: 800% 800%;
  animation: gradientShift 15s ease infinite, slideFadeIn 1.4s ease forwards;
  padding-block: 10rem 10rem;
  padding-inline: 1.25rem;
  color: var(--color-white);
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom-left-radius: var(--radius-large);
  border-bottom-right-radius: var(--radius-large);
  box-shadow: var(--shadow-primary);
  will-change: background-position;
}

/* Abstract Ambience Shapes with glow */
.hero-section::before,
.hero-section::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  opacity: 0.12;
  filter: blur(80px);
  z-index: 1;
  animation: pulseGlow 6s ease-in-out infinite;
}

.hero-section::before {
  width: 20rem;
  height: 20rem;
  background: var(--color-white);
  top: -3rem;
  left: 18%;
  filter: drop-shadow(0 0 40px var(--color-primary));
}

.hero-section::after {
  width: 28rem;
  height: 28rem;
  background: var(--color-secondary);
  bottom: -10rem;
  right: 9%;
  filter: drop-shadow(0 0 45px var(--color-secondary));
}

/* Hero Heading and Subheading */
.hero-section h1 {
  position: relative;
  z-index: 2;
  opacity: 0;
  animation: fadeInUp 1.4s ease forwards;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.23);
}

.hero-section p {
  max-width: 38rem;
  margin-inline: auto;
  position: relative;
  z-index: 2;
  opacity: 0;
  animation: fadeInUp 1.8s 0.5s ease forwards;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.15);
  font-style: italic;
}

/* Navbar Brand Gradient Text - Enhanced visibility */
.navbar-brand.gradient-text {
  background: linear-gradient(45deg, #526ebd, var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
  font-size: clamp(2rem, 2.5vw + 1rem, 2.4rem);
  letter-spacing: 0.14em;
  user-select: none;
  transition: filter 0.3s ease;
  text-shadow:
    0 0 4px rgba(82, 110, 189, 0.8),
    0 0 8px rgba(82, 110, 189, 0.6);
}
.navbar-brand.gradient-text:hover,
.navbar-brand.gradient-text:focus-visible {
  filter: brightness(1.35) drop-shadow(0 0 14px #526ebd);
  outline: none;
}

/* Custom logo with text styles */
.navbar-brand.custom-logo {
  display: flex !important;
  align-items: center !important;
  font-weight: 900;
  font-size: clamp(2rem, 2.5vw + 1rem, 2.4rem);
  letter-spacing: 0.14em;
  user-select: none;
  background: linear-gradient(45deg, #526ebd, var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow:
    0 0 4px rgba(82, 110, 189, 0.8),
    0 0 8px rgba(82, 110, 189, 0.6);
  transition: filter 0.3s ease;
  cursor: pointer;
  line-height: 1;
}
.navbar-brand.custom-logo:hover,
.navbar-brand.custom-logo:focus-visible {
  filter: brightness(1.35) drop-shadow(0 0 14px #526ebd);
  outline: none;
}
.navbar-brand.custom-logo img {
  height: 2.8rem !important;
  width: auto !important;
  margin-right: 0.6em !important;
  user-select: none;
  -webkit-user-drag: none;
  filter: none;
  transition: filter 0.3s ease;
  vertical-align: middle;
  display: inline-block;
}
.navbar-brand.custom-logo:hover img,
.navbar-brand.custom-logo:focus-visible img {
  filter: drop-shadow(0 0 14px #526ebd);
}

/* Buttons */
.btn-primary {
  background-color: var(--color-dark-blue);
  color: var(--color-white);
  border-radius: var(--radius-pill);
  padding-block: 1rem;
  padding-inline: 3.75rem;
  font-weight: var(--font-weight-bold);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  letter-spacing: 0.12em;
  box-shadow: 0 8px 20px rgba(73, 100, 159, 0.72);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  user-select: none;
  filter: drop-shadow(0 6px 8px rgba(73, 100, 159, 0.6));
  transition: all 0.4s var(--transition-ease);
  opacity: 0;
  animation: fadeInUp 2s 1s ease forwards;
  border: none;
  outline-offset: 5px;
  will-change: transform, box-shadow;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--color-dark-blue-hover);
  box-shadow: var(--shadow-primary-hover);
  transform: translateY(-7px) scale(1.12);
  outline: none;
  filter: drop-shadow(0 10px 14px rgba(65, 85, 137, 0.85));
}

.btn-primary:focus-visible {
  outline: 3px solid var(--color-secondary);
}

/* Ripple animation */
.btn-primary::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  pointer-events: none;
  border-radius: var(--radius-pill);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.45) 10%, transparent 10.01%);
  background-repeat: no-repeat;
  background-position: 50%;
  transform: scale(10);
  opacity: 0;
  transition: transform 0.7s, opacity 1s;
  z-index: 1;
}

.btn-primary:active::after {
  transform: scale(0);
  opacity: 0.3;
  transition: 0s;
}

/* Products Section */
#products {
  background-color: var(--color-white);
  padding-block: 5rem 6.25rem;
  padding-inline: 1.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: 3.5rem;
  justify-items: center;
  perspective: 1200px;
}

/* Product Cards */
.product-card {
  background: rgba(191, 205, 231, 0.9);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-neumorphic-light), var(--shadow-neumorphic-dark);
  padding: 2.5rem 2.25rem;
  transition: transform 0.45s ease, box-shadow 0.45s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  opacity: 0;
  animation: fadeInUp 2.3s forwards;
  will-change: transform, box-shadow;
}

#products .product-card:nth-child(1) { animation-delay: 0.5s; }
#products .product-card:nth-child(2) { animation-delay: 0.9s; }
#products .product-card:nth-child(3) { animation-delay: 1.3s; }
#products .product-card:nth-child(4) { animation-delay: 1.7s; }

/* On hover - scale, tilt and glow */
.product-card:hover {
  transform: translateY(-1rem) scale(1.08) rotateX(4deg) rotateY(4deg);
  box-shadow:
    20px 20px 48px rgba(100, 120, 180, 0.55),
    -20px -20px 48px rgba(255, 255, 255, 0.9);
}

.product-card:hover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, #9fb7e5bb, #869cd1bb);
  border-radius: var(--radius-medium);
  opacity: 0.3;
  pointer-events: none;
  filter: blur(16px);
  animation: pulseGlow 4s ease-in-out infinite;
  z-index: 0;
}

/* Product Image Slider */
.product-image-slider {
  width: 100%;
  height: 18rem;
  border-radius: 1.75rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 14px 44px var(--shadow-primary);
  transition: box-shadow 0.4s ease, transform 0.4s ease;
  perspective: 900px;
}

.product-card:hover .product-image-slider {
  box-shadow: 0 26px 54px var(--shadow-primary);
  transform: scale(1.05);
}

/* Product Images */
.product-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out, transform 1s ease-in-out;
  transform-origin: center center;
  will-change: opacity, transform;
}

.product-image.active {
  opacity: 1;
  transform: scale(1.1);
}

/* Product Info */
.product-info {
  margin-top: 2rem;
  text-align: center;
  color: #475a81;
  position: relative;
  z-index: 2;
}

.product-info h3 {
  font-weight: var(--font-weight-heavy);
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
  letter-spacing: 0.06em;
  color: var(--color-primary);
  text-shadow: 0 3px 8px rgba(122, 156, 198, 0.7);
}

.product-info p {
  font-size: 1.15rem;
  font-weight: var(--font-weight-normal);
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* Footer */
footer {
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  color: var(--color-white);
  font-size: 1.05rem;
  padding-block: 3.5rem;
  padding-inline: 1.75rem;
  text-align: center;
  box-shadow: inset 0 2px 20px rgba(0, 0, 0, 0.15);
  user-select: none;
  letter-spacing: 0.12em;
  transition: background 0.5s ease;
  border-top-left-radius: var(--radius-medium);
  border-top-right-radius: var(--radius-medium);
}

footer p {
  margin-block: 1rem 0.5rem;
  opacity: 0.85;
}

.social-icons {
  margin-top: 1.75rem;
  display: flex;
  justify-content: center;
  gap: 2.5rem;
}

.social-icons a {
  color: var(--color-white);
  font-size: 2rem;
  transition: color 0.4s ease, transform 0.4s ease;
  user-select: none;
  will-change: transform, color;
}

.social-icons a:hover,
.social-icons a:focus-visible {
  color: var(--color-secondary);
  transform: scale(1.3);
  outline: none;
}

/* Modal & Form */
.modal-content {
  border-radius: 1.5rem;
  background: linear-gradient(145deg, #f0f5fc, #d9e4f4);
  box-shadow:
    10px 10px 22px #bcc7db,
    -10px -10px 22px #ffffff;
  padding: 2.5rem 3rem;
  max-width: 540px;
  margin-inline: auto;
  animation: slideFadeIn 1.3s ease forwards;
  will-change: transform, opacity;
  user-select: none;
}

form input,
form textarea {
  border-radius: var(--radius-small) !important;
  border: none;
  background: #e6eefd;
  box-shadow:
    inset 5px 5px 12px #c0cbe1,
    inset -5px -5px 12px #f7fbff;
  padding: 1.25rem 1.5rem;
  font-size: 1.15rem;
  color: #475a82;
  transition: box-shadow 0.3s ease, background 0.3s ease;
  width: 100%;
  resize: vertical;
  font-family: var(--font-family-base);
}

form input::placeholder,
form textarea::placeholder {
  color: #8c9bc4;
  font-style: italic;
}

form input:focus,
form textarea:focus {
  outline: none;
  background: #f0f7ff;
  box-shadow:
    0 0 14px 4px var(--color-primary),
    inset 5px 5px 14px #a9b9de,
    inset -5px -5px 14px #ffffff;
}

/* Animations */
@keyframes fadeInUp {
  0% {
    transform: translateY(1.75rem);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideFadeIn {
  0% {
    transform: translateX(-3rem);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes pulseGlow {
  0%, 100% {
    opacity: 0.15;
    transform: scale(1);
  }
  50% {
    opacity: 0.3;
    transform: scale(1.15);
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Responsive */
@media (max-width: var(--breakpoint-medium)) {
  .hero-section h1 {
    font-size: clamp(2rem, 5vw, 3rem);
  }

  .hero-section p {
    font-size: 1.2rem;
  }

  .btn-primary {
    padding-block: 0.9rem;
    padding-inline: 3rem;
    font-size: 1.1rem;
  }

  #products {
    padding-inline: 1rem;
  }
}

@media (max-width: var(--breakpoint-small)) {
  .hero-section h1 {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    letter-spacing: 0.05em;
  }

  #products {
    grid-template-columns: 1fr;
    padding-block: 3.5rem 4rem;
    padding-inline: 0.75rem;
  }
}

