/* mattle.uk - custom styles */

:root {
  --bg: #0b0a1f;
  --card-bg: #1f2251;
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.6);
  --accent-from: #5603ad;
  --accent-via: #ba54f5;
  --accent-to: #5603ad;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background-color: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* Floating background squares */
.squares {
  position: fixed;
  border-radius: 20%;
  background: linear-gradient(45deg, #22013a 0%, #9900f1 100%);
  animation: float 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.square1 { width: 300px; height: 300px; left: 3%; top: -10%; opacity: 0.5; animation-duration: 9s; }
.square2 { width: 400px; height: 400px; right: -5%; top: -8%; opacity: 0.4; animation-duration: 11s; }
.square3 { width: 200px; height: 200px; left: -5%; bottom: 0; opacity: 0.1; animation-duration: 10s; }
.square4 { width: 100px; height: 100px; right: 27%; top: 70%; opacity: 0.9; animation-duration: 7s; }
.square5 { width: 250px; height: 250px; left: 32%; bottom: 10%; opacity: 0.1; animation-duration: 12s; }
.square6 { width: 80px; height: 80px; left: 10%; top: 35%; opacity: 0.8; animation-duration: 8s; }
.square7 { width: 300px; height: 300px; right: -5%; bottom: 0; opacity: 0.1; animation-duration: 13s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(15px, -15px); }
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  animation: fadeInUp 1.2s ease;
}

.hero .avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 1px 20px 0px rgba(0, 0, 0, 0.4);
}

.hero h1 {
  font-weight: 600;
  margin: 12px 0 4px;
}

.hero p.tagline {
  margin: 0 0 20px;
  color: var(--text-muted);
}

.socials {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.socials a {
  color: var(--text);
  font-size: 1.5rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.socials a:hover {
  color: var(--accent-via);
  transform: translateY(-3px);
}

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

/* Main content */
main {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

.section {
  margin-bottom: 60px;
}

.section-title {
  font-weight: 300;
  margin-bottom: 24px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.card {
  background: var(--card-bg);
  border-radius: 0.4rem;
  padding: 24px;
  box-shadow: 0 1px 20px 0px rgba(0, 0, 0, 0.2);
}

.card h2,
.card h3 {
  font-weight: 600;
  margin-top: 0;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.card-header h3 {
  margin: 0;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.08);
  padding: 6px;
  box-sizing: border-box;
  flex-shrink: 0;
}

.card p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* Buttons */
.btn {
  display: inline-block;
  margin: 4px 8px 0 0;
  padding: 11px 23px;
  border-radius: 30px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  background: linear-gradient(to bottom left, var(--accent-from), var(--accent-via), var(--accent-to));
  background-size: 210% 210%;
  background-position: top right;
  transition: background-position 0.5s ease;
  box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.2);
}

.btn:hover {
  background-position: bottom left;
}
