/* Custom Styles supplementing Tailwind & Bootstrap */

:root {
    --primary: #212529;
    --secondary: #343A40;
    --accent: #0A4D68;
    --highlight: #00C8FF;
    --neutral: #F8F9FA;
    --gradient-1: linear-gradient(135deg, #0A4D68, #00C8FF);
    --gradient-2: linear-gradient(135deg, #00C8FF, #0A4D68);
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--neutral);
    color: var(--primary);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: 'Montserrat', sans-serif;
}

/* Metallic Gradient Background */
.metallic-gradient {
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 50%, #dcdcdc 100%);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translate3d(-60px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translate3d(60px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(0, 200, 255, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 200, 255, 0.8);
    }
}

@keyframes pulse-scale {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.animate-slide-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in {
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0;
}

.animate-slide-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

.animate-slide-right {
    animation: slideInRight 0.8s ease-out forwards;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-glow {
    animation: glow 2s ease-in-out infinite;
}

.animate-pulse-scale {
    animation: pulse-scale 2s ease-in-out infinite;
}

/* Navbar Customization */
.navbar {
    /* background: linear-gradient(90deg, #1a1f26 0%, #2d3436 100%) !important; */
    background: #ffffff !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 200, 255, 0.1);
    border-bottom: 1px solid rgba(0, 200, 255, 0.2);
}

.navbar-brand {
    animation: slideInLeft 0.6s ease-out;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding-bottom: 8px !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0.5rem;
    right: 0.5rem;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--highlight), transparent);
    transform: scaleX(0);
    transition: transform 0.3s ease-out;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

/* Bootstrap Overrides */
.carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 1rem;
    width: 90%;
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid rgba(0, 200, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 200, 255, 0.1);
    animation: slideInLeft 0.8s ease-out forwards;
}

.carousel-caption h1 {
    text-shadow: 0 4px 20px rgba(0, 200, 255, 0.5);
    font-size: 3rem;
    animation: slideInLeft 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.carousel-caption p {
    animation: slideInLeft 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

.carousel-caption .btn {
    animation: slideInLeft 0.8s ease-out 0.6s forwards;
    opacity: 0;
    border-radius: 50px;
    padding: 12px 32px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 200, 255, 0.3);
}

.carousel-caption .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 200, 255, 0.5);
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.25rem rgba(10, 77, 104, 0.25);
}

/* Card Enhancements */
.card {
    border-radius: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 200, 255, 0.2), transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.card:hover::before {
    left: 100%;
}

.card:hover {
    box-shadow: 0 20px 40px rgba(0, 200, 255, 0.2);
    transform: translateY(-8px);
    border-color: rgba(0, 200, 255, 0.5);
}

/* Button Enhancements */
.btn-primary {
    background: var(--gradient-1);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 200, 255, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(0, 200, 255, 0.5);
    transform: translateY(-2px);
}

/* Tailwind Compatibility Fixes for Bootstrap */
.btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Section Enhancements */
section {
    position: relative;
}

/* Hero Section Gradient */
.carousel-fade .carousel-item {
    transition: opacity 0.6s ease-in-out;
}

/* Background Effects */
.metallic-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(0, 200, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.metallic-gradient {
    background: linear-gradient(135deg, #e8f0f5 0%, #f5f8fa 50%, #e8f0f5 100%);
    position: relative;
}
/* =========================
   Modern hero slider styles
   ========================= */

.hero-slide {
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 64vh;              /* responsive height */
  display: flex;
  align-items: center;
  transition: background 0.6s ease;
}

/* darker overlay to ensure text contrast */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,10,12,0.45) 0%, rgba(7,10,12,0.55) 100%);
  backdrop-filter: blur(1px);
}

/* content card */
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 660px;
  padding: 2rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02));
  border-radius: 12px;
  /* box-shadow: 0 10px 30px rgba(2,6,23,0.45); */
  color: #fff;
  transform: translateY(10px);
  opacity: 0;
  animation: heroContentIn 700ms ease-out forwards;
}

/* Eyebrow / small label */
.hero-content .eyebrow {
  display: inline-block;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
  color: var(--highlight);
}

/* Title & subtitle */
.hero-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin: 0 0 0.5rem 0;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.05;
}

.hero-sub {
  margin-bottom: 1rem;
  color: rgba(255,255,255,0.92);
  font-size: 1.05rem;
}

/* Force hero content to right-center */
.hero-slide .container {
    height: 100%;
    display: flex;
    align-items: center;         /* vertical center */
}

.hero-content {
    text-align: left;           /* optional: aligns text to right */
}

/* Capabilities section */
#capabilities { background: #ffffff; } /* or keep bg-light if you prefer */
.cap-card { background: transparent; border-radius: 10px; transition: transform .28s ease, box-shadow .28s ease; }
.cap-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(2,6,23,0.06); }
.cap-icon { width: 56px; height: 56px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: linear-gradient(180deg, rgba(0,0,0,0.03), rgba(0,0,0,0.01)); color: var(--highlight); }
.cap-title { font-size: 1.05rem; }
@media (max-width: 767px) {
  .cap-icon { width: 48px; height: 48px; }
  .cap-card { padding: 1rem; }
}

/* CTA row */
.hero-ctas .btn {
  padding: 0.85rem 1.6rem;
  border-radius: 6px;
  font-weight: 700;
}

/* appear animation */
@keyframes heroContentIn {
  from { transform: translateY(18px); opacity: 0; }
  to   { transform: translateY(0);  opacity: 1; }
}

/* Controls styling */
.custom-control .carousel-control-prev-icon,
.custom-control .carousel-control-next-icon {
  width: 56px;
  height: 56px;
  filter: drop-shadow(0 6px 20px rgba(2,6,23,0.45));
  border-radius: 50%;
  background-size: 24px 24px;
}

/* Better indicators (rounded pills) */
.custom-indicators {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 4;
}
.custom-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.08);
  transition: transform .25s ease, background .25s ease;
}
.custom-indicators button.active {
  transform: scale(1.25);
  background: var(--highlight);
  border-color: var(--highlight);
}

/* mobile tweaks */
@media (max-width: 991px) {
  .hero-content { padding: 1.25rem; max-width: 90%; }
  .hero-slide { min-height: 52vh; }
  .custom-control .carousel-control-prev-icon,
  .custom-control .carousel-control-next-icon { width: 44px; height: 44px; }
}

/* respects reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-content { animation: none; transform: none; opacity: 1; }
  .carousel, .carousel .carousel-item { transition: none; }
}
/* Navbar / logo responsive tweaks */
.site-logo {
  display: inline-block;
  height: auto;
  max-height: 48px;        /* ensures it never overflows nav */
  width: auto;
  padding-left: 20px;
  max-width: 160px;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.35));
}

/* vertical alignment between logo and the two-line brand text */
.navbar-brand { align-items: center; gap: 0.75rem; }

/* refinement for small screens */
@media (max-width: 991px) {
  .site-logo { max-height: 42px; max-width: 130px; }
  .navbar .tw-text-xl { font-size: 1.05rem; } /* keep brand readable when logo shrinks */
  .navbar-nav { margin-top: 0.5rem; }
}

/* reduce logo size on very small phones */
@media (max-width: 420px) {
  .site-logo { max-height: 36px; max-width: 110px; }
  .navbar-brand .tw-text-lg { font-size: 0.95rem; }
}

/* Improve contrast for navbar links (explicit) */
.navbar-dark .navbar-nav .nav-link { color: rgba(8, 8, 8, 0.9); }
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus { color: var(--highlight); text-decoration: none; }

/* Preserve accessible hit area on toggler */
.navbar-toggler { padding: 0.35rem 0.75rem; border-radius: 6px; }

/* If logo image fails to load, make sure brand text remains visible */
.navbar-brand img[alt="Aqurate logo"]{ background-color: transparent; }
