/* Reset and Base Styles */
:root {
  --primary: #a8c5d8;
  --secondary: #8b9dc3;
  --accent: #dfe7ef;
  --dark: #f5f7fa;
  --light: #2d3e50;
  --white: #1a1f2e;
}

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

html, body {
  width: 100%;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--dark);
  background: transparent;
  overflow-x: hidden;
}

/* Background */
.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.gradient-bg {
  width: 100%;
  height: 100%;
  background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
  background-size: 100% 100%;
}

@keyframes gradientShift {
  0% {
    filter: hue-rotate(0deg);
  }
  50% {
    filter: hue-rotate(15deg);
  }
  100% {
    filter: hue-rotate(0deg);
  }
}

#matrix-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.08;
}

.floating-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
  animation: float 30s ease-in-out infinite;
}

.shape-1 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle at 30% 30%, rgba(168, 197, 216, 0.03), rgba(168, 197, 216, 0));
  top: -100px;
  left: 5%;
  animation-delay: 0s;
}

.shape-2 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle at 30% 30%, rgba(139, 157, 195, 0.025), rgba(139, 157, 195, 0));
  top: 30%;
  right: 10%;
  animation-delay: 2s;
}

.shape-3 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle at 30% 30%, rgba(223, 231, 239, 0.03), rgba(223, 231, 239, 0));
  bottom: 10%;
  left: 20%;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(5px, -10px) scale(1.01);
  }
}

/* Container */
.container {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

/* Hero Section */
.hero {
  text-align: center;
  margin-bottom: 3rem;
  animation: fadeInUp 0.8s ease-out;
}

.profile-photo {
  width: 120px;
  height: 120px;
  margin: 0 auto 2rem;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--primary);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(139, 157, 195, 0.1);
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.hero h1 {
  font-size: 3.5rem;
  font-weight: 300;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  color: var(--dark);
  text-transform: lowercase;
}

.subtitle-group {
  margin-bottom: 2.5rem;
}

.degree {
  font-size: 1rem;
  color: var(--primary);
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-bottom: 0.3rem;
}

.school {
  font-size: 0.95rem;
  color: var(--secondary);
  font-weight: 400;
  letter-spacing: 0.3px;
  margin-bottom: 1rem;
}

.focus {
  font-size: 0.9rem;
  color: var(--dark);
  opacity: 0.6;
  font-weight: 300;
  letter-spacing: 0.4px;
}

/* Focus Area */
.focus-area {
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.focus-title {
  font-size: 1.1rem;
  color: var(--primary);
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-bottom: 0.8rem;
  text-transform: lowercase;
}

.focus-description {
  font-size: 0.95rem;
  color: var(--dark);
  opacity: 0.8;
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 0.3px;
}

/* Links */
.links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.link-btn {
  padding: 0.7rem 1.6rem;
  border: 1.5px solid var(--primary);
  background: rgba(45, 62, 80, 0.5);
  color: var(--primary);
  text-decoration: none;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.3px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.link-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--primary);
  transition: left 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: -1;
}

.link-btn:hover::before {
  left: 0;
}

.link-btn:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(168, 197, 216, 0.35);
}

.link-btn span {
  position: relative;
  z-index: 1;
}

/* Interests Section */
.interests {
  width: 100%;
  max-width: 900px;
  margin: 4rem 0;
  animation: fadeInUp 0.8s ease-out 0.1s both;
}

.interests h2 {
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--dark);
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: lowercase;
}

.interest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.interest-card {
  background: rgba(45, 62, 80, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(168, 197, 216, 0.3);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.interest-card:hover {
  background: rgba(45, 62, 80, 0.8);
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(168, 197, 216, 0.2);
}

.interest-card h3 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  text-transform: lowercase;
}

.interest-card p {
  font-size: 0.9rem;
  color: var(--dark);
  opacity: 0.8;
  line-height: 1.5;
  font-weight: 300;
}

/* CV Section */
.cv-section {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.cv-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 2.2rem;
  background: var(--primary);
  color: var(--white);
  text-decoration: none;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.3px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 6px 20px rgba(168, 197, 216, 0.3);
  cursor: pointer;
}

.cv-btn:hover {
  background: var(--secondary);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(168, 197, 216, 0.4);
}

.cv-btn .arrow {
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cv-btn:hover .arrow {
  transform: translateY(3px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
  }

  .profile-photo {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
  }

  .degree {
    font-size: 0.9rem;
  }

  .school {
    font-size: 0.85rem;
  }

  .focus-area {
    max-width: 100%;
  }

  .focus-title {
    font-size: 1rem;
  }

  .focus-description {
    font-size: 0.9rem;
  }

  .links {
    gap: 0.7rem;
  }

  .link-btn {
    padding: 0.65rem 1.3rem;
    font-size: 0.8rem;
  }

  .interests {
    margin: 3rem 0;
  }

  .interests h2 {
    font-size: 1.5rem;
  }

  .interest-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
  }

  .interest-card {
    padding: 1.2rem;
  }

  .interest-card h3 {
    font-size: 0.95rem;
  }

  .interest-card p {
    font-size: 0.85rem;
  }

  .cv-btn {
    padding: 0.8rem 1.8rem;
    font-size: 0.9rem;
  }

  .shape-1 {
    width: 200px;
    height: 200px;
  }

  .shape-2 {
    width: 150px;
    height: 150px;
  }

  .shape-3 {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 1rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .profile-photo {
    width: 90px;
    height: 90px;
    margin: 0 auto 1rem;
  }

  .degree {
    font-size: 0.85rem;
  }

  .school {
    font-size: 0.8rem;
  }

  .focus-title {
    font-size: 0.95rem;
  }

  .focus-description {
    font-size: 0.85rem;
  }

  .links {
    gap: 0.5rem;
  }

  .link-btn {
    padding: 0.6rem 1.1rem;
    font-size: 0.75rem;
  }

  .interests h2 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
  }

  .interest-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .interest-card {
    padding: 1rem;
  }

  .interest-card h3 {
    font-size: 0.9rem;
  }

  .interest-card p {
    font-size: 0.8rem;
  }

  .cv-btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.85rem;
    flex-direction: column;
  }
}