/* Custom CSS for Sisco Tech website - Extended Animations and Premium Layout Styles */

/* Easing & Core Transitions */
:root {
  --primary-glow: rgba(255, 193, 7, 0.4);
  --primary-glow-hover: rgba(255, 193, 7, 0.75);
}

body {
  background-color: #f9f9f9;
  overflow-x: hidden;
}

/* Glassmorphism Styles */
.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.7);
  will-change: transform, opacity, box-shadow, border-color;
  transition: box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
              border-color 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
              transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.glass-card:hover {
  border-color: #ffc107;
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -15px rgba(255, 193, 7, 0.2);
}

.glass-modal {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 193, 7, 0.2);
}

/* Glow Elements */
.golden-glow {
  box-shadow: 0 0 15px var(--primary-glow);
  will-change: transform, box-shadow;
  transition: box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
              transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
              background-color 0.3s ease;
}

.golden-glow:hover {
  box-shadow: 0 0 25px var(--primary-glow-hover);
  transform: translateY(-1px);
}

.text-gradient-gold {
  background: linear-gradient(135deg, #785900 0%, #ff9800 50%, #fabd00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* GPU Optimization */
.will-animate {
  will-change: transform, opacity;
}

/* Fiber Cable SVG Animation Styles */
.fiber-svg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

.fiber-cable-path {
  fill: none;
  stroke: rgba(226, 232, 240, 0.8);
  stroke-width: 2;
  stroke-dasharray: 8 4;
}

.fiber-cable-active {
  fill: none;
  stroke: #ff9800;
  stroke-width: 2.5;
  stroke-linecap: round;
  filter: drop-shadow(0 0 8px #ffc107);
}

/* Interactive Particle Canvas */
#particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Custom Modal Animation Helper classes */
.modal-overlay {
  opacity: 0;
  transition: opacity 0.35s ease;
}

.modal-overlay.active {
  opacity: 1;
}

.modal-content-container {
  transform: scale(0.9) translateY(20px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.15),
              opacity 0.4s ease;
}

.modal-content-container.active {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Scroll indicator animation */
@keyframes scrollPulse {
  0% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); opacity: 0.3; }
  100% { transform: translateY(0); opacity: 1; }
}

.scroll-indicator-dot {
  animation: scrollPulse 2s infinite ease-in-out;
}

/* Rotating Glowing Border Card Styles */
.glowing-card-wrapper {
  position: relative;
  z-index: 1;
  border-radius: 12px;
  background: transparent;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
              box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  height: 100%;
  box-shadow: 0 10px 30px -10px rgba(255, 193, 7, 0.35); /* Permanent static golden glow */
}

.glowing-card-wrapper:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px -10px rgba(255, 193, 7, 0.55); /* Enhanced glow on hover */
}

/* Crisp rotating border layer */
.glowing-border-card {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  z-index: 1;
  background: transparent;
}

.glowing-border-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent 15%,
    #ffc107 35%,
    #ff9800 50%,
    #ffc107 65%,
    transparent 85%
  );
  animation: rotateBorder 3.5s linear infinite;
  z-index: -2;
}

/* Inner white background card body */
.glowing-border-card::after {
  content: '';
  position: absolute;
  inset: 2px; /* Thin 2px border */
  background: #ffffff;
  border-radius: 10px; /* 12px outer radius minus 2px inset */
  z-index: -1;
}

@keyframes rotateBorder {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* --- Hero Slider Styles --- */
.hero-slides-container {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  width: 100%;
}

.hero-slide {
  grid-area: 1 / 1 / 2 / 2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: var(--spacing-gutter);
}

@media (min-width: 1024px) {
  .hero-slide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 10;
}

/* Slider dot indicators styling */
.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background-color: rgba(130, 118, 96, 0.4);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: none;
  cursor: pointer;
  outline: none;
}

.slider-dot:hover {
  background-color: #ff9800;
}

.slider-dot.active {
  width: 28px;
  background-color: #ffc107;
  box-shadow: 0 0 10px rgba(255, 193, 7, 0.6);
}

/* --- Hero Image Card (Attached Design Effect) --- */
.hero-image-card {
  position: relative; /* Anchor the ::after overlay */
  background: transparent !important; /* Transparent background to let page background/gradients show through */
  border: 2.5px solid #ffc107 !important; /* Solid golden border matching button exactly */
  border-radius: 16px;
  /* Multi-layered soft dark shadow + ambient gold shadow for premium depth */
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.12), 
    0 5px 15px rgba(120, 89, 0, 0.06),
    0 0 0 1px rgba(255, 193, 7, 0.1);
  padding: 0; /* Remove padding to let image fill the card edge-to-edge */
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 520px; /* Reduced max-width to align perfectly inside layout boundary */
  height: 240px; /* Reduced height to keep it within text height (red box) */
  overflow: hidden; /* Ensure rounded corners clip the image content */
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  will-change: transform, box-shadow, border-color;
}

/* Inset border-shadow overlay to simulate realistic depth (recessed photo frame) */
.hero-image-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px; /* Matches outer 16px radius minus the 2px border */
  border: 1px solid rgba(0, 0, 0, 0.08); /* Dark keyline to separate gold from image */
  box-shadow: 
    inset 0 0 15px rgba(0, 0, 0, 0.15), /* Ambient inner shadow */
    inset 0 4px 10px rgba(0, 0, 0, 0.22); /* Top-down shadow creating realistic physical depth */
  pointer-events: none; /* Let pointer events pass through to image hovers */
  z-index: 2; /* Sits on top of the image */
}

@media (min-width: 640px) {
  .hero-image-card {
    height: 290px;
  }
}

@media (min-width: 1024px) {
  .hero-image-card {
    height: 330px; /* Aligns vertically with the text height (~300px) */
  }
}

.hero-image-card:hover {
  transform: scale(1.015) translateY(-3px);
  border-color: #ff9800; /* Darker warm gold on hover */
  /* Premium soft dark drop shadow enhanced on hover */
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.18), 
    0 10px 25px rgba(120, 89, 0, 0.12);
}

.hero-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Cover the card to prevent raw image cut-offs from floating */
  object-position: center;
}

