/* TopLarge Website - Custom Styles */

:root {
  --primary: #1e40af;
  --primary-dark: #1e3a8a;
  --primary-light: #3b82f6;
  --secondary: #6366f1;
  --accent: #8b5cf6;
  --gradient-start: #1e40af;
  --gradient-mid: #3b82f6;
  --gradient-end: #6366f1;
  --dark: #0f172a;
  --dark-soft: #1e293b;
  --light: #f8fafc;
  --light-soft: #f1f5f9;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", "Kanit", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ========== LOADING ANIMATION ========== */
.loader-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader-container.hide {
  opacity: 0;
  visibility: hidden;
}

.loader {
  position: relative;
  width: 120px;
  height: 120px;
}

.loader-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 3px solid transparent;
  border-radius: 50%;
  animation: spin 2s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

.loader-ring:nth-child(1) {
  border-top: 3px solid #fff;
  animation-delay: 0s;
}

.loader-ring:nth-child(2) {
  border-right: 3px solid #fbbf24;
  animation-delay: 0.2s;
  animation-direction: reverse;
}

.loader-ring:nth-child(3) {
  border-bottom: 3px solid #06b6d4;
  animation-delay: 0.4s;
}

.loader-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-weight: 800;
  font-size: 1.5rem;
  font-family: "Space Grotesk", sans-serif;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.7;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

/* ========== SCROLL INDICATOR ========== */
.scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 9996;
  transition: width 0.1s ease;
}

/* ========== SCROLL DOWN INDICATOR ========== */
.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  animation: bounce 2s infinite;
  cursor: pointer;
  transition: all 0.3s ease;
}

.scroll-down:hover {
  color: #fbbf24;
  transform: translateX(-50%) scale(1.1);
}

.scroll-down i {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  display: block;
}

.scroll-down span {
  font-size: 0.9rem;
  font-weight: 500;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* ========== NAVBAR ========== */
.navbar-custom {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(15px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.navbar-custom.scrolled {
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.navbar-brand img {
  height: 45px;
  transition: transform 0.3s ease;
}

.navbar-brand img:hover {
  transform: scale(1.05);
}

.nav-link {
  font-weight: 500;
  color: var(--dark) !important;
  margin: 0 0.5rem;
  position: relative;
  transition: all 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 50%;
  background: var(--primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover {
  color: var(--primary) !important;
}

.nav-link:hover::after {
  width: 100%;
}

.btn-primary-custom {
  background: linear-gradient(
    135deg,
    var(--primary),
    var(--primary-dark)
  );
  border: none;
  border-radius: 25px;
  padding: 0.5rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(30, 92, 179, 0.3);
}

/* ========== HERO SECTION ========== */
.hero-section {
  background: linear-gradient(
    135deg,
    var(--gradient-start) 0%,
    var(--gradient-mid) 50%,
    var(--gradient-end) 100%
  );
  height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(99, 102, 241, 0.2) 0%, transparent 50%);
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.typing-text {
  border-right: 3px solid #ffc107;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50% {
    border-color: #ffc107;
  }
  51%, 100% {
    border-color: transparent;
  }
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  font-weight: 300;
}

.feature-badge {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 25px;
  padding: 0.5rem 1rem;
  margin: 0.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  display: inline-block;
  transition: all 0.3s ease;
}

.feature-badge:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* ========== GRADIENT BACKGROUNDS ========== */
.bg-gradient-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.bg-gradient-soft {
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
}

.bg-gradient-dark {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-soft) 100%);
}

.bg-glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ========== SECTION BACKGROUNDS ========== */
.section-white {
  background: var(--white);
}

.section-light {
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

.section-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--white);
}

.section-dark {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-soft) 100%);
  color: var(--white);
}

/* ========== POPULAR SYSTEMS SECTION ========== */
.system-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 2.5rem;
  height: 100%;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.system-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}

.system-card:hover {
  transform: translateY(-8px) scale(1.02);
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.3);
}

.system-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: #fbbf24;
  margin-bottom: 1.5rem;
  transition: all 0.4s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.system-card:hover .system-icon {
  transform: scale(1.1);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.2));
  box-shadow: 0 8px 25px rgba(251, 191, 36, 0.3);
}

.system-list {
  list-style: none;
  padding: 0;
}

.system-list li {
  padding: 0.5rem 0;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  padding-left: 1.5rem;
}

.system-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #ffc107;
  font-weight: bold;
}

/* ========== SERVICE CARDS ========== */
.service-card {
  background: var(--white);
  border-radius: 24px;
  padding: 2.5rem;
  height: 100%;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.service-card:hover {
  transform: translateY(-12px);
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(30, 64, 175, 0.1);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: white;
  margin-bottom: 1.5rem;
  transition: all 0.4s ease;
  box-shadow: 0 8px 25px rgba(30, 64, 175, 0.3);
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 35px rgba(30, 64, 175, 0.4);
}

/* ========== STATS SECTION ========== */
.stats-section {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-soft) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 25% 25%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
}

.stats-section .container {
  position: relative;
  z-index: 2;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}

.stat-label {
  font-size: 1.1rem;
  opacity: 0.9;
  color: var(--gray-300);
}

/* ========== CONTACT SECTION ========== */
.contact-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(139, 92, 246, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(99, 102, 241, 0.2) 0%, transparent 50%);
}

.contact-section .container {
  position: relative;
  z-index: 2;
}

.contact-item {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 2.5rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.contact-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}

.contact-item:hover {
  transform: translateY(-8px) scale(1.02);
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.3);
}

.contact-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: #fbbf24;
  transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
  transform: scale(1.1);
  color: #f59e0b;
}

/* ========== FLOATING SHAPES ========== */
.floating-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  animation: floatUp 15s infinite linear;
}

.shape:nth-child(1) {
  width: 80px;
  height: 80px;
  left: 10%;
  animation-duration: 12s;
}

.shape:nth-child(2) {
  width: 60px;
  height: 60px;
  left: 70%;
  animation-duration: 18s;
  animation-delay: 2s;
}

.shape:nth-child(3) {
  width: 100px;
  height: 100px;
  left: 85%;
  animation-duration: 20s;
  animation-delay: 4s;
}

@keyframes floatUp {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

/* ========== BUTTON EFFECTS ========== */
.btn-glow {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-glow::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: left 0.5s;
}

.btn-glow:hover::before {
  left: 100%;
}

.btn-primary-custom {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  border-radius: 50px;
  padding: 0.75rem 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(30, 64, 175, 0.4);
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.btn-warning {
  background: linear-gradient(135deg, #f59e0b, #fbbf24) !important;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-warning:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
  background: linear-gradient(135deg, #d97706, #f59e0b) !important;
}

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

/* ========== BACKDROP BLUR UTILITY ========== */
.backdrop-blur {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ========== MOBILE RESPONSIVE ========== */
@media (max-width: 768px) {
  .hero-section {
    height: 90vh;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }

  .service-card:hover {
    transform: translateY(-5px);
  }

  .contact-item:hover {
    transform: translateY(-3px);
  }

  .navbar-brand img {
    height: 40px;
  }

  .system-card {
    margin-bottom: 1rem;
  }

  .system-card:hover {
    transform: translateY(-3px);
  }
  
  .scroll-down {
    bottom: 20px;
  }
  
  .scroll-down span {
    font-size: 0.8rem;
  }
}

/* ========== SCROLL REVEAL ========== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-up.active {
  opacity: 1;
  transform: translateY(0);
}

/* ========== FOOTER ========== */
.footer-section {
  background: linear-gradient(135deg, var(--gray-900) 0%, var(--dark) 100%);
  color: var(--gray-300);
  position: relative;
}

.footer-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

/* ========== FLOATING SOCIAL MENU ========== */
.floating-social {
  position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: 9998;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.social-toggle {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #00d4ff, #0099cc, #0077aa);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
  box-shadow: 
    0 8px 25px rgba(0, 212, 255, 0.4),
    0 0 0 0 rgba(0, 212, 255, 0.3);
  transition: all 0.3s ease;
  border: 3px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  position: relative;
  animation: socialPulse 3s infinite;
}

.social-toggle::before {
  content: "ติดต่อเรา";
  position: absolute;
  right: 80px;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #1e3a8a, #1e40af);
  color: white;
  padding: 10px 16px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
  backdrop-filter: blur(10px);
  font-family: "Kanit", sans-serif;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-toggle:hover::before {
  opacity: 1;
  visibility: visible;
  right: 85px;
}

.social-toggle:hover {
  transform: scale(1.15);
  box-shadow: 
    0 12px 35px rgba(0, 212, 255, 0.6),
    0 0 0 10px rgba(0, 212, 255, 0.1);
  background: linear-gradient(135deg, #00b8e6, #0088cc, #006699);
  border-color: rgba(255, 255, 255, 0.5);
  animation: none;
}

.social-toggle.active {
  background: linear-gradient(135deg, #ff6b35, #ff8c42, #ffa726);
  transform: rotate(45deg) scale(1.1);
  color: white;
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 
    0 12px 35px rgba(255, 107, 53, 0.5),
    0 0 0 8px rgba(255, 107, 53, 0.1);
  animation: none;
}

.social-toggle.active::before {
  content: "ปิดเมนู";
  opacity: 1;
  visibility: visible;
  background: linear-gradient(135deg, #c2410c, #ea580c);
}

.social-menu {
  position: absolute;
  bottom: 90px;
  right: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.8);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.social-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.social-item {
  width: 55px;
  height: 55px;
  margin-bottom: 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.4rem;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(15px);
  border: 3px solid rgba(255, 255, 255, 0.4);
  position: relative;
  overflow: hidden;
  margin-left: auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.social-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: inherit;
  border-radius: 50%;
  opacity: 0.9;
  z-index: -1;
}

/* Social Platform Colors */
.social-item.facebook {
  background: linear-gradient(135deg, #1877f2, #42a5f5);
}

.social-item.line {
  background: linear-gradient(135deg, #00c300, #00b900);
}

.social-item.phone {
  background: linear-gradient(135deg, #34d399, #10b981);
}

.social-item.email {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.social-item.youtube {
  background: linear-gradient(135deg, #ff0000, #ff4444);
}

.social-item.instagram {
  background: linear-gradient(135deg, #e4405f, #fd1d1d, #fcb045);
}

.social-item:hover {
  transform: scale(1.15) translateX(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.8);
}

/* Tooltip */
.social-item::after {
  content: attr(data-tooltip);
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
  backdrop-filter: blur(10px);
  font-family: "Kanit", sans-serif;
}

.social-item:hover::after {
  opacity: 1;
  visibility: visible;
  right: 75px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .floating-social {
    right: 20px;
    bottom: 20px;
  }
  
  .social-toggle {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    border-width: 2px;
  }
  
  .social-toggle::before {
    font-size: 0.8rem;
    padding: 8px 14px;
    right: 70px;
  }
  
  .social-toggle:hover::before {
    right: 75px;
  }
  
  .social-item {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    margin-bottom: 12px;
    border-width: 2px;
  }
  
  .social-menu {
    bottom: 80px;
  }
  
  .social-item::after {
    display: none; /* Hide tooltips on mobile */
  }
}

@media (max-width: 480px) {
  .floating-social {
    right: 15px;
    bottom: 15px;
  }
  
  .social-toggle {
    width: 55px;
    height: 55px;
    font-size: 1.4rem;
    border-width: 2px;
  }
  
  .social-toggle::before {
    font-size: 0.75rem;
    padding: 6px 12px;
  }
  
  .social-item {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
    margin-bottom: 10px;
    border-width: 2px;
  }
}

/* Animation for social items */
.social-item:nth-child(1) { animation-delay: 0.1s; }
.social-item:nth-child(2) { animation-delay: 0.2s; }
.social-item:nth-child(3) { animation-delay: 0.3s; }
.social-item:nth-child(4) { animation-delay: 0.4s; }
.social-item:nth-child(5) { animation-delay: 0.5s; }
.social-item:nth-child(6) { animation-delay: 0.6s; }

@keyframes socialSlideIn {
  from {
    opacity: 0;
    transform: translateY(30px) translateX(30px) scale(0.5);
  }
  to {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
  }
}

.social-menu.active .social-item {
  animation: socialSlideIn 0.4s ease forwards;
}