/* ─── Vesta Store — Layout ─────────────────────────────────────────── */

/* ── Navigation ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  padding: var(--space-md) 0;
  background: var(--bg-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: background var(--transition-base), border-color var(--transition-base);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 1.3rem;
  color: var(--text-primary);
}

.nav-brand img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: var(--radius-full);
  transition: width var(--transition-base);
}

.nav-links a:hover {
  color: var(--accent);
}

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

.nav-controls {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  cursor: pointer;
  z-index: var(--z-overlay);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: var(--radius-full);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Hero Section ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px var(--space-xl) var(--space-4xl);
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: var(--z-content);
  max-width: 800px;
}

.hero-logo {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-lg);
  margin: 0 auto var(--space-xl);
  box-shadow: 0 0 40px var(--accent-glow), 0 8px 32px rgba(0, 0, 0, 0.3);
  animation: floatSlow 6s ease-in-out infinite;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: var(--fw-extrabold);
  font-size: clamp(2.8rem, 8vw, 5rem);
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  background: linear-gradient(135deg, #ffffff, var(--accent), #a78bfa, var(--accent));
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 8s ease infinite;
  text-shadow: none;
  filter: drop-shadow(0 0 30px var(--accent-glow));
}

[data-theme="light"] .hero-title {
  background: linear-gradient(135deg, #0f172a, var(--accent), #7c3aed, var(--accent));
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: gradientShift 8s ease infinite;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-2xl);
  line-height: 1.7;
}

.hero-cta {
  display: inline-flex;
}

/* ── About Section ── */
.about {
  padding: var(--space-4xl) 0;
  position: relative;
}

.about-content {
  max-width: 700px;
  margin: 0 auto var(--space-3xl);
  text-align: center;
}

.about-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

/* ── Work / Demos Section ── */
.work {
  padding: var(--space-4xl) 0;
  position: relative;
}

.demos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-xl);
}

/* ── Contact Section ── */
.contact {
  padding: var(--space-4xl) 0;
  text-align: center;
  position: relative;
}

.contact-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
  margin-bottom: var(--space-3xl);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  font-size: 1.2rem;
  color: var(--text-secondary);
  transition: transform var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
}

.social-links a:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 4px 20px var(--accent-glow);
}

/* ── Footer ── */
.footer {
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 1.1rem;
  color: var(--text-primary);
}

.footer p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ── Floating Orbs Container ── */
.orbs-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-orbs);
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: var(--orb-1);
  top: -100px;
  right: -100px;
  animation: float1 20s ease-in-out infinite;
}

.orb-2 {
  width: 350px;
  height: 350px;
  background: var(--orb-2);
  bottom: 20%;
  left: -80px;
  animation: float2 25s ease-in-out infinite;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: var(--orb-3);
  top: 40%;
  right: 10%;
  animation: float3 22s ease-in-out infinite;
}

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