* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #050d26 0%, #0c1f4d 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  padding: 60px 20px 120px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Nature-inspired Background Animation */
.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.floating-element {
  position: absolute;
  opacity: 0.6;
  animation: float 15s infinite linear;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

@keyframes float {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(50px, 50px) rotate(180deg); }
  100% { transform: translate(0, 0) rotate(360deg); }
}

.logo {
  width: 180px;
  margin-bottom: 30px;
  filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.2));
  transition: transform 0.3s ease;
}
.logo:hover {
  transform: scale(1.05) rotate(-2deg);
}

h1 {
  font-size: 2.4em;
  margin-bottom: 50px;
  background: linear-gradient(90deg, #00f3ff, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textGlow 3s infinite alternate;
}

@keyframes textGlow {
  from { text-shadow: 0 0 5px rgba(0, 243, 255, 0.3); }
  to { text-shadow: 0 0 15px rgba(0, 243, 255, 0.6); }
}

.button-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: 600px;
  width: 100%;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 14px;
  font-size: 1em;
  cursor: pointer;
  background-size: 200% 200%;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  z-index: 1;
}

.btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    rgba(255,255,255,0) 45%,
    rgba(255,255,255,0.3) 50%,
    rgba(255,255,255,0) 55%
  );
  transform: rotate(30deg);
  animation: shine 3s infinite;
  z-index: -1;
}

@keyframes shine {
  0% { transform: translateX(-100%) rotate(30deg); }
  100% { transform: translateX(100%) rotate(30deg); }
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.btn-client {
  grid-column: span 2;
  background: linear-gradient(to right, #00c6ff, #007bff);
}
.btn-graphics { background: linear-gradient(to right, #28A745, #7FFFD4); }
.btn-leads { background: linear-gradient(to right, #FFC107, #FF9800); }
.btn-video { background: linear-gradient(to right, #17A2B8, #00FFFF); }
.btn-web { background: linear-gradient(to right, #6F42C1, #BA68C8); }
.btn-content { background: linear-gradient(to right, #4C1D95, #6D28D9); }
.btn-seo { background: linear-gradient(to right, #4ECDC4, #88DAC7); }
.btn-sales { background: linear-gradient(to right, #DC2626, #EF4444); }
.btn-onsite { background: linear-gradient(to right, #991B1B, #B91C1C); }
.btn-interview {
  grid-column: span 2;
  background: linear-gradient(to right, #ff416c, #ff4b2b);
}

/* Quote Styles */
.quote {
  font-style: italic;
  margin: 50px 0 30px;
  font-size: 1.8em;
  font-weight: bold;
  color: #ffffff;
  padding: 25px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  line-height: 1.4;
}

.quote.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Quote Action Buttons */
.quote-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.quote-btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
}

.quote-btn-like {
  background: linear-gradient(to right, #1877F2, #0A5AC2);
  color: white;
}

.quote-btn-join {
  background: linear-gradient(to right, #25D366, #128C7E);
  color: white;
}

.quote-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Working Hours */
.working-hours {
  margin-bottom: 20px;
  font-size: 1.1em;
  background: rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 10px;
  color: #add8e6;
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  position: relative;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(0, 243, 255, 0.3);
}

.working-hours div {
  flex: 1;
  min-width: 240px;
  text-align: center;
}
.working-hours span {
  display: block;
  font-weight: bold;
  color: #00c0ff;
  text-shadow: 0 0 10px rgba(0, 192, 255, 0.5);
}

/* Visitor Counter */
.visitor-counter {
  margin-bottom: 40px;
  font-size: 1.1em;
  background: rgba(0, 243, 255, 0.1);
  padding: 15px;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(0, 243, 255, 0.3);
}

.visitor-counter i {
  color: #00f3ff;
  font-size: 1.3em;
}

.visitor-counter span {
  color: #add8e6;
}

#visitorCount {
  font-weight: bold;
  color: #00f3ff;
  text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
  min-width: 60px;
  display: inline-block;
  text-align: right;
}

/* Enhanced Footer */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(12, 31, 77, 0.9);
  padding: 12px 0;
  color: white;
  font-size: 0.9em;
  display: flex;
  flex-direction: column;
  align-items: center;
  backdrop-filter: blur(5px);
  z-index: 10;
  border-top: 1px solid rgba(0, 243, 255, 0.2);
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-bottom: 8px;
}

.social-icons a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255,255,255,0.2);
}

.social-icons a::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    rgba(255,255,255,0) 45%,
    rgba(255,255,255,0.4) 50%,
    rgba(255,255,255,0) 55%
  );
  transform: rotate(30deg);
  transition: all 0.4s ease;
}

.social-icons a:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 6px 15px rgba(0,0,0,0.4);
  background: rgba(255,255,255,0.2);
}

.social-icons a:hover::before {
  animation: shine 1s infinite;
}

.social-icons i {
  color: white;
  font-size: 18px;
  z-index: 2;
}

/* Admin Button */
.admin-btn {
  position: absolute;
  top: 25px;
  right: 20px;
  background: linear-gradient(to right, #ff7e5f, #feb47b);
  border: none;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 0.8em;
  font-weight: bold;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 126, 95, 0.3);
  z-index: 10;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255,255,255,0.2);
}

.admin-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(255, 126, 95, 0.5);
  background: linear-gradient(to right, #ff8a6a, #ffc095);
}

/* Popup Styles */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.popup-container {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  width: 90%;
  max-width: 400px;
  padding: 30px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transform: translateY(20px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.popup-overlay.active .popup-container {
  transform: translateY(0) scale(1);
}

.popup-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, #00c6ff, #007bff, #00c6ff);
  background-size: 200% 200%;
  animation: gradientFlow 3s ease infinite;
}

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.popup-title {
  font-size: 1.5em;
  margin-bottom: 20px;
  color: #0c1f4d;
  text-align: center;
  font-weight: bold;
}

.popup-input {
  width: 100%;
  padding: 15px;
  margin-bottom: 25px;
  border: none;
  border-radius: 10px;
  font-size: 1em;
  transition: all 0.3s ease;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  border-left: 4px solid #00c6ff;
}

.popup-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 198, 255, 0.3);
  transform: translateY(-2px);
}

.popup-buttons {
  display: flex;
  gap: 10px;
}

.popup-btn {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.popup-btn-confirm {
  background: linear-gradient(to right, #00c6ff, #007bff);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 198, 255, 0.3);
}

.popup-btn-cancel {
  background: rgba(0, 0, 0, 0.05);
  color: #333;
}

.popup-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.popup-btn:active {
  transform: translateY(0);
}

/* Quote Popup */
.quote-popup .popup-container {
  max-width: 500px;
  text-align: center;
  background: rgba(12, 31, 77, 0.95);
  color: white;
}

.quote-popup .popup-title {
  color: #00f3ff;
  margin-bottom: 15px;
}

.quote-popup .popup-content {
  font-size: 1.4em;
  line-height: 1.5;
  margin-bottom: 25px;
  font-style: italic;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  padding: 0 10px;
}

.quote-popup .popup-buttons {
  justify-content: center;
}

.quote-popup .popup-btn-confirm {
  background: linear-gradient(to right, #00f3ff, #00a8ff);
}

/* Error Popup */
.error-popup .popup-container {
  background: rgba(255, 77, 77, 0.95);
  color: white;
}

.error-popup .popup-title {
  color: white;
}

.error-popup .popup-content {
  margin-bottom: 20px;
}

/* Office Hours Popup */
.office-hours-popup .popup-container {
  max-width: 500px;
  text-align: center;
  background: rgba(12, 31, 77, 0.95);
  color: white;
}

.office-hours-popup .popup-title {
  color: #FF9800;
  margin-bottom: 15px;
}

.office-hours-popup .popup-content {
  font-size: 1.2em;
  line-height: 1.5;
  margin-bottom: 25px;
  padding: 0 10px;
}

.office-hours-popup .popup-buttons {
  justify-content: center;
}

.office-hours-popup .popup-btn-confirm {
  background: linear-gradient(to right, #FF9800, #FF5722);
}

@media screen and (max-width: 600px) {
  body {
    padding-top: 80px;
  }
  
  .admin-btn {
    top: 20px;
    right: 15px;
    padding: 10px 15px;
  }
  
  .btn-client, .btn-interview {
    grid-column: span 1;
  }
  
  .working-hours {
    gap: 20px;
  }
  
  .popup-container {
    padding: 20px;
  }
  
  .quote-popup .popup-content {
    font-size: 1.2em;
  }
  
  .quote {
    font-size: 1.5em;
    padding: 20px;
  }
}