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

:root {
  /* Fibonacci spacing */
  --sp-1: 8px;
  --sp-2: 13px;
  --sp-3: 21px;
  --sp-4: 34px;
  --sp-5: 55px;
  --sp-6: 89px;
  
  /* Colors */
  --bg-color: #0b0c10;
  --surface-color: rgba(31, 40, 51, 0.45);
  --surface-border: rgba(255, 255, 255, 0.08);
  --text-primary: #ffffff;
  --text-secondary: #c5c6c7;
  --accent-color: #45a29e;
  --accent-glow: #66fcf1;
  
  /* Typography */
  --font-main: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(69, 162, 158, 0.1) 0%, transparent 40%),
              radial-gradient(circle at 80% 20%, rgba(102, 252, 241, 0.05) 0%, transparent 30%);
  z-index: -1;
  animation: pulse-bg 15s infinite alternate ease-in-out;
}

@keyframes pulse-bg {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

a {
  color: var(--accent-glow);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  text-shadow: 0 0 8px var(--accent-glow);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--sp-4) var(--sp-3);
}

.glass-panel {
  background: var(--surface-color);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--surface-border);
  border-radius: var(--sp-3);
  padding: var(--sp-4);
  margin-bottom: var(--sp-4);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px 0 rgba(102, 252, 241, 0.15);
  border-color: rgba(102, 252, 241, 0.3);
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  margin-bottom: var(--sp-3);
  letter-spacing: -0.5px;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  background: linear-gradient(to right, #fff, var(--accent-glow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: var(--sp-2);
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--text-primary);
  border-bottom: 1px solid var(--surface-border);
  padding-bottom: var(--sp-1);
}

.bio-header {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.profile-img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent-color);
  box-shadow: 0 0 20px rgba(102, 252, 241, 0.4);
}

.social-links {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
  margin-top: var(--sp-3);
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface-color);
  border: 1px solid var(--surface-border);
  color: var(--text-primary);
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: var(--accent-color);
  color: var(--bg-color);
  box-shadow: 0 0 15px var(--accent-glow);
  transform: scale(1.1);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--sp-4);
}

.project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card .btn {
  margin-top: auto;
}

.btn {
  display: inline-block;
  padding: var(--sp-2) var(--sp-3);
  background: transparent;
  border: 2px solid var(--accent-glow);
  color: var(--accent-glow);
  border-radius: 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
}

.btn:hover {
  background: var(--accent-glow);
  color: var(--bg-color);
  box-shadow: 0 0 20px var(--accent-glow);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
  margin-bottom: var(--sp-3);
}

.tag {
  background: rgba(102, 252, 241, 0.1);
  color: var(--accent-glow);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(102, 252, 241, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .bio-header {
    flex-direction: column;
    text-align: center;
  }
  
  .profile-img {
    width: 150px;
    height: 150px;
  }

  .social-links {
    justify-content: center;
  }
}
