/* ================================
   Smartiva Technologies - Design System
   ================================ */

/* ===== CSS VARIABLES ===== */
:root {
  /* Color Palette - Premium Blue & Orange Theme */
  --primary-blue: hsl(210, 85%, 45%);
  --primary-blue-light: hsl(210, 85%, 55%);
  --primary-blue-dark: hsl(210, 85%, 35%);
  --accent-orange: hsl(25, 95%, 55%);
  --accent-orange-light: hsl(25, 95%, 65%);

  /* Neutral Colors */
  --bg-dark: hsl(220, 20%, 10%);
  --bg-darker: hsl(220, 22%, 6%);
  --bg-card: hsl(220, 18%, 14%);
  --text-primary: hsl(0, 0%, 98%);
  --text-secondary: hsl(210, 15%, 70%);
  --text-muted: hsl(210, 10%, 50%);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-orange) 100%);
  --gradient-hero: linear-gradient(135deg,
      hsl(220, 22%, 8%) 0%,
      hsl(210, 85%, 15%) 50%,
      hsl(25, 85%, 15%) 100%);
  --gradient-card: linear-gradient(135deg,
      hsla(220, 18%, 14%, 0.8) 0%,
      hsla(210, 20%, 16%, 0.9) 100%);

  /* Spacing */
  --section-padding: 5rem;
  --container-max-width: 1200px;

  /* Transitions */
  --transition-fast: 200ms ease;
  --transition-medium: 400ms ease;
  --transition-smooth: 600ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Shadows */
  --shadow-sm: 0 2px 8px hsla(0, 0%, 0%, 0.1);
  --shadow-md: 0 4px 16px hsla(0, 0%, 0%, 0.2);
  --shadow-lg: 0 8px 32px hsla(0, 0%, 0%, 0.3);
  --shadow-glow: 0 0 40px hsla(210, 85%, 45%, 0.3);
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-dark);
  overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text-primary);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--primary-blue-light);
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* ===== LAYOUT ===== */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: var(--section-padding) 0;
  position: relative;
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: hsla(220, 22%, 8%, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid hsla(210, 85%, 45%, 0.1);
  transition: all var(--transition-medium);
}

.navbar.scrolled {
  box-shadow: var(--shadow-lg);
  background: hsla(220, 22%, 6%, 0.98);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform var(--transition-fast);
}

.logo:hover {
  transform: scale(1.05);
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--gradient-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-medium);
}

.nav-links a:hover {
  color: var(--primary-blue-light);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  transition: all var(--transition-fast);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, hsla(255, 255%, 255%, 0.2), transparent);
  transition: left var(--transition-smooth);
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-blue-light);
  border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
  background: var(--primary-blue);
  color: white;
  transform: translateY(-2px);
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at center, transparent 0%, hsla(220, 22%, 5%, 0.7) 70%, hsla(220, 22%, 5%, 0.95) 100%),
    linear-gradient(to bottom, hsla(220, 22%, 5%, 0.85) 0%, hsla(220, 22%, 5%, 0.75) 50%, hsla(220, 22%, 5%, 0.90) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 50%, hsla(210, 85%, 45%, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, hsla(25, 95%, 55%, 0.15) 0%, transparent 50%);
  animation: pulse 8s ease-in-out infinite;
  z-index: 1;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }
}

.hero-content {
  text-align: center;
  z-index: 2;
  position: relative;
  max-width: 900px;
  padding: 3rem 2rem;
  animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease 0.2s both;
  color: white !important;
  background: none;
  -webkit-text-fill-color: white;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.9),
    0 4px 8px rgba(0, 0, 0, 0.7),
    0 8px 16px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  color: white;
  margin-bottom: 1rem;
  animation: fadeInUp 1s ease 0.4s both;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9), 0 4px 8px rgba(0, 0, 0, 0.6);
  font-weight: 500;
}

.hero-supporting {
  font-size: 1.1rem;
  color: white;
  margin-bottom: 2.5rem;
  animation: fadeInUp 1s ease 0.6s both;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9), 0 4px 8px rgba(0, 0, 0, 0.6);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.8s both;
}

/* ===== CARDS ===== */
.card {
  background: var(--gradient-card);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid hsla(210, 85%, 45%, 0.1);
  transition: all var(--transition-medium);
  backdrop-filter: blur(10px);
}

.card:hover {
  transform: translateY(-8px);
  border-color: hsla(210, 85%, 45%, 0.3);
  box-shadow: var(--shadow-lg);
}

/* ===== SECTION VARIANTS ===== */
.section-light {
  background: var(--bg-darker);
}

.section-dark {
  background: var(--bg-dark);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  margin-bottom: 1rem;
}

.section-title p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.2rem;
}

/* ===== GRID LAYOUTS ===== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* ===== EXPERIENCE SECTION ===== */
.experience-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.experience-image {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-medium);
}

.experience-image:hover {
  transform: scale(1.02);
}

.experience-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

.experience-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.2rem;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .experience-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ===== APPROACH IMAGE ===== */
.approach-image-container {
  margin-bottom: 3rem;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.approach-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--transition-smooth);
}

.approach-image-container:hover .approach-image {
  transform: scale(1.05);
}

/* ===== TROUBLESHOOTING SECTION BACKGROUND ===== */
.troubleshooting-section {
  position: relative;
  overflow: hidden;
}

.troubleshooting-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('Core-Level Troubleshooting.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.08;
  z-index: 0;
}

.troubleshooting-section .container {
  position: relative;
  z-index: 1;
}

/* ===== INNOVATION SECTION ===== */
.innovation-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.innovation-video {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--bg-darker);
}

.solution-video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

.innovation-text h3 {
  margin-bottom: 1rem;
}

.innovation-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .innovation-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ===== FEATURE LISTS ===== */
.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  padding: 0.75rem 0;
  padding-left: 2rem;
  position: relative;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-orange);
  font-weight: 700;
  font-size: 1.2rem;
}

/* ===== CONTACT FORM ===== */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: var(--bg-card);
  border: 2px solid hsla(210, 85%, 45%, 0.2);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: all var(--transition-medium);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px hsla(210, 85%, 45%, 0.1);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-darker);
  padding: 3rem 0 1.5rem;
  border-top: 1px solid hsla(210, 85%, 45%, 0.1);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-section p,
.footer-section a {
  color: var(--text-muted);
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
  transition: color var(--transition-fast);
}

.footer-section a:hover {
  color: var(--primary-blue-light);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid hsla(210, 85%, 45%, 0.1);
  color: var(--text-muted);
}

/* ===== ANIMATIONS ===== */
.fade-in {
  animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.slide-in-left {
  animation: slideInLeft 0.6s ease;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  :root {
    --section-padding: 3rem;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 70%;
    max-width: 300px;
    background: var(--bg-darker);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem;
    gap: 1.5rem;
    transition: right var(--transition-medium);
    box-shadow: var(--shadow-lg);
  }

  .nav-links.active {
    right: 0;
  }

  .menu-toggle {
    display: flex;
    z-index: 1001;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .hero-overlay {
    background:
      radial-gradient(ellipse at center, transparent 0%, hsla(220, 22%, 5%, 0.75) 60%, hsla(220, 22%, 5%, 0.97) 100%),
      linear-gradient(to bottom, hsla(220, 22%, 5%, 0.90) 0%, hsla(220, 22%, 5%, 0.80) 50%, hsla(220, 22%, 5%, 0.95) 100%);
  }

  .hero-content {
    padding: 2rem 1.5rem;
  }

  .btn {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }
}

/* ===== UTILITY CLASSES ===== */
.text-center {
  text-align: center;
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mb-1 {
  margin-bottom: 1rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

.mb-3 {
  margin-bottom: 3rem;
}

.mt-1 {
  margin-top: 1rem;
}

.mt-2 {
  margin-top: 2rem;
}

.mt-3 {
  margin-top: 3rem;
}

/* ===== CAREERS PAGE ===== */
.careers-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 8rem 2rem 5rem;
}

.careers-hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 1.5rem;
  color: white !important;
  background: none;
  -webkit-text-fill-color: white;
}

.careers-hero .hero-subtitle {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  color: var(--primary-blue-light);
  margin-bottom: 1rem;
  font-weight: 600;
}

.careers-hero .hero-supporting {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
}

.job-card {
  background: var(--gradient-card);
  border-radius: 16px;
  padding: 0;
  border: 1px solid hsla(210, 85%, 45%, 0.1);
  transition: all var(--transition-medium);
  backdrop-filter: blur(10px);
  margin-bottom: 2rem;
  overflow: hidden;
}

.job-card:hover {
  transform: translateY(-4px);
  border-color: hsla(210, 85%, 45%, 0.3);
  box-shadow: var(--shadow-lg);
}

.job-header {
  background: linear-gradient(135deg,
      hsla(210, 85%, 45%, 0.15) 0%,
      hsla(25, 95%, 55%, 0.15) 100%);
  padding: 2rem;
  border-bottom: 1px solid hsla(210, 85%, 45%, 0.1);
}

.job-header h3 {
  margin-bottom: 1rem;
  font-size: 1.8rem;
  color: var(--text-primary);
}

.job-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.job-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: var(--gradient-primary);
  color: white;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

.job-location,
.job-travel {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: hsla(220, 18%, 14%, 0.8);
  color: var(--text-secondary);
  border-radius: 20px;
  font-size: 0.9rem;
  border: 1px solid hsla(210, 85%, 45%, 0.2);
}

.job-content {
  padding: 2rem;
}

.job-content h4 {
  color: var(--primary-blue-light);
  margin-bottom: 1rem;
  margin-top: 1.5rem;
  font-size: 1.2rem;
}

.job-content h4:first-child {
  margin-top: 0;
}

@media (max-width: 768px) {
  .careers-hero {
    min-height: 50vh;
    padding: 6rem 1.5rem 3rem;
  }

  .job-header {
    padding: 1.5rem;
  }

  .job-content {
    padding: 1.5rem;
  }

  .job-meta {
    flex-direction: column;
    gap: 0.5rem;
  }

  .job-badge,
  .job-location,
  .job-travel {
    display: inline-block;
    width: fit-content;
  }
}