/* =========================================
   Base & Variables
   ========================================= */
:root {
  /* Colors - Modern Tech Theme */
  --primary-color: #00e5ff;
  --primary-dark: #00b8d4;
  --primary-glow: rgba(0, 229, 255, 0.15);
  --bg-color: #0b0f19;
  --bg-light: #151a28;
  --bg-card: #1a2035;
  --text-main: #f0f4f8;
  --text-muted: #94a3b8;
  --accent-color: #7b2cbf;
  --accent-light: #9b59b6;
  --success-color: #00c853;
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--accent-color));

  /* Typography */
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  --h1-size: clamp(2.5rem, 5vw, 4rem);
  --h2-size: clamp(2rem, 4vw, 3rem);
  --text-size: 1.1rem;

  /* Spacing */
  --section-padding: 6rem 2rem;

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

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
}

/* Typography styles */
h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: var(--h1-size);
  background: linear-gradient(to right, var(--text-main), var(--primary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: var(--h2-size);
  text-align: center;
  margin-bottom: 1rem;
  color: var(--text-main);
}

p {
  font-size: var(--text-size);
  color: var(--text-muted);
  margin-bottom: 1rem;
}

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

a:hover {
  color: var(--primary-dark);
}

ul {
  list-style: none;
}

/* Section subtitle */
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
}

/* =========================================
   Layout & Utilities
   ========================================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

section {
  padding: var(--section-padding);
}

.btn {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--primary-color);
  color: var(--bg-color);
  box-shadow: 0 4px 15px rgba(0, 229, 255, 0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 229, 255, 0.4);
}

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

.btn-outline:hover {
  background: rgba(0, 229, 255, 0.1);
  transform: translateY(-2px);
}

/* Glassmorphism Classes */
.glass-panel {
  background: rgba(21, 26, 40, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* =========================================
   Header & Navigation
   ========================================= */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: background var(--transition-normal);
}

header.scrolled {
  background: rgba(11, 15, 25, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: 1px;
}

.logo span {
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  gap: 1.8rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

.nav-links a:hover {
  color: var(--primary-color);
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--primary-color);
  transition: width var(--transition-fast);
}

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

.nav-btn {
  margin-left: 0.5rem;
  padding: 0.5rem 1.5rem !important;
  border: 1px solid var(--primary-color) !important;
  border-radius: 5px !important;
  color: var(--primary-color) !important;
  font-weight: 600;
}

.nav-btn:hover {
  background: var(--primary-color) !important;
  color: var(--bg-color) !important;
}

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

/* Dropdown Navigation */
.nav-dropdown {
  position: relative;
}

.nav-dropdown>a {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-dropdown>a::before {
  content: none;
}

.dropdown-arrow {
  font-size: 0.6rem;
  transition: transform var(--transition-fast);
  margin-left: 2px;
}

.nav-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: rgba(21, 26, 40, 0.97);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(0, 229, 255, 0.1);
  border-radius: 12px;
  padding: 0.8rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(10px);
  transition: all var(--transition-normal);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  margin-top: 10px;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 0.7rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.dropdown-menu a:hover {
  color: var(--primary-color);
  background: rgba(0, 229, 255, 0.05);
  padding-left: 1.8rem;
}

.dropdown-menu a::after {
  display: none;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--text-main);
  border-radius: 3px;
  transition: var(--transition-fast);
}

/* =========================================
   Stats / Counter Section
   ========================================= */
.stats-section {
  background: var(--bg-light);
  border-top: 1px solid rgba(0, 229, 255, 0.05);
  border-bottom: 1px solid rgba(0, 229, 255, 0.05);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  padding: 2rem 1rem;
}

.stat-number {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* =========================================
   Services Grid
   ========================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.service-card {
  padding: 2.5rem;
  text-align: left;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: var(--bg-light);
  border: 1px solid rgba(0, 229, 255, 0.08);
  transition: all var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: 0 10px 30px rgba(0, 229, 255, 0.1);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-normal);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  display: inline-block;
}

.service-card h3 {
  color: var(--text-main);
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
}

/* =========================================
   Solutions Section
   ========================================= */
.solutions-section {
  background: var(--bg-color);
  position: relative;
}

.solutions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 2rem;
}

.solution-card {
  padding: 3rem;
  border-radius: 24px;
  background: linear-gradient(145deg, var(--bg-light), var(--bg-card));
  border: 1px solid rgba(0, 229, 255, 0.08);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.solution-card::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  border-radius: 50%;
  top: -80px;
  right: -80px;
  pointer-events: none;
}

.solution-card:nth-child(2)::after {
  background: radial-gradient(circle, rgba(123, 44, 191, 0.1) 0%, transparent 70%);
}

.solution-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 229, 255, 0.2);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.solution-card .solution-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: inline-block;
}

.solution-card h3 {
  font-size: 1.6rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.solution-features {
  list-style: none;
  margin-top: 1.5rem;
  padding: 0;
}

.solution-features li {
  padding: 0.5rem 0;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1rem;
}

.solution-features li::before {
  content: '✓';
  color: var(--primary-color);
  font-weight: 700;
  min-width: 18px;
}

/* =========================================
   Tech Advantages Section
   ========================================= */
.tech-section {
  background: linear-gradient(180deg, var(--bg-color) 0%, var(--bg-light) 100%);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.8rem;
  margin-top: 2rem;
}

.tech-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: 20px;
  background: rgba(21, 26, 40, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: all var(--transition-normal);
  position: relative;
}

.tech-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 229, 255, 0.15);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.tech-card .tech-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.1), rgba(123, 44, 191, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.tech-card h3 {
  font-size: 1.15rem;
  color: var(--text-main);
  margin-bottom: 0.8rem;
}

.tech-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* =========================================
   Partners Marquee
   ========================================= */
.partners-section {
  padding: 4rem 0;
  overflow: hidden;
  background: var(--bg-light);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.partners-section h2 {
  margin-bottom: 2.5rem;
}

.marquee-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.marquee-wrapper::before,
.marquee-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  width: 120px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.marquee-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-light), transparent);
}

.marquee-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-light), transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.partner-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  height: 70px;
  padding: 0 2rem;
  color: var(--text-muted);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 1px;
  opacity: 0.5;
  transition: opacity var(--transition-normal);
  white-space: nowrap;
}

.partner-item:hover {
  opacity: 1;
  color: var(--primary-color);
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* =========================================
   CTA Banner Section
   ========================================= */
.cta-banner {
  text-align: center;
  padding: 5rem 2rem;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.06), rgba(123, 44, 191, 0.06));
  border-radius: 30px;
  margin: 0 auto;
  max-width: 1000px;
  border: 1px solid rgba(0, 229, 255, 0.08);
}

.cta-banner h2 {
  margin-bottom: 1rem;
}

.cta-banner p {
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* =========================================
   Footer - Multi Column
   ========================================= */
footer {
  background: var(--bg-light);
  padding: 4rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-brand .logo {
  margin-bottom: 1rem;
  display: inline-block;
}

.footer-brand p {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 280px;
  line-height: 1.7;
}

.footer-col h4 {
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.7rem;
}

.footer-col ul li a {
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.footer-col ul li a:hover {
  color: var(--primary-color);
  padding-left: 4px;
}

.footer-bottom {
  padding: 1.5rem 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* =========================================
   Page Header (Sub Pages)
   ========================================= */
.page-header {
  padding: 150px 2rem 80px;
  text-align: center;
  background: linear-gradient(to bottom, rgba(11, 15, 25, 0.9), var(--bg-color));
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.page-header h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-muted);
}

/* =========================================
   Contact Form
   ========================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 2rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info-item {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}

.contact-info-item .icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.1), rgba(123, 44, 191, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.contact-info-item h4 {
  color: var(--text-main);
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.contact-info-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

.contact-form {
  background: var(--bg-light);
  padding: 3rem;
  border-radius: 24px;
  border: 1px solid rgba(0, 229, 255, 0.08);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(11, 15, 25, 0.6);
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 1rem;
  transition: border-color var(--transition-fast);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.1);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* =========================================
   About Page - Timeline
   ========================================= */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 3rem auto 0;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
}

.timeline-item {
  position: relative;
  padding: 1.5rem 0 2.5rem 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -33px;
  top: 1.8rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary-color);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
}

.timeline-year {
  font-size: 0.85rem;
  color: var(--primary-color);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.timeline-item h3 {
  font-size: 1.3rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.timeline-item p {
  font-size: 1rem;
  color: var(--text-muted);
}

/* About - Values Grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.value-card {
  text-align: center;
  padding: 2.5rem 2rem;
  border-radius: 20px;
  background: var(--bg-light);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: all var(--transition-normal);
}

.value-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 229, 255, 0.15);
}

.value-card .value-icon {
  font-size: 2.5rem;
  margin-bottom: 1.2rem;
  display: inline-block;
}

.value-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.7rem;
  color: var(--text-main);
}

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

/* =========================================
   Animations
   ========================================= */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.appear {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   Responsive Breakpoints
   ========================================= */
@media (max-width: 1024px) {
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 900px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(21, 26, 40, 0.98);
    backdrop-filter: blur(15px);
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    gap: 1.2rem;
    clip-path: circle(0% at 100% 0%);
    transition: clip-path 0.4s ease-in-out;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
  }

  .nav-links.active {
    clip-path: circle(150% at 100% 0%);
  }

  .nav-btn {
    margin: 0 !important;
  }

  /* Mobile dropdown */
  .nav-dropdown .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    min-width: auto;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0.3rem 0;
    margin: 0;
    backdrop-filter: none;
  }

  .dropdown-menu a {
    font-size: 0.85rem;
    padding: 0.4rem 0;
    text-align: center;
  }

  .dropdown-menu a:hover {
    padding-left: 0;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

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

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 600px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .footer-brand p {
    max-width: 100%;
  }
}