/* Global layout & gradient background
   Orange glow: #FDB887 / #51260C
   Purple glow: #8F46FF
*/

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Fade-in animations */
.fade-in {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 {
  transition-delay: 0.3s;
}

.fade-in-delay-2 {
  transition-delay: 0.6s;
}

.fade-in-delay-3 {
  transition-delay: 0.9s;
}

/* Typing animation */
.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background-color: var(--accent);
  margin-left: 2px;
  animation: blink 0.7s infinite;
}

@keyframes blink {
  0%, 49% {
    opacity: 1;
  }
  50%, 100% {
    opacity: 0;
  }
}

:root {
  --text-main: #ffffff;
  --text-muted: #cfd5e2;
  --glass-bg: rgba(10, 13, 20, 0.75);
  --glass-border: rgba(255, 255, 255, 0.18);
  --accent: #8f46ff;
  --accent-soft: rgba(143, 70, 255, 0.18);
  --radius-large: 24px;
  --radius-card: 20px;
  --shadow-soft: 0 24px 80px rgba(0, 0, 0, 0.7);
  --gradient-main: linear-gradient(135deg, #fdb887, #8f46ff);
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at 15% 80%, #fdb887 0, #51260c 32%, transparent 60%),
    radial-gradient(circle at 85% 18%, #8f46ff 0, #050509 40%, transparent 70%),
    #000000;
  background-attachment: fixed;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.06), transparent 55%);
  mix-blend-mode: screen;
}

/* Top navigation */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(20px);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.nav-links {
  display: flex;
  gap: 18px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-links a:hover {
  color: #ffffff;
}

/* mobile nav button */

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
}

/* Page sections */

.section {
  padding: 40px 16px;
}

.section:last-of-type {
  padding-bottom: 80px;
}

/* Outer wrapper – now invisible, just max-width + layout */
.browser-frame {
  max-width: 1200px;
  margin: 0 auto;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

/* Hide the fake browser bar completely */
.browser-bar {
  display: none;
}

.browser-content {
  padding: 40px 40px 48px;
}

/* HERO */

.hero-layout .browser-content {
  padding-block: 56px;
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2rem, 3.1vw, 2.9rem);
  line-height: 1.2;
  margin: 10px 0 16px;
}

.hero-text .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
}

.lead {
  color: white;
  max-width: 34rem;
  font-size: 0.98rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease,
    border-color 0.18s ease;
}

.btn.primary {
  background: var(--gradient-main);
  color: #050509;
  font-weight: 500;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.8);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.9);
}

.btn.ghost {
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
  background: transparent;
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* Hero devices */

.hero-media {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.device-laptop {
  width: 220px;
  height: 140px;
  border-radius: 18px;
  background: #262a31;
  position: relative;
  transform: rotate(-10deg) translateX(-10px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.9);
}

.device-laptop::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 14px;
  background: linear-gradient(135deg, #71c0ff, #f6f6f6);
}

.device-screen {
  width: 100%;
  height: 100%;
}

.device-phone {
  position: absolute;
  right: -20px;
  bottom: -40px;
  width: 150px;
  border-radius: 26px;
  background: #050509;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 1);
}

.phone-header {
  padding: 10px 14px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
}

.app-name {
  font-weight: 500;
}

.phone-balance {
  padding: 4px 14px 0;
  font-size: 0.76rem;
}

.phone-balance .label {
  color: var(--text-muted);
  display: block;
  margin-bottom: 2px;
}

.phone-balance .value {
  font-weight: 600;
  font-size: 0.95rem;
}

.phone-chart {
  margin: 10px 10px 6px;
  height: 80px;
  border-radius: 16px;
  background: radial-gradient(circle at 20% 0%, #fdb887, transparent 60%),
    radial-gradient(circle at 85% 100%, #8f46ff, transparent 60%),
    #0f1119;
}

.phone-footer {
  padding: 8px 12px 10px;
  display: flex;
  justify-content: flex-end;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #4a62ff;
  font-size: 0.7rem;
}

/* WHAT IS GUPPTY */

.about-content {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 36px;
  align-items: stretch;
}

.glass-card {
  border-radius: var(--radius-card);
  padding: 26px 24px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.12),
    rgba(9, 10, 18, 0.95)
  );
  border: 1px solid var(--glass-border);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.75);
}

.glass-card h2 {
  margin-top: 0;
  margin-bottom: 12px;
}

.glass-card p {
  margin: 0 0 12px;
  color: white;
  font-size: 0.95rem;
}

/* 
.about-media {
  border-radius: var(--radius-card);
  border: 1px dashed rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  color: white;
  text-align: center;
  padding: 20px;
  background: radial-gradient(circle at 10% 0%, #fdb88733, transparent 55%),
    radial-gradient(circle at 90% 100%, #8f46ff33, transparent 55%),
    rgba(0, 0, 0, 0.8);
}
*/

/* FEATURES */

.features-content h2 {
  margin-top: 0;
  margin-bottom: 20px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.feature-item {
  padding: 22px 20px;
  border-radius: 18px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.7);
  transition: all 0.3s ease;
  cursor: pointer;
}

.feature-item:hover {
  transform: translateY(-4px);
  border: 2px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 24px 80px rgba(255, 255, 255, 0.1);
}

.features-grid:hover .feature-item:not(:hover) {
  filter: blur(2px);
  opacity: 0.6;
  transform: scale(0.98);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  background: var(--accent-soft);
}

.feature-item h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.feature-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* FEATURED PROJECTS */

.projects-content {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.projects-header h2 {
  margin-top: 0;
  margin-bottom: 8px;
}

.projects-lead {
  margin: 0;
  color: white;
  max-width: 32rem;
  font-size: 0.94rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.project-card {
  border-radius: var(--radius-card);
  background: radial-gradient(circle at 0% 0%, #fdb88722, transparent 60%),
    radial-gradient(circle at 100% 100%, #8f46ff22, transparent 60%),
    rgba(7, 8, 15, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.23);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 24px 80px rgba(255, 255, 255, 0.1);
}

.projects-grid:hover .project-card:not(:hover) {
  filter: blur(2px);
  opacity: 0.6;
  transform: scale(0.98);
}

.project-card.featured {
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.9);
}

.project-image {
  width: 100%;
  height: 200px;
  margin-bottom: 16px;
  border-radius: 12px;
  overflow: hidden;
}

.project-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-size: cover;
  background-position: center;
}

.demo-placeholder {
  border: 2px dashed rgba(255, 255, 255, 0.3);
}

.project-info {
  padding: 0 20px 22px;
}

.project-card h3 {
  margin: 0 0 8px;
}

.project-location {
  font-size: 0.8rem;
  color: var(--accent);
  margin: 0 0 8px;
  font-weight: 500;
}

.demo-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 0.7rem;
  padding: 4px 8px;
  border-radius: 12px;
  margin: 0 0 8px;
  font-weight: 500;
}

.project-card p {
  margin: 0 0 10px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.project-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.project-meta li::before {
  content: "• ";
}

.project-link {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 12px;
}

.project-link span:hover {
  text-decoration: underline;
}

/* CONTACT */

.contact-content {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 40px;
  align-items: stretch;
}

.contact-left {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.contact-left h2 {
  margin-top: 0;
}

.contact-right {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  justify-content: center;
}

.contact-block h3 {
  margin: 0 0 4px;
}

.contact-block p {
  margin: 0;
  color: white;
}

/* Social links with the exact gradient applied to the href text */

.contact-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.contact-social-links a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  background-image: var(--gradient-main); /* exact gradient */
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  transition: all 0.2s ease;
}

.contact-social-links a svg {
  width: 20px;
  height: 20px;
  fill: var(--text-muted);
  transition: all 0.2s ease;
}

.contact-social-links a:hover svg {
  fill: #8f46ff;
  transform: scale(1.1);
}

.contact-social-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background-image: var(--gradient-main);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.contact-social-links a:hover::after {
  opacity: 1;
}

/* Footer */

.site-footer {
  text-align: center;
  padding: 20px 16px 32px;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Responsive */

@media (max-width: 900px) {
  .hero-content,
  .about-content,
  .makers-content,
  .contact-content {
    grid-template-columns: 1fr;
  }

  .hero-media {
    margin-top: 22px;
  }

  .device-phone {
    position: relative;
    right: 0;
    bottom: 0;
    margin-top: -40px;
  }

  .features-grid,
  .reviews-grid,
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-links {
    position: absolute;
    inset-inline: 0;
    top: 58px;
    padding: 12px 16px 14px;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    flex-direction: column;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 640px) {
  .browser-content {
    padding: 30px 22px 34px;
  }

  .features-grid,
  .reviews-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding-inline: 12px;
  }
}
