/* Modern Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-color: #0f172a;
  --text-color: #f1f5f9;
  --primary-color: #6366f1; /* Indigo 500 */
  --secondary-color: #ec4899; /* Pink 500 */
  --accent-color: #22d3ee; /* Cyan 400 */
  --glass-bg: rgba(30, 41, 59, 0.7);
  --glass-border: rgba(148, 163, 184, 0.1);
  --card-hover: rgba(51, 65, 85, 0.8);
  --font-main: "Outfit", sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  background-image: radial-gradient(
      circle at 10% 20%,
      rgba(99, 102, 241, 0.15) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 90% 80%,
      rgba(236, 72, 153, 0.15) 0%,
      transparent 40%
    );
}

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

header {
  text-align: center;
  padding: 4rem 0 2rem;
  animation: fadeInDown 0.8s ease-out;
}

h1 {
  font-size: 4rem;
  font-weight: 700;
  background: linear-gradient(
    135deg,
    var(--accent-color),
    var(--secondary-color)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.5rem;
  letter-spacing: -2px;
}

.subtitle {
  font-size: 1.25rem;
  color: #94a3b8;
  font-weight: 300;
}

/* Glass Card */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  border-color: rgba(148, 163, 184, 0.2);
}

/* Profile Section */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

@media (min-width: 960px) {
  .profile-grid {
    grid-template-columns: 350px 1fr;
  }
}

.profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.pfp-container {
  width: 300px;
  height: 300px;
  border-radius: 24px;
  overflow: hidden;
  border: 4px solid var(--primary-color);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
  margin-bottom: 1.5rem;
  position: relative;
}

.pfp-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.pfp-container:hover img {
  transform: scale(1.1);
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
}

.tag {
  background: rgba(99, 102, 241, 0.2);
  color: var(--accent-color);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.bio-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.bio-text {
  font-size: 1.125rem;
  color: #cbd5e1;
  margin-bottom: 2rem;
  line-height: 1.8;
}

/* Logos Grid */
.affiliations {
  margin-top: 2rem;
}

.affiliations h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.logos-grid {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.logo-item {
  height: 50px;
  width: auto;
  transition: var(--transition);
}

.logo-item:hover {
  transform: scale(1.05);
}

/* Fumo Gallery */
.gallery-section {
  margin-top: 4rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.fumo-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 1rem;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  justify-content: center;
  align-items: center;
  aspect-ratio: 1;
}

.fumo-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px) rotate(2deg);
}

.fumo-card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: var(--transition);
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.project-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--accent-color);
}

.project-card p {
  color: #cbd5e1;
}

.btn-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--secondary-color);
  font-weight: 600;
  text-decoration: none;
  position: relative;
}

.btn-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: var(--secondary-color);
  transition: width 0.3s ease;
}

.btn-link:hover::after {
  width: 100%;
}

/* Footer */
footer {
  margin-top: 6rem;
  padding: 2rem 0;
  text-align: center;
  color: #64748b;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-color);
}

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