/* Protologic – Corporate IT Website */

:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-card: #1a2234;
  --bg-card-hover: #1f2a40;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #3b82f6;
  --accent-light: #60a5fa;
  --accent-glow: rgba(59, 130, 246, 0.25);
  --gradient-hero: linear-gradient(135deg, #0a0e17 0%, #1e3a5f 50%, #0a0e17 100%);
  --gradient-card-1: linear-gradient(135deg, #6366f1, #8b5cf6);
  --gradient-card-2: linear-gradient(135deg, #3b82f6, #06b6d4);
  --gradient-card-3: linear-gradient(135deg, #f59e0b, #ef4444);
  --gradient-card-4: linear-gradient(135deg, #10b981, #3b82f6);
  --radius: 12px;
  --radius-lg: 20px;
  --header-height: 72px;
  --max-width: 1200px;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

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

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(10, 14, 23, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 1000;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-card-2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--transition);
  position: relative;
}

.nav a:hover,
.nav a.active {
  color: var(--text-primary);
}

.nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, #060a12 0%, #0f1a2e 40%, #0a1628 70%, #060a12 100%);
  padding-top: var(--header-height);
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.07) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 75%);
  animation: grid-drift 20s linear infinite;
}

@keyframes grid-drift {
  0% { transform: perspective(500px) rotateX(60deg) translateY(0); }
  100% { transform: perspective(500px) rotateX(60deg) translateY(60px); }
}

.hero-circuit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
}

.circuit-line {
  fill: none;
  stroke: url(#circuit-grad);
  stroke-width: 1.5;
  stroke-dasharray: 8 6;
  animation: circuit-flow 4s linear infinite;
}

.circuit-line:nth-child(2) { animation-delay: -1s; }
.circuit-line:nth-child(3) { animation-delay: -2s; }
.circuit-line:nth-child(4) { animation-delay: -3s; }
.circuit-line:nth-child(5) { animation-delay: -0.5s; }

@keyframes circuit-flow {
  to { stroke-dashoffset: -28; }
}

.circuit-node {
  fill: var(--accent-light);
  filter: drop-shadow(0 0 6px var(--accent));
  animation: node-pulse 2s ease-in-out infinite;
}

.circuit-node:nth-child(odd) { animation-delay: -1s; }

@keyframes node-pulse {
  0%, 100% { opacity: 0.4; r: 3; }
  50% { opacity: 1; r: 5; }
}

.hero-orbs {
  position: absolute;
  inset: 0;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: orb-float 8s ease-in-out infinite;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: rgba(59, 130, 246, 0.15);
  top: 10%;
  right: 5%;
}

.orb-2 {
  width: 300px;
  height: 300px;
  background: rgba(6, 182, 212, 0.12);
  bottom: 15%;
  left: 10%;
  animation-delay: -3s;
}

.orb-3 {
  width: 250px;
  height: 250px;
  background: rgba(99, 102, 241, 0.1);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -5s;
}

@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -30px) scale(1.05); }
  66% { transform: translate(-15px, 20px) scale(0.95); }
}

.hero-code {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-code span {
  position: absolute;
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
  color: rgba(96, 165, 250, 0.15);
  font-weight: 600;
  letter-spacing: 0.1em;
  animation: code-float 12s linear infinite;
  user-select: none;
}

.hero-code span:nth-child(1)  { top: 12%; left: 8%;  animation-duration: 14s; }
.hero-code span:nth-child(2)  { top: 25%; left: 85%; animation-duration: 11s; animation-delay: -2s; }
.hero-code span:nth-child(3)  { top: 70%; left: 12%; animation-duration: 16s; animation-delay: -4s; }
.hero-code span:nth-child(4)  { top: 18%; left: 55%; animation-duration: 13s; animation-delay: -1s; }
.hero-code span:nth-child(5)  { top: 55%; left: 78%; animation-duration: 15s; animation-delay: -6s; }
.hero-code span:nth-child(6)  { top: 80%; left: 45%; animation-duration: 12s; animation-delay: -3s; }
.hero-code span:nth-child(7)  { top: 40%; left: 5%;  animation-duration: 17s; animation-delay: -7s; }
.hero-code span:nth-child(8)  { top: 65%; left: 92%; animation-duration: 10s; animation-delay: -5s; }
.hero-code span:nth-child(9)  { top: 8%;  left: 72%; animation-duration: 14s; animation-delay: -8s; }
.hero-code span:nth-child(10) { top: 88%; left: 25%; animation-duration: 11s; animation-delay: -2s; }
.hero-code span:nth-child(11) { top: 35%; left: 38%; animation-duration: 16s; animation-delay: -9s; }
.hero-code span:nth-child(12) { top: 48%; left: 65%; animation-duration: 13s; animation-delay: -4s; }

@keyframes code-float {
  0%, 100% { opacity: 0.08; transform: translateY(0); }
  50% { opacity: 0.22; transform: translateY(-12px); }
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, transparent 0%, var(--bg-primary) 100%);
  pointer-events: none;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px 32px;
}

.hero-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.check-icon {
  width: 22px;
  height: 22px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.check-icon svg {
  width: 12px;
  height: 12px;
}

/* Sections */
section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* Service Cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.service-card:nth-child(1)::before { background: var(--gradient-card-1); }
.service-card:nth-child(2)::before { background: var(--gradient-card-2); }
.service-card:nth-child(3)::before { background: var(--gradient-card-3); }
.service-card:nth-child(4)::before { background: var(--gradient-card-4); }

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.3);
}

.service-card .number {
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.08);
  position: absolute;
  top: 16px;
  right: 24px;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Detailed Services */
.services-detail {
  background: var(--bg-secondary);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 48px;
}

.detail-block h3 {
  font-size: 1.35rem;
  margin-bottom: 20px;
  color: var(--accent-light);
}

.detail-block ul li {
  color: var(--text-secondary);
  padding: 8px 0;
  padding-left: 20px;
  position: relative;
  font-size: 0.95rem;
}

.detail-block ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* Testimonial */
.testimonial {
  background: var(--bg-primary);
}

.testimonial-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.testimonial-image {
  aspect-ratio: 4/5;
  background: var(--gradient-card-2);
  display: flex;
  align-items: flex-end;
  padding: 32px;
  min-height: 400px;
}

.testimonial-image .person {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  padding: 16px 20px;
  border-radius: var(--radius);
}

.testimonial-image .person h4 {
  font-size: 1.1rem;
}

.testimonial-image .person span {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.testimonial-content {
  padding: 48px 48px 48px 0;
}

.testimonial-content h3 {
  font-size: 1.75rem;
  margin-bottom: 24px;
  line-height: 1.3;
}

.testimonial-content p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 0.95rem;
  line-height: 1.8;
}

/* FAQ */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--bg-card);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: color var(--transition);
  font-family: inherit;
}

.faq-question:hover {
  color: var(--accent-light);
}

.faq-question .icon {
  font-size: 1.25rem;
  color: var(--accent);
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.open .faq-question .icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

/* CTA Banner */
.cta-banner {
  text-align: center;
  padding: 80px 0;
  background: var(--gradient-hero);
}

.cta-banner h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 32px;
  line-height: 1.4;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  font-family: inherit;
}

.btn:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  background: var(--accent);
  color: white;
}

/* Footer */
.footer {
  background: var(--bg-secondary);
  padding: 60px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-content {
  text-align: center;
}

.footer .logo {
  justify-content: center;
  margin-bottom: 16px;
}

.footer-tagline {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 32px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--transition);
}

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

.footer-copy {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Page Hero (inner pages) */
.page-hero {
  padding: calc(var(--header-height) + 80px) 0 60px;
  text-align: center;
  background: var(--gradient-hero);
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
}

/* Vacancies */
.vacancy-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.vacancy-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: border-color var(--transition);
}

.vacancy-card:hover {
  border-color: rgba(59, 130, 246, 0.3);
}

.vacancy-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.vacancy-card > p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.vacancy-card ul {
  margin-bottom: 24px;
}

.vacancy-card ul li {
  color: var(--text-secondary);
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
  font-size: 0.9rem;
}

.vacancy-card ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* Contact Form */
.contact-section {
  padding: 60px 0 100px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-info h2 {
  font-size: 1.75rem;
  margin-bottom: 16px;
}

.contact-info p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.7;
}

.contact-details li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.contact-details .detail-icon {
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

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

.form-success {
  display: none;
  text-align: center;
  padding: 40px;
  color: var(--accent-light);
}

.contact-form.submitted .form-fields {
  display: none;
}

.contact-form.submitted .form-success {
  display: block;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transform: translateY(-120%);
    opacity: 0;
    transition: transform var(--transition), opacity var(--transition);
    pointer-events: none;
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .hero-features {
    flex-direction: column;
    align-items: center;
  }

  .testimonial-card {
    grid-template-columns: 1fr;
  }

  .testimonial-content {
    padding: 32px;
  }

  .testimonial-image {
    min-height: 280px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  section {
    padding: 64px 0;
  }
}
