/* ==========================================
   Global Styles & CSS Variables
   ========================================== */

:root {
  /* Color Palette - Purple Theme for Dark Mode */
  --primary-color: #fca311;
  --primary-dark: #6b2dc4;
  --primary-light: #9b5cf0;
  --secondary-color: #fca311;
  --accent-color: #fca311;
  --red-primary: #fca311;
  --red-secondary: #fca311;
  --red-glow: rgba(252, 163, 17, 0.4);
  --red-dark: #5a25a8;

  /* Neutral Colors */
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-tertiary: #1a1a1a;
  --text-primary: #ffffff;
  --text-secondary: #e0e0e0;
  --text-muted: #a0a0a0;
  --gray-light: #e0e0e0;
  --gray-mid: #a0a0a0;
  --gray-dark: #333333;
  --white: #ffffff;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;

  /* Typography */
  --font-family: "Rajdhani", "Inter", -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --font-heading: "Orbitron", sans-serif;
  --font-mono: "Space Mono", monospace;
  --font-size-base: 16px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 30px rgba(251, 86, 7, 0.3);
}

/* ==========================================
   Base Styles & Reset
   ========================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Dark Theme (Explicit) */
[data-theme="dark"] {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-tertiary: #1a1a1a;
  --text-primary: #ffffff;
  --text-secondary: #e0e0e0;
  --text-muted: #a0a0a0;
  --gray-light: #e0e0e0;
  --gray-mid: #a0a0a0;
  --gray-dark: #333333;
  --white: #ffffff;
}

[data-theme="dark"] body {
  background-color: #0a0a0a !important;
  color: #ffffff !important;
}

/* Bright Theme - Light Gray Background */
[data-theme="bright"] {
  /* Light Gray Backgrounds */
  --bg-primary: #dee2e6;
  --bg-secondary: #dee2e6;
  --bg-tertiary: #dee2e6;
  
  /* Dark text for readability on light background */
  --text-primary: #1a1a1a;
  --text-secondary: #333333;
  --text-muted: #666666;
  --white: #1a1a1a;
  --gray-light: #333333;
  --gray-mid: #666666;
  --gray-dark: #dce8ff;
  
  /* Keep same accent colors as dark theme */
  --primary-color: #fca311;
  --primary-dark: #6b2dc4;
  --primary-light: #9b5cf0;
  --secondary-color: #fca311;
  --accent-color: #fca311;
  --red-primary: #fca311;
  --red-secondary: #fca311;
  --red-glow: rgba(252, 163, 17, 0.4);
  --red-dark: #5a25a8;
}

/* Bright Theme Body */
[data-theme="bright"] body {
  background-color: #dee2e6 !important;
  background-image: url('/assets/images/hero-background-alt.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: #1a1a1a !important;
}

[data-theme="bright"] body::before {
  background: rgba(222, 226, 230, 0.50) !important;
  backdrop-filter: blur(2px) !important;
  -webkit-backdrop-filter: blur(2px) !important;
}

[data-theme="bright"] body::after {
  background-image: 
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 20px,
      rgba(94, 179, 246, 0.4) 20px,
      rgba(94, 179, 246, 0.4) 21px,
      transparent 21px,
      transparent 40px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 20px,
      rgba(94, 179, 246, 0.4) 20px,
      rgba(94, 179, 246, 0.4) 21px,
      transparent 21px,
      transparent 40px
    );
}

/* Bright Theme Sections */
[data-theme="bright"] section {
  background-color: #dee2e6;
  color: #1a1a1a;
}

[data-theme="bright"] .services,
[data-theme="bright"] .about,
[data-theme="bright"] .workflow-features,
[data-theme="bright"] .workflow-stats {
  background: rgba(222, 226, 230, 0.55) !important;
  backdrop-filter: blur(10px);
}

[data-theme="bright"] .hero {
  background: transparent !important;
}

[data-theme="bright"] .hero::before {
  background: rgba(255, 255, 255, 0.05) !important;
}

/* Bright Theme Text Colors */
[data-theme="bright"] h1,
[data-theme="bright"] h2,
[data-theme="bright"] h3,
[data-theme="bright"] h4,
[data-theme="bright"] h5,
[data-theme="bright"] h6 {
  color: #1a1a1a !important;
}

[data-theme="bright"] p {
  color: #333333 !important;
}

[data-theme="bright"] .gradient-text {
  background: linear-gradient(135deg, #003d82, #5eb3f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Bright Theme Cards */
[data-theme="bright"] .service-card,
[data-theme="bright"] .intro-card,
[data-theme="bright"] .use-case-card,
[data-theme="bright"] .feature-item,
[data-theme="bright"] .extension-card {
  background: rgba(222, 226, 230, 0.5) !important;
  border: 1px solid rgba(222, 226, 230, 0.8) !important;
  color: #1a1a1a !important;
}

[data-theme="bright"] .service-card h3,
[data-theme="bright"] .intro-card h3,
[data-theme="bright"] .use-case-card h3,
[data-theme="bright"] .feature-item h4,
[data-theme="bright"] .extension-card h3 {
  color: #fca311 !important;
}

[data-theme="bright"] .service-card p,
[data-theme="bright"] .intro-card p,
[data-theme="bright"] .use-case-card p,
[data-theme="bright"] .feature-item p,
[data-theme="bright"] .extension-card p {
  color: #333333 !important;
}

/* Bright Theme Tech Tags */
[data-theme="bright"] .tech-tag,
[data-theme="bright"] .tech-item {
  background: rgba(222, 226, 230, 0.5) !important;
  border: 1px solid rgba(222, 226, 230, 0.8) !important;
  color: #1a1a1a !important;
}

/* Bright Theme Footer */
[data-theme="bright"] .footer {
  background: #dee2e6 !important;
  border-top: 1px solid rgba(222, 226, 230, 0.8) !important;
  color: #1a1a1a !important;
}

[data-theme="bright"] .footer h4 {
  color: #fca311 !important;
}

[data-theme="bright"] .footer p,
[data-theme="bright"] .footer a {
  color: #333333 !important;
}

/* Bright Theme Form Elements */
[data-theme="bright"] .form-group input,
[data-theme="bright"] .form-group textarea,
[data-theme="bright"] .form-group select {
  background: rgba(255, 255, 255, 0.8) !important;
  border: 1px solid rgba(222, 226, 230, 0.8) !important;
  color: #1a1a1a !important;
}

[data-theme="bright"] .contact-form {
  background: rgba(222, 226, 230, 0.8) !important;
  border: 1px solid rgba(222, 226, 230, 0.8) !important;
}

[data-theme="bright"] .contact-item {
  background: rgba(222, 226, 230, 0.5) !important;
  border: 1px solid rgba(222, 226, 230, 0.8) !important;
}

/* Smooth theme transition */
body {
  transition: background-color 0.3s ease, color 0.3s ease;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  background-image: url('/assets/images/hero-background-alt.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  overflow-x: hidden;
  cursor: default;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.35);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 0;
  pointer-events: none;
}

/* Beautiful geometric pattern overlay - Static horizontal and vertical dotted lines */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  filter: blur(1px);
  background-image: 
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 20px,
      rgba(94, 179, 246, 0.3) 20px,
      rgba(94, 179, 246, 0.3) 21px,
      transparent 21px,
      transparent 40px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 20px,
      rgba(94, 179, 246, 0.3) 20px,
      rgba(94, 179, 246, 0.3) 21px,
      transparent 21px,
      transparent 40px
    );
}

body > * {
  position: relative;
  z-index: 1;
}

/* ==========================================
   Custom Cursor
   ========================================== */

.cursor {
  display: none !important;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--red-primary);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 10001;
  transition: all 0.08s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 0 10px var(--red-glow);
  transform: translate(-50%, -50%);
}

/* Cursor hover states */
.cursor-dot.hover {
  transform: translate(-50%, -50%) scale(1.5);
}

/* Hide cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
  .cursor,
  .cursor-dot {
    display: none;
  }
}

/* ==========================================
   Loader
   ========================================== */

.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-text {
  font-family: "Orbitron", sans-serif;
  font-size: 2rem;
  letter-spacing: 10px;
  color: var(--red-primary);
  animation: glitch 0.5s infinite;
}

.loader-bar {
  width: 200px;
  height: 3px;
  background: var(--gray-dark);
  margin-top: 30px;
  overflow: hidden;
  border-radius: 2px;
}

.loader-progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--red-primary), var(--red-secondary));
  animation: loadProgress 2s ease forwards;
  box-shadow: 0 0 20px var(--red-glow);
}

@keyframes loadProgress {
  to {
    width: 100%;
  }
}

@keyframes glitch {
  0%,
  100% {
    text-shadow: 2px 0 var(--red-primary), -2px 0 cyan;
  }
  25% {
    text-shadow: -2px 0 var(--red-primary), 2px 0 cyan;
  }
  50% {
    text-shadow: 2px 2px var(--red-primary), -2px -2px cyan;
  }
  75% {
    text-shadow: -2px 2px var(--red-primary), 2px -2px cyan;
  }
}

/* Reduce motion for users who prefer it */
@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;
  }

  .cursor,
  .cursor-dot {
    display: none;
  }
}

/* ==========================================
   Skip to Content Link
   ========================================== */

.skip-to-content {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--red-primary);
  color: var(--white);
  padding: 12px 25px;
  text-decoration: none;
  font-weight: 600;
  border-radius: 4px;
  z-index: 10000;
  transition: top 0.3s ease;
}

.skip-to-content:focus {
  top: 10px;
}

/* ==========================================
   Scroll to Top Button
   ========================================== */

.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: #fca311;
  border: none;
  border-radius: 50%;
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 900;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(252, 163, 17, 0.4);
  -webkit-text-stroke: 1px var(--white);
  text-stroke: 1px var(--white);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px var(--red-glow);
}

.scroll-to-top:active {
  transform: translateY(-2px);
}

/* ==========================================
   Particles Canvas (Hidden - Using Background Image)
   ========================================== */

#particles {
  display: none !important;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

section {
  padding: var(--spacing-xl) 0;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ==========================================
   Navigation
   ========================================== */

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: linear-gradient(
    180deg,
    #CED4DA 0%,
    #ADB5BD 20%,
    #6C757D 40%,
    #495057 60%,
    #343A40 80%,
    #212529 100%
  ) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 35, 0.4) !important;
  border-bottom: 1px solid rgba(0, 0, 35, 0.3) !important;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

/* Bright mode navigation with light-to-dark gray gradient */
[data-theme="bright"] nav {
  background: linear-gradient(
    180deg,
    #E9ECEF 0%,
    #DEE2E6 25%,
    #CED4DA 50%,
    #ADB5BD 75%,
    #6C757D 100%
  ) !important;
  box-shadow: 0 4px 20px rgba(173, 181, 189, 0.4) !important;
  border-bottom: 1px solid rgba(206, 212, 218, 0.3) !important;
}

.logo {
  font-family: "Orbitron", sans-serif;
  font-size: 1.12rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
}

.logo-icon {
  width: 160px;
  height: 80px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
  flex-shrink: 0;
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  margin: 0;
  padding: 0;
}

@keyframes pulse-glow {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.9;
  }
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  align-items: center;
  max-width: none;
  overflow: visible;
}

.nav-links a {
  font-family: "Rajdhani", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--gray-light);
  text-decoration: none;
  position: relative;
  padding: 10px 6px;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.nav-links a::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--red-primary);
  transition: width 0.3s ease;
  box-shadow: 0 0 10px var(--red-glow);
}

.nav-links a:hover {
  color: #ffffff !important;
}

.nav-links a:hover::before {
  width: 100%;
}

.nav-links a.active {
  color: #ffffff !important;
}

.nav-links a.active::before {
  width: 100%;
  background: #ffffff !important;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5) !important;
}

/* Contact Us Button in Navigation */
.nav-contact-btn {
  background: linear-gradient(135deg, #003d82, #5eb3f6) !important;
  color: #ffffff !important;
  padding: 10px 22px !important;
  border-radius: 50px;
  font-weight: 700;
  transition: all 0.3s ease;
  border: none !important;
  display: inline-block;
  box-shadow: 0 4px 12px rgba(0, 61, 130, 0.3);
  text-transform: none;
  letter-spacing: normal;
}

.nav-contact-btn::before {
  display: none !important;
}

.nav-contact-btn:hover {
  background: linear-gradient(135deg, #0052ad, #6ec0ff) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 61, 130, 0.4);
  color: #ffffff !important;
}

.nav-contact-btn:active {
  transform: translateY(0);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 2.4px;
  background: var(--red-primary);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* Theme Toggle Button */
.theme-toggle {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  width: 35px;
  height: 35px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.theme-toggle::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.theme-toggle:hover::before {
  opacity: 1;
}

.theme-toggle:active {
  transform: translateY(0) scale(0.98);
}
  transform: translateY(0);
}

[data-theme="bright"] .theme-toggle {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.15);
  color: #1a1a1a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

[data-theme="bright"] .theme-toggle::before {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.1), transparent);
}

[data-theme="bright"] .theme-toggle:hover {
  background: rgba(0, 0, 0, 0.12);
  border-color: rgba(0, 0, 0, 0.25);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* ==========================================
   Hero Section
   ========================================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  background: transparent;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 10, 0.1);
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

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

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

/* ==========================================
   Buttons
   ========================================== */

.btn {
  display: inline-block;
  font-family: "Rajdhani", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  padding: 18px 45px;
  border: 2px solid var(--red-primary);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  text-decoration: none;
  text-align: center;
  background: transparent;
  color: var(--white);
  clip-path: polygon(
    0 0,
    calc(100% - 15px) 0,
    100% 15px,
    100% 100%,
    15px 100%,
    0 calc(100% - 15px)
  );
}

.btn-primary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--red-primary);
}

.btn-primary:hover {
  background: var(--red-primary);
  box-shadow: 0 0 30px var(--red-glow);
  transform: translateY(-3px);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--red-primary);
}

.btn-secondary:hover {
  background: var(--red-primary);
  box-shadow: 0 0 30px var(--red-glow);
  transform: translateY(-3px);
}

.btn-primary:active,
.btn-secondary:active {
  transform: translateY(-1px);
}

/* ==========================================
   Hero Visual Elements
   ========================================== */

.hero-visual {
  position: relative;
  height: 400px;
}

.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-xs);
  box-shadow: var(--shadow-xl);
}

.card-icon {
  font-size: 3rem;
}

.card-text {
  font-weight: 600;
  color: var(--text-secondary);
}

.card-1 {
  top: 20%;
  left: 10%;
  animation: float 3s ease-in-out infinite;
}

.card-2 {
  top: 50%;
  right: 10%;
  animation: float 4s ease-in-out infinite 0.5s;
}

.card-3 {
  bottom: 20%;
  left: 30%;
  animation: float 3.5s ease-in-out infinite 1s;
}

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

/* ==========================================
   Section Headers
   ========================================== */

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
}

/* ==========================================
   Services Section
   ========================================== */

.services {
  background: rgba(17, 17, 17, 0.60);
  backdrop-filter: blur(10px);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-md);
}

.service-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  transition: all var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-glow);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-sm);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
  color: var(--primary-light);
}

.service-card > p {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.service-features li {
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-secondary);
  line-height: 1.5;
}

.service-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary-color);
  font-weight: bold;
  width: 1rem;
  display: inline-block;
}

/* ==========================================
   Technologies Section
   ========================================== */

.tech-categories {
  display: grid;
  gap: var(--spacing-md);
}

.tech-category {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
}

.tech-category h3 {
  margin-bottom: var(--spacing-sm);
  color: var(--primary-light);
  font-size: 1.25rem;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
}

.tech-tag {
  background: linear-gradient(
    135deg,
    rgba(251, 86, 7, 0.2),
    rgba(124, 58, 237, 0.2)
  );
  border: 1px solid rgba(251, 86, 7, 0.3);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  transition: all var(--transition-fast);
}

.tech-tag:hover {
  transform: translateY(-2px);
  border-color: var(--primary-color);
  background: linear-gradient(
    135deg,
    rgba(251, 86, 7, 0.3),
    rgba(124, 58, 237, 0.3)
  );
}

/* ==========================================
   About Section
   ========================================== */

.about {
  background: rgba(17, 17, 17, 0.60);
  backdrop-filter: blur(10px);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
  line-height: 1.8;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.stat {
  text-align: center;
  padding: var(--spacing-md);
  background: rgba(251, 86, 7, 0.1);
  border-radius: var(--radius-md);
  border: 1px solid rgba(251, 86, 7, 0.2);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-light);
  margin-bottom: var(--spacing-xs);
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.about-values h3 {
  margin-bottom: var(--spacing-md);
  color: var(--primary-light);
}

.values-grid {
  display: grid;
  gap: var(--spacing-md);
}

.value-item {
  display: flex;
  gap: var(--spacing-sm);
  padding: var(--spacing-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.value-item:hover {
  border-color: var(--primary-color);
}

.value-icon {
  font-size: 2rem;
}

.value-item h4 {
  margin-bottom: var(--spacing-xs);
  color: var(--primary-light);
}

.value-item p {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* ==========================================
   Contact Section
   ========================================== */

.contact-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--spacing-lg);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  padding: var(--spacing-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
}

.contact-icon {
  font-size: 1.5rem;
}

.contact-item h4 {
  color: var(--primary-light);
  margin-bottom: var(--spacing-xs);
}

.contact-item p {
  color: var(--text-secondary);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group input,
.form-group textarea {
  padding: var(--spacing-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(251, 86, 7, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.contact-form .btn {
  margin-top: var(--spacing-sm);
}

/* ==========================================
   Footer
   ========================================== */

.footer {
  background: var(--bg-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-section h4 {
  color: var(--primary-light);
  margin-bottom: var(--spacing-sm);
}

.footer-section p {
  color: var(--text-secondary);
  line-height: 1.8;
}

.footer-section ul {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.footer-section a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-section a:hover {
  color: var(--primary-light);
}

.social-links {
  display: flex;
  gap: var(--spacing-sm);
}

.social-links a {
  padding: 0.5rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.social-links a:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}

/* ==========================================
   Cookie Consent Banner
   ========================================== */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(17, 17, 17, 0.98);
  backdrop-filter: blur(10px);
  border-top: 2px solid var(--primary-color);
  padding: var(--spacing-md) var(--spacing-lg);
  z-index: 10000;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
  display: none;
  animation: slideInUp 0.4s ease;
}

.cookie-banner.visible {
  display: block;
}

@keyframes slideInUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-banner-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.cookie-banner-text {
  flex: 1;
  min-width: 300px;
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
}

.cookie-banner-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

.cookie-banner-text a {
  color: var(--primary-color);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.cookie-banner-text a:hover {
  color: var(--primary-light);
}

.cookie-banner-buttons {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 12px 30px;
  font-family: "Rajdhani", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: 2px solid;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.cookie-btn-accept {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
}

.cookie-btn-accept:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--red-glow);
}

.cookie-btn-reject {
  background: transparent;
  border-color: var(--gray-mid);
  color: var(--gray-light);
}

.cookie-btn-reject:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--white);
  color: var(--white);
}

/* Bright theme cookie banner */
[data-theme="bright"] .cookie-banner {
  background: rgba(248, 249, 250, 0.98);
  border-top-color: var(--primary-color);
}

[data-theme="bright"] .cookie-banner-text {
  color: #495057;
}

[data-theme="bright"] .cookie-banner-text strong {
  color: #212529;
}

[data-theme="bright"] .cookie-btn-reject {
  border-color: #6c757d;
  color: #495057;
}

[data-theme="bright"] .cookie-btn-reject:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: #495057;
  color: #212529;
}

/* ==========================================
   Responsive Design
   ========================================== */

@media (max-width: 968px) {
  nav {
    padding: 10px 30px;
    background: rgba(10, 10, 10, 0.98);
  }

  .mobile-menu-toggle {
    display: flex !important;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 100px 30px 30px;
    gap: 20px;
    transition: right 0.3s ease;
    border-left: 1px solid var(--red-primary);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    padding: 15px 0;
    font-size: 1.1rem;
  }

  section {
    padding: 80px 30px;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .contact-content {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  /* Ensure mobile menu is visible on tablets and phones */
  .mobile-menu-toggle {
    display: flex !important;
  }

  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-visual {
    display: none;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  :root {
    --font-size-base: 14px;
  }

  /* Ensure hamburger menu is visible on small phones */
  .mobile-menu-toggle {
    display: flex !important;
  }

  nav {
    padding: 12px 20px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   Workflow Automation Page Styles
   ========================================== */

.workflow-hero {
  min-height: 100vh;
  padding-top: 120px;
}

.workflow-hero .container {
  grid-template-columns: 1fr;
  text-align: center;
  max-width: 1000px;
}

.workflow-hero .hero-content {
  max-width: 100%;
}

.workflow-hero .hero-subtitle {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.workflow-hero .hero-buttons {
  justify-content: center;
}

.workflow-intro {
  background: var(--bg-secondary);
  padding: var(--spacing-xl) 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.intro-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  transition: all var(--transition-normal);
  text-align: center;
}

.intro-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-glow);
}

.intro-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-sm);
}

.intro-card h3 {
  color: var(--primary-light);
  margin-bottom: var(--spacing-sm);
  font-size: 1.25rem;
}

.intro-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Use Cases Section */
.use-cases {
  padding: var(--spacing-xl) 0;
}

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.use-case-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  transition: all var(--transition-normal);
}

.use-case-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-glow);
}

.use-case-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
}

.use-case-icon {
  font-size: 2.5rem;
}

.use-case-card h3 {
  color: var(--primary-light);
  font-size: 1.25rem;
}

.use-case-card > p {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
  line-height: 1.6;
}

.use-case-features {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.use-case-features li {
  padding-left: var(--spacing-md);
  position: relative;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.use-case-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

/* Workflow Features Section */
.workflow-features {
  background: rgba(17, 17, 17, 0.60);
  backdrop-filter: blur(10px);
  padding: var(--spacing-xl) 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.feature-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  transition: all var(--transition-normal);
}

.feature-item:hover {
  transform: translateY(-3px);
  border-color: var(--primary-color);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
}

.feature-item h4 {
  color: var(--primary-light);
  margin-bottom: var(--spacing-xs);
  font-size: 1.1rem;
}

.feature-item p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Workflow CTA Section */
.workflow-cta {
  padding: var(--spacing-xl) 0;
  background: linear-gradient(
    135deg,
    rgba(251, 86, 7, 0.1) 0%,
    rgba(124, 58, 237, 0.1) 100%
  );
  text-align: center;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
  color: var(--text-primary);
}

.cta-content p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
  flex-wrap: wrap;
}

.btn-large {
  padding: 1.25rem 2.5rem;
  font-size: 1.1rem;
}

/* Workflow Stats Section */
.workflow-stats {
  background: rgba(17, 17, 17, 0.60);
  backdrop-filter: blur(10px);
  padding: var(--spacing-lg) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-md);
}

.stat-item {
  text-align: center;
  padding: var(--spacing-md);
  background: rgba(251, 86, 7, 0.1);
  border-radius: var(--radius-md);
  border: 1px solid rgba(251, 86, 7, 0.2);
}

.stat-item .stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-light);
  margin-bottom: var(--spacing-xs);
}

.stat-item .stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Responsive adjustments for workflow page */
@media (max-width: 768px) {
  .workflow-hero {
    min-height: 60vh;
    text-align: center;
  }

  .intro-grid,
  .use-cases-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .cta-content h2 {
    font-size: 2rem;
  }

  .cta-content p {
    font-size: 1rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-large {
    width: 100%;
    max-width: 300px;
  }
}

/* ==========================================
   Chrome Extensions Section
   ========================================== */

.extensions {
  padding: var(--spacing-xl) 0;
  background: var(--bg-primary);
}

.extensions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.extension-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.extension-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-glow);
}

.extension-icon {
  font-size: 3rem;
  text-align: center;
  margin-bottom: var(--spacing-xs);
}

.extension-card h3 {
  font-size: 1.25rem;
  color: var(--primary-light);
  margin-bottom: var(--spacing-xs);
  text-align: center;
}

.extension-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  flex-grow: 1;
  text-align: center;
  font-size: 0.95rem;
}

.btn-extension {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 2px solid transparent;
  display: inline-block;
  text-decoration: none;
  margin-top: auto;
}

.btn-extension:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  background: linear-gradient(
    135deg,
    var(--primary-dark),
    var(--secondary-color)
  );
}

/* Responsive adjustments for extensions */
@media (max-width: 768px) {
  .extensions-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   FAQ Accordion Styles
   ========================================== */

.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item summary:hover {
  color: var(--primary-color);
}

.faq-item[open] {
  border-color: var(--primary-color) !important;
}
