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

:root {
  --bg-primary: #080c14;
  --bg-secondary: rgba(13, 20, 38, 0.6);
  --bg-card: rgba(255, 255, 255, 0.02);
  --accent-purple: #8b5cf6;
  --accent-indigo: #6366f1;
  --accent-cyan: #06b6d4;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --font-sans: 'Inter', sans-serif;
  --font-title: 'Outfit', sans-serif;
  
  --border-glass: 1px solid rgba(255, 255, 255, 0.08);
  --border-glass-hover: 1px solid rgba(99, 102, 241, 0.4);
  
  --glow-shadow: 0 0 40px rgba(99, 102, 241, 0.1);
  --glow-shadow-hover: 0 20px 50px rgba(99, 102, 241, 0.25);
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background Glowing Orbs */
body::before, body::after {
  content: '';
  position: absolute;
  width: 40vw;
  height: 40vw;
  min-width: 300px;
  min-height: 300px;
  border-radius: 50%;
  z-index: -1;
  filter: blur(120px);
  opacity: 0.15;
  pointer-events: none;
}

body::before {
  top: -10%;
  left: -10%;
  background: radial-gradient(circle, var(--accent-indigo) 0%, transparent 70%);
  animation: pulse-glow 10s infinite ease-in-out alternate;
}

body::after {
  bottom: -10%;
  right: -10%;
  background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%);
  animation: pulse-glow 12s infinite ease-in-out alternate-reverse;
}

@keyframes pulse-glow {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.12;
  }
  100% {
    transform: translate(5%, 5%) scale(1.1);
    opacity: 0.18;
  }
}

/* App Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

/* Header */
header {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 1.5rem 0;
  animation: fadeInDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.logo-brand {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 2.2rem;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ffffff 40%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-dot {
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-indigo));
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px var(--accent-indigo);
}

/* Main Section */
main {
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3.5rem;
  margin: 4rem 0;
  text-align: center;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
  opacity: 0;
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

h1 {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 3.5rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 30%, #a5b4fc 70%, var(--accent-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.6;
  font-weight: 300;
}

/* Services Grid */
.services-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.section-title {
  font-family: var(--font-title);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-cyan);
  margin-bottom: 0.5rem;
}

.services-grid {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

/* Service Card (Glassmorphism + Interactive Glow) */
.service-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 2rem;
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: var(--border-glass);
  border-radius: 24px;
  box-shadow: var(--glow-shadow);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(800px circle at var(--x, 0px) var(--y, 0px), rgba(99, 102, 241, 0.08), transparent 40%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

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

.service-card:hover {
  transform: translateY(-6px);
  border: var(--border-glass-hover);
  box-shadow: var(--glow-shadow-hover);
}

.card-icon-wrapper {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 20px;
  margin-bottom: 1.5rem;
  transition: var(--transition-smooth);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 110px;
  height: 110px;
}

.service-card:hover .card-icon-wrapper {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.2);
  transform: scale(1.05) rotate(2deg);
}

.service-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.service-card h2 {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
  transition: var(--transition-smooth);
}

.service-card:hover h2 {
  color: var(--accent-indigo);
}

.service-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--accent-cyan);
  transition: var(--transition-smooth);
}

.service-link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  transition: var(--transition-smooth);
}

.service-card:hover .service-link {
  color: var(--accent-purple);
}

.service-card:hover .service-link svg {
  transform: translateX(4px);
}

/* Footer Section */
footer {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(4, 6, 12, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 2.5rem 0;
  z-index: 2;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
  opacity: 0;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.by-author {
  font-family: var(--font-title);
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.by-author span {
  font-weight: 600;
  color: var(--text-primary);
}

/* Email protection wrapper */
.contact-wrapper {
  margin-top: 0.25rem;
  font-size: 0.9rem;
}

.contact-email {
  color: var(--accent-indigo);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  background: rgba(99, 102, 241, 0.05);
  border: 1px solid rgba(99, 102, 241, 0.1);
}

.contact-email:hover {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.3);
  color: var(--accent-cyan);
}

.contact-email svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

/* Social links styling */
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.social-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
  border: var(--border-glass);
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.social-btn:hover {
  color: var(--text-primary);
  transform: translateY(-3px);
}

.social-btn.linkedin:hover {
  background: rgba(10, 102, 194, 0.15);
  border-color: rgba(10, 102, 194, 0.4);
  color: #0a66c2;
}

.social-btn.facebook:hover {
  background: rgba(24, 119, 242, 0.15);
  border-color: rgba(24, 119, 242, 0.4);
  color: #1877f2;
}

.social-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.copyright {
  font-size: 0.8rem;
  color: var(--text-muted);
}

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

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsiveness */
@media (max-width: 640px) {
  h1 {
    font-size: 2.5rem;
  }
  .subtitle {
    font-size: 1rem;
    padding: 0 0.5rem;
  }
  main {
    margin: 2.5rem 0;
    gap: 2.5rem;
  }
  .services-grid {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  .service-card {
    padding: 2.5rem 1.5rem;
  }
}
