/*--------------------------------------------------------------
# Home Page Redesign CSS
# TM Studio Premium Hero & Core Pillars Styling
--------------------------------------------------------------*/

/* Hero Customizations */
.hero {
  position: relative;
  background-color: var(--background-color);
  background-image: 
    radial-gradient(circle at 80% 20%, rgba(19, 135, 193, 0.07) 0%, transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(168, 85, 247, 0.05) 0%, transparent 50%);
  padding: 120px 0;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(rgba(255, 255, 255, 0.008) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.008) 1px, transparent 1px) 0 0 / 40px 40px;
  pointer-events: none;
}

/* Hero Typography */
.hero .hero-content h1 {
  font-size: 3.8rem;
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -1.5px;
}

.hero .hero-content h1 .highlight {
  background: linear-gradient(135deg, var(--accent-color), #00f2fe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero .hero-content h2 {
  font-size: 1.8rem;
  font-weight: 500;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  margin-bottom: 25px;
  height: 40px;
}

.hero .hero-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: color-mix(in srgb, var(--default-color), transparent 25%);
  margin-bottom: 35px;
  max-width: 540px;
}

/* Button Customizations */
.hero-actions {
  display: flex;
  gap: 15px;
}

.hero-actions .btn {
  padding: 14px 30px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hero-actions .btn-primary {
  background: linear-gradient(135deg, var(--accent-color), #0c7489);
  border: none;
  color: var(--contrast-color);
  box-shadow: 0 5px 15px rgba(12, 116, 137, 0.3);
}

.hero-actions .btn-primary:hover {
  background: linear-gradient(135deg, #00f2fe, var(--accent-color));
  color: #101a20;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 242, 254, 0.4);
}

.hero-actions .btn-outline {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.1);
  color: var(--default-color);
}

.hero-actions .btn-outline:hover {
  border-color: var(--accent-color);
  background: rgba(19, 135, 193, 0.05);
  color: var(--heading-color);
  transform: translateY(-2px);
}

/* High-Tech Graphics Wrapper */
.hero-image {
  position: relative;
  width: 100%;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}

.image-wrapper {
  position: relative;
  width: 360px;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
}

/* Glassmorphic Central Orb */
.glowing-orb {
  position: relative;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1), rgba(12, 116, 137, 0.4) 70%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  box-shadow: 
    0 0 50px rgba(19, 135, 193, 0.4), 
    inset 0 0 25px rgba(255, 255, 255, 0.25);
  animation: pulse-orb 4s ease-in-out infinite;
  transform: translateZ(20px);
}

.orb-brand {
  font-family: var(--nav-font);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  background: linear-gradient(135deg, #ffffff 30%, #00f2fe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 15px rgba(0, 242, 254, 0.5);
}

@keyframes pulse-orb {
  0%, 100% {
    transform: scale(1) translateZ(20px);
    box-shadow: 
      0 0 40px rgba(19, 135, 193, 0.4), 
      inset 0 0 20px rgba(255, 255, 255, 0.2);
  }
  50% {
    transform: scale(1.06) translateZ(20px);
    box-shadow: 
      0 0 60px rgba(0, 242, 254, 0.6), 
      inset 0 0 30px rgba(255, 255, 255, 0.35);
  }
}

/* 3D Orbit Lines */
.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.orbit-ring.ring-1 {
  width: 250px;
  height: 250px;
  border: 1px dashed rgba(19, 135, 193, 0.2);
  transform: rotateX(65deg) rotateY(15deg);
  animation: rotate-orbit-1 25s linear infinite;
}

.orbit-ring.ring-2 {
  width: 360px;
  height: 360px;
  border: 1px solid rgba(168, 85, 247, 0.1);
  transform: rotateX(70deg) rotateY(-25deg);
  animation: rotate-orbit-2 35s linear infinite;
}

@keyframes rotate-orbit-1 {
  0% { transform: rotateX(65deg) rotateY(15deg) rotateZ(0deg); }
  100% { transform: rotateX(65deg) rotateY(15deg) rotateZ(360deg); }
}

@keyframes rotate-orbit-2 {
  0% { transform: rotateX(70deg) rotateY(-25deg) rotateZ(360deg); }
  100% { transform: rotateX(70deg) rotateY(-25deg) rotateZ(0deg); }
}

/* Glow Particle Nodes on Orbits */
.orbit-particle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  top: 50%;
  left: 0;
  margin-top: -4px;
}

.ring-1 .orbit-particle {
  background: #00f2fe;
  box-shadow: 0 0 10px #00f2fe;
}

.ring-2 .orbit-particle {
  background: #a855f7;
  box-shadow: 0 0 10px #a855f7;
  left: auto;
  right: 0;
}

/* Floating Elements Container */
.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
}

/* Glassmorphic Floating Cards */
.floating-card {
  position: absolute;
  background: rgba(20, 31, 38, 0.65) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  color: var(--heading-color) !important;
  padding: 12px 20px;
  border-radius: 30px !important;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  width: 140px;
  height: 50px;
  justify-content: center;
  cursor: pointer;
}

.floating-card i {
  font-size: 1.25rem;
  transition: transform 0.3s ease;
}

.floating-card span {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.5px;
}

.floating-card:hover {
  background: rgba(20, 31, 38, 0.9) !important;
  transform: scale(1.08) translateZ(10px) !important;
}

.floating-card:hover i {
  transform: scale(1.2) rotate(8deg);
}

/* Themes colors config */
.floating-card.design i { color: #ff758c; }
.floating-card.design:hover {
  border-color: #ff758c !important;
  box-shadow: 0 15px 30px rgba(255, 117, 140, 0.3);
}

.floating-card.code i { color: #00f2fe; }
.floating-card.code:hover {
  border-color: #00f2fe !important;
  box-shadow: 0 15px 30px rgba(0, 242, 254, 0.3);
}

.floating-card.creativity i { color: #ffb300; }
.floating-card.creativity:hover {
  border-color: #ffb300 !important;
  box-shadow: 0 15px 30px rgba(255, 179, 0, 0.3);
}

.floating-card.launch i { color: #2af598; }
.floating-card.launch:hover {
  border-color: #2af598 !important;
  box-shadow: 0 15px 30px rgba(42, 245, 152, 0.3);
}

/* Floating Animation Positions */
.floating-card.design {
  top: 10%;
  left: 0%;
  animation: float-design 6s ease-in-out infinite;
}

.floating-card.code {
  top: 48%;
  left: -18%;
  animation: float-code 5.5s ease-in-out infinite;
}

.floating-card.creativity {
  top: 32%;
  right: -18%;
  animation: float-creativity 6.5s ease-in-out infinite;
}

.floating-card.launch {
  top: 72%;
  right: 0%;
  animation: float-launch 7s ease-in-out infinite;
}

/* Drifting Animations */
@keyframes float-design {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(2deg); }
}

@keyframes float-code {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(-3deg); }
}

@keyframes float-creativity {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(2.5deg); }
}

@keyframes float-launch {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(-1.5deg); }
}

/*--------------------------------------------------------------
# Core Pillars Section
--------------------------------------------------------------*/
.pillars-section {
  padding: 80px 0;
  background-color: rgba(16, 26, 32, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.pillar-card {
  background: rgba(20, 31, 38, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  padding: 40px 30px;
  height: 100%;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.pillar-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-color);
  box-shadow: 0 15px 35px rgba(19, 135, 193, 0.18);
}

.pillar-icon {
  width: 55px;
  height: 55px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 25px;
  transition: all 0.3s ease;
}

.pillar-card:hover .pillar-icon {
  background: var(--accent-color);
  color: #101a20;
}

.pillar-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 15px;
}

.pillar-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  margin-bottom: 0;
}

@media (max-width: 991px) {
  .hero {
    padding: 60px 0;
  }
  .hero .hero-content h1 {
    font-size: 2.8rem;
    text-align: center;
  }
  .hero .hero-content h2 {
    font-size: 1.4rem;
    text-align: center;
  }
  .hero .hero-content p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
    margin-bottom: 50px;
  }
  .hero-image {
    height: 380px;
  }
  .floating-card.code {
    left: -10%;
  }
  .floating-card.creativity {
    right: -10%;
  }
}
