@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@400;600;700&display=swap");

:root {
  --primary: hsl(348, 83%, 55%);
  --primary-dark: hsl(348, 83%, 45%);
  --accent: hsl(10, 90%, 65%);
  --bg: hsl(220, 33%, 98%);
  --surface: rgba(255, 255, 255, 0.8);
  --text: hsl(220, 33%, 12%);
  --text-muted: hsl(220, 10%, 40%);
  --glass: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(255, 255, 255, 0.8);
  --border: rgba(0, 0, 0, 0.08);
  --shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
  --bg: hsl(220, 33%, 6%);
  --surface: rgba(20, 24, 33, 0.6);
  --text: hsl(220, 33%, 98%);
  --text-muted: hsl(220, 10%, 70%);
  --glass: rgba(20, 24, 33, 0.5);
  --glass-border: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.05);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition:
    background-color 0.5s ease,
    color 0.5s ease;
}

h1,
h2,
h3,
.logo {
  font-family: "Outfit", sans-serif;
  color: var(--text);
  transition: color 0.5s ease;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Navbar */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: var(--transition);
}

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

.btn {
  padding: 0.8rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.hero {
  padding: 12rem 0 8rem;
  position: relative;
  text-align: center;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  top: -20%;
  left: 50%;
  width: 80vw;
  max-width: 800px;
  height: 800px;
  transform: translateX(-50%);
  background: radial-gradient(
    circle,
    var(--primary) 0%,
    rgba(200, 0, 50, 0) 70%
  );
  opacity: 0.15;
  filter: blur(60px);
  z-index: -1;
  border-radius: 50%;
  animation: pulseOrb 8s ease-in-out infinite alternate;
}

@keyframes pulseOrb {
  0% {
    transform: translateX(-50%) scale(1);
    opacity: 0.15;
  }
  100% {
    transform: translateX(-50%) scale(1.1);
    opacity: 0.25;
  }
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 2.5rem;
  transition: color 0.5s ease;
}

/* App Cards */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  padding: 4rem 0;
}

.card {
  background: var(--surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 3rem 2.5rem;
  border-radius: 24px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.1);
}

.card:hover::before {
  opacity: 1;
}

.app-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 2rem;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.card:hover .app-icon {
  transform: scale(1.05) rotate(-3deg);
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card p {
  color: var(--text);
  margin-bottom: 1.5rem;
  transition: color 0.5s ease;
}

.tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.tag {
  font-size: 0.8rem;
  background: var(--border);
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 500;
  transition: var(--transition);
}

[data-theme="dark"] .tag {
  color: var(--text);
}

/* Contact Section */
.contact {
  padding: 6rem 0;
  text-align: center;
}

.contact-card {
  background: var(--surface);
  max-width: 600px;
  margin: 0 auto;
  padding: 3rem;
  border-radius: 24px;
  border: 1px solid var(--border);
}

.email-bubble {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--bg);
  border-radius: 100px;
  font-weight: 600;
  color: var(--primary);
  margin: 1.5rem 0;
  border: 1px solid var(--border);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate {
  animation: fadeIn 0.8s ease forwards;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  .hamburger {
    display: block;
  }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    transform: translateY(-150%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
  }
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}
