/* === Custom CSS for Singer Berger Press And Co === */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: #020617;
  color: #e2e8f0;
}

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

img {
  max-width: 100%;
  height: auto;
}

/* --- Geometric Decorative Shapes --- */
.geo-circle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.4) 0%, transparent 70%);
  pointer-events: none;
}

.geo-circle--lg {
  width: 600px;
  height: 600px;
}

.geo-circle--md {
  width: 300px;
  height: 300px;
}

.geo-circle--sm {
  width: 120px;
  height: 120px;
}

.geo-diamond {
  position: absolute;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.3), rgba(13, 148, 136, 0.1));
  border: 1px solid rgba(20, 184, 166, 0.2);
  transform: rotate(45deg);
  pointer-events: none;
}

.geo-diamond--lg {
  width: 160px;
  height: 160px;
}

.geo-diamond--sm {
  width: 80px;
  height: 80px;
}

/* --- Header --- */
#main-header {
  background: rgba(2, 6, 23, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.06);
}

#main-header.scrolled {
  background: rgba(2, 6, 23, 0.92);
  border-bottom-color: rgba(20, 184, 166, 0.1);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: #2dd4bf;
  transition: width 0.25s ease;
}

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

/* --- Mobile Menu --- */
.mobile-menu-btn {
  transition: background 0.2s ease;
}

.mobile-menu-btn[aria-expanded="true"] .menu-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn[aria-expanded="true"] .menu-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn[aria-expanded="true"] .menu-line:nth-child(3) {
  width: 20px;
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav-link {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.06);
}

.mobile-nav-link:last-child {
  border-bottom: none;
}

/* --- Buttons --- */
.btn-teal {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(13, 148, 136, 0.3);
}

.btn-teal:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(13, 148, 136, 0.45);
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  background: transparent;
  color: #e2e8f0;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.9375rem;
  border-radius: 10px;
  border: 1.5px solid rgba(148, 163, 184, 0.2);
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-outline:hover {
  border-color: rgba(45, 212, 191, 0.5);
  color: #2dd4bf;
  background: rgba(20, 184, 166, 0.06);
}

.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: #ffffff;
  color: #0f172a;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  background: #f8fafc;
}

.btn-outline-light {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: transparent;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.9375rem;
  border-radius: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-outline-light:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.08);
}

/* --- Service Cards --- */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0d9488, #2dd4bf, #5eead4);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover::before {
  opacity: 1;
}

/* --- Why Cards --- */
.why-card {
  position: relative;
}

.why-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #2dd4bf, transparent);
  transition: width 0.3s ease;
}

.why-card:hover::after {
  width: 80%;
}

/* --- Input Fields --- */
.input-field {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: #e2e8f0;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  transition: all 0.2s ease;
  outline: none;
  width: 100%;
}

.input-field::placeholder {
  color: #64748b;
}

.input-field:hover {
  border-color: rgba(148, 163, 184, 0.3);
}

.input-field:focus {
  border-color: rgba(45, 212, 191, 0.5);
  background: rgba(15, 23, 42, 0.8);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.input-field option {
  background: #1e293b;
  color: #e2e8f0;
}

/* --- Hero Animations --- */
.hero-left {
  opacity: 0;
  transform: translateY(30px);
  animation: heroSlideUp 0.8s ease forwards;
}

.hero-right {
  opacity: 0;
  transform: translateY(30px);
  animation: heroSlideUp 0.8s ease 0.15s forwards;
}

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

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --- Form Error States --- */
.input-field.error {
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* --- Selection --- */
::selection {
  background: rgba(20, 184, 166, 0.3);
  color: #f0fdfa;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #020617;
}

::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .geo-circle--lg {
    width: 350px;
    height: 350px;
  }

  .geo-circle--md {
    width: 180px;
    height: 180px;
  }

  .geo-diamond--lg {
    width: 80px;
    height: 80px;
  }

  .geo-diamond--sm {
    width: 50px;
    height: 50px;
  }
}
