/* 
==================================================
DESIGN SYSTEM VARIABLES & THEME DEFINITIONS
==================================================
*/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  /* Constant Brand Colors */
  --primary: #6366f1; /* Premium Indigo */
  --primary-rgb: 99, 102, 241;
  --secondary: #06b6d4; /* Tech Cyan */
  --secondary-rgb: 6, 182, 212;
  --accent: #d946ef; /* Creative Magenta */
  --accent-rgb: 217, 70, 239;

  /* DEFAULT LIGHT MODE THEME */
  --background: #f8fafc; /* Slate 50 Off-White */
  --background-rgb: 248, 250, 252;
  --surface: #ffffff; /* Pure White for Cards */
  --surface-rgb: 255, 255, 255;
  --surface-light: #f1f5f9; /* Slate 100 for light backgrounds */
  --surface-light-rgb: 241, 245, 249;
  
  --text: #0f172a; /* Slate 900 for dark text */
  --text-rgb: 15, 23, 42;
  --text-light: #475569; /* Slate 600 for muted text */
  --text-light-rgb: 71, 85, 105;
  
  --border: rgba(15, 23, 42, 0.05);
  --border-hover: rgba(15, 23, 42, 0.12);
  --border-focus: rgba(99, 102, 241, 0.3);
  
  /* Borders and Border Radii */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  
  /* Shadows and Glowing Accents */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.03), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
  --shadow-lg: 0 20px 40px -15px rgba(15, 23, 42, 0.05), 0 0 0 1px rgba(15, 23, 42, 0.01);
  --shadow-glow: 0 0 25px rgba(99, 102, 241, 0.05);
  --shadow-glow-secondary: 0 0 25px rgba(6, 182, 212, 0.05);

  /* Layout and Sizing */
  --container: 1280px;
  --spacing: 1rem;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  
  /* Typography */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* DARK MODE OVERRIDES */
.dark {
  --background: #030712; /* Pure Obsidian Black */
  --background-rgb: 3, 7, 18;
  --surface: #0b0f19; /* Dark Slate Surface */
  --surface-rgb: 11, 15, 25;
  --surface-light: #1f2937; /* Slightly brighter slate */
  --surface-light-rgb: 31, 41, 55;
  
  --text: #f9fafb; /* Off-White */
  --text-rgb: 249, 250, 251;
  --text-light: #9ca3af; /* Muted Slate */
  --text-light-rgb: 156, 163, 175;
  
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.25), 0 2px 4px -1px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 20px 45px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.02);
  --shadow-glow: 0 0 25px rgba(99, 102, 241, 0.12);
  --shadow-glow-secondary: 0 0 25px rgba(6, 182, 212, 0.12);
}

/* 
==================================================
BASE RESETS & GLOBAL STYLES
==================================================
*/
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background-color: var(--background);
  color: var(--text);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text);
  line-height: 1.25;
  font-weight: 700;
}

/* Smooth Theme Transitions */
body, header, footer, section, div, p, h1, h2, h3, h4, h5, h6, a, button, select, input, textarea, span, svg {
  transition: background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease, opacity 0.4s ease;
}

/* 
==================================================
SCROLLBAR & FOCUS OUTLINE
==================================================
*/
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--background);
}
::-webkit-scrollbar-thumb {
  background: var(--surface-light);
  border-radius: var(--radius-sm);
  border: 1px solid var(--background);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}

/* 
==================================================
PREMIUM UTILITIES & INTERACTIVE CUSTOM STYLES
==================================================
*/

/* Glassmorphism Panel */
.glass-panel {
  background: rgba(var(--surface-rgb), 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

/* Premium Card hover style */
.premium-hover-card {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-xl);
  transition: var(--transition);
}
.premium-hover-card:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--primary-rgb), 0.2);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

/* Text Gradient Glow */
.text-gradient {
  background: linear-gradient(135deg, var(--text) 30%, var(--primary) 70%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-purple {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Premium Glow Grid Background */
.glow-grid {
  position: relative;
}
.glow-grid::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(var(--text-rgb), 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--text-rgb), 0.012) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 1;
}

/* Decorative Glow Spots */
.glow-spot {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}
.dark .glow-spot {
  opacity: 0.12;
}

.glow-spot-indigo {
  background: var(--primary);
}

.glow-spot-cyan {
  background: var(--secondary);
}

/* Responsive Large Typography */
.hero-title {
  font-size: 2.5rem; /* Mobile */
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
@media (min-width: 768px) {
  .hero-title {
    font-size: 3.5rem; /* Tablet */
  }
}
@media (min-width: 1024px) {
  .hero-title {
    font-size: 4.75rem; /* Desktop 76px */
  }
}

/* Buttons Styling */
.btn-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary), #4f46e5);
  color: #ffffff;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.2);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35), var(--shadow-glow);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: rgba(var(--text-rgb), 0.04);
  color: var(--text);
  border: 1px solid var(--border);
  font-weight: 600;
  transition: var(--transition);
}
.btn-secondary:hover {
  background: rgba(var(--text-rgb), 0.07);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

/* Timeline Custom Styles */
.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--background);
  border: 3px solid var(--primary);
  z-index: 10;
  transition: var(--transition);
}
.timeline-item:hover .timeline-dot {
  background: var(--secondary);
  box-shadow: 0 0 10px var(--secondary);
}

/* Form Styles */
.form-input {
  background: rgba(var(--text-rgb), 0.015);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.form-input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(var(--text-rgb), 0.03);
  box-shadow: 0 0 0 3px var(--border-focus);
}

/* Micro-animations */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0px); }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.06; transform: scale(1); }
  50% { opacity: 0.12; transform: scale(1.08); }
}

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

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

/* Dropdown Transition */
.dropdown-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
}

.dropdown-parent:hover .dropdown-menu,
.dropdown-parent:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Accordion */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
}
.accordion-item.active .accordion-content {
  max-height: 1000px;
  transition: max-height 0.3s ease-in-out;
}
.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

/* Split layouts */
.split-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 1024px) {
  .split-layout {
    grid-template-columns: 1fr 1fr;
  }
}

/* 
==================================================
ULTRA-SMOOTH HERO SLIDER ENGINE
==================================================
*/
.hero-slider-container {
  position: relative;
  overflow: hidden;
  height: 820px; /* Fixed height on mobile to support stacked content */
}
@media (min-width: 768px) {
  .hero-slider-container {
    height: 860px;
  }
}
@media (min-width: 1024px) {
  .hero-slider-container {
    height: 680px; /* Side-by-side columns require less vertical height */
    display: flex;
    align-items: center;
  }
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 1;
  /* Super smooth acceleration curve (out-quint) */
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              visibility 0.8s;
  transform: scale(0.97) translateX(35px);
}
@media (min-width: 1024px) {
  .hero-slide {
    display: flex;
    align-items: center; /* Center vertically on desktop screen columns */
  }
}

.hero-slide.active {
  position: absolute; /* Keep it absolute all the time to prevent document reflow jumps */
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 10;
  transform: scale(1) translateX(0);
}

/* Cascade animation effects for slide inner components */
.hero-slide .slide-badge,
.hero-slide .slide-title,
.hero-slide .slide-desc,
.hero-slide .slide-btns,
.hero-slide .slide-image-wrapper {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-slide .slide-image-wrapper {
  transform: translateY(20px) scale(0.95);
}

.hero-slide.active .slide-badge {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}
.hero-slide.active .slide-title {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}
.hero-slide.active .slide-desc {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}
.hero-slide.active .slide-btns {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}
.hero-slide.active .slide-image-wrapper {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: 0.25s;
}

/* 
==================================================
PREMIUM BREADCRUMB PAGE HERO GRADIENT
==================================================
*/
.inner-hero-gradient {
  position: relative;
  background-image: linear-gradient(135deg, rgba(244, 247, 250, 0.92) 0%, rgba(255, 255, 255, 0.95) 100%), url('https://tekni-react.vercel.app/assets/img/banner/breadcrumb-bg.jpg');
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.dark .inner-hero-gradient {
  background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.93) 0%, rgba(9, 15, 30, 0.96) 100%), url('https://tekni-react.vercel.app/assets/img/banner/breadcrumb-bg.jpg');
}

.inner-hero-gradient::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.09) 0%, transparent 45%),
    radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.09) 0%, transparent 45%);
  pointer-events: none;
  z-index: 0;
}

.dark .inner-hero-gradient::before {
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.18) 0%, transparent 45%);
}

.inner-hero-grid {
  position: relative;
}

.inner-hero-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  /* dot matrix pattern */
  background-image: radial-gradient(var(--border) 1.2px, transparent 1.2px);
  background-size: 32px 32px;
  opacity: 0.85;
  pointer-events: none;
  z-index: 1;
}

/* Organic Morphing Blobs */
@keyframes blob-morph-1 {
  0%, 100% { border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%; }
  50% { border-radius: 70% 30% 52% 48% / 60% 40% 60% 40%; }
}
@keyframes blob-morph-2 {
  0%, 100% { border-radius: 70% 30% 52% 48% / 60% 40% 60% 40%; }
  50% { border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%; }
}
.blob-icon-shape-1 {
  animation: blob-morph-1 8s ease-in-out infinite;
}
.blob-icon-shape-2 {
  animation: blob-morph-2 8s ease-in-out infinite;
}

/* Responsive Slanted Background Helper */
@media (min-width: 1024px) {
  .slanted-blue-bg {
    position: relative;
  }
  .slanted-blue-bg::before {
    content: "";
    position: absolute;
    top: -48px;
    right: -32px;
    bottom: -48px;
    left: -100vw;
    background-color: #0a2265;
    background-image: 
      linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), 
      linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 32px 32px;
    clip-path: polygon(0 0, 100% 0, calc(100% - 95px) 100%, 0 100%);
    z-index: 0;
  }
}
@media (max-width: 1023px) {
  .slanted-blue-bg {
    background-color: #0a2265;
    background-image: 
      linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), 
      linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 32px 32px;
    border-radius: 24px;
    padding: 32px;
  }
}

/* Technology-Circuit style gradient clipping for partner numbers */
.text-circuit-clip {
  background-image: url('https://tekni-react.vercel.app/assets/img/banner/6.jpg') !important;
  background-size: cover !important;
  background-position: center !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  color: transparent !important;
  display: inline-block;
  padding-right: 20px; /* Prevents the rightmost character '0' from clipping */
}


