@import url('https://fonts.googleapis.com/css?family=Poppins:400,500,600,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap');

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

body {
  font-family: 'Poppins', 'Cairo', sans-serif;
  background: linear-gradient(135deg, #faf8f5 0%, #f3ede5 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.container {
  width: 100%;
  max-width: 600px;
  text-align: center;
  animation: fadeIn 0.6s ease-out;
}

/* Header section with brand colors */
.header {
  margin-bottom: 40px;
  animation: slideDown 0.8s ease-out;
}

.logo-section {
  margin-bottom: 20px;
  position: relative;
}

.logo {
  height: 200px;
  width: auto;
  max-width: 100%;
  border-radius: 15px;
  /* Updated to Salatrade brown shadow */
  box-shadow: 0 8px 20px rgba(101, 67, 33, 0.15);
  animation: float 3s ease-in-out infinite, rotateSlight 4s ease-in-out infinite;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo:hover {
  transform: scale(1.08) translateY(-5px);
  /* Brown hover shadow */
  box-shadow: 0 15px 35px rgba(101, 67, 33, 0.25);
  animation-play-state: paused;
}

/* Brand colors updated to Salatrade brown */
.brand-name {
  font-size: 36px;
  font-weight: 700;
  color: #654321;
  margin-top: 15px;
  letter-spacing: 1px;
  animation: textGlow 2s ease-in-out infinite;
}

.tagline {
  font-size: 14px;
  color: #4a3728;
  font-weight: 400;
  margin-top: 10px;
  animation: fadeIn 1s ease-out 0.3s both;
}

/* Social grid layout */
.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 40px;
  animation: slideUp 0.8s ease-out;
}

/* Updated social links with brown theme */
.social-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  background: #fff;
  border-radius: 12px;
  text-decoration: none;
  /* Brown shadow for links */
  box-shadow: 0 4px 12px rgba(101, 67, 33, 0.1);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
  position: relative;
  border: 2px solid rgba(101, 67, 33, 0.1);
  animation: slideUpStagger 0.6s ease-out both;
}

.social-link:nth-child(1) { animation-delay: 0.1s; }
.social-link:nth-child(2) { animation-delay: 0.2s; }
.social-link:nth-child(3) { animation-delay: 0.3s; }
.social-link:nth-child(4) { animation-delay: 0.4s; }
.social-link:nth-child(5) { animation-delay: 0.5s; }
.social-link:nth-child(6) { animation-delay: 0.6s; }
.social-link:nth-child(7) { animation-delay: 0.7s; }
.social-link:nth-child(8) { animation-delay: 0.8s; }

.social-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(101, 67, 33, 0.05);
  transition: left 0.4s ease;
  z-index: -1;
}

.social-link:hover::before {
  left: 0;
}

.social-link:hover {
  transform: translateY(-5px) scale(1.02);
  /* Enhanced brown shadow on hover */
  box-shadow: 0 12px 30px rgba(101, 67, 33, 0.2);
  border-color: rgba(101, 67, 33, 0.3);
}

.icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  /* Salatrade brown primary color */
 /* background: #654321; */
  background:#BE6456;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
}

.social-link i {
  font-size: 22px;
  color: #fff;
  transition: all 0.3s ease;
}

.label {
  font-size: 16px;
  font-weight: 600;
  color: #4a3728;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.social-link:hover .icon-wrapper {
  background: #7d5a3d;
  animation: iconBounce 0.6s ease-out;
  transform: scale(1.15) rotate(5deg);
}

.social-link:hover .label {
  color: #654321;
  transform: translateX(-5px);
}

.social-link:hover i {
  animation: iconRotate 0.6s ease-out;
}

/* Footer */
.footer {
  color: #654321;
  font-size: 12px;
  margin-top: 20px;
  animation: fadeIn 1s ease-out 0.5s both;
  font-weight: 500;
}

/* Enhanced animations library with new effects */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUpStagger {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes rotateSlight {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(1deg);
  }
  75% {
    transform: rotate(-1deg);
  }
}

@keyframes textGlow {
  0%, 100% {
    text-shadow: 0 0 5px rgba(101, 67, 33, 0.2);
  }
  50% {
    text-shadow: 0 0 20px rgba(101, 67, 33, 0.4);
  }
}

@keyframes iconBounce {
  0% {
    transform: scale(1.15) translateY(0);
  }
  50% {
    transform: scale(1.15) translateY(-8px);
  }
  100% {
    transform: scale(1.15) translateY(0);
  }
}

@keyframes iconRotate {
  0% {
    transform: rotateY(0deg);
  }
  50% {
    transform: rotateY(15deg);
  }
  100% {
    transform: rotateY(0deg);
  }
}

/* Responsive design for tablets */
@media (max-width: 768px) {
  .social-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
  }

  .logo {
    height: 150px;
  }

  .tagline {
    font-size: 13px;
  }

  .social-link {
    padding: 12px 15px;
    gap: 10px;
  }

  .icon-wrapper {
    width: 45px;
    height: 45px;
  }

  .social-link i {
    font-size: 18px;
  }

  .label {
    font-size: 14px;
  }
}

/* Responsive design for mobile */
@media (max-width: 480px) {
  .container {
    max-width: 100%;
  }

  .header {
    margin-bottom: 30px;
  }

  .social-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 30px;
  }

  .tagline {
    font-size: 12px;
  }

  .social-link {
    padding: 12px 16px;
    justify-content: flex-start;
  }

  .icon-wrapper {
    width: 40px;
    height: 40px;
  }

  .social-link i {
    font-size: 16px;
  }

  .label {
    font-size: 13px;
  }

  .logo {
    height: 120px;
  }

  .footer {
    font-size: 11px;
  }
}
