/* Newton Plaza — Custom Styles */

/* Base & Typography */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #fdf4f8;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #be185d, #f59e0b);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #9d174d, #d97706);
}

/* Navbar */
#navbar {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 30px rgba(157, 23, 77, 0.08);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #be185d, #f59e0b);
  transition: width 0.3s ease;
  border-radius: 1px;
}

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

/* Mobile Menu */
.mobile-nav-link {
  position: relative;
  padding-left: 16px;
}

.mobile-nav-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #be185d, #f59e0b);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.mobile-nav-link:hover::before {
  opacity: 1;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #be185d, #9d174d);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(157, 23, 77, 0.3);
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(157, 23, 77, 0.4);
  background: linear-gradient(135deg, #a0154b, #7d1139);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  color: #1f2937;
  font-weight: 600;
  font-size: 15px;
  border-radius: 14px;
  border: 1.5px solid rgba(157, 23, 77, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-secondary:hover {
  background: #fff;
  border-color: #be185d;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(157, 23, 77, 0.15);
}

/* Floating Cards */
.card-float-1 {
  animation: float1 6s ease-in-out infinite;
}

.card-float-2 {
  animation: float2 5s ease-in-out infinite;
}

.card-float-3 {
  animation: float3 7s ease-in-out infinite;
}

.card-float-4 {
  animation: float4 8s ease-in-out infinite;
}

.card-float-5 {
  animation: float5 6s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(1deg); }
}

@keyframes float2 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(-1deg); }
}

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

@keyframes float4 {
  0%, 100% { transform: translateY(0px) rotate(12deg); }
  50% { transform: translateY(-20px) rotate(18deg); }
}

@keyframes float5 {
  0%, 100% { transform: translateY(0px) rotate(-12deg); }
  50% { transform: translateY(-14px) rotate(-6deg); }
}

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

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

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .card-float-1,
  .card-float-2,
  .card-float-3,
  .card-float-4,
  .card-float-5 {
    animation: none;
  }
  
  html {
    scroll-behavior: auto;
  }
  
  .scroll-reveal {
    transition: none;
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .btn-primary,
  .btn-secondary {
    padding: 12px 22px;
    font-size: 14px;
    width: 100%;
    justify-content: center;
  }
  
  #hero h1 {
    font-size: 2.5rem;
  }
  
  #hero h1 span {
    display: block;
  }
  
  .hero-card-desktop {
    display: none;
  }
}

/* Focus Styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #f59e0b;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Selection */
::selection {
  background: rgba(190, 24, 93, 0.2);
  color: #1f2937;
}

/* Image Optimization */
img {
  max-width: 100%;
  height: auto;
}

/* Smooth card hover */
.group:hover .group-hover\\:scale-110 {
  transform: scale(1.1);
}

/* Gradient text utility */
.bg-clip-text {
  -webkit-background-clip: text;
  background-clip: text;
}

/* Mobile menu animation */
#mobile-menu {
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
