/* ===== SISRom.com — Professional 3D Style ===== */
:root {
  --blue: #1a5fb4;
  --blue-dark: #0d3b7a;
  --blue-light: #3584e4;
  --yellow: #f5c211;
  --yellow-dark: #c9960a;
  --yellow-light: #fce94f;
  --white: #ffffff;
  --black: #1a1a2e;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-600: #6c757d;
  --gray-800: #343a40;
  --shadow-3d: 0 6px 0 rgba(0,0,0,0.18), 0 8px 25px rgba(0,0,0,0.2), inset 0 3px 0 rgba(255,255,255,0.85), inset 0 -4px 0 rgba(0,0,0,0.08), inset 4px 0 0 rgba(255,255,255,0.3), inset -4px 0 0 rgba(0,0,0,0.08);
  --capsule-radius: 0 24px 24px 0;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ===== Marble Background ===== */
.marble-bg {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(26,95,180,0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(245,194,17,0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(26,95,180,0.02) 0%, transparent 50%),
    linear-gradient(135deg, #fefefe 0%, #f5f5f0 25%, #fafafa 50%, #f0f0ec 75%, #fefefe 100%);
  background-size: 100% 100%;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border-bottom: 3px solid var(--blue);
  box-shadow: 0 4px 20px rgba(26,95,180,0.15);
  transition: var(--transition);
  height: 60px;
  background-color: #f5f3ef;
  background-image:
    linear-gradient(135deg, rgba(255,255,255,0.9) 0%, transparent 100%),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 40px,
      rgba(0,0,0,0.04) 40px,
      rgba(0,0,0,0.04) 42px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 60px,
      rgba(0,0,0,0.03) 60px,
      rgba(0,0,0,0.03) 62px
    ),
    radial-gradient(ellipse at 20% 50%, rgba(0,0,0,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 30%, rgba(0,0,0,0.06) 0%, transparent 40%),
    radial-gradient(ellipse at 50% 80%, rgba(0,0,0,0.05) 0%, transparent 45%),
    radial-gradient(ellipse at 60% 20%, rgba(255,255,255,0.7) 0%, transparent 30%),
    linear-gradient(160deg, #f8f7f4 0%, #e8e6e1 25%, #f2f0ec 40%, #ddd9d3 60%, #edebe7 75%, #f5f3ef 100%);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 60px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  position: relative;
  z-index: 1001;
  height: 100px;
  display: flex;
  align-items: center;
}

.logo img {
  height: 100px;
  width: auto;
  transition: var(--transition);
  position: relative;
  top: 20px;
  filter: drop-shadow(0 4px 8px rgba(26,95,180,0.3)) drop-shadow(0 8px 20px rgba(26,95,180,0.15));
}

.logo img:hover {
  transform: scale(1.03);
  filter: drop-shadow(0 6px 12px rgba(26,95,180,0.4)) drop-shadow(0 12px 30px rgba(26,95,180,0.2));
}

/* Capsule Nav */
.nav-capsule {
  display: flex;
  height: 40px;
  margin-left: auto;
  background: var(--blue);
  border-radius: 0 20px 20px 0;
  box-shadow: var(--shadow-3d);
  overflow: hidden;
  transition: var(--transition);
}

.nav-capsule a {
  display: flex;
  align-items: center;
  padding: 0 24px;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  position: relative;
  transition: var(--transition);
  text-transform: uppercase;
}

.nav-capsule a:not(:last-child) {
  border-right: 1px solid rgba(255,255,255,0.15);
}

.nav-capsule a:hover,
.nav-capsule a.active {
  background: var(--yellow);
  color: var(--blue-dark);
  text-shadow: 0 1px 0 rgba(255,255,255,0.3);
}

.nav-capsule a.active {
  box-shadow: inset 0 3px 0 rgba(255,255,255,0.4);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--blue);
  margin: 5px 0;
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== Capsule Titles ===== */
.capsule-title {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  padding: 8px 28px 8px 18px;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: 0 24px 24px 0;
  box-shadow: var(--shadow-3d);
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
  margin-bottom: 1.5rem;
  position: relative;
}

.capsule-title::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--yellow);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--yellow);
}

/* ===== Sections ===== */
section {
  padding: 80px 0;
  position: relative;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Hero ===== */
.hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(26,95,180,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(245,194,17,0.06) 0%, transparent 50%),
    linear-gradient(135deg, #fefefe 0%, #f5f5f0 25%, #fafafa 50%, #f0f0ec 75%, #fefefe 100%);
  padding-top: 80px;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="30" r="0.5" fill="%231a5fb4" opacity="0.1"/><circle cx="80" cy="70" r="0.3" fill="%23f5c211" opacity="0.15"/><circle cx="50" cy="50" r="0.4" fill="%231a5fb4" opacity="0.08"/></svg>');
  background-size: 100px 100px;
  pointer-events: none;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 48px;
  position: relative;
  z-index: 2;
}

.hero-text {
  flex: 1.2;
}

.hero-image {
  flex: 1;
  text-align: center;
}

.hero-image img {
  max-width: 100%;
  border-radius: 20px;
  box-shadow: var(--shadow-3d), 0 20px 60px rgba(26,95,180,0.2);
  transition: var(--transition);
  animation: float 6s ease-in-out infinite;
}

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

.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  color: var(--black);
}

.hero h1 .highlight {
  color: var(--blue);
  text-shadow: 2px 2px 0 var(--yellow), 4px 4px 8px rgba(26,95,180,0.15);
}

.hero p {
  font-size: 1.2rem;
  color: var(--gray-600);
  margin-bottom: 32px;
  max-width: 560px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border: none;
  border-radius: 0 20px 20px 0;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  box-shadow: var(--shadow-3d);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--blue-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 0 rgba(0,0,0,0.15), 0 12px 35px rgba(26,95,180,0.3), inset 0 3px 0 rgba(255,255,255,0.4);
}

.btn-yellow {
  background: var(--yellow);
  color: var(--blue-dark);
}

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

.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 3px solid var(--blue);
  border-radius: 0 20px 20px 0;
  box-shadow: var(--shadow-3d);
}

.btn-outline:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-3px);
}

/* ===== 3D Cards ===== */
.card-3d {
  background: linear-gradient(135deg, rgba(26,95,180,0.5) 0%, rgba(79,195,247,0.4) 50%, rgba(26,95,180,0.5) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.3);
  border-left: 4px solid rgba(255,255,255,0.5);
  border-top: 4px solid rgba(255,255,255,0.5);
  border-right: 4px solid rgba(0,0,0,0.06);
  border-bottom: 4px solid rgba(0,0,0,0.06);
  padding: 36px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(26,95,180,0.2), inset 0 1px 0 rgba(255,255,255,0.5), inset 0 -1px 0 rgba(0,0,0,0.1);
}

.card-3d::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--yellow));
  border-radius: 20px 20px 0 0;
}

.card-3d:hover {
  transform: translateY(-8px) scale(1.02);
  background: linear-gradient(135deg, rgba(26,95,180,0.6) 0%, rgba(79,195,247,0.5) 50%, rgba(26,95,180,0.6) 100%);
  box-shadow: 0 12px 40px rgba(26,95,180,0.3), inset 0 1px 0 rgba(255,255,255,0.6), inset 0 -1px 0 rgba(0,0,0,0.1);
}

.card-3d .icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 4px 0 rgba(0,0,0,0.15), 0 6px 15px rgba(26,95,180,0.3);
}

.card-3d .icon svg {
  width: 32px;
  height: 32px;
  fill: var(--white);
}

.card-3d h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  margin-bottom: 12px;
}

.card-3d p {
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===== Services Grid ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

/* ===== Portfolio Grid ===== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.portfolio-item {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-3d);
  transition: var(--transition);
  position: relative;
}

.portfolio-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: var(--transition);
}

.portfolio-item:hover {
  transform: translateY(-6px) scale(1.02);
}

.portfolio-item:hover img {
  transform: scale(1.08);
}

.portfolio-item .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(26,95,180,0.92));
  padding: 20px;
  color: white;
  transform: translateY(100%);
  transition: var(--transition);
}

.portfolio-item:hover .overlay {
  transform: translateY(0);
}

.portfolio-item .overlay h4 {
  font-weight: 700;
  margin-bottom: 4px;
}

/* ===== Contact Form ===== */
.contact-section {
  background:
    radial-gradient(ellipse at 20% 80%, rgba(26,95,180,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(245,194,17,0.05) 0%, transparent 50%),
    linear-gradient(135deg, #fefefe 0%, #f5f5f0 25%, #fafafa 50%, #f0f0ec 75%, #fefefe 100%);
}

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

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--blue-dark);
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 3px solid var(--gray-200);
  border-radius: 0 14px 14px 0;
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
  background: var(--white);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.06);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.06), 0 0 0 4px rgba(26,95,180,0.15);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.alert {
  padding: 16px 20px;
  border-radius: 0 14px 14px 0;
  margin-bottom: 20px;
  font-weight: 600;
  box-shadow: var(--shadow-3d);
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border-left: 4px solid #28a745;
}

.alert-error {
  background: #f8d7da;
  color: #721c24;
  border-left: 4px solid #dc3545;
}

/* ===== Footer ===== */
.footer {
  background: var(--black);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 24px;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--yellow), var(--blue));
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

.footer h4 {
  color: var(--yellow);
  font-size: 1.1rem;
  margin-bottom: 16px;
  font-weight: 700;
}

.footer a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: var(--transition);
}

.footer a:hover {
  color: var(--yellow);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
}

/* ===== Animations ===== */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.slide-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ===== Scanline Effect ===== */
.sparks-container {
  position: absolute;
  left: 0;
  top: 0;
  width: 300px;
  height: 200px;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

.spark {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: spark-fall linear infinite;
}

.spark-yellow {
  background: #FFD700;
  box-shadow: 0 0 6px #FFD700, 0 0 12px rgba(255,215,0,0.6), 0 0 20px rgba(255,215,0,0.3);
}

.spark-blue {
  background: #4FC3F7;
  box-shadow: 0 0 6px #4FC3F7, 0 0 12px rgba(79,195,247,0.6), 0 0 20px rgba(79,195,247,0.3);
}

@keyframes spark-fall {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  70% {
    opacity: 0.4;
  }
  100% {
    opacity: 0;
    transform: translateY(140px) scale(0.2);
  }
}

.spark:nth-child(1) { left: 60px; top: 50px; animation-duration: 1.2s; animation-delay: 0s; width: 4px; height: 4px; }
.spark:nth-child(2) { left: 75px; top: 45px; animation-duration: 1.5s; animation-delay: 0.3s; width: 3px; height: 3px; }
.spark:nth-child(3) { left: 55px; top: 55px; animation-duration: 1.8s; animation-delay: 0.6s; width: 5px; height: 5px; }
.spark:nth-child(4) { left: 90px; top: 48px; animation-duration: 1.3s; animation-delay: 0.2s; width: 3px; height: 3px; }
.spark:nth-child(5) { left: 70px; top: 52px; animation-duration: 1.6s; animation-delay: 0.8s; width: 4px; height: 4px; }
.spark:nth-child(6) { left: 80px; top: 58px; animation-duration: 2.0s; animation-delay: 0.4s; width: 3px; height: 3px; }
.spark:nth-child(7) { left: 65px; top: 42px; animation-duration: 1.4s; animation-delay: 1.0s; width: 4px; height: 4px; }
.spark:nth-child(8) { left: 100px; top: 50px; animation-duration: 1.7s; animation-delay: 0.7s; width: 3px; height: 3px; }
.spark:nth-child(9) { left: 50px; top: 46px; animation-duration: 1.9s; animation-delay: 0.5s; width: 5px; height: 5px; }
.spark:nth-child(10) { left: 85px; top: 54px; animation-duration: 1.1s; animation-delay: 0.9s; width: 3px; height: 3px; }
.spark:nth-child(11) { left: 95px; top: 40px; animation-duration: 1.6s; animation-delay: 1.2s; width: 4px; height: 4px; }
.spark:nth-child(12) { left: 110px; top: 48px; animation-duration: 2.1s; animation-delay: 0.1s; width: 3px; height: 3px; }
.scanline {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(26,95,180,0.6), rgba(245,194,17,0.9), rgba(26,95,180,0.6), transparent);
  box-shadow: 0 0 20px rgba(245,194,17,0.4), 0 0 40px rgba(26,95,180,0.2);
  animation: scanline 8s ease-in-out infinite;
  z-index: 5;
  pointer-events: none;
}

@keyframes scanline {
  0% { top: 0; opacity: 0; }
  5% { opacity: 1; }
  95% { opacity: 1; }
  100% { top: 100vh; opacity: 0; }
}

section {
  position: relative;
}

section > .container,
.card-3d,
.portfolio-item,
.hero-content,
.hero-image,
.form-group,
.capsule-title {
  position: relative;
  z-index: 10;
}

@keyframes scanline {
  0% { top: 0; opacity: 0; }
  5% { opacity: 1; }
  95% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .hero h1 { font-size: 2.4rem; }
  .hero-content { flex-direction: column; text-align: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-capsule { display: none; }
  .nav-capsule.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--blue);
    border-radius: 0;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  }
  .nav-capsule.open a { padding: 16px 24px; border-right: none !important; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .nav-toggle { display: block; }
  .hero h1 { font-size: 2rem; }
  section { padding: 60px 0; }
  .form-row { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue-dark); }




/* ===== ECG Monitor ===== */
.ecg-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  height: 50px;
  margin: 8px 0 16px;
}

.ecg-monitor {
  width: 100%;
  height: 50px;
  display: block;
}
/* ===== Radar Dots ===== */
.radar-dot {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 4;
  animation: radar-fade 3s ease-out forwards;
}

.radar-dot-blue {
  background: rgba(79,195,247,0.8);
  box-shadow: 0 0 8px rgba(79,195,247,0.6), 0 0 16px rgba(79,195,247,0.3);
}

.radar-dot-yellow {
  background: rgba(255,215,0,0.8);
  box-shadow: 0 0 8px rgba(255,215,0,0.6), 0 0 16px rgba(255,215,0,0.3);
}

@keyframes radar-fade {
  0% { transform: scale(1); opacity: 0.9; }
  30% { transform: scale(1.5); opacity: 0.6; }
  100% { transform: scale(0.2); opacity: 0; }
}

/* ===== Radar Words ===== */
.radar-word {
  position: fixed;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  pointer-events: none;
  z-index: 4;
  animation: radar-word-fade 4s ease-out forwards;
}

.radar-word-blue {
  color: rgba(79,195,247,0.85);
  text-shadow: 0 0 8px rgba(79,195,247,0.5), 0 0 16px rgba(79,195,247,0.2);
}

.radar-word-yellow {
  color: rgba(255,215,0,0.85);
  text-shadow: 0 0 8px rgba(255,215,0,0.5), 0 0 16px rgba(255,215,0,0.2);
}

@keyframes radar-word-fade {
  0% { opacity: 0; transform: scale(0.8) rotate(var(--rot)); }
  10% { opacity: 0.9; transform: scale(1.1) rotate(var(--rot)); }
  40% { opacity: 0.7; transform: scale(1) rotate(var(--rot)); }
  100% { opacity: 0; transform: scale(0.5) rotate(var(--rot)); }
}
